Message ID | 20160625163446.7245-4-martin.blumenstingl@googlemail.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
Am 25.06.2016 um 18:34 schrieb Martin Blumenstingl: > sd_emmc_b is routed to the SD-card. Unlike p20x there is no GPIO > regulator, meaning it only supports 3.3V (which seems to be hard-wired). > > Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> > --- > .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 27 ++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi > index b003729..3a77829 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi > @@ -53,6 +53,17 @@ > chosen { > stdout-path = "serial0:115200n8"; > }; > + > + mmc_iv: fixed-regulator { > + compatible = "regulator-fixed"; > + > + regulator-name = "mmc-supply"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + > + regulator-always-on; > + regulator-boot-on; > + }; > }; > > &uart_A { > @@ -73,3 +84,19 @@ > pinctrl-0 = <ð_pins>; > pinctrl-names = "default"; > }; > + > +&sd_emmc_b { [snip] This does not build on next-20160707 - what branch is this based on? Thanks, Andreas
Am 08.07.2016 um 02:49 schrieb Andreas Färber: > Am 25.06.2016 um 18:34 schrieb Martin Blumenstingl: >> sd_emmc_b is routed to the SD-card. Unlike p20x there is no GPIO >> regulator, meaning it only supports 3.3V (which seems to be hard-wired). >> >> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> >> --- >> .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 27 ++++++++++++++++++++++ >> 1 file changed, 27 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi >> index b003729..3a77829 100644 >> --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi >> +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi >> @@ -53,6 +53,17 @@ >> chosen { >> stdout-path = "serial0:115200n8"; >> }; >> + >> + mmc_iv: fixed-regulator { >> + compatible = "regulator-fixed"; >> + >> + regulator-name = "mmc-supply"; >> + regulator-min-microvolt = <3300000>; >> + regulator-max-microvolt = <3300000>; >> + >> + regulator-always-on; >> + regulator-boot-on; >> + }; >> }; >> >> &uart_A { >> @@ -73,3 +84,19 @@ >> pinctrl-0 = <ð_pins>; >> pinctrl-names = "default"; >> }; >> + >> +&sd_emmc_b { > [snip] > > This does not build on next-20160707 - what branch is this based on? Apparently linux-amlogic.git v4.7/integ. Tested-by: Andreas Färber <afaerber@suse.de> Thanks again, Andreas
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi index b003729..3a77829 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -53,6 +53,17 @@ chosen { stdout-path = "serial0:115200n8"; }; + + mmc_iv: fixed-regulator { + compatible = "regulator-fixed"; + + regulator-name = "mmc-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + regulator-always-on; + regulator-boot-on; + }; }; &uart_A { @@ -73,3 +84,19 @@ pinctrl-0 = <ð_pins>; pinctrl-names = "default"; }; + +&sd_emmc_b { + status = "okay"; + pinctrl-0 = <&sdcard_pins>; + pinctrl-names = "default"; + + bus-width = <4>; + cap-sd-highspeed; + max-frequency = <100000000>; + + cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>; + cd-inverted; + + vmmc-supply = <&mmc_iv>; + voltage-ranges = <3300 3300>; +};
sd_emmc_b is routed to the SD-card. Unlike p20x there is no GPIO regulator, meaning it only supports 3.3V (which seems to be hard-wired). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> --- .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+)