Message ID | 20230314183043.619997-1-brgl@bgdev.pl |
---|---|
Headers | show |
Series | arm64: dts: qcom: sa8775p: add basic PMIC support | expand |
On 14/03/2023 19:30, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Add a compatible for the Power Domain Controller on SA8775p platforms. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: Marc Zyngier <maz@kernel.org> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On Tue, Mar 14, 2023 at 9:25 PM Konrad Dybcio <konrad.dybcio@linaro.org> wrote: > > > > On 14.03.2023 19:30, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > Add the PON node to PMIC #0 for sa8775p platforms. > > > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > index 77e2515a7ab9..5d73212fbd16 100644 > > --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > @@ -12,6 +12,13 @@ pmk8775_0: pmic@0 { > > reg = <0x0 SPMI_USID>; > > #address-cells = <1>; > > #size-cells = <0>; > > + > > + pmk8775_0_pon: pon@1200 { > > + compatible = "qcom,pmk8350-pon"; > > + reg = <0x1200>, <0x800>; > reg-names = "hlos", "pbs" > > Also, are you sure hlos shouldn't be @1300? > Nope, that's the right one here. Bart > Konrad > > + mode-recovery = <0x1>; > > + mode-bootloader = <0x2>; > > + }; > > }; > > > > pmk8775_1: pmic@2 {
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> This adds support for a number of PMIC functionalities on sa8775p. The PMIC used on the reference board is pm8654au which is another variant of the SPMI PMIC from Qualcomm. This series doesn't yet add regulators as these will be added separately together with upcoming users (UFS, USB, etc.). The RTC doesn't allow setting time and needs to be used in conjunction with SDAM the support for which will also be added separately. Bartosz Golaszewski (14): dt-bindings: interrupt-controller: qcom-pdc: add compatible for sa8775p arm64: dts: qcom: sa8775p: add the pdc node arm64: dts: qcom: sa8775p: add the spmi node dt-bindings: mfd: qcom,spmi-pmic: add compatible for pmm8654au arm64: dts: qcom: sa8775p: add support for the on-board PMICs arm64: dts: qcom: sa8775p-ride: enable PMIC support arm64: dts: qcom: sa8775p: add the Power On device node arm64: dts: qcom: sa8775p: pmic: add the power key arm64: dts: qcom: sa8775p-ride: enable the power key arm64: dts: qcom: sa8775p: pmic: add support for the pmm8654 RESIN input arm64: dts: qcom: sa8775p: pmic: add thermal zones dt-bindings: pinctrl: qcom,pmic-gpio: add compatible for pmm8654au-gpio pinctrl: qcom: spmi-gpio: add support for pmm8654au-gpio arm64: dts: qcom: sa8775p: add PMIC GPIO controller nodes .../interrupt-controller/qcom,pdc.yaml | 1 + .../bindings/mfd/qcom,spmi-pmic.yaml | 1 + .../bindings/pinctrl/qcom,pmic-gpio.yaml | 2 + arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 136 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 5 + arch/arm64/boot/dts/qcom/sa8775p.dtsi | 59 ++++++++ drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 + 7 files changed, 205 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi