Message ID | 20240328095044.2926125-1-quic_sibis@quicinc.com |
---|---|
Headers | show |
Series | qcom: x1e80100: Enable CPUFreq | expand |
On Thu, Mar 28, 2024 at 03:20:40PM +0530, Sibi Sankar wrote: > Add devicetree binding for CPUSS Control Processor (CPUCP) mailbox > controller. > > Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com> > --- > > rfc: rfc is not a version, but a "state of the patch" tag. This should be v2. > * Use x1e80100 as the fallback for future SoCs using the cpucp-mbox > controller. [Krzysztoff/Konrad/Rob] > > .../bindings/mailbox/qcom,cpucp-mbox.yaml | 49 +++++++++++++++++++ > 1 file changed, 49 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mailbox/qcom,cpucp-mbox.yaml Reviewed-by: Rob Herring <robh@kernel.org>
On Thu, 28 Mar 2024 at 11:52, Sibi Sankar <quic_sibis@quicinc.com> wrote: > > Add the cpucp mailbox and sram nodes required by SCMI perf protocol > on X1E80100 SoCs. > > Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com> > --- > arch/arm64/boot/dts/qcom/x1e80100.dtsi | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > index 28f65296781d..4e0ec859ed61 100644 > --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi > +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > @@ -4974,6 +4974,13 @@ gic_its: msi-controller@17040000 { > }; > }; > > + cpucp_mbox: mailbox@17430000 { > + compatible = "qcom,x1e80100-cpucp-mbox"; > + reg = <0 0x17430000 0 0x10000>, <0 0x18830000 0 0x10000>; > + interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; > + #mbox-cells = <1>; > + }; > + > apps_rsc: rsc@17500000 { > compatible = "qcom,rpmh-rsc"; > reg = <0 0x17500000 0 0x10000>, > @@ -5157,6 +5164,25 @@ frame@1780d000 { > }; > }; > > + sram: sram@18b4e000 { > + compatible = "mmio-sram"; > + reg = <0x0 0x18b4e000 0x0 0x400>; > + ranges = <0x0 0x0 0x18b4e000 0x400>; > + > + #address-cells = <1>; > + #size-cells = <1>; > + > + cpu_scp_lpri0: scmi-shmem@0 { This doesn't seem to follow the schema. > + compatible = "arm,scmi-shmem"; > + reg = <0x0 0x200>; > + }; > + > + cpu_scp_lpri1: scmi-shmem@200 { > + compatible = "arm,scmi-shmem"; > + reg = <0x200 0x200>; > + }; > + }; > + > system-cache-controller@25000000 { > compatible = "qcom,x1e80100-llcc"; > reg = <0 0x25000000 0 0x200000>, > -- > 2.34.1 > >
On Thu, 28 Mar 2024 at 11:53, Sibi Sankar <quic_sibis@quicinc.com> wrote: > > Resize the GICR register region as it currently seeps into the CPU Control > Processor mailbox RX region. > > Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com> > --- > arch/arm64/boot/dts/qcom/x1e80100.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
On 4/16/24 22:00, Dmitry Baryshkov wrote: > On Thu, 28 Mar 2024 at 11:52, Sibi Sankar <quic_sibis@quicinc.com> wrote: >> >> Add the cpucp mailbox and sram nodes required by SCMI perf protocol >> on X1E80100 SoCs. >> >> Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com> >> --- >> arch/arm64/boot/dts/qcom/x1e80100.dtsi | 26 ++++++++++++++++++++++++++ >> 1 file changed, 26 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi >> index 28f65296781d..4e0ec859ed61 100644 >> --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi >> +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi >> @@ -4974,6 +4974,13 @@ gic_its: msi-controller@17040000 { >> }; >> }; >> >> + cpucp_mbox: mailbox@17430000 { >> + compatible = "qcom,x1e80100-cpucp-mbox"; >> + reg = <0 0x17430000 0 0x10000>, <0 0x18830000 0 0x10000>; >> + interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; >> + #mbox-cells = <1>; >> + }; >> + >> apps_rsc: rsc@17500000 { >> compatible = "qcom,rpmh-rsc"; >> reg = <0 0x17500000 0 0x10000>, >> @@ -5157,6 +5164,25 @@ frame@1780d000 { >> }; >> }; >> >> + sram: sram@18b4e000 { >> + compatible = "mmio-sram"; >> + reg = <0x0 0x18b4e000 0x0 0x400>; >> + ranges = <0x0 0x0 0x18b4e000 0x400>; >> + >> + #address-cells = <1>; >> + #size-cells = <1>; >> + >> + cpu_scp_lpri0: scmi-shmem@0 { > > This doesn't seem to follow the schema. ack, will rename the nodes in the next re-spin. -Sibi > >> + compatible = "arm,scmi-shmem"; >> + reg = <0x0 0x200>; >> + }; >> + >> + cpu_scp_lpri1: scmi-shmem@200 { >> + compatible = "arm,scmi-shmem"; >> + reg = <0x200 0x200>; >> + }; >> + }; >> + >> system-cache-controller@25000000 { >> compatible = "qcom,x1e80100-llcc"; >> reg = <0 0x25000000 0 0x200000>, >> -- >> 2.34.1 >> >> > >