qca9531_glinet_ar300m.dtsi 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /dts-v1/;
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. #include "qca953x.dtsi"
  5. / {
  6. keys {
  7. compatible = "gpio-keys-polled";
  8. poll-interval = <20>;
  9. pinctrl-names = "default";
  10. pinctrl-0 = <&jtag_disable_pins>;
  11. button0 {
  12. label = "reset";
  13. linux,code = <KEY_RESTART>;
  14. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  15. };
  16. button1 {
  17. label = "button right";
  18. linux,code = <BTN_0>;
  19. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  20. };
  21. button3 {
  22. label = "button left";
  23. linux,code = <BTN_1>;
  24. gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
  25. };
  26. };
  27. leds {
  28. compatible = "gpio-leds";
  29. usb {
  30. label = "gl-ar300m:green:usb";
  31. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  32. trigger-sources = <&hub_port>;
  33. linux,default-trigger = "usbport";
  34. };
  35. wlan {
  36. label = "gl-ar300m:green:wlan";
  37. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  38. linux,default-trigger = "phy0tpt";
  39. };
  40. lan {
  41. label = "gl-ar300m:green:lan";
  42. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  43. };
  44. status {
  45. label = "gl-ar300m:green:status";
  46. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  47. };
  48. };
  49. };
  50. &pcie0 {
  51. status = "okay";
  52. };
  53. &uart {
  54. status = "okay";
  55. };
  56. &usb0 {
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. status = "okay";
  60. hub_port: port@1 {
  61. reg = <1>;
  62. #trigger-source-cells = <0>;
  63. };
  64. };
  65. &usb_phy {
  66. status = "okay";
  67. };
  68. &eth0 {
  69. status = "okay";
  70. mtd-mac-address = <&art 0x0>;
  71. phy-handle = <&swphy4>;
  72. };
  73. &eth1 {
  74. mtd-mac-address = <&art 0x6>;
  75. };
  76. &wmac {
  77. status = "okay";
  78. mtd-cal-data = <&art 0x1000>;
  79. mtd-mac-address = <&art 0x1002>;
  80. };