Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9233cd8c authored by Kiran Gunda's avatar Kiran Gunda
Browse files

spi_qsd: don't use "default" string for pin ctrl state



Use "spi_default" string instead of "default" to avoid
installing the active configuration by pin ctrl framework,
which leads to leakage current on the gpios when no slave is
using the spi bus.

Change-Id: I2385ef3a1283e4b15087a2adf3f3609623817da3
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent dbd2b72e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -877,7 +877,7 @@
                        qcom,pin-func = <1>;
                        qcom,pin-func = <1>;
                        label = "spi0-active";
                        label = "spi0-active";
                        /* active state */
                        /* active state */
                        spi0_default: default {
                        spi0_default: spi0_default {
                                drive-strength = <12>; /* 12 MA */
                                drive-strength = <12>; /* 12 MA */
                                bias-disable = <0>; /* No PULL */
                                bias-disable = <0>; /* No PULL */
                        };
                        };
@@ -890,7 +890,7 @@
                        qcom,pin-func = <0>;
                        qcom,pin-func = <0>;
                        label = "spi0-suspend";
                        label = "spi0-suspend";
                        /* suspended state */
                        /* suspended state */
                        spi0_sleep: sleep {
                        spi0_sleep: spi0_sleep {
                                drive-strength = <2>; /* 2 MA */
                                drive-strength = <2>; /* 2 MA */
                                bias-pull-down; /* pull down */
                                bias-pull-down; /* pull down */
                        };
                        };
+1 −1
Original line number Original line Diff line number Diff line
@@ -1011,7 +1011,7 @@
                interrupt-names = "spi_irq", "spi_bam_irq";
                interrupt-names = "spi_irq", "spi_bam_irq";
                interrupts = <0 100 0>, <0 238 0>;
                interrupts = <0 100 0>, <0 238 0>;
                spi-max-frequency = <19200000>;
                spi-max-frequency = <19200000>;
                pinctrl-names = "default", "sleep";
                pinctrl-names = "spi_default", "spi_sleep";
                pinctrl-0 = <&spi0_default &spi0_cs0_active>;
                pinctrl-0 = <&spi0_default &spi0_cs0_active>;
                pinctrl-1 = <&spi0_sleep &spi0_cs0_sleep>;
                pinctrl-1 = <&spi0_sleep &spi0_cs0_sleep>;
                clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
                clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
+2 −2
Original line number Original line Diff line number Diff line
@@ -301,7 +301,7 @@
			qcom,pin-func = <1>;
			qcom,pin-func = <1>;
			label = "spi0-active";
			label = "spi0-active";
			/* active state */
			/* active state */
			spi0_default: default {
			spi0_default: spi0_default {
				drive-strength = <12>; /* 12 MA */
				drive-strength = <12>; /* 12 MA */
				bias-disable = <0>; /* No PULL */
				bias-disable = <0>; /* No PULL */
			};
			};
@@ -314,7 +314,7 @@
			qcom,pin-func = <0>;
			qcom,pin-func = <0>;
			label = "spi0-suspend";
			label = "spi0-suspend";
			/* suspended state */
			/* suspended state */
			spi0_sleep: sleep {
			spi0_sleep: spi0_sleep {
				drive-strength = <2>; /* 2 MA */
				drive-strength = <2>; /* 2 MA */
				bias-pull-down; /* pull down */
				bias-pull-down; /* pull down */
			};
			};
+1 −1
Original line number Original line Diff line number Diff line
@@ -1344,7 +1344,7 @@
                interrupt-names = "spi_irq", "spi_bam_irq";
                interrupt-names = "spi_irq", "spi_bam_irq";
                interrupts = <0 97 0>, <0 238 0>;
                interrupts = <0 97 0>, <0 238 0>;
                spi-max-frequency = <50000000>;
                spi-max-frequency = <50000000>;
                pinctrl-names = "default", "sleep";
                pinctrl-names = "spi_default", "spi_sleep";
                pinctrl-0 = <&spi0_default &spi0_cs0_active>;
                pinctrl-0 = <&spi0_default &spi0_cs0_active>;
		pinctrl-1 = <&spi0_sleep &spi0_cs0_sleep>;
		pinctrl-1 = <&spi0_sleep &spi0_cs0_sleep>;
		clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
		clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
+2 −2
Original line number Original line Diff line number Diff line
@@ -908,7 +908,7 @@
		interrupt-names = "spi_irq", "spi_bam_irq";
		interrupt-names = "spi_irq", "spi_bam_irq";
		interrupts = <0 97 0>, <0 238 0>;
		interrupts = <0 97 0>, <0 238 0>;
		spi-max-frequency = <19200000>;
		spi-max-frequency = <19200000>;
		pinctrl-names = "default", "sleep";
		pinctrl-names = "spi_default", "spi_sleep";
		pinctrl-0 = <&spi0_default &spi0_cs0_active>;
		pinctrl-0 = <&spi0_default &spi0_cs0_active>;
		pinctrl-1 = <&spi0_sleep &spi0_cs0_sleep>;
		pinctrl-1 = <&spi0_sleep &spi0_cs0_sleep>;
		clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
		clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
@@ -984,7 +984,7 @@
		interrupts = <0 99 0>, <0 238 0>;
		interrupts = <0 99 0>, <0 238 0>;
		spi-max-frequency = <18000000>;
		spi-max-frequency = <18000000>;
		qcom,use-pinctrl;
		qcom,use-pinctrl;
		pinctrl-names = "default", "sleep";
		pinctrl-names = "spi_default", "spi_sleep";
		pinctrl-0 = <&spi5_default &spi5_cs0_active>;
		pinctrl-0 = <&spi5_default &spi5_cs0_active>;
		pinctrl-1 = <&spi5_sleep &spi5_cs0_sleep>;
		pinctrl-1 = <&spi5_sleep &spi5_cs0_sleep>;
		clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
		clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
Loading