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;
14 label-mac-device = ðernet0;
18 device_type = "memory";
19 reg = <0x0 0x10000000>;
23 compatible = "gpio-keys";
27 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 compatible = "gpio-restart";
34 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-leds";
41 label = "green:power";
42 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
47 compatible = "i2c-gpio";
48 scl-gpios = <&gpio0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
49 sda-gpios = <&gpio0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
50 i2c-gpio,delay-us = <2>;
55 compatible = "ti,tps23861";
57 shunt-resistor-micro-ohms = <255000>;
62 compatible = "linux,wdt-gpio";
63 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
65 /* SGM706 specs: typical 1.6s, but minimum 1.0s. */
66 hw_margin_ms = <1000>;
73 gpios = <14 GPIO_ACTIVE_LOW>;
75 line-name = "watchdog-enable";
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <10000000>;
88 compatible = "fixed-partitions";
99 reg = <0xe0000 0x20000>;
102 compatible = "denx,uimage";
104 reg = <0x100000 0x1a00000>;
108 reg = <0x1b00000 0x400000>;
111 compatible = "nvmem-cells";
113 reg = <0x1f00000 0x100000>;
114 #address-cells = <1>;
118 factory_macaddr: macaddr@fdff4 {
127 nvmem-cells = <&factory_macaddr>;
128 nvmem-cell-names = "mac-address";
131 compatible = "realtek,rtl838x-mdio";
132 #address-cells = <1>;
148 #address-cells = <1>;
151 SWITCH_PORT(15, 1, internal)
152 SWITCH_PORT(14, 2, internal)
153 SWITCH_PORT(13, 3, internal)
154 SWITCH_PORT(12, 4, internal)
155 SWITCH_PORT(11, 5, internal)
156 SWITCH_PORT(10, 6, internal)
157 SWITCH_PORT(9, 7, internal)
158 SWITCH_PORT(8, 8, internal)
161 ethernet = <ðernet0>;
163 phy-mode = "internal";