arm64: dts: qcom: sdm845-oneplus-common: enable debug UART
authorCaleb Connolly <caleb@connolly.tech>
Tue, 20 Jul 2021 15:33:42 +0000 (15:33 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 5 Aug 2021 15:27:34 +0000 (10:27 -0500)
A labelled diagram showing the location of the Rx and Tx testpoints for
the OnePlus 6 is available on the postmarketOS wiki:

https://wiki.postmarketos.org/wiki/Serial_debugging:Cable_schematics

The device uses 1.8v UART at a baud rate of 115200, bootloader output is
also available here.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
Link: https://lore.kernel.org/r/20210720153125.43389-3-caleb@connolly.tech
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi

index 4d052e3..6a32d32 100644 (file)
 
 / {
        aliases {
+               serial0 = &uart9;
                hsuart0 = &uart6;
        };
 
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        gpio-keys {
                compatible = "gpio-keys";
                label = "Volume keys";
        };
 };
 
+&uart9 {
+       label = "LS-UART1";
+       status = "okay";
+};
+
 &ufs_mem_hc {
        status = "okay";