arm64: dts: qcom: qcs404: Specify pinctrl state for UART
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 18 Nov 2018 20:01:33 +0000 (12:01 -0800)
committerAndy Gross <andy.gross@linaro.org>
Fri, 25 Jan 2019 04:21:17 +0000 (22:21 -0600)
BLSP1 UART2 is used as debug uart on the EVB development board, define
pinmux state for the UART in the platform dtsi and pinconf state for it
in the board dts.

Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/qcs404-evb.dtsi
arch/arm64/boot/dts/qcom/qcs404.dtsi

index ba41523188547a0860bbf56985e575320e64a2ce..50b3589c7f1594e96c9384007d547389b1ffc6bd 100644 (file)
 &wifi {
        status = "okay";
 };
+
+/* PINCTRL - additions to nodes defined in qcs404.dtsi */
+
+&blsp1_uart2_default {
+       rx {
+               drive-strength = <2>;
+               bias-disable;
+       };
+
+       tx {
+               drive-strength = <2>;
+               bias-disable;
+       };
+};
index f3d77e7ee0d231ff9a7bd3e63740972f19c9038d..dd918d35f270ac59ee71f441e28fa6f04d62cdd9 100644 (file)
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
+
+                       blsp1_uart2_default: blsp1-uart2-default {
+                               rx {
+                                       pins = "gpio18";
+                                       function = "blsp_uart_rx_a2";
+                               };
+
+                               tx {
+                                       pins = "gpio17";
+                                       function = "blsp_uart_tx_a2";
+                               };
+                       };
                };
 
                gcc: clock-controller@1800000 {
                        clock-names = "core", "iface";
                        dmas = <&blsp1_dma 5>, <&blsp1_dma 4>;
                        dma-names = "rx", "tx";
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&blsp1_uart2_default>;
                        status = "okay";
                };