Message ID | 1447949176-21926-4-git-send-email-stefan.wahren@i2se.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 11/19/2015 09:06 AM, Stefan Wahren wrote: > Only the Raspberry Pi B has a card detect pin. Specify it > on board level because it's not free to use. This seems fine, but it should have no effect in practice; when the SD controller driver gpio_get()s the GPIO, the same setting will be programmed into HW. There's a requirement to use the pinctrl bindings to configure pins to non-GPIO mux settings, but no actual requirement to do so for GPIOs. However, the new node sdhci_cd should be added to some pinctrl-0 property or it won't be used.
Am 02.12.2015 um 04:44 schrieb Stephen Warren: > On 11/19/2015 09:06 AM, Stefan Wahren wrote: >> Only the Raspberry Pi B has a card detect pin. Specify it >> on board level because it's not free to use. > This seems fine, but it should have no effect in practice; when the SD > controller driver gpio_get()s the GPIO, the same setting will be > programmed into HW. There's a requirement to use the pinctrl bindings to > configure pins to non-GPIO mux settings, but no actual requirement to do > so for GPIOs. > > However, the new node sdhci_cd should be added to some pinctrl-0 > property or it won't be used. This is done in Patch 4
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts index e6cd93b..1be2220 100644 --- a/arch/arm/boot/dts/bcm2835-rpi-b.dts +++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts @@ -14,4 +14,9 @@ &gpio { pinctrl-0 = <&gpioout &alt0>; + + sdhci_cd: sdhci_cd { + brcm,pins = <47>; + brcm,function = <BCM2835_FSEL_GPIO_IN>; + }; };
Only the Raspberry Pi B has a card detect pin. Specify it on board level because it's not free to use. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> --- arch/arm/boot/dts/bcm2835-rpi-b.dts | 5 +++++ 1 file changed, 5 insertions(+)