1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 compatible = "ubnt,edgeswitch-8xp", "qca,ar7242";
11 model = "Ubiquiti EdgeSwitch 8XP";
14 bootargs = "console=ttyS0,115200n8";
19 led-failsafe = &led_usr;
20 led-running = &led_usr;
21 led-upgrade = &led_usr;
25 compatible = "gpio-leds";
28 label = "ubnt:yellow:usr";
29 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
34 compatible = "gpio-keys";
37 linux,code = <KEY_RESTART>;
38 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
44 compatible = "spi-gpio";
45 #address-cells = <0x1>;
48 sck-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
49 mosi-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
50 cs-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
51 num-chipselects = <1>;
53 gpio_hc595: gpio_spi@0 {
54 compatible = "fairchild,74hc595";
56 registers-number = <2>;
57 spi-max-frequency = <100000>;
58 enable-gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
66 compatible = "gpio-export";
69 gpio-export,name = "ubnt:24v-poe:port1";
70 gpio-export,output = <0>;
71 gpios = <&gpio_hc595 1 GPIO_ACTIVE_HIGH>;
75 gpio-export,name = "ubnt:48v-poe:port1";
76 gpio-export,output = <0>;
77 gpios = <&gpio_hc595 0 GPIO_ACTIVE_HIGH>;
81 gpio-export,name = "ubnt:24v-poe:port2";
82 gpio-export,output = <0>;
83 gpios = <&gpio_hc595 3 GPIO_ACTIVE_HIGH>;
87 gpio-export,name = "ubnt:48v-poe:port2";
88 gpio-export,output = <0>;
89 gpios = <&gpio_hc595 2 GPIO_ACTIVE_HIGH>;
93 gpio-export,name = "ubnt:24v-poe:port3";
94 gpio-export,output = <0>;
95 gpios = <&gpio_hc595 5 GPIO_ACTIVE_HIGH>;
99 gpio-export,name = "ubnt:48v-poe:port3";
100 gpio-export,output = <0>;
101 gpios = <&gpio_hc595 4 GPIO_ACTIVE_HIGH>;
105 gpio-export,name = "ubnt:24v-poe:port4";
106 gpio-export,output = <0>;
107 gpios = <&gpio_hc595 7 GPIO_ACTIVE_HIGH>;
111 gpio-export,name = "ubnt:48v-poe:port4";
112 gpio-export,output = <0>;
113 gpios = <&gpio_hc595 6 GPIO_ACTIVE_HIGH>;
117 gpio-export,name = "ubnt:24v-poe:port5";
118 gpio-export,output = <0>;
119 gpios = <&gpio_hc595 9 GPIO_ACTIVE_HIGH>;
123 gpio-export,name = "ubnt:48v-poe:port5";
124 gpio-export,output = <0>;
125 gpios = <&gpio_hc595 8 GPIO_ACTIVE_HIGH>;
129 gpio-export,name = "ubnt:24v-poe:port6";
130 gpio-export,output = <0>;
131 gpios = <&gpio_hc595 11 GPIO_ACTIVE_HIGH>;
135 gpio-export,name = "ubnt:48v-poe:port6";
136 gpio-export,output = <0>;
137 gpios = <&gpio_hc595 10 GPIO_ACTIVE_HIGH>;
141 gpio-export,name = "ubnt:24v-poe:port7";
142 gpio-export,output = <0>;
143 gpios = <&gpio_hc595 13 GPIO_ACTIVE_HIGH>;
147 gpio-export,name = "ubnt:48v-poe:port7";
148 gpio-export,output = <0>;
149 gpios = <&gpio_hc595 12 GPIO_ACTIVE_HIGH>;
153 gpio-export,name = "ubnt:24v-poe:port8";
154 gpio-export,output = <0>;
155 gpios = <&gpio_hc595 15 GPIO_ACTIVE_HIGH>;
159 gpio-export,name = "ubnt:48v-poe:port8";
160 gpio-export,output = <0>;
161 gpios = <&gpio_hc595 14 GPIO_ACTIVE_HIGH>;
172 compatible = "jedec,spi-nor";
174 spi-max-frequency = <25000000>;
177 compatible = "fixed-partitions";
178 #address-cells = <1>;
182 reg = <0x000000 0x040000>;
188 reg = <0x040000 0x010000>;
189 label = "u-boot-env";
194 compatible = "denx,uimage";
195 reg = <0x050000 0x760000>;
200 reg = <0x7b0000 0x040000>;
205 art: partition@7f0000 {
206 reg = <0x7f0000 0x010000>;
220 compatible = "brcm,bcm53128";
221 #address-cells = <1>;
286 #address-cells = <1>;
292 #trigger-source-cells = <0>;
307 phy-mode = "rgmii-rxid";
308 pll-data = <0x16000000 0x00000101 0x00001313>;
309 mtd-mac-address = <&art 0x0>;
311 phy-handle = <&phy0>;
321 mtd-mac-address = <&art 0x6>;