1 #include "qcom-ipq8065.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "ZyXEL NBG6817";
7 compatible = "zyxel,nbg6817", "qcom,ipq8065", "qcom,ipq8064";
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
19 led-failsafe = &power;
25 bootargs = "rootfstype=squashfs,ext4 rootwait noinitrd fstools_ignore_partname=1";
26 append-rootblock = "root=/dev/mmcblk0p";
30 compatible = "gpio-keys";
31 pinctrl-0 = <&button_pins>;
32 pinctrl-names = "default";
36 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RFKILL>;
38 linux,input-type = <EV_SW>;
39 debounce-interval = <60>;
45 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 debounce-interval = <60>;
53 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_WPS_BUTTON>;
55 debounce-interval = <60>;
61 compatible = "gpio-leds";
62 pinctrl-0 = <&led_pins>;
63 pinctrl-names = "default";
66 label = "white:internet";
67 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
71 label = "white:power";
72 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
73 default-state = "keep";
77 label = "amber:wifi2g";
78 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
81 /* wifi2g amber from the manual is missing */
84 label = "amber:wifi5g";
85 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
88 /* wifi5g amber from the manual is missing */
93 button_pins: button_pins {
95 pins = "gpio53", "gpio54", "gpio65";
104 pins = "gpio9", "gpio26", "gpio33", "gpio64";
106 drive-strength = <2>;
111 mdio0_pins: mdio0_pins {
118 rgmii2_pins: rgmii2_pins {
120 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
128 drive-strength = <12>;
132 usb0_pwr_en_pins: usb0_pwr_en_pins {
134 pins = "gpio16", "gpio17";
136 drive-strength = <12>;
151 usb1_pwr_en_pins: usb1_pwr_en_pins {
153 pins = "gpio14", "gpio15";
155 drive-strength = <12>;
172 qcom,mode = <GSBI_PROT_SPI>;
178 pinctrl-0 = <&spi_pins>;
179 pinctrl-names = "default";
181 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
184 compatible = "jedec,spi-nor";
185 #address-cells = <1>;
187 spi-max-frequency = <51200000>;
191 compatible = "qcom,smem-part";
200 pinctrl-0 = <&usb0_pwr_en_pins>;
201 pinctrl-names = "default";
207 pinctrl-0 = <&usb1_pwr_en_pins>;
208 pinctrl-names = "default";
213 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
214 pinctrl-0 = <&pcie0_pins>;
215 pinctrl-names = "default";
220 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
221 pinctrl-0 = <&pcie1_pins>;
222 pinctrl-names = "default";
223 max-link-speed = <1>;
229 pinctrl-0 = <&mdio0_pins>;
230 pinctrl-names = "default";
233 phy0: ethernet-phy@0 {
235 qca,ar8327-initvals = <
236 0x00004 0x7600000 /* PAD0_MODE */
237 0x00008 0x1000000 /* PAD5_MODE */
238 0x0000c 0x80 /* PAD6_MODE */
239 0x000e4 0xaa545 /* MAC_POWER_SEL */
240 0x000e0 0xc74164de /* SGMII_CTRL */
241 0x0007c 0x4e /* PORT0_STATUS */
242 0x00094 0x4e /* PORT6_STATUS */
243 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
244 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
245 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
246 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
247 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
248 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
249 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
250 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
251 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
252 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
253 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
254 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
255 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
256 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
260 phy4: ethernet-phy@4 {
262 qca,ar8327-initvals = <
263 0x000e4 0x6a545 /* MAC_POWER_SEL */
264 0x0000c 0x80 /* PAD6_MODE */
273 qcom,phy_mdio_addr = <4>;
274 qcom,poll_required = <0>;
275 qcom,rgmii_delay = <1>;
276 qcom,phy_mii_type = <0>;
277 qcom,emulation = <0>;
281 pinctrl-0 = <&rgmii2_pins>;
282 pinctrl-names = "default";
294 qcom,phy_mdio_addr = <0>; /* none */
295 qcom,poll_required = <0>; /* no polling */
296 qcom,rgmii_delay = <0>;
297 qcom,phy_mii_type = <1>;
298 qcom,emulation = <0>;
309 sdcc1: sdcc@12400000 {