1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "rtl838x.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
17 device_type = "memory";
18 reg = <0x0 0x10000000>;
22 compatible = "gpio-keys";
26 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 compatible = "gpio-restart";
33 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-leds";
40 label = "green:power";
41 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
46 compatible = "i2c-gpio";
47 scl-gpios = <&gpio0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
48 sda-gpios = <&gpio0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
49 i2c-gpio,delay-us = <2>;
54 compatible = "ti,tps23861";
56 shunt-resistor-micro-ohms = <255000>;
61 compatible = "linux,wdt-gpio";
62 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
64 /* SGM706 specs: typical 1.6s, but minimum 1.0s. */
65 hw_margin_ms = <1000>;
69 compatible = "mtd-concat";
71 devices = <&syspart &usrpart>;
74 compatible = "fixed-partitions";
79 compatible = "denx,uimage";
81 reg = <0x0 0x1a00000>;
90 gpios = <14 GPIO_ACTIVE_LOW>;
92 line-name = "watchdog-enable";
100 compatible = "jedec,spi-nor";
102 spi-max-frequency = <10000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
115 label = "u-boot-env";
116 reg = <0xe0000 0x20000>;
118 syspart: partition@100000 {
120 reg = <0x100000 0x600000>;
122 usrpart: partition@700000 {
124 reg = <0x700000 0x1400000>;
128 reg = <0x1b00000 0x400000>;
132 reg = <0x1f00000 0x100000>;
141 compatible = "realtek,rtl838x-mdio";
142 #address-cells = <1>;
158 #address-cells = <1>;
161 SWITCH_PORT(15, 1, internal)
162 SWITCH_PORT(14, 2, internal)
163 SWITCH_PORT(13, 3, internal)
164 SWITCH_PORT(12, 4, internal)
165 SWITCH_PORT(11, 5, internal)
166 SWITCH_PORT(10, 6, internal)
167 SWITCH_PORT(9, 7, internal)
168 SWITCH_PORT(8, 8, internal)
171 ethernet = <ðernet0>;
173 phy-mode = "internal";