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 pinctrl-names = "default";
19 pinctrl-0 = <&pinmux_disable_sys_led>;
21 compatible = "gpio-keys";
25 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
35 compatible = "jedec,spi-nor";
37 spi-max-frequency = <10000000>;
40 compatible = "fixed-partitions";
52 reg = <0x80000 0x10000>;
57 label = "u-boot-env2";
58 reg = <0x90000 0x10000>;
63 reg = <0xa0000 0x400000>;
69 reg = <0x4a0000 0x100000>;
74 compatible = "openwrt,uimage", "denx,uimage";
76 reg = <0x5a0000 0xd30000>;
77 openwrt,ih-magic = <0x83800000>;
82 reg = <0x12d0000 0xd30000>;
90 compatible = "realtek,rtl838x-mdio";
91 regmap = <ðernet0>;
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)
131 SWITCH_PORT(16, 9, qsgmii)
132 SWITCH_PORT(17, 10, qsgmii)
133 SWITCH_PORT(18, 11, qsgmii)
134 SWITCH_PORT(19, 12, qsgmii)
135 SWITCH_PORT(20, 13, qsgmii)
136 SWITCH_PORT(21, 14, qsgmii)
137 SWITCH_PORT(22, 15, qsgmii)
138 SWITCH_PORT(23, 16, qsgmii)
143 phy-handle = <&phy24>;
148 ethernet = <ðernet0>;
150 phy-mode = "internal";