1 #include "qcom-ipq8065-smb208.dtsi"
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
7 model = "ZyXEL NBG6817";
8 compatible = "zyxel,nbg6817", "qcom,ipq8065", "qcom,ipq8064";
11 reg = <0x42000000 0x1e000000>;
12 device_type = "memory";
20 led-failsafe = &power;
26 bootargs = "rootfstype=squashfs,ext4 rootwait noinitrd fstools_ignore_partname=1";
27 append-rootblock = "root=/dev/mmcblk0p";
31 compatible = "gpio-keys";
32 pinctrl-0 = <&button_pins>;
33 pinctrl-names = "default";
37 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RFKILL>;
39 linux,input-type = <EV_SW>;
40 debounce-interval = <60>;
46 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 debounce-interval = <60>;
54 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
56 debounce-interval = <60>;
62 compatible = "gpio-leds";
63 pinctrl-0 = <&led_pins>;
64 pinctrl-names = "default";
67 label = "white:internet";
68 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
72 function = LED_FUNCTION_POWER;
73 color = <LED_COLOR_ID_WHITE>;
74 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
75 default-state = "keep";
79 label = "amber:wifi2g";
80 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
83 /* wifi2g amber from the manual is missing */
86 label = "amber:wifi5g";
87 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
90 /* wifi5g amber from the manual is missing */
95 button_pins: button_pins {
97 pins = "gpio53", "gpio54", "gpio65";
106 pins = "gpio9", "gpio26", "gpio33", "gpio64";
108 drive-strength = <2>;
113 mdio0_pins: mdio0-pins {
120 rgmii2_pins: rgmii2-pins {
122 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
130 drive-strength = <12>;
134 usb0_pwr_en_pins: usb0_pwr_en_pins {
136 pins = "gpio16", "gpio17";
138 drive-strength = <12>;
153 usb1_pwr_en_pins: usb1_pwr_en_pins {
155 pins = "gpio14", "gpio15";
157 drive-strength = <12>;
174 qcom,mode = <GSBI_PROT_SPI>;
180 pinctrl-0 = <&spi_pins>;
181 pinctrl-names = "default";
183 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
186 compatible = "jedec,spi-nor";
187 #address-cells = <1>;
189 spi-max-frequency = <51200000>;
193 compatible = "qcom,smem-part";
210 pinctrl-0 = <&usb0_pwr_en_pins>;
211 pinctrl-names = "default";
225 pinctrl-0 = <&usb1_pwr_en_pins>;
226 pinctrl-names = "default";
231 reset-gpios = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
232 pinctrl-0 = <&pcie0_pins>;
233 pinctrl-names = "default";
238 reset-gpios = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
239 pinctrl-0 = <&pcie1_pins>;
240 pinctrl-names = "default";
241 max-link-speed = <1>;
247 pinctrl-0 = <&mdio0_pins>;
248 pinctrl-names = "default";
251 compatible = "qca,qca8337";
252 #address-cells = <1>;
257 #address-cells = <1>;
265 tx-internal-delay-ps = <1000>;
266 rx-internal-delay-ps = <1000>;
277 phy-mode = "internal";
278 phy-handle = <&phy_port1>;
284 phy-mode = "internal";
285 phy-handle = <&phy_port2>;
291 phy-mode = "internal";
292 phy-handle = <&phy_port3>;
298 phy-mode = "internal";
299 phy-handle = <&phy_port4>;
305 phy-mode = "internal";
306 phy-handle = <&phy_port5>;
314 qca,sgmii-enable-pll;
324 #address-cells = <1>;
354 qcom,phy_mdio_addr = <4>;
355 qcom,poll_required = <0>;
356 qcom,rgmii_delay = <1>;
357 qcom,phy_mii_type = <0>;
358 qcom,emulation = <0>;
362 pinctrl-0 = <&rgmii2_pins>;
363 pinctrl-names = "default";
375 qcom,phy_mdio_addr = <0>; /* none */
376 qcom,poll_required = <0>; /* no polling */
377 qcom,rgmii_delay = <0>;
378 qcom,phy_mii_type = <1>;
379 qcom,emulation = <0>;