aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-06-24 17:03:54 -0400
committerKumar Gala <galak@codeaurora.org>2014-09-11 12:12:56 -0400
commit94ae991d63805b39baffacee0e8f25ddce0e83bc (patch)
tree90eec2c8a83fd6341f5b2a2fcfd1e7f073ae1a92 /arch/arm/boot/dts
parentfa410c099d9688ca06a9e46df8b2edf183487935 (diff)
ARM: dts: msm: Add 8058 PMIC to ssbi bus
Add the PMIC and the sub-devices that are currently supported in the kernel to the DT. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Kumar Gala <galak@codeaurora.org>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r--arch/arm/boot/dts/qcom-msm8660-surf.dts30
-rw-r--r--arch/arm/boot/dts/qcom-msm8660.dtsi42
2 files changed, 72 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom-msm8660-surf.dts b/arch/arm/boot/dts/qcom-msm8660-surf.dts
index 45180adfadf1..ff7c53f58a06 100644
--- a/arch/arm/boot/dts/qcom-msm8660-surf.dts
+++ b/arch/arm/boot/dts/qcom-msm8660-surf.dts
@@ -1,3 +1,5 @@
1#include <dt-bindings/input/input.h>
2
1#include "qcom-msm8660.dtsi" 3#include "qcom-msm8660.dtsi"
2 4
3/ { 5/ {
@@ -14,3 +16,31 @@
14 }; 16 };
15 }; 17 };
16}; 18};
19
20&pmicintc {
21 keypad@148 {
22 linux,keymap = <
23 MATRIX_KEY(0, 0, KEY_FN_F1)
24 MATRIX_KEY(0, 1, KEY_UP)
25 MATRIX_KEY(0, 2, KEY_LEFT)
26 MATRIX_KEY(0, 3, KEY_VOLUMEUP)
27 MATRIX_KEY(1, 0, KEY_FN_F2)
28 MATRIX_KEY(1, 1, KEY_RIGHT)
29 MATRIX_KEY(1, 2, KEY_DOWN)
30 MATRIX_KEY(1, 3, KEY_VOLUMEDOWN)
31 MATRIX_KEY(2, 3, KEY_ENTER)
32 MATRIX_KEY(4, 0, KEY_CAMERA_FOCUS)
33 MATRIX_KEY(4, 1, KEY_UP)
34 MATRIX_KEY(4, 2, KEY_LEFT)
35 MATRIX_KEY(4, 3, KEY_HOME)
36 MATRIX_KEY(4, 4, KEY_FN_F3)
37 MATRIX_KEY(5, 0, KEY_CAMERA)
38 MATRIX_KEY(5, 1, KEY_RIGHT)
39 MATRIX_KEY(5, 2, KEY_DOWN)
40 MATRIX_KEY(5, 3, KEY_BACK)
41 MATRIX_KEY(5, 4, KEY_MENU)
42 >;
43 keypad,num-rows = <6>;
44 keypad,num-columns = <5>;
45 };
46};
diff --git a/arch/arm/boot/dts/qcom-msm8660.dtsi b/arch/arm/boot/dts/qcom-msm8660.dtsi
index 53837aaa2f72..a3fd26b8139f 100644
--- a/arch/arm/boot/dts/qcom-msm8660.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8660.dtsi
@@ -103,6 +103,48 @@
103 compatible = "qcom,ssbi"; 103 compatible = "qcom,ssbi";
104 reg = <0x500000 0x1000>; 104 reg = <0x500000 0x1000>;
105 qcom,controller-type = "pmic-arbiter"; 105 qcom,controller-type = "pmic-arbiter";
106
107 pmicintc: pmic@0 {
108 compatible = "qcom,pm8058";
109 interrupt-parent = <&msmgpio>;
110 interrupts = <88 8>;
111 #interrupt-cells = <2>;
112 interrupt-controller;
113 #address-cells = <1>;
114 #size-cells = <0>;
115
116 pwrkey@1c {
117 compatible = "qcom,pm8058-pwrkey";
118 reg = <0x1c>;
119 interrupt-parent = <&pmicintc>;
120 interrupts = <50 1>, <51 1>;
121 debounce = <15625>;
122 pull-up;
123 };
124
125 keypad@148 {
126 compatible = "qcom,pm8058-keypad";
127 reg = <0x148>;
128 interrupt-parent = <&pmicintc>;
129 interrupts = <74 1>, <75 1>;
130 debounce = <15>;
131 scan-delay = <32>;
132 row-hold = <91500>;
133 };
134
135 rtc@11d {
136 compatible = "qcom,pm8058-rtc";
137 interrupt-parent = <&pmicintc>;
138 interrupts = <39 1>;
139 reg = <0x11d>;
140 allow-set-time;
141 };
142
143 vibrator@4a {
144 compatible = "qcom,pm8058-vib";
145 reg = <0x4a>;
146 };
147 };
106 }; 148 };
107 }; 149 };
108}; 150};