OSDN Git Service

arm64: dts: qcom: sdm845: Enable debug UART and I2C10 on sdm845-mtp
authorDouglas Anderson <dianders@chromium.org>
Wed, 13 Jun 2018 16:53:52 +0000 (09:53 -0700)
committerAndy Gross <andy.gross@linaro.org>
Sat, 21 Jul 2018 18:29:54 +0000 (13:29 -0500)
The debug UART is very useful to have.  I2C10 is enabled as an example
of a I2C port we can talk on for now.  Eventually we'll want to put
peripherals under it.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/sdm845-mtp.dts

index 979ab49..6d651f3 100644 (file)
 / {
        model = "Qualcomm Technologies, Inc. SDM845 MTP";
        compatible = "qcom,sdm845-mtp";
+
+       aliases {
+               serial0 = &uart9;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+};
+
+&i2c10 {
+       status = "okay";
+       clock-frequency = <400000>;
+};
+
+&qupv3_id_1 {
+       status = "okay";
+};
+
+&uart9 {
+       status = "okay";
+};
+
+/* PINCTRL - additions to nodes defined in sdm845.dtsi */
+
+&qup_i2c10_default {
+       pinconf {
+               pins = "gpio55", "gpio56";
+               drive-strength = <2>;
+               bias-disable;
+       };
+};
+
+&qup_uart9_default {
+       pinconf-tx {
+               pins = "gpio4";
+               drive-strength = <2>;
+               bias-disable;
+       };
+
+       pinconf-rx {
+               pins = "gpio5";
+               drive-strength = <2>;
+               bias-pull-up;
+       };
 };