Message ID | 20191106065017.22144-7-rnayak@codeaurora.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Add device tree support for sc7180 | expand |
Quoting Rajendra Nayak (2019-11-05 22:50:09) > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > index 61250560c7ef..98c8ab7d613c 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > @@ -387,6 +388,24 @@ > status = "disabled"; > }; > }; > + > + apps_rsc: rsc@18200000 { The node name is non-standard. This has been a problem since sdm845 though so it would be nice if we can invent some new name for this that is standard at some point in the future. > + label = "apps_rsc"; Can we remove this property? The value seems minimal given that we can use the dev_name() and get the address in there instead of using a label.
Quoting Rajendra Nayak (2019-11-05 22:50:09) > From: Maulik Shah <mkshah@codeaurora.org> > > Add device bindings for the application processor's rsc. The rsc > contains the TCS that are used for communicating with the hardened > resource accelerators on Qualcomm Technologies, Inc. (QTI) SoCs. > > Signed-off-by: Maulik Shah <mkshah@codeaurora.org> > Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org> > --- Reviewed-by: Stephen Boyd <swboyd@chromium.org>
On 11/7/2019 11:23 PM, Stephen Boyd wrote: > Quoting Rajendra Nayak (2019-11-05 22:50:09) >> diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi >> index 61250560c7ef..98c8ab7d613c 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi >> @@ -387,6 +388,24 @@ >> status = "disabled"; >> }; >> }; >> + >> + apps_rsc: rsc@18200000 { > > The node name is non-standard. This has been a problem since sdm845 > though so it would be nice if we can invent some new name for this that > is standard at some point in the future. > >> + label = "apps_rsc"; > > Can we remove this property? The value seems minimal given that we can > use the dev_name() and get the address in there instead of using a label. Sure, i'll remove it.
diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 61250560c7ef..98c8ab7d613c 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -7,6 +7,7 @@ #include <dt-bindings/clock/qcom,gcc-sc7180.h> #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/qcom,rpmh-rsc.h> / { interrupt-parent = <&intc>; @@ -387,6 +388,24 @@ status = "disabled"; }; }; + + apps_rsc: rsc@18200000 { + label = "apps_rsc"; + compatible = "qcom,rpmh-rsc"; + reg = <0 0x18200000 0 0x10000>, + <0 0x18210000 0 0x10000>, + <0 0x18220000 0 0x10000>; + reg-names = "drv-0", "drv-1", "drv-2"; + interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; + qcom,tcs-offset = <0xd00>; + qcom,drv-id = <2>; + qcom,tcs-config = <ACTIVE_TCS 2>, + <SLEEP_TCS 3>, + <WAKE_TCS 3>, + <CONTROL_TCS 1>; + }; }; timer {