Browse Source

spi: s3c64xx: Update binding documentation

Samsung SPI driver now uses the generic SPI "cs-gpios"
binding so update the documentation accordingly.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
[javier.martinez@collabora.co.uk: split changes and improve commit message]
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Naveen Krishna Chatradhi 11 years ago
parent
commit
797bf3a204
1 changed files with 3 additions and 5 deletions
  1. 3 5
      Documentation/devicetree/bindings/spi/spi-samsung.txt

+ 3 - 5
Documentation/devicetree/bindings/spi/spi-samsung.txt

@@ -42,15 +42,13 @@ Optional Board Specific Properties:
 - num-cs: Specifies the number of chip select lines supported. If
 - num-cs: Specifies the number of chip select lines supported. If
   not specified, the default number of chip select lines is set to 1.
   not specified, the default number of chip select lines is set to 1.
 
 
+- cs-gpios: should specify GPIOs used for chipselects (see spi-bus.txt)
+
 SPI Controller specific data in SPI slave nodes:
 SPI Controller specific data in SPI slave nodes:
 
 
 - The spi slave nodes should provide the following information which is required
 - The spi slave nodes should provide the following information which is required
   by the spi controller.
   by the spi controller.
 
 
-  - cs-gpio: A gpio specifier that specifies the gpio line used as
-    the slave select line by the spi controller. The format of the gpio
-    specifier depends on the gpio controller.
-
   - samsung,spi-feedback-delay: The sampling phase shift to be applied on the
   - samsung,spi-feedback-delay: The sampling phase shift to be applied on the
     miso line (to account for any lag in the miso line). The following are the
     miso line (to account for any lag in the miso line). The following are the
     valid values.
     valid values.
@@ -85,6 +83,7 @@ Example:
 		#size-cells = <0>;
 		#size-cells = <0>;
 		pinctrl-names = "default";
 		pinctrl-names = "default";
 		pinctrl-0 = <&spi0_bus>;
 		pinctrl-0 = <&spi0_bus>;
+		cs-gpios = <&gpa2 5 0>;
 
 
 		w25q80bw@0 {
 		w25q80bw@0 {
 			#address-cells = <1>;
 			#address-cells = <1>;
@@ -94,7 +93,6 @@ Example:
 			spi-max-frequency = <10000>;
 			spi-max-frequency = <10000>;
 
 
 			controller-data {
 			controller-data {
-				cs-gpio = <&gpa2 5 1 0 3>;
 				samsung,spi-feedback-delay = <0>;
 				samsung,spi-feedback-delay = <0>;
 			};
 			};