]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sunxi: Add num-cs for A20 spi nodes
authorEmmanuel Vadot <manu@bidouilliste.com>
Tue, 27 Dec 2016 10:28:07 +0000 (11:28 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 10 Jan 2017 17:52:49 +0000 (18:52 +0100)
The spi0 controller on the A20 have up to 4 CS (Chip Select) while the
others three only have 1.
Add the num-cs property to each node.
The current driver doesn't read this property but this is useful for
downstream user of DTS (FreeBSD for example).

Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun7i-a20.dtsi

index a1ee4197129aa1ff9411b65b5833f780ab09e6d2..04c997735c32e528ab5b896098fef592275af221 100644 (file)
@@ -871,6 +871,7 @@ spi0: spi@01c05000 {
                        status = "disabled";
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       num-cs = <4>;
                };
 
                spi1: spi@01c06000 {
@@ -885,6 +886,7 @@ spi1: spi@01c06000 {
                        status = "disabled";
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       num-cs = <1>;
                };
 
                emac: ethernet@01c0b000 {
@@ -1037,6 +1039,7 @@ spi2: spi@01c17000 {
                        status = "disabled";
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       num-cs = <1>;
                };
 
                ahci: sata@01c18000 {
@@ -1079,6 +1082,7 @@ spi3: spi@01c1f000 {
                        status = "disabled";
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       num-cs = <1>;
                };
 
                pio: pinctrl@01c20800 {