1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "rtl838x.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "inaba,aml2-17gp", "realtek,rtl838x-soc";
10 model = "INABA Abaniact AML2-17GP";
13 bootargs = "console=ttyS0,115200";
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
22 compatible = "gpio-keys";
26 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
36 compatible = "jedec,spi-nor";
38 spi-max-frequency = <10000000>;
41 compatible = "fixed-partitions";
53 reg = <0x80000 0x10000>;
58 label = "u-boot-env2";
59 reg = <0x90000 0x10000>;
64 reg = <0xa0000 0x400000>;
70 reg = <0x4a0000 0x100000>;
75 compatible = "openwrt,uimage", "denx,uimage";
77 reg = <0x5a0000 0xd30000>;
78 openwrt,ih-magic = <0x83800000>;
83 reg = <0x12d0000 0xd30000>;
91 compatible = "realtek,rtl838x-mdio";
92 regmap = <ðernet0>;
120 #address-cells = <1>;
123 SWITCH_PORT(8, 1, internal)
124 SWITCH_PORT(9, 2, internal)
125 SWITCH_PORT(10, 3, internal)
126 SWITCH_PORT(11, 4, internal)
127 SWITCH_PORT(12, 5, internal)
128 SWITCH_PORT(13, 6, internal)
129 SWITCH_PORT(14, 7, internal)
130 SWITCH_PORT(15, 8, internal)
132 SWITCH_PORT(16, 9, qsgmii)
133 SWITCH_PORT(17, 10, qsgmii)
134 SWITCH_PORT(18, 11, qsgmii)
135 SWITCH_PORT(19, 12, qsgmii)
136 SWITCH_PORT(20, 13, qsgmii)
137 SWITCH_PORT(21, 14, qsgmii)
138 SWITCH_PORT(22, 15, qsgmii)
139 SWITCH_PORT(23, 16, qsgmii)
144 phy-handle = <&phy24>;
149 ethernet = <ðernet0>;
151 phy-mode = "internal";