modules: Add kernel module for MV88E6xxx DSA switch
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_zbtlink_zbt-wd323.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "ZBT WD323";
10 compatible = "zbtlink,zbt-wd323", "qca,ar9344";
11
12 keys {
13 compatible = "gpio-keys";
14
15 reset {
16 label = "reset";
17 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
18 linux,code = <KEY_RESTART>;
19 };
20 };
21
22 i2c {
23 compatible = "i2c-gpio";
24 #address-cells = <1>;
25 #size-cells = <0>;
26
27 pinctrl-names = "default";
28 pinctrl-0 = <&enable_gpio15 &enable_gpio19>;
29
30 sda-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
31 scl-gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
32
33 pcf8563: pcf8563@51 {
34 compatible = "nxp,pcf8563";
35 reg = <0x51>;
36 #clock-cells = <0>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 pinctrl-names = "default";
44 pinctrl-0 = <&enable_gpio20_gpio22>;
45
46 wifi {
47 label = "green:wifi";
48 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
50 };
51
52 lan1 {
53 label = "orange:lan1";
54 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
55 };
56
57 lan2 {
58 label = "orange:lan2";
59 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
60 };
61 };
62 };
63
64 &wdt {
65 status = "okay";
66
67 pinctrl-names = "default";
68 pinctrl-0 = <&enable_gpio21>;
69 };
70
71 &gpio {
72 pinctrl-names = "default";
73 pinctrl-0 = <&jtag_disable_pins>;
74 };
75
76 &usb {
77 status = "okay";
78 };
79
80 &usb_phy {
81 status = "okay";
82 };
83
84 &eth0 {
85 status = "okay";
86 phy-handle = <&swphy4>;
87 mtd-mac-address = <&art 0x0>;
88 };
89
90 &eth1 {
91 status = "okay";
92 mtd-mac-address = <&art 0x6>;
93 };
94
95 &spi {
96 status = "okay";
97
98 flash@0 {
99 compatible = "jedec,spi-nor";
100 spi-max-frequency = <22000000>;
101 reg = <0>;
102
103 partitions {
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 uboot@0 {
109 reg = <0x0 0x40000>;
110 read-only;
111 };
112
113 uboot-env@40000 {
114 reg = <0x40000 0x10000>;
115 read-only;
116 };
117
118 firmware@50000 {
119 compatible = "denx,uimage";
120 reg = <0x50000 0xfa0000>;
121 };
122
123 art: art@ff0000 {
124 reg = <0xff0000 0x10000>;
125 read-only;
126 };
127 };
128 };
129 };
130
131 &wmac {
132 status = "okay";
133 mtd-cal-data = <&art 0x1000>;
134 };
135
136 &pinmux {
137 enable_gpio15: pinmux_enable_gpio15 {
138 pinctrl-single,bits = <0xc 0x0 0xff000000>;
139 };
140
141 enable_gpio19: pinmux_enable_gpio19 {
142 pinctrl-single,bits = <0x10 0x0 0xff000000>;
143 };
144
145 enable_gpio20_gpio22: pinmux_enable_gpio20_gpio22 {
146 pinctrl-single,bits = <0x14 0x0 0xff00ff>;
147 };
148
149 enable_gpio21: pinmux_enable_gpio21 {
150 pinctrl-single,bits = <0x14 0x0 0xff00>;
151 };
152 };