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

Commit e398bee0 authored by Srinivas Rao L's avatar Srinivas Rao L Committed by Gerrit - the friendly Code Review server
Browse files

pinctrl: qcom: Add support for shared SPI config for GPIOs



For all the shared peripheral interrupts, apart from the type
configuration done in the interrupt controller, the type also
to be programmed accordingly through the shared spi config
registers. These were statically done for all SPIs.

But for all the GPIO interrupts connected to the GIC, their
type need to be set dynamically, as the usage of particular
GPIO would vary. So set the shared spi type configuration
for the GPIOs accordingly when set type is called for it.

Change-Id: I1fd1b37bdcebcbfec641e4db04cb29f9e087d426
Signed-off-by: default avatarSrinivas Rao L <lsrao@codeaurora.org>
parent bd0761b7
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -11,7 +11,13 @@ MSM8917 platform.
- reg:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: the base address and size of the TLMM register space.
	Definition: the base address and size of the TLMM register space
		    provided as "pinctrl_regs".

- reg-names:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: Provides labels for the reg property.

- interrupts:
	Usage: required
@@ -167,6 +173,7 @@ Example:
	tlmm: pinctrl@1000000 {
		compatible = "qcom,msm8917-pinctrl";
		reg = <0x1000000 0x300000>;
		reg-names = "pinctrl_regs";
		interrupts = <0 208 0>;
		gpio-controller;
		#gpio-cells = <2>;
+8 −1
Original line number Diff line number Diff line
@@ -11,7 +11,13 @@ MSM8937 platform.
- reg:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: the base address and size of the TLMM register space.
	Definition: the base address and size of the TLMM register space
		    provided as "pinctrl_regs".

- reg-names:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: Provides labels for the reg property.

- interrupts:
	Usage: required
@@ -167,6 +173,7 @@ Example:
	tlmm: pinctrl@1000000 {
		compatible = "qcom,msm8937-pinctrl";
		reg = <0x1000000 0x300000>;
		reg-names = "pinctrl_regs";
		interrupts = <0 208 0>;
		gpio-controller;
		#gpio-cells = <2>;
+8 −1
Original line number Diff line number Diff line
@@ -11,7 +11,13 @@ MSM8953 platform.
- reg:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: the base address and size of the TLMM register space.
	Definition: the base address and size of the TLMM register space
		    provided as "pinctrl_regs".

- reg-names:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: Provides labels for the reg property.

- interrupts:
	Usage: required
@@ -173,6 +179,7 @@ Example:
	tlmm: pinctrl@1000000 {
		compatible = "qcom,msm8953-pinctrl";
		reg = <0x1000000 0x300000>;
		reg-names = "pinctrl_regs";
		interrupts = <0 208 0>;
		gpio-controller;
		#gpio-cells = <2>;
+12 −2
Original line number Diff line number Diff line
@@ -11,7 +11,16 @@ SDM670 platform.
- reg:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: the base address and size of the TLMM register space.
	Definition: the base address and size of the TLMM register space
		    provided as "pinctrl_regs", optional base address of
		    PDC mux selection registers provided as "pdc_regs"
		    and optional base address of shared SPI config
		    registers provided as "spi_cfg_regs".

- reg-names:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: Provides labels for the reg property.

- interrupts:
	Usage: required
@@ -137,7 +146,8 @@ Example:

	tlmm: pinctrl@03400000 {
		compatible = "qcom,sdm670-pinctrl";
		reg = <0x03400000 0xc00000>;
		reg = <0x03400000 0xc00000>, <0x179900f0 0x60>;
		reg-names = "pinctrl_regs", "spi_cfg_regs";
		interrupts = <0 208 0>;
		gpio-controller;
		#gpio-cells = <2>;
+13 −2
Original line number Diff line number Diff line
@@ -11,7 +11,17 @@ SDM845 platform.
- reg:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: the base address and size of the TLMM register space.
	Definition: the base address and size of the TLMM register space
		    provided as "pinctrl_regs", optional base address of
		    PDC mux selection registers provided as "pdc_regs"
		    and optional base address of shared SPI config
		    registers provided as "spi_cfg_regs".

- reg-names:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: Provides labels for the reg property.


- interrupts:
	Usage: required
@@ -177,7 +187,8 @@ Example:

	tlmm: pinctrl@03400000 {
		compatible = "qcom,sdm845-pinctrl";
		reg = <0x03800000 0xc00000>;
		reg = <0x03800000 0xc00000>, <0x179900f0 0x60>;
		reg-names = "pinctrl_regs", "spi_cfg_regs";
		interrupts = <0 208 0>;
		gpio-controller;
		#gpio-cells = <2>;
Loading