diff options
author | Kumar Gala <galak@codeaurora.org> | 2014-05-28 13:12:40 -0400 |
---|---|---|
committer | Kumar Gala <galak@codeaurora.org> | 2014-05-29 11:35:04 -0400 |
commit | 66a6c3175f582479f34c77e376b5c3a13129450b (patch) | |
tree | e2c4b01eaaca7a6c9fb2381a46bfbb13993cc23e /arch/arm/boot | |
parent | 665c9c03f6405bdec6e9629d9dfa795c2124a5a2 (diff) |
ARM: dts: qcom: Update msm8660 device trees
* Move SoC peripherals into an SoC container node
* Move serial enabling into board file (qcom-msm8660-surf.dts)
* Cleanup cpu node to match binding spec, enable-method and compatible
should be per cpu, not part of the container
* Add GSBI node and configuration of GSBI controller
Signed-off-by: Kumar Gala <galak@codeaurora.org>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/qcom-msm8660-surf.dts | 10 | ||||
-rw-r--r-- | arch/arm/boot/dts/qcom-msm8660.dtsi | 115 |
2 files changed, 78 insertions, 47 deletions
diff --git a/arch/arm/boot/dts/qcom-msm8660-surf.dts b/arch/arm/boot/dts/qcom-msm8660-surf.dts index 169bad90dac9..45180adfadf1 100644 --- a/arch/arm/boot/dts/qcom-msm8660-surf.dts +++ b/arch/arm/boot/dts/qcom-msm8660-surf.dts | |||
@@ -3,4 +3,14 @@ | |||
3 | / { | 3 | / { |
4 | model = "Qualcomm MSM8660 SURF"; | 4 | model = "Qualcomm MSM8660 SURF"; |
5 | compatible = "qcom,msm8660-surf", "qcom,msm8660"; | 5 | compatible = "qcom,msm8660-surf", "qcom,msm8660"; |
6 | |||
7 | soc { | ||
8 | gsbi@19c00000 { | ||
9 | status = "ok"; | ||
10 | qcom,mode = <GSBI_PROT_I2C_UART>; | ||
11 | serial@19c40000 { | ||
12 | status = "ok"; | ||
13 | }; | ||
14 | }; | ||
15 | }; | ||
6 | }; | 16 | }; |
diff --git a/arch/arm/boot/dts/qcom-msm8660.dtsi b/arch/arm/boot/dts/qcom-msm8660.dtsi index c52a9e964a44..53837aaa2f72 100644 --- a/arch/arm/boot/dts/qcom-msm8660.dtsi +++ b/arch/arm/boot/dts/qcom-msm8660.dtsi | |||
@@ -3,6 +3,7 @@ | |||
3 | /include/ "skeleton.dtsi" | 3 | /include/ "skeleton.dtsi" |
4 | 4 | ||
5 | #include <dt-bindings/clock/qcom,gcc-msm8660.h> | 5 | #include <dt-bindings/clock/qcom,gcc-msm8660.h> |
6 | #include <dt-bindings/soc/qcom,gsbi.h> | ||
6 | 7 | ||
7 | / { | 8 | / { |
8 | model = "Qualcomm MSM8660"; | 9 | model = "Qualcomm MSM8660"; |
@@ -12,16 +13,18 @@ | |||
12 | cpus { | 13 | cpus { |
13 | #address-cells = <1>; | 14 | #address-cells = <1>; |
14 | #size-cells = <0>; | 15 | #size-cells = <0>; |
15 | compatible = "qcom,scorpion"; | ||
16 | enable-method = "qcom,gcc-msm8660"; | ||
17 | 16 | ||
18 | cpu@0 { | 17 | cpu@0 { |
18 | compatible = "qcom,scorpion"; | ||
19 | enable-method = "qcom,gcc-msm8660"; | ||
19 | device_type = "cpu"; | 20 | device_type = "cpu"; |
20 | reg = <0>; | 21 | reg = <0>; |
21 | next-level-cache = <&L2>; | 22 | next-level-cache = <&L2>; |
22 | }; | 23 | }; |
23 | 24 | ||
24 | cpu@1 { | 25 | cpu@1 { |
26 | compatible = "qcom,scorpion"; | ||
27 | enable-method = "qcom,gcc-msm8660"; | ||
25 | device_type = "cpu"; | 28 | device_type = "cpu"; |
26 | reg = <1>; | 29 | reg = <1>; |
27 | next-level-cache = <&L2>; | 30 | next-level-cache = <&L2>; |
@@ -33,55 +36,73 @@ | |||
33 | }; | 36 | }; |
34 | }; | 37 | }; |
35 | 38 | ||
36 | intc: interrupt-controller@2080000 { | 39 | soc: soc { |
37 | compatible = "qcom,msm-8660-qgic"; | 40 | #address-cells = <1>; |
38 | interrupt-controller; | 41 | #size-cells = <1>; |
39 | #interrupt-cells = <3>; | 42 | ranges; |
40 | reg = < 0x02080000 0x1000 >, | 43 | compatible = "simple-bus"; |
41 | < 0x02081000 0x1000 >; | ||
42 | }; | ||
43 | 44 | ||
44 | timer@2000000 { | 45 | intc: interrupt-controller@2080000 { |
45 | compatible = "qcom,scss-timer", "qcom,msm-timer"; | 46 | compatible = "qcom,msm-8660-qgic"; |
46 | interrupts = <1 0 0x301>, | 47 | interrupt-controller; |
47 | <1 1 0x301>, | 48 | #interrupt-cells = <3>; |
48 | <1 2 0x301>; | 49 | reg = < 0x02080000 0x1000 >, |
49 | reg = <0x02000000 0x100>; | 50 | < 0x02081000 0x1000 >; |
50 | clock-frequency = <27000000>, | 51 | }; |
51 | <32768>; | ||
52 | cpu-offset = <0x40000>; | ||
53 | }; | ||
54 | 52 | ||
55 | msmgpio: gpio@800000 { | 53 | timer@2000000 { |
56 | compatible = "qcom,msm-gpio"; | 54 | compatible = "qcom,scss-timer", "qcom,msm-timer"; |
57 | reg = <0x00800000 0x4000>; | 55 | interrupts = <1 0 0x301>, |
58 | gpio-controller; | 56 | <1 1 0x301>, |
59 | #gpio-cells = <2>; | 57 | <1 2 0x301>; |
60 | ngpio = <173>; | 58 | reg = <0x02000000 0x100>; |
61 | interrupts = <0 16 0x4>; | 59 | clock-frequency = <27000000>, |
62 | interrupt-controller; | 60 | <32768>; |
63 | #interrupt-cells = <2>; | 61 | cpu-offset = <0x40000>; |
64 | }; | 62 | }; |
65 | 63 | ||
66 | gcc: clock-controller@900000 { | 64 | msmgpio: gpio@800000 { |
67 | compatible = "qcom,gcc-msm8660"; | 65 | compatible = "qcom,msm-gpio"; |
68 | #clock-cells = <1>; | 66 | reg = <0x00800000 0x4000>; |
69 | #reset-cells = <1>; | 67 | gpio-controller; |
70 | reg = <0x900000 0x4000>; | 68 | #gpio-cells = <2>; |
71 | }; | 69 | ngpio = <173>; |
70 | interrupts = <0 16 0x4>; | ||
71 | interrupt-controller; | ||
72 | #interrupt-cells = <2>; | ||
73 | }; | ||
72 | 74 | ||
73 | serial@19c40000 { | 75 | gcc: clock-controller@900000 { |
74 | compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; | 76 | compatible = "qcom,gcc-msm8660"; |
75 | reg = <0x19c40000 0x1000>, | 77 | #clock-cells = <1>; |
76 | <0x19c00000 0x1000>; | 78 | #reset-cells = <1>; |
77 | interrupts = <0 195 0x0>; | 79 | reg = <0x900000 0x4000>; |
78 | clocks = <&gcc GSBI12_UART_CLK>, <&gcc GSBI12_H_CLK>; | 80 | }; |
79 | clock-names = "core", "iface"; | 81 | |
80 | }; | 82 | gsbi12: gsbi@19c00000 { |
83 | compatible = "qcom,gsbi-v1.0.0"; | ||
84 | reg = <0x19c00000 0x100>; | ||
85 | clocks = <&gcc GSBI12_H_CLK>; | ||
86 | clock-names = "iface"; | ||
87 | #address-cells = <1>; | ||
88 | #size-cells = <1>; | ||
89 | ranges; | ||
81 | 90 | ||
82 | qcom,ssbi@500000 { | 91 | serial@19c40000 { |
83 | compatible = "qcom,ssbi"; | 92 | compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; |
84 | reg = <0x500000 0x1000>; | 93 | reg = <0x19c40000 0x1000>, |
85 | qcom,controller-type = "pmic-arbiter"; | 94 | <0x19c00000 0x1000>; |
95 | interrupts = <0 195 0x0>; | ||
96 | clocks = <&gcc GSBI12_UART_CLK>, <&gcc GSBI12_H_CLK>; | ||
97 | clock-names = "core", "iface"; | ||
98 | status = "disabled"; | ||
99 | }; | ||
100 | }; | ||
101 | |||
102 | qcom,ssbi@500000 { | ||
103 | compatible = "qcom,ssbi"; | ||
104 | reg = <0x500000 0x1000>; | ||
105 | qcom,controller-type = "pmic-arbiter"; | ||
106 | }; | ||
86 | }; | 107 | }; |
87 | }; | 108 | }; |