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>;
110 pins = "gpio9", "gpio26", "gpio33", "gpio64";
112 drive-strength = <2>;
117 mdio0_pins: mdio0_pins {
124 rgmii2_pins: rgmii2_pins {
126 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
134 drive-strength = <12>;
138 usb0_pwr_en_pins: usb0_pwr_en_pins {
140 pins = "gpio16", "gpio17";
142 drive-strength = <12>;
157 usb1_pwr_en_pins: usb1_pwr_en_pins {
159 pins = "gpio14", "gpio15";
161 drive-strength = <12>;
178 qcom,mode = <GSBI_PROT_I2C_UART>;
184 * The i2c device on gsbi4 should not be enabled.
185 * On ipq806x designs gsbi4 i2c is meant for exclusive
186 * RPM usage. Turning this on in kernel manifests as
187 * i2c failure for the RPM.
192 qcom,mode = <GSBI_PROT_SPI>;
198 pinctrl-0 = <&spi_pins>;
199 pinctrl-names = "default";
201 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
204 compatible = "jedec,spi-nor";
205 #address-cells = <1>;
207 spi-max-frequency = <51200000>;
211 compatible = "qcom,smem";
220 pinctrl-0 = <&usb0_pwr_en_pins>;
221 pinctrl-names = "default";
227 pinctrl-0 = <&usb1_pwr_en_pins>;
228 pinctrl-names = "default";
233 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
234 pinctrl-0 = <&pcie0_pins>;
235 pinctrl-names = "default";
240 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
241 pinctrl-0 = <&pcie1_pins>;
242 pinctrl-names = "default";
249 pinctrl-0 = <&mdio0_pins>;
250 pinctrl-names = "default";
253 phy0: ethernet-phy@0 {
255 qca,ar8327-initvals = <
256 0x00004 0x7600000 /* PAD0_MODE */
257 0x00008 0x1000000 /* PAD5_MODE */
258 0x0000c 0x80 /* PAD6_MODE */
259 0x000e4 0xaa545 /* MAC_POWER_SEL */
260 0x000e0 0xc74164de /* SGMII_CTRL */
261 0x0007c 0x4e /* PORT0_STATUS */
262 0x00094 0x4e /* PORT6_STATUS */
263 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
264 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
265 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
266 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
267 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
268 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
269 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
270 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
271 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
272 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
273 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
274 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
275 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
276 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
280 phy4: ethernet-phy@4 {
282 qca,ar8327-initvals = <
283 0x000e4 0x6a545 /* MAC_POWER_SEL */
284 0x0000c 0x80 /* PAD6_MODE */
293 qcom,phy_mdio_addr = <4>;
294 qcom,poll_required = <0>;
295 qcom,rgmii_delay = <1>;
296 qcom,phy_mii_type = <0>;
297 qcom,emulation = <0>;
301 pinctrl-0 = <&rgmii2_pins>;
302 pinctrl-names = "default";
314 qcom,phy_mdio_addr = <0>; /* none */
315 qcom,poll_required = <0>; /* no polling */
316 qcom,rgmii_delay = <0>;
317 qcom,phy_mii_type = <1>;
318 qcom,emulation = <0>;
329 sdcc1: sdcc@12400000 {