ipq806x: move serial0 to DTSI files
[openwrt/openwrt.git] / target / linux / ipq806x / files-5.4 / arch / arm / boot / dts / qcom-ipq8064-ap148.dts
1 #include "qcom-ipq8064-v1.0.dtsi"
2
3 / {
4 model = "Qualcomm Technologies, Inc. IPQ8064/AP-148";
5 compatible = "qcom,ipq8064-ap148", "qcom,ipq8064";
6
7 memory@0 {
8 reg = <0x42000000 0x1e000000>;
9 device_type = "memory";
10 };
11
12 reserved-memory {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 ranges;
16 rsvd@41200000 {
17 reg = <0x41200000 0x300000>;
18 no-map;
19 };
20 };
21
22 aliases {
23 mdio-gpio0 = &mdio0;
24 };
25 };
26
27 &adm_dma {
28 status = "okay";
29 };
30
31 &gsbi4 {
32 qcom,mode = <GSBI_PROT_I2C_UART>;
33 status = "okay";
34
35 serial@16340000 {
36 status = "okay";
37 };
38
39 /*
40 * The i2c device on gsbi4 should not be enabled.
41 * On ipq806x designs gsbi4 i2c is meant for exclusive
42 * RPM usage. Turning this on in kernel manifests as
43 * i2c failure for the RPM.
44 */
45 };
46
47 &gsbi5 {
48 qcom,mode = <GSBI_PROT_SPI>;
49 status = "okay";
50
51 spi4: spi@1a280000 {
52 status = "okay";
53 spi-max-frequency = <50000000>;
54
55 pinctrl-0 = <&spi_pins>;
56 pinctrl-names = "default";
57
58 cs-gpios = <&qcom_pinmux 20 0>;
59
60 m25p80@0 {
61 compatible = "s25fl256s1";
62 #address-cells = <1>;
63 #size-cells = <1>;
64 spi-max-frequency = <50000000>;
65 reg = <0>;
66
67 partitions {
68 compatible = "qcom,smem";
69 };
70 };
71 };
72 };
73
74 &usb3_0 {
75 status = "okay";
76 };
77
78 &usb3_1 {
79 status = "okay";
80 };
81
82 &pcie0 {
83 status = "okay";
84 };
85
86 &pcie1 {
87 status = "okay";
88 force_gen1 = <1>;
89 };
90
91 &nand_controller {
92 status = "okay";
93
94 pinctrl-0 = <&nand_pins>;
95 pinctrl-names = "default";
96
97 nand@0 {
98 reg = <0>;
99 compatible = "qcom,nandcs";
100
101 nand-ecc-strength = <4>;
102 nand-bus-width = <8>;
103 nand-ecc-step-size = <512>;
104
105 partitions {
106 compatible = "qcom,smem";
107 };
108 };
109 };
110
111 &mdio0 {
112 status = "okay";
113
114 pinctrl-0 = <&mdio0_pins>;
115 pinctrl-names = "default";
116
117 phy0: ethernet-phy@0 {
118 reg = <0>;
119 qca,ar8327-initvals = <
120 0x00004 0x7600000 /* PAD0_MODE */
121 0x00008 0x1000000 /* PAD5_MODE */
122 0x0000c 0x80 /* PAD6_MODE */
123 0x000e4 0x6a545 /* MAC_POWER_SEL */
124 0x000e0 0xc74164de /* SGMII_CTRL */
125 0x0007c 0x4e /* PORT0_STATUS */
126 0x00094 0x4e /* PORT6_STATUS */
127 >;
128 };
129
130 phy4: ethernet-phy@4 {
131 reg = <4>;
132 };
133 };
134
135 &gmac1 {
136 status = "okay";
137 phy-mode = "rgmii";
138 qcom,id = <1>;
139
140 pinctrl-0 = <&rgmii2_pins>;
141 pinctrl-names = "default";
142
143 fixed-link {
144 speed = <1000>;
145 full-duplex;
146 };
147 };
148
149 &gmac2 {
150 status = "okay";
151 phy-mode = "sgmii";
152 qcom,id = <2>;
153
154 fixed-link {
155 speed = <1000>;
156 full-duplex;
157 };
158 };
159
160 &sata_phy {
161 status = "okay";
162 };
163
164 &sata {
165 status = "okay";
166 };