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 reg = <0x41200000 0x300000>;
25 serial0 = &gsbi4_serial;
30 led-failsafe = &power;
36 bootargs = "rootfstype=squashfs,ext4 rootwait noinitrd";
37 stdout-path = "serial0:115200n8";
38 append-rootblock = "root=/dev/mmcblk0p";
42 compatible = "gpio-keys";
43 pinctrl-0 = <&button_pins>;
44 pinctrl-names = "default";
48 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RFKILL>;
50 linux,input-type = <EV_SW>;
55 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
61 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
67 compatible = "gpio-leds";
68 pinctrl-0 = <&led_pins>;
69 pinctrl-names = "default";
72 label = "nbg6817:white:internet";
73 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
77 label = "nbg6817:white:power";
78 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
79 default-state = "keep";
83 label = "nbg6817:amber:wifi2g";
84 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
87 /* wifi2g amber from the manual is missing */
90 label = "nbg6817:amber:wifi5g";
91 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
94 /* wifi5g amber from the manual is missing */
99 button_pins: button_pins {
101 pins = "gpio53", "gpio54", "gpio65";
103 drive-strength = <2>;
108 i2c4_pins: i2c4_pinmux {
110 pins = "gpio12", "gpio13";
112 drive-strength = <12>;
119 pins = "gpio9", "gpio26", "gpio33", "gpio64";
121 drive-strength = <2>;
126 mdio0_pins: mdio0_pins {
128 pins = "gpio0", "gpio1";
130 drive-strength = <8>;
140 rgmii2_pins: rgmii2_pins {
142 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
143 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
145 drive-strength = <8>;
150 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
157 pins = "gpio18", "gpio19", "gpio21";
159 drive-strength = <10>;
165 drive-strength = <12>;
169 usb0_pwr_en_pins: usb0_pwr_en_pins {
171 pins = "gpio16", "gpio17";
173 drive-strength = <12>;
188 usb1_pwr_en_pins: usb1_pwr_en_pins {
190 pins = "gpio14", "gpio15";
192 drive-strength = <12>;
209 qcom,mode = <GSBI_PROT_I2C_UART>;
215 * The i2c device on gsbi4 should not be enabled.
216 * On ipq806x designs gsbi4 i2c is meant for exclusive
217 * RPM usage. Turning this on in kernel manifests as
218 * i2c failure for the RPM.
223 qcom,mode = <GSBI_PROT_SPI>;
229 pinctrl-0 = <&spi_pins>;
230 pinctrl-names = "default";
232 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
235 compatible = "jedec,spi-nor";
236 #address-cells = <1>;
238 spi-max-frequency = <51200000>;
242 compatible = "qcom,smem";
251 pinctrl-0 = <&usb0_pwr_en_pins>;
252 pinctrl-names = "default";
258 pinctrl-0 = <&usb1_pwr_en_pins>;
259 pinctrl-names = "default";
264 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
265 pinctrl-0 = <&pcie0_pins>;
266 pinctrl-names = "default";
271 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
272 pinctrl-0 = <&pcie1_pins>;
273 pinctrl-names = "default";
280 pinctrl-0 = <&mdio0_pins>;
281 pinctrl-names = "default";
284 phy0: ethernet-phy@0 {
286 qca,ar8327-initvals = <
287 0x00004 0x7600000 /* PAD0_MODE */
288 0x00008 0x1000000 /* PAD5_MODE */
289 0x0000c 0x80 /* PAD6_MODE */
290 0x000e4 0xaa545 /* MAC_POWER_SEL */
291 0x000e0 0xc74164de /* SGMII_CTRL */
292 0x0007c 0x4e /* PORT0_STATUS */
293 0x00094 0x4e /* PORT6_STATUS */
294 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
295 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
296 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
297 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
298 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
299 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
300 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
301 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
302 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
303 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
304 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
305 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
306 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
307 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
311 phy4: ethernet-phy@4 {
313 qca,ar8327-initvals = <
314 0x000e4 0x6a545 /* MAC_POWER_SEL */
315 0x0000c 0x80 /* PAD6_MODE */
324 qcom,phy_mdio_addr = <4>;
325 qcom,poll_required = <0>;
326 qcom,rgmii_delay = <1>;
327 qcom,phy_mii_type = <0>;
328 qcom,emulation = <0>;
332 pinctrl-0 = <&rgmii2_pins>;
333 pinctrl-names = "default";
345 qcom,phy_mdio_addr = <0>; /* none */
346 qcom,poll_required = <0>; /* no polling */
347 qcom,rgmii_delay = <0>;
348 qcom,phy_mii_type = <1>;
349 qcom,emulation = <0>;
360 sdcc1: sdcc@12400000 {