diff options
author | Kumar Gala <galak@codeaurora.org> | 2014-05-28 13:09:53 -0400 |
---|---|---|
committer | Kumar Gala <galak@codeaurora.org> | 2014-05-29 11:35:00 -0400 |
commit | 665c9c03f6405bdec6e9629d9dfa795c2124a5a2 (patch) | |
tree | 9a03e3222333f419c761ab74cf2b5f921e69bc6d | |
parent | ba08220aa81e757491a3665c28df7eaa954128dc (diff) |
ARM: dts: qcom: Update msm8960 device trees
* Move SoC peripherals into an SoC container node
* Move serial enabling into board file (qcom-msm8960-cdp.dts)
* Cleanup cpu node to match binding spec, enable-method and compatible
should be per cpu, not part of the container
* Drop interrupts property from l2-cache node as its not part of the
binding spec
* Add GSBI node and configuration of GSBI controller
Signed-off-by: Kumar Gala <galak@codeaurora.org>
-rw-r--r-- | arch/arm/boot/dts/qcom-msm8960-cdp.dts | 10 | ||||
-rw-r--r-- | arch/arm/boot/dts/qcom-msm8960.dtsi | 176 |
2 files changed, 108 insertions, 78 deletions
diff --git a/arch/arm/boot/dts/qcom-msm8960-cdp.dts b/arch/arm/boot/dts/qcom-msm8960-cdp.dts index a58fb88315f6..8f75cc4c8340 100644 --- a/arch/arm/boot/dts/qcom-msm8960-cdp.dts +++ b/arch/arm/boot/dts/qcom-msm8960-cdp.dts | |||
@@ -3,4 +3,14 @@ | |||
3 | / { | 3 | / { |
4 | model = "Qualcomm MSM8960 CDP"; | 4 | model = "Qualcomm MSM8960 CDP"; |
5 | compatible = "qcom,msm8960-cdp", "qcom,msm8960"; | 5 | compatible = "qcom,msm8960-cdp", "qcom,msm8960"; |
6 | |||
7 | soc { | ||
8 | gsbi@16400000 { | ||
9 | status = "ok"; | ||
10 | qcom,mode = <GSBI_PROT_I2C_UART>; | ||
11 | serial@16440000 { | ||
12 | status = "ok"; | ||
13 | }; | ||
14 | }; | ||
15 | }; | ||
6 | }; | 16 | }; |
diff --git a/arch/arm/boot/dts/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom-msm8960.dtsi index 997b7b94e117..5303e53e34dc 100644 --- a/arch/arm/boot/dts/qcom-msm8960.dtsi +++ b/arch/arm/boot/dts/qcom-msm8960.dtsi | |||
@@ -3,6 +3,7 @@ | |||
3 | /include/ "skeleton.dtsi" | 3 | /include/ "skeleton.dtsi" |
4 | 4 | ||
5 | #include <dt-bindings/clock/qcom,gcc-msm8960.h> | 5 | #include <dt-bindings/clock/qcom,gcc-msm8960.h> |
6 | #include <dt-bindings/soc/qcom,gsbi.h> | ||
6 | 7 | ||
7 | / { | 8 | / { |
8 | model = "Qualcomm MSM8960"; | 9 | model = "Qualcomm MSM8960"; |
@@ -13,10 +14,10 @@ | |||
13 | #address-cells = <1>; | 14 | #address-cells = <1>; |
14 | #size-cells = <0>; | 15 | #size-cells = <0>; |
15 | interrupts = <1 14 0x304>; | 16 | interrupts = <1 14 0x304>; |
16 | compatible = "qcom,krait"; | ||
17 | enable-method = "qcom,kpss-acc-v1"; | ||
18 | 17 | ||
19 | cpu@0 { | 18 | cpu@0 { |
19 | compatible = "qcom,krait"; | ||
20 | enable-method = "qcom,kpss-acc-v1"; | ||
20 | device_type = "cpu"; | 21 | device_type = "cpu"; |
21 | reg = <0>; | 22 | reg = <0>; |
22 | next-level-cache = <&L2>; | 23 | next-level-cache = <&L2>; |
@@ -25,6 +26,8 @@ | |||
25 | }; | 26 | }; |
26 | 27 | ||
27 | cpu@1 { | 28 | cpu@1 { |
29 | compatible = "qcom,krait"; | ||
30 | enable-method = "qcom,kpss-acc-v1"; | ||
28 | device_type = "cpu"; | 31 | device_type = "cpu"; |
29 | reg = <1>; | 32 | reg = <1>; |
30 | next-level-cache = <&L2>; | 33 | next-level-cache = <&L2>; |
@@ -35,7 +38,6 @@ | |||
35 | L2: l2-cache { | 38 | L2: l2-cache { |
36 | compatible = "cache"; | 39 | compatible = "cache"; |
37 | cache-level = <2>; | 40 | cache-level = <2>; |
38 | interrupts = <0 2 0x4>; | ||
39 | }; | 41 | }; |
40 | }; | 42 | }; |
41 | 43 | ||
@@ -45,91 +47,109 @@ | |||
45 | qcom,no-pc-write; | 47 | qcom,no-pc-write; |
46 | }; | 48 | }; |
47 | 49 | ||
48 | intc: interrupt-controller@2000000 { | 50 | soc: soc { |
49 | compatible = "qcom,msm-qgic2"; | 51 | #address-cells = <1>; |
50 | interrupt-controller; | 52 | #size-cells = <1>; |
51 | #interrupt-cells = <3>; | 53 | ranges; |
52 | reg = < 0x02000000 0x1000 >, | 54 | compatible = "simple-bus"; |
53 | < 0x02002000 0x1000 >; | 55 | |
54 | }; | 56 | intc: interrupt-controller@2000000 { |
57 | compatible = "qcom,msm-qgic2"; | ||
58 | interrupt-controller; | ||
59 | #interrupt-cells = <3>; | ||
60 | reg = <0x02000000 0x1000>, | ||
61 | <0x02002000 0x1000>; | ||
62 | }; | ||
55 | 63 | ||
56 | timer@200a000 { | 64 | timer@200a000 { |
57 | compatible = "qcom,kpss-timer", "qcom,msm-timer"; | 65 | compatible = "qcom,kpss-timer", "qcom,msm-timer"; |
58 | interrupts = <1 1 0x301>, | 66 | interrupts = <1 1 0x301>, |
59 | <1 2 0x301>, | 67 | <1 2 0x301>, |
60 | <1 3 0x301>; | 68 | <1 3 0x301>; |
61 | reg = <0x0200a000 0x100>; | 69 | reg = <0x0200a000 0x100>; |
62 | clock-frequency = <27000000>, | 70 | clock-frequency = <27000000>, |
63 | <32768>; | 71 | <32768>; |
64 | cpu-offset = <0x80000>; | 72 | cpu-offset = <0x80000>; |
65 | }; | 73 | }; |
66 | 74 | ||
67 | msmgpio: gpio@800000 { | 75 | msmgpio: gpio@800000 { |
68 | compatible = "qcom,msm-gpio"; | 76 | compatible = "qcom,msm-gpio"; |
69 | gpio-controller; | 77 | gpio-controller; |
70 | #gpio-cells = <2>; | 78 | #gpio-cells = <2>; |
71 | ngpio = <150>; | 79 | ngpio = <150>; |
72 | interrupts = <0 16 0x4>; | 80 | interrupts = <0 16 0x4>; |
73 | interrupt-controller; | 81 | interrupt-controller; |
74 | #interrupt-cells = <2>; | 82 | #interrupt-cells = <2>; |
75 | reg = <0x800000 0x4000>; | 83 | reg = <0x800000 0x4000>; |
76 | }; | 84 | }; |
77 | 85 | ||
78 | gcc: clock-controller@900000 { | 86 | gcc: clock-controller@900000 { |
79 | compatible = "qcom,gcc-msm8960"; | 87 | compatible = "qcom,gcc-msm8960"; |
80 | #clock-cells = <1>; | 88 | #clock-cells = <1>; |
81 | #reset-cells = <1>; | 89 | #reset-cells = <1>; |
82 | reg = <0x900000 0x4000>; | 90 | reg = <0x900000 0x4000>; |
83 | }; | 91 | }; |
84 | 92 | ||
85 | clock-controller@4000000 { | 93 | clock-controller@4000000 { |
86 | compatible = "qcom,mmcc-msm8960"; | 94 | compatible = "qcom,mmcc-msm8960"; |
87 | reg = <0x4000000 0x1000>; | 95 | reg = <0x4000000 0x1000>; |
88 | #clock-cells = <1>; | 96 | #clock-cells = <1>; |
89 | #reset-cells = <1>; | 97 | #reset-cells = <1>; |
90 | }; | 98 | }; |
91 | 99 | ||
92 | acc0: clock-controller@2088000 { | 100 | acc0: clock-controller@2088000 { |
93 | compatible = "qcom,kpss-acc-v1"; | 101 | compatible = "qcom,kpss-acc-v1"; |
94 | reg = <0x02088000 0x1000>, <0x02008000 0x1000>; | 102 | reg = <0x02088000 0x1000>, <0x02008000 0x1000>; |
95 | }; | 103 | }; |
96 | 104 | ||
97 | acc1: clock-controller@2098000 { | 105 | acc1: clock-controller@2098000 { |
98 | compatible = "qcom,kpss-acc-v1"; | 106 | compatible = "qcom,kpss-acc-v1"; |
99 | reg = <0x02098000 0x1000>, <0x02008000 0x1000>; | 107 | reg = <0x02098000 0x1000>, <0x02008000 0x1000>; |
100 | }; | 108 | }; |
101 | 109 | ||
102 | saw0: regulator@2089000 { | 110 | saw0: regulator@2089000 { |
103 | compatible = "qcom,saw2"; | 111 | compatible = "qcom,saw2"; |
104 | reg = <0x02089000 0x1000>, <0x02009000 0x1000>; | 112 | reg = <0x02089000 0x1000>, <0x02009000 0x1000>; |
105 | regulator; | 113 | regulator; |
106 | }; | 114 | }; |
107 | 115 | ||
108 | saw1: regulator@2099000 { | 116 | saw1: regulator@2099000 { |
109 | compatible = "qcom,saw2"; | 117 | compatible = "qcom,saw2"; |
110 | reg = <0x02099000 0x1000>, <0x02009000 0x1000>; | 118 | reg = <0x02099000 0x1000>, <0x02009000 0x1000>; |
111 | regulator; | 119 | regulator; |
112 | }; | 120 | }; |
113 | 121 | ||
114 | serial@16440000 { | 122 | gsbi5: gsbi@16400000 { |
115 | compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; | 123 | compatible = "qcom,gsbi-v1.0.0"; |
116 | reg = <0x16440000 0x1000>, | 124 | reg = <0x16400000 0x100>; |
117 | <0x16400000 0x1000>; | 125 | clocks = <&gcc GSBI5_H_CLK>; |
118 | interrupts = <0 154 0x0>; | 126 | clock-names = "iface"; |
119 | clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>; | 127 | #address-cells = <1>; |
120 | clock-names = "core", "iface"; | 128 | #size-cells = <1>; |
121 | }; | 129 | ranges; |
130 | |||
131 | serial@16440000 { | ||
132 | compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; | ||
133 | reg = <0x16440000 0x1000>, | ||
134 | <0x16400000 0x1000>; | ||
135 | interrupts = <0 154 0x0>; | ||
136 | clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>; | ||
137 | clock-names = "core", "iface"; | ||
138 | status = "disabled"; | ||
139 | }; | ||
140 | }; | ||
122 | 141 | ||
123 | qcom,ssbi@500000 { | 142 | qcom,ssbi@500000 { |
124 | compatible = "qcom,ssbi"; | 143 | compatible = "qcom,ssbi"; |
125 | reg = <0x500000 0x1000>; | 144 | reg = <0x500000 0x1000>; |
126 | qcom,controller-type = "pmic-arbiter"; | 145 | qcom,controller-type = "pmic-arbiter"; |
127 | }; | 146 | }; |
128 | 147 | ||
129 | rng@1a500000 { | 148 | rng@1a500000 { |
130 | compatible = "qcom,prng"; | 149 | compatible = "qcom,prng"; |
131 | reg = <0x1a500000 0x200>; | 150 | reg = <0x1a500000 0x200>; |
132 | clocks = <&gcc PRNG_CLK>; | 151 | clocks = <&gcc PRNG_CLK>; |
133 | clock-names = "core"; | 152 | clock-names = "core"; |
153 | }; | ||
134 | }; | 154 | }; |
135 | }; | 155 | }; |