public inbox for linux-amlogic@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Enable the Amlogic Meson SDIO MMC controller
@ 2017-10-07 16:29 Martin Blumenstingl
  2017-10-07 16:29 ` [PATCH 1/2] ARM: dts: meson: add the " Martin Blumenstingl
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Martin Blumenstingl @ 2017-10-07 16:29 UTC (permalink / raw)
  To: linus-amlogic

Now that the SDIO MMC driver is queued for v4.15 we need to prepare
our platform so boards can actually use this driver.
This adds the Meson SDIO MMC controller to the .dts files and
enables the corresponding driver in the multi_v7_defconfig.

Below is an example to enable the SD card using "port 1" of
the SDIO MMC controller.
cd-gpios, cd-inverted and vmmc-supply need to be configured
based on the board design (as well as the "reg" property
if the SD card is not connected to the MMC controller's slot
called "port 0").

&sdio {
	status = "okay";

	pinctrl-0 = <&sd_b_pins>;
	pinctrl-names = "default";

	/* SD card */
	sd_card_slot: slot at 1 {
		compatible = "mmc-slot";
		reg = <1>;
		status = "okay";

		bus-width = <4>;
		no-sdio;
		cap-mmc-highspeed;
		cap-sd-highspeed;
		disable-wp;

		cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
		cd-inverted;

		vmmc-supply = <&vcc_3v3>;
	};
};


Martin Blumenstingl (2):
  ARM: dts: meson: add the SDIO MMC controller
  ARM: multi_v7_defconfig: enable the Meson MX SDIO/MMC controller

 arch/arm/boot/dts/meson.dtsi        | 9 +++++++++
 arch/arm/boot/dts/meson8.dtsi       | 6 ++++++
 arch/arm/boot/dts/meson8b.dtsi      | 6 ++++++
 arch/arm/configs/multi_v7_defconfig | 1 +
 4 files changed, 22 insertions(+)

-- 
2.14.2

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-12 20:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-07 16:29 [PATCH 0/2] Enable the Amlogic Meson SDIO MMC controller Martin Blumenstingl
2017-10-07 16:29 ` [PATCH 1/2] ARM: dts: meson: add the " Martin Blumenstingl
2017-10-07 16:29 ` [PATCH 2/2] ARM: multi_v7_defconfig: enable the Meson MX SDIO/MMC controller Martin Blumenstingl
2017-10-12  0:20 ` [PATCH 0/2] Enable the Amlogic Meson SDIO MMC controller Kevin Hilman
2017-10-12 20:50   ` Martin Blumenstingl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox