1 #include "qca953x.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
9 led-boot = &led_status;
10 led-failsafe = &led_status;
11 led-running = &led_status;
12 led-upgrade = &led_status;
13 label-mac-device = ð0;
17 compatible = "gpio-keys";
19 pinctrl-names = "default";
20 pinctrl-0 = <&jtag_disable_pins>;
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
29 label = "button right";
31 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
35 label = "button left";
37 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
42 compatible = "gpio-export";
45 gpio-export,name = "usb_power";
46 gpio-export,output = <1>;
47 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
52 compatible = "gpio-leds";
54 // Colors for non-Lite versions
57 function = LED_FUNCTION_STATUS;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
63 function = LED_FUNCTION_LAN;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
69 function = LED_FUNCTION_WLAN;
70 color = <LED_COLOR_ID_RED>;
71 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy0tpt";
77 compatible = "i2c-gpio";
79 sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
80 scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <25000000>;
97 compatible = "fixed-partitions";
103 reg = <0x000000 0x040000>;
108 label = "u-boot-env";
109 reg = <0x040000 0x010000>;
112 nor_firmware: partition@50000 {
113 label = "nor_firmware";
114 reg = <0x050000 0xfa0000>;
117 art: partition@ff0000 {
119 reg = <0xff0000 0x010000>;
123 compatible = "fixed-layout";
124 #address-cells = <1>;
127 macaddr_art_0: macaddr@0 {
128 compatible = "mac-base";
130 #nvmem-cell-cells = <1>;
137 nand_flash: flash@1 {
138 compatible = "spi-nand";
140 spi-max-frequency = <25000000>;
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
147 nand_kernel: partition@0 {
148 label = "nand_kernel";
149 reg = <0x000000 0x400000>;
152 nand_ubi: partition@400000 {
154 reg = <0x400000 0x7c00000>;
171 phy-handle = <&swphy4>;
173 nvmem-cells = <&macaddr_art_0 0>;
174 nvmem-cell-names = "mac-address";
178 nvmem-cells = <&macaddr_art_0 1>;
179 nvmem-cell-names = "mac-address";
184 mtd-cal-data = <&art 0x1000>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&enable_gpio17>;
191 enable_gpio17: pinmux_enable_gpio17 {
192 pinctrl-single,bits = <0x10 0x0000 0xff00>;