[PATCH] arm64: dts: qcom: sdm845-tama: Set serial indices and stdout-path

Konrad Dybcio posted 1 patch 2 years, 7 months ago
arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
[PATCH] arm64: dts: qcom: sdm845-tama: Set serial indices and stdout-path
Posted by Konrad Dybcio 2 years, 7 months ago
UART6 is used for debug (routed via uSD pins) and UART9 is connected
to the bluetooth chip.

Set indexed aliases to make the GENI UART driver happy and route serial
traffic through the debug uart by default.

Fixes: 30a7f99befc6 ("arm64: dts: qcom: Add support for SONY Xperia XZ2 / XZ2C / XZ3 (Tama platform)")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index 3bc187a066ae..7ee61b20452e 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -15,6 +15,15 @@ / {
 	qcom,msm-id = <321 0x20001>; /* SDM845 v2.1 */
 	qcom,board-id = <8 0>;
 
+	aliases {
+		serial0 = &uart6;
+		serial1 = &uart9;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
 	gpio-keys {
 		compatible = "gpio-keys";
 

---
base-commit: 53cdf865f90ba922a854c65ed05b519f9d728424
change-id: 20230627-topic-tama_uart-bacfeac1d0e9

Best regards,
-- 
Konrad Dybcio <konrad.dybcio@linaro.org>
Re: [PATCH] arm64: dts: qcom: sdm845-tama: Set serial indices and stdout-path
Posted by Bjorn Andersson 2 years, 7 months ago
On Tue, 27 Jun 2023 19:27:50 +0200, Konrad Dybcio wrote:
> UART6 is used for debug (routed via uSD pins) and UART9 is connected
> to the bluetooth chip.
> 
> Set indexed aliases to make the GENI UART driver happy and route serial
> traffic through the debug uart by default.
> 
> 
> [...]

Applied, thanks!

[1/1] arm64: dts: qcom: sdm845-tama: Set serial indices and stdout-path
      commit: 9acc60c3e2d449243e4c2126e3b56f1c4f7fd3bc

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>
Re: [PATCH] arm64: dts: qcom: sdm845-tama: Set serial indices and stdout-path
Posted by Marijn Suijten 2 years, 7 months ago
On 2023-06-27 19:27:50, Konrad Dybcio wrote:
> UART6 is used for debug (routed via uSD pins) and UART9 is connected
> to the bluetooth chip.
> 
> Set indexed aliases to make the GENI UART driver happy and route serial
> traffic through the debug uart by default.
> 
> Fixes: 30a7f99befc6 ("arm64: dts: qcom: Add support for SONY Xperia XZ2 / XZ2C / XZ3 (Tama platform)")
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>

> ---
>  arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
> index 3bc187a066ae..7ee61b20452e 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
> @@ -15,6 +15,15 @@ / {
>  	qcom,msm-id = <321 0x20001>; /* SDM845 v2.1 */
>  	qcom,board-id = <8 0>;
>  
> +	aliases {
> +		serial0 = &uart6;
> +		serial1 = &uart9;
> +	};
> +
> +	chosen {
> +		stdout-path = "serial0:115200n8";
> +	};
> +
>  	gpio-keys {
>  		compatible = "gpio-keys";
>  
> 
> ---
> base-commit: 53cdf865f90ba922a854c65ed05b519f9d728424
> change-id: 20230627-topic-tama_uart-bacfeac1d0e9
> 
> Best regards,
> -- 
> Konrad Dybcio <konrad.dybcio@linaro.org>
>