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 device_type = "memory";
14 reg = <0x0 0x8000000>;
18 compatible = "gpio-keys";
22 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
32 compatible = "jedec,spi-nor";
34 spi-max-frequency = <10000000>;
37 compatible = "fixed-partitions";
49 reg = <0x80000 0x10000>;
54 label = "u-boot-env2";
55 reg = <0x90000 0x10000>;
60 reg = <0xa0000 0x400000>;
66 reg = <0x4a0000 0x100000>;
71 compatible = "openwrt,uimage", "denx,uimage";
73 reg = <0x5a0000 0xd30000>;
74 openwrt,ih-magic = <0x83800000>;
79 reg = <0x12d0000 0xd30000>;
87 compatible = "realtek,rtl838x-mdio";
88 regmap = <ðernet0>;
116 #address-cells = <1>;
119 SWITCH_PORT(8, 1, internal)
120 SWITCH_PORT(9, 2, internal)
121 SWITCH_PORT(10, 3, internal)
122 SWITCH_PORT(11, 4, internal)
123 SWITCH_PORT(12, 5, internal)
124 SWITCH_PORT(13, 6, internal)
125 SWITCH_PORT(14, 7, internal)
126 SWITCH_PORT(15, 8, internal)
128 SWITCH_PORT(16, 9, qsgmii)
129 SWITCH_PORT(17, 10, qsgmii)
130 SWITCH_PORT(18, 11, qsgmii)
131 SWITCH_PORT(19, 12, qsgmii)
132 SWITCH_PORT(20, 13, qsgmii)
133 SWITCH_PORT(21, 14, qsgmii)
134 SWITCH_PORT(22, 15, qsgmii)
135 SWITCH_PORT(23, 16, qsgmii)
140 phy-handle = <&phy24>;
145 ethernet = <ðernet0>;
147 phy-mode = "internal";