1 #include "qcom-ipq8065-v1.0.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "ZyXEL NBG6817";
7 compatible = "zyxel,nbg6817", "qcom,ipq8065";
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 linux,stdout-path = "serial0:115200n8";
38 append-rootblock = "root=/dev/mmcblk0p";
43 button_pins: button_pins {
45 pins = "gpio53", "gpio54", "gpio65";
52 i2c4_pins: i2c4_pinmux {
54 pins = "gpio12", "gpio13";
56 drive-strength = <12>;
63 pins = "gpio9", "gpio26", "gpio33", "gpio64";
70 mdio0_pins: mdio0_pins {
72 pins = "gpio0", "gpio1";
84 rgmii2_pins: rgmii2_pins {
86 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
87 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
94 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
101 pins = "gpio18", "gpio19", "gpio21";
103 drive-strength = <10>;
109 drive-strength = <12>;
113 usb0_pwr_en_pins: usb0_pwr_en_pins {
115 pins = "gpio16", "gpio17";
117 drive-strength = <12>;
132 usb1_pwr_en_pins: usb1_pwr_en_pins {
134 pins = "gpio14", "gpio15";
136 drive-strength = <12>;
153 qcom,mode = <GSBI_PROT_I2C_UART>;
159 * The i2c device on gsbi4 should not be enabled.
160 * On ipq806x designs gsbi4 i2c is meant for exclusive
161 * RPM usage. Turning this on in kernel manifests as
162 * i2c failure for the RPM.
166 gsbi5: gsbi@1a200000 {
167 qcom,mode = <GSBI_PROT_SPI>;
173 pinctrl-0 = <&spi_pins>;
174 pinctrl-names = "default";
176 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
179 compatible = "jedec,spi-nor";
180 #address-cells = <1>;
182 spi-max-frequency = <51200000>;
185 linux,part-probe = "qcom-smem";
190 phy@100f8800 { /* USB3 port 1 HS phy */
194 phy@100f8830 { /* USB3 port 1 SS phy */
198 phy@110f8800 { /* USB3 port 0 HS phy */
202 phy@110f8830 { /* USB3 port 0 SS phy */
209 pinctrl-0 = <&usb0_pwr_en_pins>;
210 pinctrl-names = "default";
216 pinctrl-0 = <&usb1_pwr_en_pins>;
217 pinctrl-names = "default";
220 pcie0: pci@1b500000 {
222 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
223 pinctrl-0 = <&pcie0_pins>;
224 pinctrl-names = "default";
227 pcie1: pci@1b700000 {
229 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
230 pinctrl-0 = <&pcie1_pins>;
231 pinctrl-names = "default";
235 compatible = "virtual,mdio-gpio";
236 #address-cells = <1>;
238 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
239 pinctrl-0 = <&mdio0_pins>;
240 pinctrl-names = "default";
242 phy0: ethernet-phy@0 {
243 device_type = "ethernet-phy";
245 qca,ar8327-initvals = <
246 0x00004 0x7600000 /* PAD0_MODE */
247 0x00008 0x1000000 /* PAD5_MODE */
248 0x0000c 0x80 /* PAD6_MODE */
249 0x000e4 0xaa545 /* MAC_POWER_SEL */
250 0x000e0 0xc74164de /* SGMII_CTRL */
251 0x0007c 0x4e /* PORT0_STATUS */
252 0x00094 0x4e /* PORT6_STATUS */
253 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
254 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
255 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
256 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
257 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
258 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
259 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
260 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
261 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
262 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
263 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
264 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
265 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
266 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
270 phy4: ethernet-phy@4 {
271 device_type = "ethernet-phy";
273 qca,ar8327-initvals = <
274 0x000e4 0x6a545 /* MAC_POWER_SEL */
275 0x0000c 0x80 /* PAD6_MODE */
280 gmac1: ethernet@37200000 {
284 qcom,phy_mdio_addr = <4>;
285 qcom,poll_required = <0>;
286 qcom,rgmii_delay = <1>;
287 qcom,phy_mii_type = <0>;
288 qcom,emulation = <0>;
292 pinctrl-0 = <&rgmii2_pins>;
293 pinctrl-names = "default";
301 gmac2: ethernet@37400000 {
305 qcom,phy_mdio_addr = <0>; /* none */
306 qcom,poll_required = <0>; /* no polling */
307 qcom,rgmii_delay = <0>;
308 qcom,phy_mii_type = <1>;
309 qcom,emulation = <0>;
320 pinctrl-0 = <&i2c4_pins>;
321 pinctrl-names = "default";
325 sdcc1: sdcc@12400000 {
332 compatible = "gpio-keys";
333 pinctrl-0 = <&button_pins>;
334 pinctrl-names = "default";
338 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
339 linux,code = <KEY_RFKILL>;
340 linux,input-type = <EV_SW>;
345 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
346 linux,code = <KEY_RESTART>;
351 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
352 linux,code = <KEY_WPS_BUTTON>;
357 compatible = "gpio-leds";
358 pinctrl-0 = <&led_pins>;
359 pinctrl-names = "default";
362 label = "nbg6817:white:internet";
363 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
367 label = "nbg6817:white:power";
368 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
369 default-state = "keep";
373 label = "nbg6817:amber:wifi2g";
374 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
377 /* wifi2g amber from the manual is missing */
380 label = "nbg6817:amber:wifi5g";
381 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
384 /* wifi5g amber from the manual is missing */