Enable pwm support for IPQ5332 & IPQ9574 SoCs
Subsystems (5)
cover Enable pwm support for IPQ5332 & IPQ9574 SoCs
Enable pwm support for IPQ5332 & IPQ9574 SoCs and document the pwm compatibles.
While at it, use qcom,ipq6018-pwm as the fallback compatible and extend the simple-mfd support for ipq5332 & ipq9574 targets.
This series depends on the below series which adds support for the PWM driver on IPQ targets:
https://lore.kernel.org/linux-arm-msm/[email protected]/
Devi Priya (4):
dt-bindings: pwm: Document the pwm compatible for ipq5332 & ipq9574
dt-bindings: mfd: qcom,tcsr: Extend simple-mfd & pwm support for IPQ
targets
arm64: dts: qcom: ipq9574: Add pwm support
arm64: dts: qcom: ipq5332: Add pwm support
.../devicetree/bindings/mfd/qcom,tcsr.yaml | 9 ++++++--- .../devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml | 9 ++++++++- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 15 ++++++++++++++- arch/arm64/boot/dts/qcom/ipq9574-rdp418.dts | 12 ++++++++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 15 ++++++++++++++- 5 files changed, 54 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/4 dt-bindings: pwm: Document the pwm compatible for ipq5332 & ipq9574
Use ipq6018 as the fallback for ipq5332 & ipq9574 and document its compatibles.
--- .../devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml +8 -1
@@ -11,7 +11,14 @@ maintainers: properties: compatible: - const: qcom,ipq6018-pwm + oneOf: + - items: + - enum: + - qcom,ipq5332-pwm + - qcom,ipq9574-pwm + - const: qcom,ipq6018-pwm + - enum: + - qcom,ipq6018-pwm reg: description: Offset of PWM register in the TCSR block.
Signature · 1 line
2.34.1
Re: [PATCH 1/4] dt-bindings: pwm: Document the pwm compatible for ipq5332 & ipq9574
Quoted 7 lines · Devi Priya
Use ipq6018 as the fallback for ipq5332 & ipq9574 and document its compatibles.
Signed-off-by Devi Priya <[email protected]>--- .../devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
Best regards,
Krzysztof
PATCH 2/4 dt-bindings: mfd: qcom,tcsr: Extend simple-mfd & pwm support for IPQ targets
In reply to Devi PriyaExtend simple-mfd and pwm support for IPQ5332 & IPQ9574 SoCs.
--- Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml +6 -3
@@ -33,10 +33,8 @@ properties: - qcom,sm8450-tcsr - qcom,tcsr-apq8064 - qcom,tcsr-apq8084 - - qcom,tcsr-ipq5332 - qcom,tcsr-ipq8064 - qcom,tcsr-ipq8074 - - qcom,tcsr-ipq9574 - qcom,tcsr-mdm9615 - qcom,tcsr-msm8226 - qcom,tcsr-msm8660
@@ -47,7 +45,10 @@ properties: - qcom,tcsr-msm8996 - const: syscon - items: - - const: qcom,tcsr-ipq6018 + - enum: + - qcom,tcsr-ipq5332 + - qcom,tcsr-ipq6018 + - qcom,tcsr-ipq9574 - const: syscon - const: simple-mfd
@@ -78,7 +79,9 @@ allOf: compatible: contains: enum: + - qcom,tcsr-ipq5332 - qcom,tcsr-ipq6018 + - qcom,tcsr-ipq9574 then: patternProperties: "pwm@[a-f0-9]+$": false
Signature · 1 line
2.34.1
Re: [PATCH 2/4] dt-bindings: mfd: qcom,tcsr: Extend simple-mfd & pwm support for IPQ targets
Quoted 4 lines · Devi Priya
Extend simple-mfd and pwm support for IPQ5332 & IPQ9574 SoCs.
Signed-off-by Devi Priya <[email protected]>---
Best regards,
Krzysztof
Re: (subset) [PATCH 2/4] dt-bindings: mfd: qcom,tcsr: Extend simple-mfd & pwm support for IPQ targets
In reply to Devi PriyaQuoted 3 lines · Devi Priya
Extend simple-mfd and pwm support for IPQ5332 & IPQ9574 SoCs.
Applied, thanks!
[2/4] dt-bindings: mfd: qcom,tcsr: Extend simple-mfd & pwm support for IPQ targets
commit: abbb729360a50ce949de94a983cb56b15b82018e
--
Lee Jones [李琼斯]
Lee Jones
maintainerRe: (subset) [PATCH 2/4] dt-bindings: mfd: qcom,tcsr: Extend simple-mfd & pwm support for IPQ targets
Quoted 9 lines · Lee Jones
Quoted 3 lines · Devi Priya
Extend simple-mfd and pwm support for IPQ5332 & IPQ9574 SoCs.
Applied, thanks!
[2/4] dt-bindings: mfd: qcom,tcsr: Extend simple-mfd & pwm support for IPQ targets
commit: abbb729360a50ce949de94a983cb56b15b82018e
Also unapplied, since it seems to depend on:
dt-bindings: mfd: qcom,tcsr: Add simple-mfd support for IPQ6018
Signature · 1 line
Lee Jones [李琼斯]
PATCH 3/4 arm64: dts: qcom: ipq9574: Add pwm support
In reply to Devi PriyaThe PWM is in the TCSR area. Make tcsr "simple-mfd" compatible and add pwm as a child of tcsr.
Also, Enable pwm support in RDP418 of IPQ9574 SoC.
--- arch/arm64/boot/dts/qcom/ipq9574-rdp418.dts | 12 ++++++++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 15 ++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/ipq9574-rdp418.dts +12 -0
@@ -43,6 +43,12 @@ &blsp1_uart2 { status = "okay"; }; +&pwm { + pinctrl-0 = <&pwm_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + &rpm_requests { regulators { compatible = "qcom,rpm-mp5496-regulators";
@@ -79,6 +85,12 @@ &sleep_clk { }; &tlmm { + pwm_pins: pwm-state { + pins = "gpio57"; + function = "pwm"; + drive-strength = <8>; + }; + sdc_default_state: sdc-default-state { clk-pins { pins = "gpio5";
arch/arm64/boot/dts/qcom/ipq9574.dtsi +14 -1
@@ -296,8 +296,21 @@ tcsr_mutex: hwlock@1905000 { }; tcsr: syscon@1937000 { - compatible = "qcom,tcsr-ipq9574", "syscon"; + compatible = "qcom,tcsr-ipq9574", "syscon", "simple-mfd"; reg = <0x01937000 0x21000>; + ranges = <0x0 0x01937000 0x21000>; + #address-cells = <1>; + #size-cells = <1>; + + pwm: pwm@a010 { + compatible = "qcom,ipq9574-pwm", "qcom,ipq6018-pwm"; + reg = <0xa010 0x20>; + clocks = <&gcc GCC_ADSS_PWM_CLK>; + assigned-clocks = <&gcc GCC_ADSS_PWM_CLK>; + assigned-clock-rates = <100000000>; + #pwm-cells = <2>; + status = "disabled"; + }; }; sdhc_1: mmc@7804000 {
Signature · 1 line
2.34.1
Re: [PATCH 3/4] arm64: dts: qcom: ipq9574: Add pwm support
Quoted 6 lines · Devi Priya
The PWM is in the TCSR area. Make tcsr "simple-mfd" compatible and add pwm as a child of tcsr.
Also, Enable pwm support in RDP418 of IPQ9574 SoC.Signed-off-by Devi Priya <[email protected]>---
Best regards,
Krzysztof
PATCH 4/4 arm64: dts: qcom: ipq5332: Add pwm support
In reply to Devi PriyaAdd PWM support in ipq5332. The PWM is in the TCSR area. Make tcsr "simple-mfd" compatible, and add pwm as a child of &tcsr.
--- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/ipq5332.dtsi +14 -1
@@ -210,8 +210,21 @@ tcsr_mutex: hwlock@1905000 { }; tcsr: syscon@1937000 { - compatible = "qcom,tcsr-ipq5332", "syscon"; + compatible = "qcom,tcsr-ipq5332", "syscon", "simple-mfd"; reg = <0x01937000 0x21000>; + ranges = <0x0 0x01937000 0x21000>; + #address-cells = <1>; + #size-cells = <1>; + + pwm: pwm@a010 { + compatible = "qcom,ipq5332-pwm", "qcom,ipq6018-pwm"; + reg = <0xa010 0x20>; + clocks = <&gcc GCC_ADSS_PWM_CLK>; + assigned-clocks = <&gcc GCC_ADSS_PWM_CLK>; + assigned-clock-rates = <100000000>; + #pwm-cells = <2>; + status = "disabled"; + }; }; sdhc: mmc@7804000 {
Signature · 1 line
2.34.1
Re: [PATCH 4/4] arm64: dts: qcom: ipq5332: Add pwm support
Quoted 7 lines · Devi Priya
Add PWM support in ipq5332. The PWM is in the TCSR area. Make tcsr "simple-mfd" compatible, and add pwm as a child of &tcsr.
Signed-off-by Devi Priya <[email protected]>--- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
Best regards,
Krzysztof
Quoted 8 lines · Devi Priya
Enable pwm support for IPQ5332 & IPQ9574 SoCs and document the pwm compatibles.
While at it, use qcom,ipq6018-pwm as the fallback compatible and extend the simple-mfd support for ipq5332 & ipq9574 targets.This series depends on the below series which adds support for the PWM driver on IPQ targets:
https://lore.kernel.org/linux-arm-msm/[email protected]/
Given this dependency, I suggest you add the patches from this series to the next revision of the IPQ base series.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Bjorn Andersson
maintainerQuoted 8 lines · Devi Priya
Enable pwm support for IPQ5332 & IPQ9574 SoCs and document the pwm compatibles.
While at it, use qcom,ipq6018-pwm as the fallback compatible and extend the simple-mfd support for ipq5332 & ipq9574 targets.This series depends on the below series which adds support for the PWM driver on IPQ targets:
https://lore.kernel.org/linux-arm-msm/[email protected]/
I've kept this series in my inbox, hoping that you would work out the DT bindings with the maintainers. Dropping them now, please resend the DTS patches once the bindings are in order.
Thanks,
Bjorn
Quoted 18 lines
Devi Priya (4):
dt-bindings: pwm: Document the pwm compatible for ipq5332 & ipq9574
dt-bindings: mfd: qcom,tcsr: Extend simple-mfd & pwm support for IPQ
targets
arm64: dts: qcom: ipq9574: Add pwm support
arm64: dts: qcom: ipq5332: Add pwm support.../devicetree/bindings/mfd/qcom,tcsr.yaml | 9 ++++++--- .../devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml | 9 ++++++++- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 15 ++++++++++++++- arch/arm64/boot/dts/qcom/ipq9574-rdp418.dts | 12 ++++++++++++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 15 ++++++++++++++- 5 files changed, 54 insertions(+), 6 deletions(-)Signature · 1 line
2.34.1