Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: introduce and document sdhci,wp-inverted property for eSDHC

eSDHC block in MPC837x SOCs reports inverted write-protect state, soon
sdhci-of driver will look for sdhci,wp-inverted properties to decide
whether apply a specific quirk.

So, document the property and add it to device tree source files.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: Pierre Ossman <pierre@ossman.eu>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: David Vrabel <david.vrabel@csr.com>
Cc: Ben Dooks <ben@fluff.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Anton Vorontsov and committed by
Linus Torvalds
50dfe70f 81b39802

+9
+2
Documentation/powerpc/dts-bindings/fsl/esdhc.txt
··· 10 10 - interrupts : should contain eSDHC interrupt. 11 11 - interrupt-parent : interrupt source phandle. 12 12 - clock-frequency : specifies eSDHC base clock frequency. 13 + - sdhci,wp-inverted : (optional) specifies that eSDHC controller 14 + reports inverted write-protect state; 13 15 - sdhci,1-bit-only : (optional) specifies that a controller can 14 16 only handle 1-bit data transfers. 15 17
+1
arch/powerpc/boot/dts/mpc8377_mds.dts
··· 159 159 reg = <0x2e000 0x1000>; 160 160 interrupts = <42 0x8>; 161 161 interrupt-parent = <&ipic>; 162 + sdhci,wp-inverted; 162 163 /* Filled in by U-Boot */ 163 164 clock-frequency = <0>; 164 165 };
+1
arch/powerpc/boot/dts/mpc8377_rdb.dts
··· 173 173 reg = <0x2e000 0x1000>; 174 174 interrupts = <42 0x8>; 175 175 interrupt-parent = <&ipic>; 176 + sdhci,wp-inverted; 176 177 /* Filled in by U-Boot */ 177 178 clock-frequency = <111111111>; 178 179 };
+1
arch/powerpc/boot/dts/mpc8377_wlan.dts
··· 150 150 reg = <0x2e000 0x1000>; 151 151 interrupts = <42 0x8>; 152 152 interrupt-parent = <&ipic>; 153 + sdhci,wp-inverted; 153 154 clock-frequency = <133333333>; 154 155 }; 155 156 };
+1
arch/powerpc/boot/dts/mpc8378_mds.dts
··· 159 159 reg = <0x2e000 0x1000>; 160 160 interrupts = <42 0x8>; 161 161 interrupt-parent = <&ipic>; 162 + sdhci,wp-inverted; 162 163 /* Filled in by U-Boot */ 163 164 clock-frequency = <0>; 164 165 };
+1
arch/powerpc/boot/dts/mpc8378_rdb.dts
··· 173 173 reg = <0x2e000 0x1000>; 174 174 interrupts = <42 0x8>; 175 175 interrupt-parent = <&ipic>; 176 + sdhci,wp-inverted; 176 177 /* Filled in by U-Boot */ 177 178 clock-frequency = <111111111>; 178 179 };
+1
arch/powerpc/boot/dts/mpc8379_mds.dts
··· 157 157 reg = <0x2e000 0x1000>; 158 158 interrupts = <42 0x8>; 159 159 interrupt-parent = <&ipic>; 160 + sdhci,wp-inverted; 160 161 /* Filled in by U-Boot */ 161 162 clock-frequency = <0>; 162 163 };
+1
arch/powerpc/boot/dts/mpc8379_rdb.dts
··· 171 171 reg = <0x2e000 0x1000>; 172 172 interrupts = <42 0x8>; 173 173 interrupt-parent = <&ipic>; 174 + sdhci,wp-inverted; 174 175 /* Filled in by U-Boot */ 175 176 clock-frequency = <111111111>; 176 177 };