From 075cd80895fa29b5ebe77d0ac580d23a2c82324c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Arreola=20Rodr=C3=ADguez?= Date: Mon, 10 Jun 2019 21:00:37 -0500 Subject: [PATCH] Alliwinner: Add eMMC definition to device tree of Orange PI 3 --- .../Allwinner/devices/H6/patches/linux/07-opi3.patch | 12 +++++++++++- .../H6/patches/u-boot/002-orange-pi-3-support.patch | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/projects/Allwinner/devices/H6/patches/linux/07-opi3.patch b/projects/Allwinner/devices/H6/patches/linux/07-opi3.patch index f7754db830..6d9689e4e4 100644 --- a/projects/Allwinner/devices/H6/patches/linux/07-opi3.patch +++ b/projects/Allwinner/devices/H6/patches/linux/07-opi3.patch @@ -302,7 +302,7 @@ new file mode 100644 index 0000000000000..17d4969901086 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts -@@ -0,0 +1,219 @@ +@@ -0,0 +1,229 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2019 Ondřej Jirman @@ -374,6 +374,16 @@ index 0000000000000..17d4969901086 + status = "okay"; +}; + ++&mmc2 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc2_pins>; ++ vmmc-supply = <®_cldo1>; ++ non-removable; ++ cap-mmc-hw-reset; ++ bus-width = <8>; ++ status = "okay"; ++}; ++ +&ohci0 { + status = "okay"; +}; diff --git a/projects/Allwinner/devices/H6/patches/u-boot/002-orange-pi-3-support.patch b/projects/Allwinner/devices/H6/patches/u-boot/002-orange-pi-3-support.patch index ce8c18bf06..7894506e42 100644 --- a/projects/Allwinner/devices/H6/patches/u-boot/002-orange-pi-3-support.patch +++ b/projects/Allwinner/devices/H6/patches/u-boot/002-orange-pi-3-support.patch @@ -15,7 +15,7 @@ new file mode 100644 index 0000000000..8070adc39b --- /dev/null +++ b/arch/arm/dts/sun50i-h6-orangepi-3.dts -@@ -0,0 +1,316 @@ +@@ -0,0 +1,326 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2019 Ondřej Jirman @@ -183,6 +183,16 @@ index 0000000000..8070adc39b + status = "okay"; +}; + ++&mmc2 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc2_pins>; ++ vmmc-supply = <®_cldo1>; ++ non-removable; ++ cap-mmc-hw-reset; ++ bus-width = <8>; ++ status = "okay"; ++}; ++ +&ohci0 { + status = "okay"; +};