Message ID | 1456596108-1406-4-git-send-email-carlo@caione.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Carlo, Carlo Caione <carlo@caione.org> writes: > From: Carlo Caione <carlo@endlessm.com> > > Enable the MMC for the Meson8b platforms. > > Signed-off-by: Carlo Caione <carlo@endlessm.com> [...] > diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi > index 8bad557..25d795c 100644 > --- a/arch/arm/boot/dts/meson8b.dtsi > +++ b/arch/arm/boot/dts/meson8b.dtsi > @@ -187,6 +187,22 @@ > function = "uart_ao"; > }; > }; > + > + mmc0_sd_b_pins: mmc0_sd_b { > + mux { > + groups = "sd_d1_b", "sd_d0_b", "sd_clk_b", "sd_cmd_b", > + "sd_d3_b", "sd_d2_b"; > + function = "sd_b"; > + }; > + }; These pins are added under pinctrl_aobus, but in the pinctrl driver, they're under cbus. If I move this into the pinctrl_cbus node, I get it to work on my odroid-c1, and am able to mount/use an MMC rootfs. Kevin
On Wed, May 11, 2016 at 7:57 PM, Kevin Hilman <khilman@baylibre.com> wrote: > Hi Carlo, > > Carlo Caione <carlo@caione.org> writes: > >> From: Carlo Caione <carlo@endlessm.com> >> >> Enable the MMC for the Meson8b platforms. >> >> Signed-off-by: Carlo Caione <carlo@endlessm.com> > > [...] > >> diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi >> index 8bad557..25d795c 100644 >> --- a/arch/arm/boot/dts/meson8b.dtsi >> +++ b/arch/arm/boot/dts/meson8b.dtsi >> @@ -187,6 +187,22 @@ >> function = "uart_ao"; >> }; >> }; >> + >> + mmc0_sd_b_pins: mmc0_sd_b { >> + mux { >> + groups = "sd_d1_b", "sd_d0_b", "sd_clk_b", "sd_cmd_b", >> + "sd_d3_b", "sd_d2_b"; >> + function = "sd_b"; >> + }; >> + }; > > These pins are added under pinctrl_aobus, but in the pinctrl driver, > they're under cbus. If I move this into the pinctrl_cbus node, I get it > to work on my odroid-c1, and am able to mount/use an MMC rootfs. Ouch, thank you for pointing this out, I'll fix it in v6. thanks,
diff --git a/arch/arm/boot/dts/meson8b-mxq.dts b/arch/arm/boot/dts/meson8b-mxq.dts index c7fdaea..5c533a6 100644 --- a/arch/arm/boot/dts/meson8b-mxq.dts +++ b/arch/arm/boot/dts/meson8b-mxq.dts @@ -60,6 +60,14 @@ }; }; +&mmc0 { + status = "okay"; + pinctrl-names = "sdio_b"; + pinctrl-0 = <&mmc0_sd_b_pins>; + meson,sd-port = <1>; + broken-cd; +}; + &uart_AO { status = "okay"; pinctrl-0 = <&uart_ao_a_pins>; diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index e50f1a1..a060c84 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -71,6 +71,14 @@ }; }; +&mmc0 { + status = "okay"; + pinctrl-names = "sdio_b"; + pinctrl-0 = <&mmc0_sd_b_pins>; + meson,sd-port = <1>; + broken-cd; +}; + &uart_AO { status = "okay"; pinctrl-0 = <&uart_ao_a_pins>; diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index 8bad557..25d795c 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -187,6 +187,22 @@ function = "uart_ao"; }; }; + + mmc0_sd_b_pins: mmc0_sd_b { + mux { + groups = "sd_d1_b", "sd_d0_b", "sd_clk_b", "sd_cmd_b", + "sd_d3_b", "sd_d2_b"; + function = "sd_b"; + }; + }; + }; + + mmc0: mmc@c1108c20 { + compatible = "amlogic,meson-mmc"; + reg = <0xc1108c20 0x20>; + interrupts = <0 28 1>; + clocks = <&clkc CLKID_CLK81>; + status = "disabled"; }; }; }; /* end of / */