* [PATCH v3 0/3] arm64: dts: qcom: QRB4210-RB2 board: Enable more peripherals
@ 2023-05-05 7:53 Bhupesh Sharma
2023-05-05 7:53 ` [PATCH v3 1/3] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states Bhupesh Sharma
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Bhupesh Sharma @ 2023-05-05 7:53 UTC (permalink / raw)
To: linux-arm-msm
Cc: agross, andersson, konrad.dybcio, linux-kernel, bhupesh.linux,
bhupesh.sharma, robh+dt, krzysztof.kozlowski, devicetree
Changes since v2:
-----------------
- v2 can be seen here: https://lore.kernel.org/linux-arm-msm/20230501105832.1185477-1-bhupesh.sharma@linaro.org/
- Use explicit qrb4210-rb2 .mbn files instead of sm6115 .mdt ones.
- Collected Acks and R-Bs from Konrad and Krzysztof.
Changes since v1:
-----------------
- v1 can be seen here: https://lore.kernel.org/linux-arm-msm/20230501102035.1180701-2-bhupesh.sharma@linaro.org/
- Converted the SDHC2 CD gpio fix into a separate patch as
suggested by Krzysztof.
Add the default and sleep pinctrl states for SDHC1 & 2 controllers
on QRB4210 RB2 board.
While at it also fix the Card-Detect (CD) gpio for SDHC2 which
allows the uSD card to be detected on the board.
Also enable the adsp and cdsp remoteproc nodes on QRB4210-RB2 board.
Bhupesh Sharma (3):
arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states
arm64: dts: qcom: qrb4210-rb2: Fix CD gpio for SDHC2
arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes
arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 30 +++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
--
2.38.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 1/3] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states
2023-05-05 7:53 [PATCH v3 0/3] arm64: dts: qcom: QRB4210-RB2 board: Enable more peripherals Bhupesh Sharma
@ 2023-05-05 7:53 ` Bhupesh Sharma
2023-05-05 7:53 ` [PATCH v3 2/3] arm64: dts: qcom: qrb4210-rb2: Fix CD gpio for SDHC2 Bhupesh Sharma
2023-05-05 7:53 ` [PATCH v3 3/3] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes Bhupesh Sharma
2 siblings, 0 replies; 7+ messages in thread
From: Bhupesh Sharma @ 2023-05-05 7:53 UTC (permalink / raw)
To: linux-arm-msm
Cc: agross, andersson, konrad.dybcio, linux-kernel, bhupesh.linux,
bhupesh.sharma, robh+dt, krzysztof.kozlowski, devicetree
Add the default and sleep pinctrl states for SDHC1 & 2 controllers
on QRB4210 RB2 board.
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
index dc80f0bca767..504543ad1a1b 100644
--- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
+++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
@@ -190,6 +190,10 @@ vreg_l24a_2p96: l24 {
};
&sdhc_1 {
+ pinctrl-0 = <&sdc1_state_on>;
+ pinctrl-1 = <&sdc1_state_off>;
+ pinctrl-names = "default", "sleep";
+
vmmc-supply = <&vreg_l24a_2p96>;
vqmmc-supply = <&vreg_l11a_1p8>;
no-sdio;
@@ -200,6 +204,11 @@ &sdhc_1 {
&sdhc_2 {
cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; /* card detect gpio */
+
+ pinctrl-0 = <&sdc2_state_on &sdc2_card_det_n>;
+ pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>;
+ pinctrl-names = "default", "sleep";
+
vmmc-supply = <&vreg_l22a_2p96>;
vqmmc-supply = <&vreg_l5a_2p96>;
no-sdio;
@@ -216,6 +225,13 @@ &tlmm {
<49 1>, <52 1>, <54 1>,
<56 3>, <61 2>, <64 1>,
<68 1>, <72 8>, <96 1>;
+
+ sdc2_card_det_n: sd-card-det-n-state {
+ pins = "gpio88";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
};
&uart4 {
--
2.38.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 2/3] arm64: dts: qcom: qrb4210-rb2: Fix CD gpio for SDHC2
2023-05-05 7:53 [PATCH v3 0/3] arm64: dts: qcom: QRB4210-RB2 board: Enable more peripherals Bhupesh Sharma
2023-05-05 7:53 ` [PATCH v3 1/3] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states Bhupesh Sharma
@ 2023-05-05 7:53 ` Bhupesh Sharma
2023-05-05 9:50 ` Dmitry Baryshkov
2023-05-05 7:53 ` [PATCH v3 3/3] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes Bhupesh Sharma
2 siblings, 1 reply; 7+ messages in thread
From: Bhupesh Sharma @ 2023-05-05 7:53 UTC (permalink / raw)
To: linux-arm-msm
Cc: agross, andersson, konrad.dybcio, linux-kernel, bhupesh.linux,
bhupesh.sharma, robh+dt, krzysztof.kozlowski, devicetree
Card-Detect (CD) gpio for SDHC2 is an active GPIO line. Fix the same.
This allows the uSD card to be properly detected on the board.
Fixes: 8d58a8c0d930 ("arm64: dts: qcom: Add base qrb4210-rb2 board dts")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
index 504543ad1a1b..abea44fd369d 100644
--- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
+++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
@@ -203,7 +203,7 @@ &sdhc_1 {
};
&sdhc_2 {
- cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; /* card detect gpio */
+ cd-gpios = <&tlmm 88 GPIO_ACTIVE_LOW>; /* card detect gpio */
pinctrl-0 = <&sdc2_state_on &sdc2_card_det_n>;
pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>;
--
2.38.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 3/3] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes
2023-05-05 7:53 [PATCH v3 0/3] arm64: dts: qcom: QRB4210-RB2 board: Enable more peripherals Bhupesh Sharma
2023-05-05 7:53 ` [PATCH v3 1/3] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states Bhupesh Sharma
2023-05-05 7:53 ` [PATCH v3 2/3] arm64: dts: qcom: qrb4210-rb2: Fix CD gpio for SDHC2 Bhupesh Sharma
@ 2023-05-05 7:53 ` Bhupesh Sharma
2023-05-05 9:15 ` Dmitry Baryshkov
2 siblings, 1 reply; 7+ messages in thread
From: Bhupesh Sharma @ 2023-05-05 7:53 UTC (permalink / raw)
To: linux-arm-msm
Cc: agross, andersson, konrad.dybcio, linux-kernel, bhupesh.linux,
bhupesh.sharma, robh+dt, krzysztof.kozlowski, devicetree
Enable the aDSP and cDSP remoteproc nodes on Qualcomm QRB4210 RB2 board.
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
index abea44fd369d..3e8ace0ceebc 100644
--- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
+++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
@@ -34,6 +34,18 @@ &qupv3_id_0 {
status = "okay";
};
+&remoteproc_adsp {
+ firmware-name = "qcom/qrb4210-rb2/adsp.mbn";
+
+ status = "okay";
+};
+
+&remoteproc_cdsp {
+ firmware-name = "qcom/qrb4210-rb2/cdsp.mbn";
+
+ status = "okay";
+};
+
&rpm_requests {
regulators {
compatible = "qcom,rpm-pm6125-regulators";
--
2.38.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes
2023-05-05 7:53 ` [PATCH v3 3/3] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes Bhupesh Sharma
@ 2023-05-05 9:15 ` Dmitry Baryshkov
2023-05-05 10:12 ` Bhupesh Sharma
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2023-05-05 9:15 UTC (permalink / raw)
To: Bhupesh Sharma
Cc: linux-arm-msm, agross, andersson, konrad.dybcio, linux-kernel,
bhupesh.linux, robh+dt, krzysztof.kozlowski, devicetree
On Fri, 5 May 2023 at 10:58, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote:
>
> Enable the aDSP and cDSP remoteproc nodes on Qualcomm QRB4210 RB2 board.
>
> Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
> index abea44fd369d..3e8ace0ceebc 100644
> --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
> +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
> @@ -34,6 +34,18 @@ &qupv3_id_0 {
> status = "okay";
> };
>
> +&remoteproc_adsp {
> + firmware-name = "qcom/qrb4210-rb2/adsp.mbn";
Please follow the established practice of firmware names. As the
firmware is not signed by the device vendor and is generic, this
should go to "qcom/qrb4210/adsp.mbn". Same applies to the rest of
firmware paths.
> +
> + status = "okay";
> +};
> +
> +&remoteproc_cdsp {
> + firmware-name = "qcom/qrb4210-rb2/cdsp.mbn";
> +
> + status = "okay";
> +};
> +
> &rpm_requests {
> regulators {
> compatible = "qcom,rpm-pm6125-regulators";
> --
> 2.38.1
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 2/3] arm64: dts: qcom: qrb4210-rb2: Fix CD gpio for SDHC2
2023-05-05 7:53 ` [PATCH v3 2/3] arm64: dts: qcom: qrb4210-rb2: Fix CD gpio for SDHC2 Bhupesh Sharma
@ 2023-05-05 9:50 ` Dmitry Baryshkov
0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2023-05-05 9:50 UTC (permalink / raw)
To: Bhupesh Sharma, linux-arm-msm
Cc: agross, andersson, konrad.dybcio, linux-kernel, bhupesh.linux,
robh+dt, krzysztof.kozlowski, devicetree
On 05/05/2023 10:53, Bhupesh Sharma wrote:
> Card-Detect (CD) gpio for SDHC2 is an active GPIO line. Fix the same.
> This allows the uSD card to be properly detected on the board.
>
> Fixes: 8d58a8c0d930 ("arm64: dts: qcom: Add base qrb4210-rb2 board dts")
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes
2023-05-05 9:15 ` Dmitry Baryshkov
@ 2023-05-05 10:12 ` Bhupesh Sharma
0 siblings, 0 replies; 7+ messages in thread
From: Bhupesh Sharma @ 2023-05-05 10:12 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: linux-arm-msm, agross, andersson, konrad.dybcio, linux-kernel,
bhupesh.linux, robh+dt, krzysztof.kozlowski, devicetree
On Fri, 5 May 2023 at 14:45, Dmitry Baryshkov
<dmitry.baryshkov@linaro.org> wrote:
>
> On Fri, 5 May 2023 at 10:58, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote:
> >
> > Enable the aDSP and cDSP remoteproc nodes on Qualcomm QRB4210 RB2 board.
> >
> > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
> > ---
> > arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 12 ++++++++++++
> > 1 file changed, 12 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
> > index abea44fd369d..3e8ace0ceebc 100644
> > --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
> > +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
> > @@ -34,6 +34,18 @@ &qupv3_id_0 {
> > status = "okay";
> > };
> >
> > +&remoteproc_adsp {
> > + firmware-name = "qcom/qrb4210-rb2/adsp.mbn";
>
> Please follow the established practice of firmware names. As the
> firmware is not signed by the device vendor and is generic, this
> should go to "qcom/qrb4210/adsp.mbn". Same applies to the rest of
> firmware paths.
I think this minor name-change can be done while applying the patch
and should not require a new version.
@Bjorn Andersson , please let me know if you think otherwise and want
me to send a new one.
Thanks,
Bhupesh
> > +
> > + status = "okay";
> > +};
> > +
> > +&remoteproc_cdsp {
> > + firmware-name = "qcom/qrb4210-rb2/cdsp.mbn";
> > +
> > + status = "okay";
> > +};
> > +
> > &rpm_requests {
> > regulators {
> > compatible = "qcom,rpm-pm6125-regulators";
> > --
> > 2.38.1
> >
>
>
> --
> With best wishes
> Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-05-05 10:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-05 7:53 [PATCH v3 0/3] arm64: dts: qcom: QRB4210-RB2 board: Enable more peripherals Bhupesh Sharma
2023-05-05 7:53 ` [PATCH v3 1/3] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states Bhupesh Sharma
2023-05-05 7:53 ` [PATCH v3 2/3] arm64: dts: qcom: qrb4210-rb2: Fix CD gpio for SDHC2 Bhupesh Sharma
2023-05-05 9:50 ` Dmitry Baryshkov
2023-05-05 7:53 ` [PATCH v3 3/3] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes Bhupesh Sharma
2023-05-05 9:15 ` Dmitry Baryshkov
2023-05-05 10:12 ` Bhupesh Sharma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).