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>;
262 reg = <0x1340000 0x0140000>;
268 reg = <0x1480000 0x0400000>;
277 pinctrl-0 = <&mdio0_pins>;
278 pinctrl-names = "default";
280 phy0: ethernet-phy@0 {
282 qca,ar8327-initvals = <
283 0x00004 0x7600000 /* PAD0_MODE */
284 0x00008 0x1000000 /* PAD5_MODE */
285 0x0000c 0x80 /* PAD6_MODE */
286 0x000e4 0xaa545 /* MAC_POWER_SEL */
287 0x000e0 0xc74164de /* SGMII_CTRL */
288 0x0007c 0x4e /* PORT0_STATUS */
289 0x00094 0x4e /* PORT6_STATUS */
290 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
291 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
292 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
293 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
294 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
295 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
296 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
297 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
298 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
299 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
300 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
301 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
302 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
303 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
306 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
307 0x2 0x21 /* VLAN2 Ports 0/5 */
311 phy4: ethernet-phy@4 {
313 qca,ar8327-initvals = <
314 0x000e4 0x6a545 /* MAC_POWER_SEL */
315 0x0000c 0x80 /* PAD6_MODE */
325 qcom,phy_mdio_addr = <4>;
326 qcom,poll_required = <0>;
327 qcom,rgmii_delay = <1>;
328 qcom,phy_mii_type = <0>;
329 qcom,emulation = <0>;
333 pinctrl-0 = <&rgmii2_pins>;
334 pinctrl-names = "default";
336 nvmem-cells = <&macaddr_art_6>;
337 nvmem-cell-names = "mac-address";
350 qcom,phy_mdio_addr = <0>; /* none */
351 qcom,poll_required = <0>; /* no polling */
352 qcom,rgmii_delay = <0>;
353 qcom,phy_mii_type = <1>;
354 qcom,emulation = <0>;
358 nvmem-cells = <&macaddr_art_0>;
359 nvmem-cell-names = "mac-address";
382 pinctrl-0 = <&usb0_pwr_en_pins>;
383 pinctrl-names = "default";
389 pinctrl-0 = <&usb1_pwr_en_pins>;
390 pinctrl-names = "default";
397 reg = <0x00000000 0 0 0 0>;
398 #address-cells = <3>;
403 compatible = "pci168c,0046";
404 reg = <0x00010000 0 0 0 0>;
412 max-link-speed = <1>;
415 reg = <0x00000000 0 0 0 0>;
416 #address-cells = <3>;
421 compatible = "pci168c,0046";
422 reg = <0x00010000 0 0 0 0>;
428 compatible = "nvmem-cells";
429 #address-cells = <1>;
432 macaddr_art_0: macaddr@0 {
436 macaddr_art_6: macaddr@6 {