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-polled";
27 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
34 indirect-access-bus-id = <0>;
41 compatible = "jedec,spi-nor";
43 spi-max-frequency = <10000000>;
46 compatible = "fixed-partitions";
58 reg = <0x80000 0x10000>;
63 label = "u-boot-env2";
64 reg = <0x90000 0x10000>;
69 reg = <0xa0000 0x400000>;
75 reg = <0x4a0000 0x100000>;
80 compatible = "openwrt,uimage", "denx,uimage";
82 reg = <0x5a0000 0xd30000>;
83 openwrt,ih-magic = <0x83800000>;
88 reg = <0x12d0000 0xd30000>;
96 compatible = "realtek,rtl838x-mdio";
97 regmap = <ðernet0>;
125 #address-cells = <1>;
128 SWITCH_PORT(8, 1, internal)
129 SWITCH_PORT(9, 2, internal)
130 SWITCH_PORT(10, 3, internal)
131 SWITCH_PORT(11, 4, internal)
132 SWITCH_PORT(12, 5, internal)
133 SWITCH_PORT(13, 6, internal)
134 SWITCH_PORT(14, 7, internal)
135 SWITCH_PORT(15, 8, internal)
137 SWITCH_PORT(16, 9, qsgmii)
138 SWITCH_PORT(17, 10, qsgmii)
139 SWITCH_PORT(18, 11, qsgmii)
140 SWITCH_PORT(19, 12, qsgmii)
141 SWITCH_PORT(20, 13, qsgmii)
142 SWITCH_PORT(21, 14, qsgmii)
143 SWITCH_PORT(22, 15, qsgmii)
144 SWITCH_PORT(23, 16, qsgmii)
149 phy-handle = <&phy24>;
154 ethernet = <ðernet0>;
156 phy-mode = "internal";