OSDN Git Service

ARM: dts: msm: Set CAN pinctrl as a hog for msm8996-cv2x
authorGustavo Solaira <gustavos@codeaurora.org>
Wed, 30 Jan 2019 21:58:19 +0000 (13:58 -0800)
committerGustavo Solaira <gustavos@codeaurora.org>
Thu, 31 Jan 2019 00:35:12 +0000 (16:35 -0800)
Set CAN pinctrl as output-high by default on boot
by setting as a hog. This is needed for bringing CAN
out of reset earlier.

Change-Id: I084b1425bb5f7351668b0190624b30551df8b936
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
arch/arm/boot/dts/qcom/msm8996-cv2x.dtsi

index 8016719..c568b70 100644 (file)
                spi-max-frequency = <9600000>;
                interrupt-parent = <&tlmm>;
                interrupts = <78 2>;
-               qcom,reset-gpio = <&tlmm 71 GPIO_ACTIVE_LOW>;
                qcom,clk-freq-mhz = <20000000>;
                qcom,max-can-channels = <2>;
                qcom,bits-per-word = <8>;
                qcom,can-fw-cmd-timeout-req;
                qcom,can-fw-cmd-timeout-ms = <400>;
                qcom,rem-all-buffering-timeout-ms = <2000>;
-               pinctrl-names = "active", "sleep";
-               pinctrl-0 = <&can_rst_on>;
-               pinctrl-1 = <&can_rst_off>;
        };
 };
 
                qcom,therm-reset-temp = <119>;
        };
 };
+
+&tlmm {
+       pinctrl-names = "default";
+       pinctrl-0 = <&can_rst_on>;
+};
+
+&can_rst_on {
+       config {
+               output-high;
+       };
+};