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>
9 compatible = "allnet,all-sg8208m", "realtek,rtl838x-soc";
10 model = "ALLNET ALL-SG8208M";
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-keys-polled";
29 gpios = <&gpio0 67 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 compatible = "gpio-leds";
39 gpios = <&gpio0 47 GPIO_ACTIVE_HIGH>;
41 // GPIO 25: power on/off all port leds
46 indirect-access-bus-id = <0>;
53 compatible = "jedec,spi-nor";
55 spi-max-frequency = <10000000>;
58 compatible = "fixed-partitions";
70 reg = <0x80000 0x10000>;
75 label = "u-boot-env2";
76 reg = <0x90000 0x10000>;
82 reg = <0xa0000 0x100000>;
87 reg = <0x1a0000 0x100000>;
92 reg = <0x2a0000 0xd60000>;
93 compatible = "allnet,uimage";
101 compatible = "realtek,rtl838x-mdio";
102 regmap = <ðernet0>;
103 #address-cells = <1>;
119 #address-cells = <1>;
122 SWITCH_PORT(8, 1, internal)
123 SWITCH_PORT(9, 2, internal)
124 SWITCH_PORT(10, 3, internal)
125 SWITCH_PORT(11, 4, internal)
126 SWITCH_PORT(12, 5, internal)
127 SWITCH_PORT(13, 6, internal)
128 SWITCH_PORT(14, 7, internal)
129 SWITCH_PORT(15, 8, internal)
132 ethernet = <ðernet0>;
134 phy-mode = "internal";