Skip to contentSkip to conversation

spi: s3c64xx: let device core setup the default pin configuration

PATCH New Thomas Abraham 4 participants 7 messages Mar 6, 2013 – Apr 16, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: s3c64xx: let device core setup the default pin configuration

With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings is removed.

---
 .../devicetree/bindings/spi/spi-samsung.txt        |    8 +--
 drivers/spi/spi-s3c64xx.c                          |   66 +------------------
 2 files changed, 6 insertions(+), 68 deletions(-)
Documentation/devicetree/bindings/spi/spi-samsung.txt +2 -6
index a15ffed..86aa061 100644
@@ -31,9 +31,6 @@ Required Board Specific Properties:
 
 - #address-cells: should be 1.
 - #size-cells: should be 0.
-- gpios: The gpio specifier for clock, mosi and miso interface lines (in the
-  order specified). The format of the gpio specifier depends on the gpio
-  controller.
 
 Optional Board Specific Properties:
 
@@ -86,9 +83,8 @@ Example:
 	spi_0: spi@12d20000 {
 		#address-cells = <1>;
 		#size-cells = <0>;
-		gpios = <&gpa2 4 2 3 0>,
-			<&gpa2 6 2 3 0>,
-			<&gpa2 7 2 3 0>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&spi0_bus>;
 
 		w25q80bw@0 {
 			#address-cells = <1>;
drivers/spi/spi-s3c64xx.c +4 -62

119 lines not on this page · raw message

Signature · 1 line
1.6.6.rc2
#2 lore raw

PATCH 1/1 spi: s3c64xx: let device core setup the default pin configuration

In reply to Thomas Abraham

Thomas,

Quoted 9 lines · Thomas Abraham

With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings is removed.

---
 .../devicetree/bindings/spi/spi-samsung.txt        |    8 +--
 drivers/spi/spi-s3c64xx.c                          |   66 +------------------
 2 files changed, 6 insertions(+), 68 deletions(-)

With <https://patchwork.kernel.org/patch/2225151/> on exynos5250-snow (ARM Chromebook):

-Doug

#3 lore raw

PATCH 1/1 spi: s3c64xx: let device core setup the default pin configuration

Mark,

Quoted 13 lines · Doug Anderson

Thomas,

Quoted 9 lines · Thomas Abraham

With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings is removed.

---
 .../devicetree/bindings/spi/spi-samsung.txt        |    8 +--
 drivers/spi/spi-s3c64xx.c                          |   66 +------------------
 2 files changed, 6 insertions(+), 68 deletions(-)

Is this something you would pick up? It looks like you weren't copied on the original email thread, unfortunately.

Without this (or some equivalent) patch we can't use the SPI driver on any SoCs that have switched over to the proper pinmux support.

Thanks!

-Doug

#4 lore raw

PATCH 1/1 spi: s3c64xx: let device core setup the default pin configuration

Quoted 1 line · Doug Anderson

Mark,

(...)

Quoted 2 lines

Is this something you would pick up? It looks like you weren't copied on the original email thread, unfortunately.

Resend the patch with collected ACKs and Mark+Grant explitly on the
To: line and I think it'll be picked up.

Yours,
Linus Walleij

#5 lore raw

PATCH 1/1 spi: s3c64xx: let device core setup the default pin configuration

In reply to Thomas Abraham

From: Thomas Abraham <[email protected]>

With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings is removed.

---
 .../devicetree/bindings/spi/spi-samsung.txt        |  8 +--
 drivers/spi/spi-s3c64xx.c                          | 66 ++--------------------
 2 files changed, 6 insertions(+), 68 deletions(-)
Documentation/devicetree/bindings/spi/spi-samsung.txt +2 -6
index a15ffed..86aa061 100644
@@ -31,9 +31,6 @@ Required Board Specific Properties:
 
 - #address-cells: should be 1.
 - #size-cells: should be 0.
-- gpios: The gpio specifier for clock, mosi and miso interface lines (in the
-  order specified). The format of the gpio specifier depends on the gpio
-  controller.
 
 Optional Board Specific Properties:
 
@@ -86,9 +83,8 @@ Example:
 	spi_0: spi at 12d20000 {
 		#address-cells = <1>;
 		#size-cells = <0>;
-		gpios = <&gpa2 4 2 3 0>,
-			<&gpa2 6 2 3 0>,
-			<&gpa2 7 2 3 0>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&spi0_bus>;
 
 		w25q80bw at 0 {
 			#address-cells = <1>;
drivers/spi/spi-s3c64xx.c +4 -62

119 lines not on this page · raw message

Signature · 1 line
1.8.1.3
Applied
#6 lore raw
Quoted 11 lines · Doug Anderson

From: Thomas Abraham <[email protected]>

With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings is removed.

Applied, thanks.

g.