1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "oraybox,x3a", "mediatek,mt7621-soc";
11 model = "OrayBox X3A";
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_green;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-leds";
28 led_status_red: status-red {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_RED>;
31 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
34 led_status_blue: status-blue {
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
40 led_status_green: status-green {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-keys";
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
62 compatible = "jedec,spi-nor";
64 spi-max-frequency = <30000000>;
67 compatible = "fixed-partitions";
79 reg = <0x30000 0x10000>;
85 reg = <0x40000 0x10000>;
89 compatible = "fixed-layout";
93 eeprom_factory_0: eeprom@0 {
100 compatible = "denx,uimage";
102 reg = <0x50000 0xf00000>;
107 reg = <0xfe0000 0x10000>;
111 compatible = "fixed-layout";
112 #address-cells = <1>;
115 macaddr_bdinfo_9: macaddr@9 {
116 compatible = "mac-base";
118 #nvmem-cell-cells = <1>;
125 reg = <0xff0000 0x10000>;
138 compatible = "mediatek,mt76";
139 reg = <0x0000 0 0 0 0>;
140 nvmem-cells = <&eeprom_factory_0>;
141 nvmem-cell-names = "eeprom";
146 nvmem-cells = <&macaddr_bdinfo_9 0>;
147 nvmem-cell-names = "mac-address";
153 phy-handle = <ðphy4>;
155 nvmem-cells = <&macaddr_bdinfo_9 1>;
156 nvmem-cell-names = "mac-address";
160 ethphy4: ethernet-phy@4 {
181 groups = "jtag", "wdt";