From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Wang Subject: Re: [PATCH 2/2] arm: dts: mt7623: Add SD-card to bananapi-r2 Date: Wed, 2 Aug 2017 15:27:20 +0800 Message-ID: <1501658840.29348.7.camel@mtkswgap22> References: <20170801134009.14349-1-matthias.bgg@gmail.com> <20170801134009.14349-2-matthias.bgg@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170801134009.14349-2-matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+glpam-linux-mediatek=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Matthias Brugger Cc: mark.rutland-5wv7dgnIgG8@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-mediatek@lists.infradead.org On Tue, 2017-08-01 at 15:40 +0200, Matthias Brugger wrote: > The bananapi-r2 board has an SD-card controller, enable > the device in the devicetree. > > Signed-off-by: Matthias Brugger > --- > arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts > index 9f3e6ddd545f..d457544c3a1d 100644 > --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts > +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts > @@ -179,6 +179,19 @@ > status = "okay"; > }; > > +&mmc1 { > + pinctrl-names = "default", "state_uhs"; > + pinctrl-0 = <&mmc1_pins_default>; > + pinctrl-1 = <&mmc1_pins_uhs>; > + status = "okay"; > + bus-width = <4>; > + max-frequency = <50000000>; > + cap-sd-highspeed; > + cd-gpios = <&pio 261 0>; > + vmmc-supply = <&mt6323_vmch_reg>; > + vqmmc-supply = <&mt6323_vmc_reg>; > +}; > + > &pio { > cir_pins_a:cir@0 { > pins_cir { I can base the patch to fixup and add something in the next version such as 1) to add property with extra wp-gpios 2) to correct power source from mt6323_vio18_reg instead of mt6323_vmc_reg based on the schematic 3) to enable mmc0 that is used as emmc &mmc0 { pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc0_pins_default>; pinctrl-1 = <&mmc0_pins_uhs>; status = "okay"; bus-width = <8>; max-frequency = <50000000>; cap-mmc-highspeed; vmmc-supply = <&mt6323_vemc3v3_reg>; vqmmc-supply = <&mt6323_vio18_reg>; non-removable; }; &mmc1 { pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc1_pins_default>; pinctrl-1 = <&mmc1_pins_uhs>; status = "okay"; bus-width = <4>; max-frequency = <50000000>; cap-sd-highspeed; cd-gpios = <&pio 261 0>; wp-gpios = <&pio 29 0>; vmmc-supply = <&mt6323_vmch_reg>; vqmmc-supply = <&mt6323_vio18_reg>; }; those upper nodes could make sdhc sd card/emmc workable