1 From a32d6e7c8fca6371a2614924b89981bc912b6378 Mon Sep 17 00:00:00 2001
2 From: Mathieu Olivari <mathieu@codeaurora.org>
3 Date: Tue, 7 Apr 2015 19:58:58 -0700
4 Subject: [PATCH] ARM: dts: qcom: add initial DB149 device-tree
6 Add basic DB149 (IPQ806x based platform) device-tree. It supports UART,
7 SATA, USB2, USB3 and NOR flash.
9 Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
11 arch/arm/boot/dts/Makefile | 1 +
12 arch/arm/boot/dts/qcom-ipq8064-db149.dts | 257 +++++++++++++++++++++++++++++++
13 2 files changed, 258 insertions(+)
14 create mode 100644 arch/arm/boot/dts/qcom-ipq8064-db149.dts
16 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
17 index 38c89ca..745360a 100644
18 --- a/arch/arm/boot/dts/Makefile
19 +++ b/arch/arm/boot/dts/Makefile
20 @@ -360,6 +360,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
21 qcom-apq8084-ifc6540.dtb \
22 qcom-apq8084-mtp.dtb \
23 qcom-ipq8064-ap148.dtb \
24 + qcom-ipq8064-db149.dtb \
25 qcom-msm8660-surf.dtb \
26 qcom-msm8960-cdp.dtb \
27 qcom-msm8974-sony-xperia-honami.dtb
28 diff --git a/arch/arm/boot/dts/qcom-ipq8064-db149.dts b/arch/arm/boot/dts/qcom-ipq8064-db149.dts
30 index 0000000..224c54f
32 +++ b/arch/arm/boot/dts/qcom-ipq8064-db149.dts
34 +#include "qcom-ipq8064-v1.0.dtsi"
37 + model = "Qualcomm IPQ8064/DB149";
38 + compatible = "qcom,ipq8064-db149", "qcom,ipq8064";
41 + #address-cells = <1>;
45 + reg = <0x41200000 0x300000>;
55 + linux,stdout-path = "serial0:115200n8";
59 + mdio-gpio0 = &mdio0;
64 + pinctrl-0 = <&mdio0_pins &rgmii0_pinmux>;
65 + pinctrl-names = "default";
67 + i2c4_pins: i2c4_pinmux {
68 + pins = "gpio12", "gpio13";
73 + spi_pins: spi_pins {
75 + pins = "gpio18", "gpio19", "gpio21";
77 + drive-strength = <10>;
82 + mdio0_pins: mdio0_pins {
84 + pins = "gpio0", "gpio1";
86 + drive-strength = <8>;
91 + rgmii0_pinmux: rgmii0_pinmux {
93 + pins = "gpio2", "gpio66";
94 + drive-strength = <8>;
100 + gsbi2: gsbi@12480000 {
101 + qcom,mode = <GSBI_PROT_I2C_UART>;
103 + uart2: serial@12490000 {
108 + gsbi5: gsbi@1a200000 {
109 + qcom,mode = <GSBI_PROT_SPI>;
112 + spi4: spi@1a280000 {
114 + spi-max-frequency = <50000000>;
116 + pinctrl-0 = <&spi_pins>;
117 + pinctrl-names = "default";
119 + cs-gpios = <&qcom_pinmux 20 0>;
122 + compatible = "s25fl256s1";
123 + #address-cells = <1>;
125 + spi-max-frequency = <50000000>;
130 + label = "lowlevel_init";
131 + reg = <0x0 0x1b0000>;
136 + reg = <0x1b0000 0x80000>;
140 + label = "u-boot-env";
141 + reg = <0x230000 0x40000>;
146 + reg = <0x270000 0x40000>;
150 + label = "firmware";
151 + reg = <0x2b0000 0x1d50000>;
157 + sata-phy@1b400000 {
165 + phy@100f8800 { /* USB3 port 1 HS phy */
169 + phy@100f8830 { /* USB3 port 1 SS phy */
173 + phy@110f8800 { /* USB3 port 0 HS phy */
177 + phy@110f8830 { /* USB3 port 0 SS phy */
190 + compatible = "virtual,mdio-gpio";
191 + #address-cells = <1>;
193 + gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
195 + phy0: ethernet-phy@0 {
196 + device_type = "ethernet-phy";
198 + qca,ar8327-initvals = <
199 + 0x00004 0x7600000 /* PAD0_MODE */
200 + 0x00008 0x1000000 /* PAD5_MODE */
201 + 0x0000c 0x80 /* PAD6_MODE */
202 + 0x000e4 0xaa545 /* MAC_POWER_SEL */
203 + 0x000e0 0xc74164de /* SGMII_CTRL */
204 + 0x0007c 0x4e /* PORT0_STATUS */
205 + 0x00094 0x4e /* PORT6_STATUS */
209 + phy4: ethernet-phy@4 {
210 + device_type = "ethernet-phy";
214 + phy6: ethernet-phy@6 {
215 + device_type = "ethernet-phy";
219 + phy7: ethernet-phy@7 {
220 + device_type = "ethernet-phy";
226 + reg = <0x03000000 0x0000FFFF 0x1bb00000 0x0000FFFF 0x00900000 0x00004000>;
227 + reg-names = "nss_reg_base" , "qsgmii_reg_base", "clk_ctl_base";
230 + gmac0: ethernet@37000000 {
232 + phy-mode = "rgmii";
234 + qcom,phy_mdio_addr = <4>;
235 + qcom,poll_required = <1>;
236 + qcom,rgmii_delay = <1>;
237 + qcom,emulation = <0>;
238 + qcom,forced_speed = <1000>;
239 + qcom,forced_duplex = <1>;
241 + local-mac-address = [000000000000];
242 + mdiobus = <&mdio0>;
245 + gmac1: ethernet@37200000 {
247 + phy-mode = "sgmii";
249 + qcom,phy_mdio_addr = <0>;
250 + qcom,poll_required = <0>;
251 + qcom,rgmii_delay = <0>;
252 + qcom,emulation = <0>;
253 + qcom,forced_speed = <1000>;
254 + qcom,forced_duplex = <1>;
256 + local-mac-address = [000000000000];
257 + mdiobus = <&mdio0>;
260 + gmac2: ethernet@37400000 {
262 + phy-mode = "sgmii";
264 + qcom,phy_mdio_addr = <6>;
265 + qcom,poll_required = <1>;
266 + qcom,rgmii_delay = <0>;
267 + qcom,emulation = <0>;
268 + qcom,forced_speed = <0>;
269 + qcom,forced_duplex = <0>;
271 + local-mac-address = [000000000000];
272 + mdiobus = <&mdio0>;
275 + gmac3: ethernet@37600000 {
277 + phy-mode = "sgmii";
279 + qcom,phy_mdio_addr = <7>;
280 + qcom,poll_required = <1>;
281 + qcom,rgmii_delay = <0>;
282 + qcom,emulation = <0>;
283 + qcom,forced_speed = <0>;
284 + qcom,forced_duplex = <0>;
286 + local-mac-address = [000000000000];
287 + mdiobus = <&mdio0>;