1 #include "qcom-ipq8065.dtsi"
3 #include <dt-bindings/input/input.h>
7 reg = <0x42000000 0x1e000000>;
8 device_type = "memory";
13 reg = <0x5fe00000 0x200000>;
18 compatible = "ramoops";
19 reg = <0x42100000 0x40000>;
20 record-size = <0x4000>;
21 console-size = <0x4000>;
22 ftrace-size = <0x4000>;
28 label-mac-device = &gmac2;
30 led-boot = &power_white;
31 led-failsafe = &power_amber;
32 led-running = &power_white;
33 led-upgrade = &power_amber;
39 compatible = "gpio-keys";
40 pinctrl-0 = <&button_pins>;
41 pinctrl-names = "default";
45 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RFKILL>;
47 debounce-interval = <60>;
53 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 debounce-interval = <60>;
61 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
63 debounce-interval = <60>;
69 compatible = "gpio-leds";
70 pinctrl-0 = <&led_pins>;
71 pinctrl-names = "default";
73 power_white: power_white {
74 label = "white:power";
75 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
76 default-state = "keep";
79 power_amber: power_amber {
80 label = "amber:power";
81 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
86 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
91 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
96 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
101 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
107 button_pins: button_pins {
109 pins = "gpio6", "gpio54", "gpio65";
111 drive-strength = <2>;
118 pins = "gpio7", "gpio8", "gpio9",
119 "gpio22", "gpio23", "gpio24",
120 "gpio26", "gpio53", "gpio64";
122 drive-strength = <2>;
127 mdio0_pins: mdio0_pins {
134 rgmii2_pins: rgmii2_pins {
136 pins = "gpio27", "gpio28", "gpio29",
137 "gpio30", "gpio31", "gpio32";
144 pins = "gpio18", "gpio19", "gpio21";
150 pins = "gpio18", "gpio19";
151 drive-strength = <10>;
156 drive-strength = <10>;
162 drive-strength = <12>;
166 spi6_pins: spi6_pins {
168 pins = "gpio55", "gpio56", "gpio58";
175 drive-strength = <12>;
180 drive-strength = <14>;
185 drive-strength = <12>;
191 drive-strength = <12>;
196 drive-strength = <10>;
202 usb0_pwr_en_pins: usb0_pwr_en_pins {
206 drive-strength = <12>;
212 usb1_pwr_en_pins: usb1_pwr_en_pins {
214 pins = "gpio16", "gpio68";
216 drive-strength = <12>;
226 pinctrl-0 = <&nand_pins>;
227 pinctrl-names = "default";
231 compatible = "qcom,nandcs";
233 nand-ecc-strength = <4>;
234 nand-bus-width = <8>;
235 nand-ecc-step-size = <512>;
238 qcom,boot_pages_size = <0x1180000>;
240 partitions: partitions {
241 compatible = "fixed-partitions";
242 #address-cells = <1>;
247 reg = <0x0000000 0x0c80000>;
253 reg = <0x0c80000 0x0500000>;
259 reg = <0x1180000 0x0080000>;
263 art: partition@1200000 {
265 reg = <0x1200000 0x0140000>;
267 compatible = "nvmem-cells";
268 #address-cells = <1>;
271 macaddr_art_0: macaddr@0 {
275 macaddr_art_6: macaddr@6 {
279 precal_art_1000: precal@1000 {
280 reg = <0x1000 0x2f20>;
283 precal_art_5000: precal@5000 {
284 reg = <0x5000 0x2f20>;
290 reg = <0x1340000 0x0140000>;
296 reg = <0x1480000 0x0400000>;
305 pinctrl-0 = <&mdio0_pins>;
306 pinctrl-names = "default";
308 phy0: ethernet-phy@0 {
310 qca,ar8327-initvals = <
311 0x00004 0x7600000 /* PAD0_MODE */
312 0x00008 0x1000000 /* PAD5_MODE */
313 0x0000c 0x80 /* PAD6_MODE */
314 0x000e4 0xaa545 /* MAC_POWER_SEL */
315 0x000e0 0xc74164de /* SGMII_CTRL */
316 0x0007c 0x4e /* PORT0_STATUS */
317 0x00094 0x4e /* PORT6_STATUS */
318 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
319 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
320 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
321 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
322 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
323 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
324 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
325 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
326 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
327 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
328 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
329 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
330 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
331 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
334 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
335 0x2 0x21 /* VLAN2 Ports 0/5 */
339 phy4: ethernet-phy@4 {
341 qca,ar8327-initvals = <
342 0x000e4 0x6a545 /* MAC_POWER_SEL */
343 0x0000c 0x80 /* PAD6_MODE */
353 qcom,phy_mdio_addr = <4>;
354 qcom,poll_required = <0>;
355 qcom,rgmii_delay = <1>;
356 qcom,phy_mii_type = <0>;
357 qcom,emulation = <0>;
361 pinctrl-0 = <&rgmii2_pins>;
362 pinctrl-names = "default";
364 nvmem-cells = <&macaddr_art_6>;
365 nvmem-cell-names = "mac-address";
378 qcom,phy_mdio_addr = <0>; /* none */
379 qcom,poll_required = <0>; /* no polling */
380 qcom,rgmii_delay = <0>;
381 qcom,phy_mii_type = <1>;
382 qcom,emulation = <0>;
386 nvmem-cells = <&macaddr_art_0>;
387 nvmem-cell-names = "mac-address";
410 pinctrl-0 = <&usb0_pwr_en_pins>;
411 pinctrl-names = "default";
417 pinctrl-0 = <&usb1_pwr_en_pins>;
418 pinctrl-names = "default";
425 reg = <0x00000000 0 0 0 0>;
426 #address-cells = <3>;
431 compatible = "pci168c,0046";
432 reg = <0x00010000 0 0 0 0>;
440 max-link-speed = <1>;
443 reg = <0x00000000 0 0 0 0>;
444 #address-cells = <3>;
449 compatible = "pci168c,0046";
450 reg = <0x00010000 0 0 0 0>;