1 #include "qcom-ipq8065.dtsi"
3 #include <dt-bindings/input/input.h>
7 reg = <0x42000000 0x1e000000>;
8 device_type = "memory";
13 reg = <0x5fe00000 0x200000>;
19 label-mac-device = &gmac2;
21 led-boot = &power_white;
22 led-failsafe = &power_amber;
23 led-running = &power_white;
24 led-upgrade = &power_amber;
30 compatible = "gpio-keys";
31 pinctrl-0 = <&button_pins>;
32 pinctrl-names = "default";
36 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RFKILL>;
38 debounce-interval = <60>;
44 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 debounce-interval = <60>;
52 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
54 debounce-interval = <60>;
60 compatible = "gpio-leds";
61 pinctrl-0 = <&led_pins>;
62 pinctrl-names = "default";
64 power_white: power_white {
65 label = "white:power";
66 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
67 default-state = "keep";
70 power_amber: power_amber {
71 label = "amber:power";
72 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
77 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
82 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
87 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
92 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
98 button_pins: button_pins {
100 pins = "gpio6", "gpio54", "gpio65";
102 drive-strength = <2>;
109 pins = "gpio7", "gpio8", "gpio9",
110 "gpio22", "gpio23", "gpio24",
111 "gpio26", "gpio53", "gpio64";
113 drive-strength = <2>;
118 mdio0_pins: mdio0_pins {
125 rgmii2_pins: rgmii2_pins {
127 pins = "gpio27", "gpio28", "gpio29",
128 "gpio30", "gpio31", "gpio32";
135 pins = "gpio18", "gpio19", "gpio21";
141 pins = "gpio18", "gpio19";
142 drive-strength = <10>;
147 drive-strength = <10>;
153 drive-strength = <12>;
157 spi6_pins: spi6_pins {
159 pins = "gpio55", "gpio56", "gpio58";
166 drive-strength = <12>;
171 drive-strength = <14>;
176 drive-strength = <12>;
182 drive-strength = <12>;
187 drive-strength = <10>;
193 usb0_pwr_en_pins: usb0_pwr_en_pins {
197 drive-strength = <12>;
203 usb1_pwr_en_pins: usb1_pwr_en_pins {
205 pins = "gpio16", "gpio68";
207 drive-strength = <12>;
217 pinctrl-0 = <&nand_pins>;
218 pinctrl-names = "default";
222 compatible = "qcom,nandcs";
224 nand-ecc-strength = <4>;
225 nand-bus-width = <8>;
226 nand-ecc-step-size = <512>;
229 qcom,boot_pages_size = <0x1180000>;
231 partitions: partitions {
232 compatible = "fixed-partitions";
233 #address-cells = <1>;
238 reg = <0x0000000 0x0c80000>;
244 reg = <0x0c80000 0x0500000>;
250 reg = <0x1180000 0x0080000>;
254 art: partition@1200000 {
256 reg = <0x1200000 0x0140000>;
258 compatible = "nvmem-cells";
259 #address-cells = <1>;
262 macaddr_art_0: macaddr@0 {
266 macaddr_art_6: macaddr@6 {
270 precal_art_1000: precal@1000 {
271 reg = <0x1000 0x2f20>;
274 precal_art_5000: precal@5000 {
275 reg = <0x5000 0x2f20>;
281 reg = <0x1340000 0x0140000>;
287 reg = <0x1480000 0x0400000>;
296 pinctrl-0 = <&mdio0_pins>;
297 pinctrl-names = "default";
299 phy0: ethernet-phy@0 {
301 qca,ar8327-initvals = <
302 0x00004 0x7600000 /* PAD0_MODE */
303 0x00008 0x1000000 /* PAD5_MODE */
304 0x0000c 0x80 /* PAD6_MODE */
305 0x000e4 0xaa545 /* MAC_POWER_SEL */
306 0x000e0 0xc74164de /* SGMII_CTRL */
307 0x0007c 0x4e /* PORT0_STATUS */
308 0x00094 0x4e /* PORT6_STATUS */
309 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
310 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
311 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
312 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
313 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
314 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
315 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
316 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
317 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
318 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
319 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
320 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
321 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
322 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
325 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
326 0x2 0x21 /* VLAN2 Ports 0/5 */
330 phy4: ethernet-phy@4 {
332 qca,ar8327-initvals = <
333 0x000e4 0x6a545 /* MAC_POWER_SEL */
334 0x0000c 0x80 /* PAD6_MODE */
344 qcom,phy_mdio_addr = <4>;
345 qcom,poll_required = <0>;
346 qcom,rgmii_delay = <1>;
347 qcom,phy_mii_type = <0>;
348 qcom,emulation = <0>;
352 pinctrl-0 = <&rgmii2_pins>;
353 pinctrl-names = "default";
355 nvmem-cells = <&macaddr_art_6>;
356 nvmem-cell-names = "mac-address";
369 qcom,phy_mdio_addr = <0>; /* none */
370 qcom,poll_required = <0>; /* no polling */
371 qcom,rgmii_delay = <0>;
372 qcom,phy_mii_type = <1>;
373 qcom,emulation = <0>;
377 nvmem-cells = <&macaddr_art_0>;
378 nvmem-cell-names = "mac-address";
401 pinctrl-0 = <&usb0_pwr_en_pins>;
402 pinctrl-names = "default";
408 pinctrl-0 = <&usb1_pwr_en_pins>;
409 pinctrl-names = "default";
416 reg = <0x00000000 0 0 0 0>;
417 #address-cells = <3>;
422 compatible = "pci168c,0046";
423 reg = <0x00010000 0 0 0 0>;
431 max-link-speed = <1>;
434 reg = <0x00000000 0 0 0 0>;
435 #address-cells = <3>;
440 compatible = "pci168c,0046";
441 reg = <0x00010000 0 0 0 0>;