[U-Boot] [PATCH 08/25] ARM: dts: sun7i: Add mmc0 node for Primo73 tablet

Maxime Ripard maxime.ripard at bootlin.com
Mon Jul 16 09:40:08 UTC 2018


On Mon, Jul 16, 2018 at 01:49:39PM +0530, Jagan Teki wrote:
> Reuse mmc0 node from sun7i-a20.dtsi like other board
> dts files for Primo73 tablet dts file, and drop in dts
> mmc0 definition.
> 
> Cc: Siarhei Siamashka <siarhei.siamashka at gmail.com>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
> ---
>  arch/arm/dts/sun7i-a20-primo73.dts | 20 ++++++++++----------
>  1 file changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/arch/arm/dts/sun7i-a20-primo73.dts b/arch/arm/dts/sun7i-a20-primo73.dts
> index 0658f82675..942a955309 100644
> --- a/arch/arm/dts/sun7i-a20-primo73.dts
> +++ b/arch/arm/dts/sun7i-a20-primo73.dts
> @@ -62,16 +62,6 @@
>  	};
>  
>  	soc at 01c00000 {
> -		mmc0: mmc at 01c0f000 {
> -			pinctrl-names = "default";
> -			pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
> -			vmmc-supply = <&reg_vcc3v3>;
> -			bus-width = <4>;
> -			cd-gpios = <&pio 7 1 0>; /* PH1 */
> -			cd-inverted;
> -			status = "okay";
> -		};
> -
>  		usbphy: phy at 01c13400 {
>  			usb2_vbus-supply = <&reg_usb2_vbus>;
>  			status = "okay";
> @@ -100,3 +90,13 @@
>  		status = "okay";
>  	};
>  };
> +
> +&mmc0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
> +	vmmc-supply = <&reg_vcc3v3>;
> +	bus-width = <4>;
> +	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
> +	cd-inverted;
> +	status = "okay";
> +};

You're not adding the node, you're just moving it around.

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180716/350caa28/attachment.sig>


More information about the U-Boot mailing list