p1343.dts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /dts-v1/;
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. /include/ "artpec3.dtsi"
  5. / {
  6. model = "Axis P1343 Network Camera";
  7. compatible = "axis,p1343";
  8. aliases {
  9. serial0 = &uart0;
  10. };
  11. soc {
  12. uart0: serial@b003e000 {
  13. status = "okay";
  14. };
  15. };
  16. i2c {
  17. compatible = "i2c-gpio";
  18. gpios = <&gio 3 0 0xa>, <&gio 2 0 0xa>;
  19. i2c-gpio,delay-us = <2>;
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. rtc@51 {
  23. compatible = "nxp,pcf8563";
  24. reg = <0x51>;
  25. };
  26. };
  27. leds {
  28. compatible = "gpio-leds";
  29. status_green {
  30. label = "status:green";
  31. gpios = <&gio 0 GPIO_ACTIVE_LOW 0xc>;
  32. linux,default-trigger = "heartbeat";
  33. };
  34. status_red {
  35. label = "status:red";
  36. gpios = <&gio 1 GPIO_ACTIVE_LOW 0xc>;
  37. };
  38. network_green {
  39. label = "network:green";
  40. gpios = <&gio 2 GPIO_ACTIVE_LOW 0xc>;
  41. };
  42. network_red {
  43. label = "network:red";
  44. gpios = <&gio 3 GPIO_ACTIVE_LOW 0xc>;
  45. };
  46. power_red {
  47. label = "power:red";
  48. gpios = <&gio 4 GPIO_ACTIVE_LOW 0xc>;
  49. };
  50. };
  51. gpio_keys {
  52. compatible = "gpio-keys";
  53. #address-cells = <1>;
  54. #size-cells = <0>;
  55. activity-button@0 {
  56. label = "Activity Button";
  57. linux,code = <KEY_FN>;
  58. gpios = <&gio 13 GPIO_ACTIVE_LOW 0xd>;
  59. };
  60. };
  61. };