Message ID | 20230715091932.161507-1-davidwronek@gmail.com |
---|---|
Headers | show |
Series | Add initial support for SM7125 and Xiaomi SM7125 platform | expand |
On 15.07.2023 11:16, David Wronek wrote: > Add support for the RTC which is the same as on other PMICs and add the > resin child node to the PM6150 PON device, both disabled by default. > > Signed-off-by: David Wronek <davidwronek@gmail.com> > Tested-by: Nikita Travkin <nikita@trvn.ru> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > arch/arm64/boot/dts/qcom/pm6150.dtsi | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qcom/pm6150.dtsi > index 2e6afa296141..af51eb0646ba 100644 > --- a/arch/arm64/boot/dts/qcom/pm6150.dtsi > +++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi > @@ -53,6 +53,14 @@ pm6150_pwrkey: pwrkey { > bias-pull-up; > linux,code = <KEY_POWER>; > }; > + > + pm6150_resin: resin { > + compatible = "qcom,pm8941-resin"; > + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; > + debounce = <15625>; > + bias-pull-up; > + status = "disabled"; > + }; > }; > > pm6150_temp: temp-alarm@2400 { > @@ -88,6 +96,14 @@ pm6150_adc_tm: adc-tm@3500 { > status = "disabled"; > }; > > + pm6150_rtc: rtc@6000 { > + compatible = "qcom,pm8941-rtc"; > + reg = <0x6000>, <0x6100>; > + reg-names = "rtc", "alarm"; > + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; > + status = "disabled"; > + }; > + > pm6150_gpios: gpio@c000 { > compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; > reg = <0xc000>;
This series introduces support for the Qualcomm SM7125 SoC and the Xiaomi SM7125 platform. Signed-off-by: David Wronek <davidwronek@gmail.com> --- Changes in v2: - Allow qcom,board-id and qcom,msm-id properties - Use QCOM_SCM_VMID_MSS_MSA definition - Change initial regulator modes from LPM to HPM - Move status to the bottom of nodes - Fix up PM6150 interrupts - Move clk patch to beginning of series - Fix up copyright - Take ownership of all commits with permission - Link to v1: https://lore.kernel.org/all/20230704163848.169853-2-davidwronek@gmail.com/ Changes in v3: - Disable pm6150 rtc by default - Fix wrong pm8150l PMIC in joyeuse dts - Link to v2: https://lore.kernel.org/all/20230706124339.134272-1-davidwronek@gmail.com/ --- David Wronek (7): clk: qcom: gcc-sc7180: Fix up gcc_sdcc2_apps_clk_src dt-bindings: arm: qcom,ids: Add SoC ID for SM7125 dt-bindings: arm: qcom: Document SM7125 and xiaomi,joyeuse board soc: qcom: socinfo: Add SoC ID for SM7125 arm64: dts: qcom: pm6150: Add resin and rtc nodes arm64: dts: qcom: Add SM7125 device tree arm64: dts: qcom: Add support for the Xiaomi SM7125 platform .../devicetree/bindings/arm/qcom.yaml | 7 + arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/pm6150.dtsi | 16 + .../boot/dts/qcom/sm7125-xiaomi-joyeuse.dts | 16 + .../boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi | 423 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sm7125.dtsi | 16 + drivers/clk/qcom/gcc-sc7180.c | 1 + drivers/soc/qcom/socinfo.c | 1 + include/dt-bindings/arm/qcom,ids.h | 1 + 9 files changed, 482 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7125-xiaomi-joyeuse.dts create mode 100644 arch/arm64/boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi create mode 100644 arch/arm64/boot/dts/qcom/sm7125.dtsi