Skip to content

Commit e5a893a

Browse files
Bartosz Golaszewskiandersson
authored andcommitted
arm64: dts: qcom: sa8775p: add PMIC GPIO controller nodes
Add GPIO controller nodes to PMICs that have the GPIO hooked up on sa8775p-ride. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230327125316.210812-15-brgl@bgdev.pl
1 parent fa40ca0 commit e5a893a

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@
125125
status = "disabled";
126126
};
127127
};
128+
129+
pmm8654au_0_gpios: gpio@8800 {
130+
compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
131+
reg = <0x8800>;
132+
gpio-controller;
133+
gpio-ranges = <&pmm8654au_0_gpios 0 0 12>;
134+
#gpio-cells = <2>;
135+
interrupt-controller;
136+
#interrupt-cells = <2>;
137+
};
128138
};
129139

130140
pmm8654au_1: pmic@2 {
@@ -139,6 +149,16 @@
139149
interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
140150
#thermal-sensor-cells = <0>;
141151
};
152+
153+
pmm8654au_1_gpios: gpio@8800 {
154+
compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
155+
reg = <0x8800>;
156+
gpio-controller;
157+
gpio-ranges = <&pmm8654au_2_gpios 0 0 12>;
158+
#gpio-cells = <2>;
159+
interrupt-controller;
160+
#interrupt-cells = <2>;
161+
};
142162
};
143163

144164
pmm8654au_2: pmic@4 {
@@ -153,6 +173,16 @@
153173
interrupts-extended = <&spmi_bus 0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
154174
#thermal-sensor-cells = <0>;
155175
};
176+
177+
pmm8654au_2_gpios: gpio@8800 {
178+
compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
179+
reg = <0x8800>;
180+
gpio-controller;
181+
gpio-ranges = <&pmm8654au_2_gpios 0 0 12>;
182+
#gpio-cells = <2>;
183+
interrupt-controller;
184+
#interrupt-cells = <2>;
185+
};
156186
};
157187

158188
pmm8654au_3: pmic@6 {
@@ -167,5 +197,15 @@
167197
interrupts-extended = <&spmi_bus 0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
168198
#thermal-sensor-cells = <0>;
169199
};
200+
201+
pmm8654au_3_gpios: gpio@8800 {
202+
compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
203+
reg = <0x8800>;
204+
gpio-controller;
205+
gpio-ranges = <&pmm8654au_3_gpios 0 0 12>;
206+
#gpio-cells = <2>;
207+
interrupt-controller;
208+
#interrupt-cells = <2>;
209+
};
170210
};
171211
};

0 commit comments

Comments
 (0)