Skip to content

Commit 5e24617

Browse files
committed
Merge tag 'qcom-arm64-fixes-for-6.6' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes
Qualcomm ARM64 DeviceTree fixes for v6.6 This fixes an error with an incorrect gpio-ranges preventing the PMIC GPIO instances from being registered on SA877P, and fixes a regression from a refactoring of the top-level clocks node that caused divclocks to no longer probe on a few of the MSM8996 devices. * tag 'qcom-arm64-fixes-for-6.6' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: arm64: dts: qcom: msm8996-xiaomi: fix missing clock populate arm64: dts: qcom: apq8096-db820c: fix missing clock populate arm64: dts: qcom: sa8775p: correct PMIC GPIO label in gpio-ranges Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 36fb6a3 + 725f593 commit 5e24617

File tree

4 files changed

+39
-45
lines changed

4 files changed

+39
-45
lines changed

arch/arm64/boot/dts/qcom/apq8096-db820c.dts

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,23 @@
6262
stdout-path = "serial0:115200n8";
6363
};
6464

65-
clocks {
66-
divclk4: divclk4 {
67-
compatible = "fixed-clock";
68-
#clock-cells = <0>;
69-
clock-frequency = <32768>;
70-
clock-output-names = "divclk4";
65+
div1_mclk: divclk1 {
66+
compatible = "gpio-gate-clock";
67+
pinctrl-0 = <&audio_mclk>;
68+
pinctrl-names = "default";
69+
clocks = <&rpmcc RPM_SMD_DIV_CLK1>;
70+
#clock-cells = <0>;
71+
enable-gpios = <&pm8994_gpios 15 0>;
72+
};
7173

72-
pinctrl-names = "default";
73-
pinctrl-0 = <&divclk4_pin_a>;
74-
};
74+
divclk4: divclk4 {
75+
compatible = "fixed-clock";
76+
#clock-cells = <0>;
77+
clock-frequency = <32768>;
78+
clock-output-names = "divclk4";
7579

76-
div1_mclk: divclk1 {
77-
compatible = "gpio-gate-clock";
78-
pinctrl-0 = <&audio_mclk>;
79-
pinctrl-names = "default";
80-
clocks = <&rpmcc RPM_SMD_DIV_CLK1>;
81-
#clock-cells = <0>;
82-
enable-gpios = <&pm8994_gpios 15 0>;
83-
};
80+
pinctrl-names = "default";
81+
pinctrl-0 = <&divclk4_pin_a>;
8482
};
8583

8684
gpio-keys {

arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,24 @@
1111
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
1212

1313
/ {
14-
clocks {
15-
divclk1_cdc: divclk1 {
16-
compatible = "gpio-gate-clock";
17-
clocks = <&rpmcc RPM_SMD_DIV_CLK1>;
18-
#clock-cells = <0>;
19-
enable-gpios = <&pm8994_gpios 15 GPIO_ACTIVE_HIGH>;
14+
divclk1_cdc: divclk1 {
15+
compatible = "gpio-gate-clock";
16+
clocks = <&rpmcc RPM_SMD_DIV_CLK1>;
17+
#clock-cells = <0>;
18+
enable-gpios = <&pm8994_gpios 15 GPIO_ACTIVE_HIGH>;
2019

21-
pinctrl-names = "default";
22-
pinctrl-0 = <&divclk1_default>;
23-
};
20+
pinctrl-names = "default";
21+
pinctrl-0 = <&divclk1_default>;
22+
};
2423

25-
divclk4: divclk4 {
26-
compatible = "fixed-clock";
27-
#clock-cells = <0>;
28-
clock-frequency = <32768>;
29-
clock-output-names = "divclk4";
24+
divclk4: divclk4 {
25+
compatible = "fixed-clock";
26+
#clock-cells = <0>;
27+
clock-frequency = <32768>;
28+
clock-output-names = "divclk4";
3029

31-
pinctrl-names = "default";
32-
pinctrl-0 = <&divclk4_pin_a>;
33-
};
30+
pinctrl-names = "default";
31+
pinctrl-0 = <&divclk4_pin_a>;
3432
};
3533

3634
gpio-keys {

arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,14 @@
2020
qcom,pmic-id = <0x20009 0x2000a 0x00 0x00>;
2121
qcom,board-id = <31 0>;
2222

23-
clocks {
24-
divclk2_haptics: divclk2 {
25-
compatible = "fixed-clock";
26-
#clock-cells = <0>;
27-
clock-frequency = <32768>;
28-
clock-output-names = "divclk2";
29-
30-
pinctrl-names = "default";
31-
pinctrl-0 = <&divclk2_pin_a>;
32-
};
23+
divclk2_haptics: divclk2 {
24+
compatible = "fixed-clock";
25+
#clock-cells = <0>;
26+
clock-frequency = <32768>;
27+
clock-output-names = "divclk2";
28+
29+
pinctrl-names = "default";
30+
pinctrl-0 = <&divclk2_pin_a>;
3331
};
3432
};
3533

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
174174
reg = <0x8800>;
175175
gpio-controller;
176-
gpio-ranges = <&pmm8654au_2_gpios 0 0 12>;
176+
gpio-ranges = <&pmm8654au_1_gpios 0 0 12>;
177177
#gpio-cells = <2>;
178178
interrupt-controller;
179179
#interrupt-cells = <2>;

0 commit comments

Comments
 (0)