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>;
30 led-failsafe = &power;
36 bootargs = "root=/dev/mmcblk0p5 rootfstype=squashfs,ext4 rootwait noinitrd";
37 linux,stdout-path = "serial0:115200n8";
42 button_pins: button_pins {
44 pins = "gpio6", "gpio54", "gpio65";
51 i2c4_pins: i2c4_pinmux {
53 pins = "gpio12", "gpio13";
55 drive-strength = <12>;
62 pins = "gpio9", "gpio26", "gpio33", "gpio64";
69 mdio0_pins: mdio0_pins {
71 pins = "gpio0", "gpio1";
83 rgmii2_pins: rgmii2_pins {
85 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
86 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
93 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
100 pins = "gpio18", "gpio19", "gpio21";
102 drive-strength = <10>;
108 drive-strength = <12>;
112 usb0_pwr_en_pins: usb0_pwr_en_pins {
114 pins = "gpio16", "gpio17";
116 drive-strength = <12>;
131 usb1_pwr_en_pins: usb1_pwr_en_pins {
133 pins = "gpio14", "gpio15";
135 drive-strength = <12>;
152 qcom,mode = <GSBI_PROT_I2C_UART>;
158 * The i2c device on gsbi4 should not be enabled.
159 * On ipq806x designs gsbi4 i2c is meant for exclusive
160 * RPM usage. Turning this on in kernel manifests as
161 * i2c failure for the RPM.
165 gsbi5: gsbi@1a200000 {
166 qcom,mode = <GSBI_PROT_SPI>;
172 pinctrl-0 = <&spi_pins>;
173 pinctrl-names = "default";
175 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
178 compatible = "jedec,spi-nor";
179 #address-cells = <1>;
181 spi-max-frequency = <51200000>;
184 linux,part-probe = "qcom-smem";
189 phy@100f8800 { /* USB3 port 1 HS phy */
193 phy@100f8830 { /* USB3 port 1 SS phy */
197 phy@110f8800 { /* USB3 port 0 HS phy */
201 phy@110f8830 { /* USB3 port 0 SS phy */
208 pinctrl-0 = <&usb0_pwr_en_pins>;
209 pinctrl-names = "default";
215 pinctrl-0 = <&usb1_pwr_en_pins>;
216 pinctrl-names = "default";
219 pcie0: pci@1b500000 {
221 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
222 pinctrl-0 = <&pcie0_pins>;
223 pinctrl-names = "default";
226 pcie1: pci@1b700000 {
228 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
229 pinctrl-0 = <&pcie1_pins>;
230 pinctrl-names = "default";
234 compatible = "virtual,mdio-gpio";
235 #address-cells = <1>;
237 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
238 pinctrl-0 = <&mdio0_pins>;
239 pinctrl-names = "default";
241 phy0: ethernet-phy@0 {
242 device_type = "ethernet-phy";
244 qca,ar8327-initvals = <
245 0x00004 0x7600000 /* PAD0_MODE */
246 0x00008 0x1000000 /* PAD5_MODE */
247 0x0000c 0x80 /* PAD6_MODE */
248 0x000e4 0xaa545 /* MAC_POWER_SEL */
249 0x000e0 0xc74164de /* SGMII_CTRL */
250 0x0007c 0x4e /* PORT0_STATUS */
251 0x00094 0x4e /* PORT6_STATUS */
252 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
253 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
254 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
255 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
256 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
257 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
258 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
259 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
260 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
261 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
262 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
263 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
264 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
265 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
269 phy4: ethernet-phy@4 {
270 device_type = "ethernet-phy";
272 qca,ar8327-initvals = <
273 0x000e4 0x6a545 /* MAC_POWER_SEL */
274 0x0000c 0x80 /* PAD6_MODE */
279 gmac1: ethernet@37200000 {
283 qcom,phy_mdio_addr = <4>;
284 qcom,poll_required = <0>;
285 qcom,rgmii_delay = <1>;
286 qcom,phy_mii_type = <0>;
287 qcom,emulation = <0>;
291 pinctrl-0 = <&rgmii2_pins>;
292 pinctrl-names = "default";
300 gmac2: ethernet@37400000 {
304 qcom,phy_mdio_addr = <0>; /* none */
305 qcom,poll_required = <0>; /* no polling */
306 qcom,rgmii_delay = <0>;
307 qcom,phy_mii_type = <1>;
308 qcom,emulation = <0>;
319 pinctrl-0 = <&i2c4_pins>;
320 pinctrl-names = "default";
324 sdcc1: sdcc@12400000 {
331 compatible = "gpio-keys";
332 pinctrl-0 = <&button_pins>;
333 pinctrl-names = "default";
337 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
338 linux,code = <KEY_RFKILL>;
343 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
344 linux,code = <KEY_RESTART>;
349 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
350 linux,code = <KEY_WPS_BUTTON>;
355 compatible = "gpio-leds";
356 pinctrl-0 = <&led_pins>;
357 pinctrl-names = "default";
360 label = "nbg6817:white:internet";
361 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
365 label = "nbg6817:white:power";
366 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
367 default-state = "keep";
371 label = "nbg6817:amber:wifi2g";
372 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
375 /* wifi2g amber from the manual is missing */
378 label = "nbg6817:amber:wifi5g";
379 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
382 /* wifi5g amber from the manual is missing */