Re: [U-Boot] [PATCH] arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support
Hi Jonathan, I got an error with the patch. arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dtb: ERROR (phandle_references): Reference to non-existent node or label "reg_gmac_3v3" the attached patch, with reg_gmac_3v3, works for me. -antony On Fri, May 18, 2018 at 07:56:07AM -0500, Jonathan A. Kollasch wrote: > add arm64 H5 dwmac-sun8i support for this board > > commit arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support > ("27d7f929702739c186e72a4dcd255e0faa3beefc") from torvalds/linux > > Signed-off-by: Jonathan A. Kollasch <jakll...@kollasch.net> > --- > > arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 17 + > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > index f1406c224b..aadc087775 100644 > --- a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > @@ -52,6 +52,7 @@ > compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5"; > > aliases { > + ethernet0 = > serial0 = > }; > > @@ -71,6 +72,22 @@ > status = "okay"; > }; > > + { > + pinctrl-names = "default"; > + pinctrl-0 = <_rgmii_pins>; > + phy-supply = <_gmac_3v3>; > + phy-handle = <_rgmii_phy>; > + phy-mode = "rgmii"; > + status = "okay"; > +}; > + > +_mdio { > + ext_rgmii_phy: ethernet-phy@7 { > + compatible = "ethernet-phy-ieee802.3-c22"; > + reg = <7>; > + }; > +}; > + > { > pinctrl-names = "default"; > pinctrl-0 = <_pins_a>, <_cd_pin>; > -- > 2.11.0 > >From 71dd3f0c55a80036273d329677266d9ed98026fa Mon Sep 17 00:00:00 2001 From: Antony Antony <ant...@phenome.org> Date: Fri, 18 May 2018 15:09:06 +0200 Subject: [PATCH] arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC, dwmac-sun8i commit arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support ("27d7f929702739c186e72a4dcd255e0faa3beefc") from torvalds/linux reg_gmac_3v3 from commit d7341305863bc Signed-off-by: Antony Antony <ant...@phenome.org> --- arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts index f1406c2..b255190 100644 --- a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts @@ -52,6 +52,7 @@ compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5"; aliases { + ethernet0 = serial0 = }; @@ -59,6 +60,17 @@ stdout-path = "serial0:115200n8"; }; + reg_gmac_3v3: gmac-3v3 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + regulator-name = "gmac-3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + startup-delay-us = <10>; + enable-active-high; + gpio = < 3 6 GPIO_ACTIVE_HIGH>; + }; + reg_vcc3v3: vcc3v3 { compatible = "regulator-fixed"; regulator-name = "vcc3v3"; @@ -71,6 +83,22 @@ status = "okay"; }; + { + pinctrl-names = "default"; + pinctrl-0 = <_rgmii_pins>; + phy-supply = <_gmac_3v3>; + phy-handle = <_rgmii_phy>; + phy-mode = "rgmii"; + status = "okay"; +}; + +_mdio { + ext_rgmii_phy: ethernet-phy@7 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <7>; + }; +}; + { pinctrl-names = "default"; pinctrl-0 = <_pins_a>, <_cd_pin>; -- 2.7.4 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH] sunxi: A64/H5 devices: enable usb keyboard support
On Mon, Apr 09, 2018 at 01:15:00PM +0100, Peter Robinson wrote: > Now the A64/H5 SoCs support video output it's useful to enable usb keyboard > support so console can be used via standard keyboard/video interface. > > Tested on Pine64. Is it usefull on devices without video output(no HDMI, VGA)? > configs/nanopi_neo2_defconfig | 2 ++ > configs/nanopi_neo_plus2_defconfig| 2 ++ > --- a/configs/nanopi_neo2_defconfig > +++ b/configs/nanopi_neo2_defconfig > @@ -13,3 +13,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo2" > CONFIG_SUN8I_EMAC=y > CONFIG_USB_EHCI_HCD=y > CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y > +CONFIG_DM_KEYBOARD=y > +CONFIG_USB_KEYBOARD=y > diff --git a/configs/nanopi_neo_plus2_defconfig > b/configs/nanopi_neo_plus2_defconfig > index 5f69799e06..1c6ad4647d 100644 > --- a/configs/nanopi_neo_plus2_defconfig > +++ b/configs/nanopi_neo_plus2_defconfig > @@ -14,3 +14,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo-plus2" > # CONFIG_SPL_EFI_PARTITION is not set > CONFIG_SUN8I_EMAC=y > CONFIG_USB_EHCI_HCD=y > +CONFIG_DM_KEYBOARD=y > +CONFIG_USB_KEYBOARD=y these two devices have no video out. I am not sure all these have HDMI output. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] [PATCH v6 2/2] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
Add initial DT for NanoPi NEO Plus2 by FriendlyARM - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU - 1 GB DDR3 RAM - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) - micro SD card slot - Gigabit Ethernet (external RTL8211E-VB-CG chip) - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) - 2x USB 2.0 host ports Signed-off-by: Antony Antony <ant...@phenome.org> --- Changes v3->v4 removed compatible from mmc0 add h5 & a64 compaitable to sun50i-h5.dtsi Changes v4->v5 update sun50i-h5.dtsi to kernel 4.14 Changes v5->v6 update board/sunxi/MAINTAINERS --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 106 board/sunxi/MAINTAINERS | 5 ++ configs/nanopi_neo_plus2_defconfig | 18 + 4 files changed, 130 insertions(+) create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts create mode 100644 configs/nanopi_neo_plus2_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index cd540e9..f54adb2 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -337,6 +337,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ sun8i-v3s-licheepi-zero.dtb dtb-$(CONFIG_MACH_SUN50I_H5) += \ sun50i-h5-nanopi-neo2.dtb \ + sun50i-h5-nanopi-neo-plus2.dtb \ sun50i-h5-orangepi-pc2.dtb \ sun50i-h5-orangepi-prime.dtb \ sun50i-h5-orangepi-zero-plus2.dtb diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts new file mode 100644 index 000..f1406c2 --- /dev/null +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> + * Copyright (c) 2016 ARM Ltd. + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; + +#include "sun50i-h5.dtsi" + +#include + +/ { + model = "FriendlyARM NanoPi NEO Plus 2"; + compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + }; +}; + + { + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>, <_cd_pin>; + vmmc-supply = <_vcc3v3>; + bus-width = <4>; + cd-gpios = < 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_8bit_pins>; + vmmc-supply = <_vcc3v3>; + bus-width = <8>; + non-removable; + cap-mmc-hw-reset; + status = &quo
[U-Boot] [PATCH v6 1/2] arm64: sun50i-h5.dtsi : update to kernel 4.14
last Kernel commit of sun50i-h5.dtsi d86e63e1f0b7 Signed-off-by: Antony Antony <ant...@phenome.org> --- Changes v1->v2 removed memory {}, compatible ="allwinner,sun5i-a13-mmc" remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no SPI) remove CONFIG_SD_BOOT=y Changes v2->v3 removed compatible ="allwinner,sun50i-a64-mmc" Changes v3->v4 removed compatible from mmc0 add h5 & a64 compaitable to sun50i-h5.dtsi Changes v4->v5 update sun50i-h5.dtsi to krenel tree 4.14 Changes v5->v6 update board/sunxi/MAINTAINERS --- arch/arm/dts/sun50i-h5.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/sun50i-h5.dtsi b/arch/arm/dts/sun50i-h5.dtsi index 4904c18..c052f31 100644 --- a/arch/arm/dts/sun50i-h5.dtsi +++ b/arch/arm/dts/sun50i-h5.dtsi @@ -72,6 +72,38 @@ }; }; + { + compatible = "allwinner,sun50i-h5-ccu"; +}; + { compatible = "arm,gic-400"; }; + + { + compatible = "allwinner,sun50i-h5-mmc", +"allwinner,sun50i-a64-mmc"; + clocks = < CLK_BUS_MMC0>, < CLK_MMC0>; + clock-names = "ahb", "mmc"; +}; + + { + compatible = "allwinner,sun50i-h5-mmc", +"allwinner,sun50i-a64-mmc"; + clocks = < CLK_BUS_MMC1>, < CLK_MMC1>; + clock-names = "ahb", "mmc"; +}; + + { + compatible = "allwinner,sun50i-h5-emmc", +"allwinner,sun50i-a64-emmc"; + clocks = < CLK_BUS_MMC2>, < CLK_MMC2>; + clock-names = "ahb", "mmc"; +}; + + { + interrupts = , +, + ; + compatible = "allwinner,sun50i-h5-pinctrl"; +}; -- 2.7.4 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH v5 1/2] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
On Tue, Nov 21, 2017 at 11:59:42AM +0530, Jagan Teki wrote: > On Fri, Nov 17, 2017 at 3:09 PM, Antony Antony <ant...@phenome.org> wrote: > > Add initial DT for NanoPi NEO Plus2 by FriendlyARM > > - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU > > - 1 GB DDR3 RAM > > - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) > > - micro SD card slot > > - Gigabit Ethernet (external RTL8211E-VB-CG chip) > > - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) > > - 2x USB 2.0 host ports > > > > Signed-off-by: Antony Antony <ant...@phenome.org> > > --- > > Changes v1->v2 > > removed memory {}, compatible ="allwinner,sun5i-a13-mmc" > > remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no SPI) > > remove CONFIG_SD_BOOT=y > > Changes v2->v3 > > removed compatible ="allwinner,sun50i-a64-mmc" > > Changes v3->v4 > > removed compatible from mmc0 > > add h5 & a64 compaitable to sun50i-h5.dtsi > > Changes v4->v5 > > update sun50i-h5.dtsi to krenel tree 4.14 > > --- > > arch/arm/dts/Makefile | 1 + > > arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 106 > > > > configs/nanopi_neo_plus2_defconfig | 18 + > > Update board MAINTAINERS file as well. yes. I will send new version soon. > > +CONFIG_MMC_SUNXI_SLOT_EXTRA=2 > Did you test eMMC boot? yes. I use Armbian and boot from eMMC. thanks, -antony ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] [PATCH v5 1/2] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
Add initial DT for NanoPi NEO Plus2 by FriendlyARM - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU - 1 GB DDR3 RAM - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) - micro SD card slot - Gigabit Ethernet (external RTL8211E-VB-CG chip) - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) - 2x USB 2.0 host ports Signed-off-by: Antony Antony <ant...@phenome.org> --- Changes v1->v2 removed memory {}, compatible ="allwinner,sun5i-a13-mmc" remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no SPI) remove CONFIG_SD_BOOT=y Changes v2->v3 removed compatible ="allwinner,sun50i-a64-mmc" Changes v3->v4 removed compatible from mmc0 add h5 & a64 compaitable to sun50i-h5.dtsi Changes v4->v5 update sun50i-h5.dtsi to krenel tree 4.14 --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 106 configs/nanopi_neo_plus2_defconfig | 18 + 3 files changed, 125 insertions(+) create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts create mode 100644 configs/nanopi_neo_plus2_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 6db64f91..e44ceaf 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -336,6 +336,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ sun8i-v3s-licheepi-zero.dtb dtb-$(CONFIG_MACH_SUN50I_H5) += \ sun50i-h5-nanopi-neo2.dtb \ + sun50i-h5-nanopi-neo-plus2.dtb \ sun50i-h5-orangepi-pc2.dtb \ sun50i-h5-orangepi-prime.dtb \ sun50i-h5-orangepi-zero-plus2.dtb diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts new file mode 100644 index 000..f1406c2 --- /dev/null +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> + * Copyright (c) 2016 ARM Ltd. + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; + +#include "sun50i-h5.dtsi" + +#include + +/ { + model = "FriendlyARM NanoPi NEO Plus 2"; + compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + }; +}; + + { + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>, <_cd_pin>; + vmmc-supply = <_vcc3v3>; + bus-width = <4>; + cd-gpios = < 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; + status = "okay"; +}; + + { + pinctrl-names = "default"; +
[U-Boot] [PATCH v5 2/2] arm64: sun50i-h5.dtsi : update to kernel 4.14
last Kernel commit of sun50i-h5.dtsi d86e63e1f0b7 Signed-off-by: Antony Antony <ant...@phenome.org> --- Changes v3->v4 removed compatible from mmc0 add h5 & a64 compaitable to sun50i-h5.dtsi Changes v4->v5 update sun50i-h5.dtsi to kernel 4.14 --- arch/arm/dts/sun50i-h5.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/sun50i-h5.dtsi b/arch/arm/dts/sun50i-h5.dtsi index 4904c18..c052f31 100644 --- a/arch/arm/dts/sun50i-h5.dtsi +++ b/arch/arm/dts/sun50i-h5.dtsi @@ -72,6 +72,38 @@ }; }; + { + compatible = "allwinner,sun50i-h5-ccu"; +}; + { compatible = "arm,gic-400"; }; + + { + compatible = "allwinner,sun50i-h5-mmc", +"allwinner,sun50i-a64-mmc"; + clocks = < CLK_BUS_MMC0>, < CLK_MMC0>; + clock-names = "ahb", "mmc"; +}; + + { + compatible = "allwinner,sun50i-h5-mmc", +"allwinner,sun50i-a64-mmc"; + clocks = < CLK_BUS_MMC1>, < CLK_MMC1>; + clock-names = "ahb", "mmc"; +}; + + { + compatible = "allwinner,sun50i-h5-emmc", +"allwinner,sun50i-a64-emmc"; + clocks = < CLK_BUS_MMC2>, < CLK_MMC2>; + clock-names = "ahb", "mmc"; +}; + + { + interrupts = , +, + ; + compatible = "allwinner,sun50i-h5-pinctrl"; +}; -- 2.7.4 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH v4 2/2] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
On Tue, Oct 10, 2017 at 10:30:42PM +0530, Jagan Teki wrote: > On Tue, Oct 10, 2017 at 10:26 PM, Antony Antony <ant...@phenome.org> wrote: > > On Tue, Oct 10, 2017 at 07:28:23PM +0530, Jagan Teki wrote: > >> On Tue, Oct 10, 2017 at 7:15 PM, Antony Antony <ant...@phenome.org> wrote: > >> > Add initial DT for NanoPi NEO Plus2 by FriendlyARM > >> > - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU > >> > - 1 GB DDR3 RAM > >> > - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) > >> > - micro SD card slot > >> > - Gigabit Ethernet (external RTL8211E-VB-CG chip) > >> > - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) > >> > - 2x USB 2.0 host ports > >> > > >> > Signed-off-by: Antony Antony <ant...@phenome.org> > >> > --- > >> > arch/arm/dts/Makefile | 1 + > >> > arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 106 > >> > > >> > configs/nanopi_neo_plus2_defconfig | 18 + > >> > 3 files changed, 125 insertions(+) > >> > create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > >> > create mode 100644 configs/nanopi_neo_plus2_defconfig > >> > --- > >> > Changes v1->v2 > >> > removed memory {}, compatible ="allwinner,sun5i-a13-mmc" > >> > remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no > >> > SPI) > >> > remove CONFIG_SD_BOOT=y > >> > Changes v2->v3 > >> > removed compatible ="allwinner,sun50i-a64-mmc" > >> > Changes v3->v4 > >> > removed compatible from mmc0 > >> > add h5 & a64 compaitable to sun50i-h5.dtsi > >> > > >> > diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile > >> > index 5b90280..879ff24 100644 > >> > --- a/arch/arm/dts/Makefile > >> > +++ b/arch/arm/dts/Makefile > >> > @@ -335,6 +335,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ > >> > sun8i-v3s-licheepi-zero.dtb > >> > dtb-$(CONFIG_MACH_SUN50I_H5) += \ > >> > sun50i-h5-nanopi-neo2.dtb \ > >> > + sun50i-h5-nanopi-neo-plus2.dtb \ > >> > sun50i-h5-orangepi-pc2.dtb \ > >> > sun50i-h5-orangepi-prime.dtb \ > >> > sun50i-h5-orangepi-zero-plus2.dtb > >> > diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > >> > b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > >> > new file mode 100644 > >> > index 000..f1406c2 > >> > --- /dev/null > >> > +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > >> > @@ -0,0 +1,106 @@ > >> > +/* > >> > + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> > >> > + * Copyright (c) 2016 ARM Ltd. > >> > + * > >> > + * This file is dual-licensed: you can use it either under the terms > >> > + * of the GPL or the X11 license, at your option. Note that this dual > >> > + * licensing only applies to this file, and not this project as a > >> > + * whole. > >> > + * > >> > + * a) This library is free software; you can redistribute it and/or > >> > + * modify it under the terms of the GNU General Public License as > >> > + * published by the Free Software Foundation; either version 2 of > >> > the > >> > + * License, or (at your option) any later version. > >> > + * > >> > + * This library is distributed in the hope that it will be useful, > >> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > >> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > >> > + * GNU General Public License for more details. > >> > + * > >> > + * Or, alternatively, > >> > + * > >> > + * b) Permission is hereby granted, free of charge, to any person > >> > + * obtaining a copy of this software and associated documentation > >> > + * files (the "Software"), to deal in the Software without > >> > + * restriction, including without limitation the rights to use, > >> > + * copy, modify, merge, publish, distribute, sublicense, and/or > >> > + * sell copies of the Software, and to permit persons to whom the > >> > + * Software is furnished to do so, subject to the following > >
Re: [U-Boot] [PATCH v4 1/2] arm64: sun50i-h5.dtsi : add h5 & a64 compatible to mmc[0-2]
On Tue, Oct 10, 2017 at 07:21:57PM +0530, Jagan Teki wrote: > On Tue, Oct 10, 2017 at 7:18 PM, Peter Robinsonwrote: > > Shouldn't we just be syncing changes to the DT from the kernel? > I guess syncing could possibly solve the problem! Kernel DTSI got the compiltables I need from the begining. The diff looks big to me. I am not sure yet, I understand all changes. Anyone who would like to sync the two files? Or willing to help me? diff ~/u-boot/arch/arm/dts/sun50i-h5.dtsi ~/linux/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi > And add last merge commit details on commit message. A good point. I am wondering what is the practice for this u-boot commit message. I do not see commit IDs mentioned. A few commits seems to mention kernel version in the commit message. -antony ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH v4 2/2] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
On Tue, Oct 10, 2017 at 07:28:23PM +0530, Jagan Teki wrote: > On Tue, Oct 10, 2017 at 7:15 PM, Antony Antony <ant...@phenome.org> wrote: > > Add initial DT for NanoPi NEO Plus2 by FriendlyARM > > - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU > > - 1 GB DDR3 RAM > > - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) > > - micro SD card slot > > - Gigabit Ethernet (external RTL8211E-VB-CG chip) > > - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) > > - 2x USB 2.0 host ports > > > > Signed-off-by: Antony Antony <ant...@phenome.org> > > --- > > arch/arm/dts/Makefile | 1 + > > arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 106 > > > > configs/nanopi_neo_plus2_defconfig | 18 + > > 3 files changed, 125 insertions(+) > > create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > create mode 100644 configs/nanopi_neo_plus2_defconfig > > --- > > Changes v1->v2 > > removed memory {}, compatible ="allwinner,sun5i-a13-mmc" > > remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no SPI) > > remove CONFIG_SD_BOOT=y > > Changes v2->v3 > > removed compatible ="allwinner,sun50i-a64-mmc" > > Changes v3->v4 > > removed compatible from mmc0 > > add h5 & a64 compaitable to sun50i-h5.dtsi > > > > diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile > > index 5b90280..879ff24 100644 > > --- a/arch/arm/dts/Makefile > > +++ b/arch/arm/dts/Makefile > > @@ -335,6 +335,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ > > sun8i-v3s-licheepi-zero.dtb > > dtb-$(CONFIG_MACH_SUN50I_H5) += \ > > sun50i-h5-nanopi-neo2.dtb \ > > + sun50i-h5-nanopi-neo-plus2.dtb \ > > sun50i-h5-orangepi-pc2.dtb \ > > sun50i-h5-orangepi-prime.dtb \ > > sun50i-h5-orangepi-zero-plus2.dtb > > diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > new file mode 100644 > > index 000..f1406c2 > > --- /dev/null > > +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > @@ -0,0 +1,106 @@ > > +/* > > + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> > > + * Copyright (c) 2016 ARM Ltd. > > + * > > + * This file is dual-licensed: you can use it either under the terms > > + * of the GPL or the X11 license, at your option. Note that this dual > > + * licensing only applies to this file, and not this project as a > > + * whole. > > + * > > + * a) This library is free software; you can redistribute it and/or > > + * modify it under the terms of the GNU General Public License as > > + * published by the Free Software Foundation; either version 2 of the > > + * License, or (at your option) any later version. > > + * > > + * This library is distributed in the hope that it will be useful, > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > + * > > + * Or, alternatively, > > + * > > + * b) Permission is hereby granted, free of charge, to any person > > + * obtaining a copy of this software and associated documentation > > + * files (the "Software"), to deal in the Software without > > + * restriction, including without limitation the rights to use, > > + * copy, modify, merge, publish, distribute, sublicense, and/or > > + * sell copies of the Software, and to permit persons to whom the > > + * Software is furnished to do so, subject to the following > > + * conditions: > > + * > > + * The above copyright notice and this permission notice shall be > > + * included in all copies or substantial portions of the Software. > > + * > > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > > + * OTHER DEALINGS IN THE SOFTWARE. > > + */ > > + > > +/dts-v1/;
[U-Boot] [PATCH v4 2/2] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
Add initial DT for NanoPi NEO Plus2 by FriendlyARM - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU - 1 GB DDR3 RAM - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) - micro SD card slot - Gigabit Ethernet (external RTL8211E-VB-CG chip) - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) - 2x USB 2.0 host ports Signed-off-by: Antony Antony <ant...@phenome.org> --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 106 configs/nanopi_neo_plus2_defconfig | 18 + 3 files changed, 125 insertions(+) create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts create mode 100644 configs/nanopi_neo_plus2_defconfig --- Changes v1->v2 removed memory {}, compatible ="allwinner,sun5i-a13-mmc" remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no SPI) remove CONFIG_SD_BOOT=y Changes v2->v3 removed compatible ="allwinner,sun50i-a64-mmc" Changes v3->v4 removed compatible from mmc0 add h5 & a64 compaitable to sun50i-h5.dtsi diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 5b90280..879ff24 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -335,6 +335,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ sun8i-v3s-licheepi-zero.dtb dtb-$(CONFIG_MACH_SUN50I_H5) += \ sun50i-h5-nanopi-neo2.dtb \ + sun50i-h5-nanopi-neo-plus2.dtb \ sun50i-h5-orangepi-pc2.dtb \ sun50i-h5-orangepi-prime.dtb \ sun50i-h5-orangepi-zero-plus2.dtb diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts new file mode 100644 index 000..f1406c2 --- /dev/null +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> + * Copyright (c) 2016 ARM Ltd. + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; + +#include "sun50i-h5.dtsi" + +#include + +/ { + model = "FriendlyARM NanoPi NEO Plus 2"; + compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + }; +}; + + { + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>, <_cd_pin>; + vmmc-supply = <_vcc3v3>; + bus-width = <4>; + cd-gpios = < 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_8bit_pins>; + vmmc-supply = <_vcc3v3&
[U-Boot] [PATCH v4 1/2] arm64: sun50i-h5.dtsi : add h5 & a64 compatible to mmc[0-2]
add more specific, Allwinner H5 SoC, compaitable to mmc0,1,2 current one comes from sun8i-h3.dtsi compatible = "allwinner,sun7i-a20-mmc", "allwinner,sun5i-a13-mmc"; Signed-off-by: Antony Antony <ant...@phenome.org> --- arch/arm/dts/sun50i-h5.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/sun50i-h5.dtsi b/arch/arm/dts/sun50i-h5.dtsi index 4904c18..1f4c1d1 100644 --- a/arch/arm/dts/sun50i-h5.dtsi +++ b/arch/arm/dts/sun50i-h5.dtsi @@ -75,3 +75,15 @@ { compatible = "arm,gic-400"; }; + + { + compatible = "allwinner,sun50i-h5-mmc", "allwinner,sun50i-a64-mmc"; +}; + + { + compatible = "allwinner,sun50i-h5-mmc", "allwinner,sun50i-a64-mmc"; +}; + + { + compatible = "allwinner,sun50i-h5-mmc", "allwinner,sun50i-a64-mmc"; +}; -- 2.7.4 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH v3] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
On Mon, Oct 09, 2017 at 09:22:03AM +0200, Maxime Ripard wrote: > On Fri, Oct 06, 2017 at 09:11:22AM +0000, Antony Antony wrote: > > Hi > > > > Thanks Chen-Yu and Maxime. > > > > On Tue, Oct 03, 2017 at 10:11:00AM +0800, Chen-Yu Tsai wrote: > > > On Mon, Oct 2, 2017 at 1:34 AM, Antony Antony <ant...@phenome.org> wrote: > > > > Hi Maxime, > > > > > > > > sorry for the delayed response. > > > > > > > > On Mon, Sep 25, 2017 at 01:12:23PM +0200, Maxime Ripard wrote: > > > >> On Sat, Sep 23, 2017 at 05:59:15PM +, Antony Antony wrote: > > > >> > Add initial DT for NanoPi NEO Plus2 by FriendlyARM > > > >> > - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU > > > >> > - 1 GB DDR3 RAM > > > >> > - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) > > > >> > - micro SD card slot > > > >> > - Gigabit Ethernet (external RTL8211E-VB-CG chip) > > > >> > - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) > > > >> > - 2x USB 2.0 host ports > > > >> > > > > >> > Signed-off-by: Antony Antony <ant...@phenome.org> > > > >> > --- > > > >> > Changes v1->v2 > > > >> > removed memory {}, compatible ="allwinner,sun5i-a13-mmc" > > > >> > remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y > > > >> > (no SPI) > > > >> > remove CONFIG_SD_BOOT=y > > > >> > Changes v2->v3 > > > >> > removed compatible ="allwinner,sun50i-a64-mmc" > > > >> > --- > > > >> > arch/arm/dts/Makefile | 1 + > > > >> > arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 107 > > > >> > > > > >> > configs/nanopi_neo_plus2_defconfig | 18 + > > > >> > 3 files changed, 126 insertions(+) > > > >> > create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > > >> > create mode 100644 configs/nanopi_neo_plus2_defconfig > > > >> > > > > >> > diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile > > > >> > index fee4680..295a675 100644 > > > >> > --- a/arch/arm/dts/Makefile > > > >> > +++ b/arch/arm/dts/Makefile > > > >> > @@ -333,6 +333,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ > > > >> > sun8i-v3s-licheepi-zero.dtb > > > >> > dtb-$(CONFIG_MACH_SUN50I_H5) += \ > > > >> > sun50i-h5-nanopi-neo2.dtb \ > > > >> > + sun50i-h5-nanopi-neo-plus2.dtb \ > > > >> > sun50i-h5-orangepi-pc2.dtb \ > > > >> > sun50i-h5-orangepi-prime.dtb \ > > > >> > sun50i-h5-orangepi-zero-plus2.dtb > > > >> > diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > > >> > b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > > >> > new file mode 100644 > > > >> > index 000..8ac098e > > > >> > --- /dev/null > > > >> > +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > > >> > @@ -0,0 +1,107 @@ > > > >> > +/* > > > >> > + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> > > > >> > + * Copyright (c) 2016 ARM Ltd. > > > >> > + * > > > >> > + * This file is dual-licensed: you can use it either under the terms > > > >> > + * of the GPL or the X11 license, at your option. Note that this > > > >> > dual > > > >> > + * licensing only applies to this file, and not this project as a > > > >> > + * whole. > > > >> > + * > > > >> > + * a) This library is free software; you can redistribute it and/or > > > >> > + * modify it under the terms of the GNU General Public License > > > >> > as > > > >> > + * published by the Free Software Foundation; either version 2 > > > >> > of the > > > >> > + * License, or (at your option) any later version. > > > >> > + * > > > >> > + * This library is distributed in the hope that it will be > > > >> > useful, > > > >> > + * but WITHOUT ANY WARRANTY; without even the implied warranty &g
Re: [U-Boot] [PATCH v3] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
Hi Thanks Chen-Yu and Maxime. On Tue, Oct 03, 2017 at 10:11:00AM +0800, Chen-Yu Tsai wrote: > On Mon, Oct 2, 2017 at 1:34 AM, Antony Antony <ant...@phenome.org> wrote: > > Hi Maxime, > > > > sorry for the delayed response. > > > > On Mon, Sep 25, 2017 at 01:12:23PM +0200, Maxime Ripard wrote: > >> On Sat, Sep 23, 2017 at 05:59:15PM +, Antony Antony wrote: > >> > Add initial DT for NanoPi NEO Plus2 by FriendlyARM > >> > - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU > >> > - 1 GB DDR3 RAM > >> > - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) > >> > - micro SD card slot > >> > - Gigabit Ethernet (external RTL8211E-VB-CG chip) > >> > - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) > >> > - 2x USB 2.0 host ports > >> > > >> > Signed-off-by: Antony Antony <ant...@phenome.org> > >> > --- > >> > Changes v1->v2 > >> > removed memory {}, compatible ="allwinner,sun5i-a13-mmc" > >> > remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no > >> > SPI) > >> > remove CONFIG_SD_BOOT=y > >> > Changes v2->v3 > >> > removed compatible ="allwinner,sun50i-a64-mmc" > >> > --- > >> > arch/arm/dts/Makefile | 1 + > >> > arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 107 > >> > > >> > configs/nanopi_neo_plus2_defconfig | 18 + > >> > 3 files changed, 126 insertions(+) > >> > create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > >> > create mode 100644 configs/nanopi_neo_plus2_defconfig > >> > > >> > diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile > >> > index fee4680..295a675 100644 > >> > --- a/arch/arm/dts/Makefile > >> > +++ b/arch/arm/dts/Makefile > >> > @@ -333,6 +333,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ > >> > sun8i-v3s-licheepi-zero.dtb > >> > dtb-$(CONFIG_MACH_SUN50I_H5) += \ > >> > sun50i-h5-nanopi-neo2.dtb \ > >> > + sun50i-h5-nanopi-neo-plus2.dtb \ > >> > sun50i-h5-orangepi-pc2.dtb \ > >> > sun50i-h5-orangepi-prime.dtb \ > >> > sun50i-h5-orangepi-zero-plus2.dtb > >> > diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > >> > b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > >> > new file mode 100644 > >> > index 000..8ac098e > >> > --- /dev/null > >> > +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > >> > @@ -0,0 +1,107 @@ > >> > +/* > >> > + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> > >> > + * Copyright (c) 2016 ARM Ltd. > >> > + * > >> > + * This file is dual-licensed: you can use it either under the terms > >> > + * of the GPL or the X11 license, at your option. Note that this dual > >> > + * licensing only applies to this file, and not this project as a > >> > + * whole. > >> > + * > >> > + * a) This library is free software; you can redistribute it and/or > >> > + * modify it under the terms of the GNU General Public License as > >> > + * published by the Free Software Foundation; either version 2 of > >> > the > >> > + * License, or (at your option) any later version. > >> > + * > >> > + * This library is distributed in the hope that it will be useful, > >> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > >> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > >> > + * GNU General Public License for more details. > >> > + * > >> > + * Or, alternatively, > >> > + * > >> > + * b) Permission is hereby granted, free of charge, to any person > >> > + * obtaining a copy of this software and associated documentation > >> > + * files (the "Software"), to deal in the Software without > >> > + * restriction, including without limitation the rights to use, > >> > + * copy, modify, merge, publish, distribute, sublicense, and/or > >> > + * sell copies of the Software, and to permit persons to whom the > >> > + * Software is furnished to do so, subject to the following > >> > + * conditions: > >> > + * > >> >
Re: [U-Boot] [PATCH v3] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
Hi Maxime, sorry for the delayed response. On Mon, Sep 25, 2017 at 01:12:23PM +0200, Maxime Ripard wrote: > On Sat, Sep 23, 2017 at 05:59:15PM +0000, Antony Antony wrote: > > Add initial DT for NanoPi NEO Plus2 by FriendlyARM > > - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU > > - 1 GB DDR3 RAM > > - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) > > - micro SD card slot > > - Gigabit Ethernet (external RTL8211E-VB-CG chip) > > - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) > > - 2x USB 2.0 host ports > > > > Signed-off-by: Antony Antony <ant...@phenome.org> > > --- > > Changes v1->v2 > > removed memory {}, compatible ="allwinner,sun5i-a13-mmc" > > remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no SPI) > > remove CONFIG_SD_BOOT=y > > Changes v2->v3 > > removed compatible ="allwinner,sun50i-a64-mmc" > > --- > > arch/arm/dts/Makefile | 1 + > > arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 107 > > > > configs/nanopi_neo_plus2_defconfig | 18 + > > 3 files changed, 126 insertions(+) > > create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > create mode 100644 configs/nanopi_neo_plus2_defconfig > > > > diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile > > index fee4680..295a675 100644 > > --- a/arch/arm/dts/Makefile > > +++ b/arch/arm/dts/Makefile > > @@ -333,6 +333,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ > > sun8i-v3s-licheepi-zero.dtb > > dtb-$(CONFIG_MACH_SUN50I_H5) += \ > > sun50i-h5-nanopi-neo2.dtb \ > > + sun50i-h5-nanopi-neo-plus2.dtb \ > > sun50i-h5-orangepi-pc2.dtb \ > > sun50i-h5-orangepi-prime.dtb \ > > sun50i-h5-orangepi-zero-plus2.dtb > > diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > new file mode 100644 > > index 000..8ac098e > > --- /dev/null > > +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > > @@ -0,0 +1,107 @@ > > +/* > > + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> > > + * Copyright (c) 2016 ARM Ltd. > > + * > > + * This file is dual-licensed: you can use it either under the terms > > + * of the GPL or the X11 license, at your option. Note that this dual > > + * licensing only applies to this file, and not this project as a > > + * whole. > > + * > > + * a) This library is free software; you can redistribute it and/or > > + * modify it under the terms of the GNU General Public License as > > + * published by the Free Software Foundation; either version 2 of the > > + * License, or (at your option) any later version. > > + * > > + * This library is distributed in the hope that it will be useful, > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > + * > > + * Or, alternatively, > > + * > > + * b) Permission is hereby granted, free of charge, to any person > > + * obtaining a copy of this software and associated documentation > > + * files (the "Software"), to deal in the Software without > > + * restriction, including without limitation the rights to use, > > + * copy, modify, merge, publish, distribute, sublicense, and/or > > + * sell copies of the Software, and to permit persons to whom the > > + * Software is furnished to do so, subject to the following > > + * conditions: > > + * > > + * The above copyright notice and this permission notice shall be > > + * included in all copies or substantial portions of the Software. > > + * > > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > > + * OTHER DEALINGS IN THE SOFTWARE. > > + */ > > + > > +/dts-v1/; > > + > > +#include "sun50i-h5.dtsi" > > + > > +#include > > + > > +/ { > > + model = "
[U-Boot] [PATCH v3] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
Add initial DT for NanoPi NEO Plus2 by FriendlyARM - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU - 1 GB DDR3 RAM - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) - micro SD card slot - Gigabit Ethernet (external RTL8211E-VB-CG chip) - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) - 2x USB 2.0 host ports Signed-off-by: Antony Antony <ant...@phenome.org> --- Changes v1->v2 removed memory {}, compatible ="allwinner,sun5i-a13-mmc" remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no SPI) remove CONFIG_SD_BOOT=y Changes v2->v3 removed compatible ="allwinner,sun50i-a64-mmc" --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 107 configs/nanopi_neo_plus2_defconfig | 18 + 3 files changed, 126 insertions(+) create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts create mode 100644 configs/nanopi_neo_plus2_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index fee4680..295a675 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -333,6 +333,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ sun8i-v3s-licheepi-zero.dtb dtb-$(CONFIG_MACH_SUN50I_H5) += \ sun50i-h5-nanopi-neo2.dtb \ + sun50i-h5-nanopi-neo-plus2.dtb \ sun50i-h5-orangepi-pc2.dtb \ sun50i-h5-orangepi-prime.dtb \ sun50i-h5-orangepi-zero-plus2.dtb diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts new file mode 100644 index 000..8ac098e --- /dev/null +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts @@ -0,0 +1,107 @@ +/* + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> + * Copyright (c) 2016 ARM Ltd. + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; + +#include "sun50i-h5.dtsi" + +#include + +/ { + model = "FriendlyARM NanoPi NEO Plus 2"; + compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + }; +}; + + { + status = "okay"; +}; + + { + compatible = "allwinner,sun50i-h5-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>, <_cd_pin>; + vmmc-supply = <_vcc3v3>; + bus-width = <4>; + cd-gpios = < 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_8bit_pins>; + vmmc-supply = <_vcc3v3>; + bus-width = <8>; +
[U-Boot] [PATCH v2] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
Add initial DT for NanoPi NEO Plus2 by FriendlyARM - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU - 1 GB DDR3 RAM - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) - micro SD card slot - Gigabit Ethernet (external RTL8211E-VB-CG chip) - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) - 2x USB 2.0 host ports Signed-off-by: Antony Antony <ant...@phenome.org> --- Changes v1->v2 removed memory {}, compatible ="allwinner,sun5i-a13-mmc" remove CONFIG_SPL_SPI_FLASH_SUPPORT=y and CONFIG_SPL_SPI_SUNXI=y (no SPI) remove CONFIG_SD_BOOT=y --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 108 configs/nanopi_neo_plus2_defconfig | 18 + 3 files changed, 127 insertions(+) create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts create mode 100644 configs/nanopi_neo_plus2_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index fee4680..295a675 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -333,6 +333,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ sun8i-v3s-licheepi-zero.dtb dtb-$(CONFIG_MACH_SUN50I_H5) += \ sun50i-h5-nanopi-neo2.dtb \ + sun50i-h5-nanopi-neo-plus2.dtb \ sun50i-h5-orangepi-pc2.dtb \ sun50i-h5-orangepi-prime.dtb \ sun50i-h5-orangepi-zero-plus2.dtb diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts new file mode 100644 index 000..fce0d6c --- /dev/null +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts @@ -0,0 +1,108 @@ +/* + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> + * Copyright (c) 2016 ARM Ltd. + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; + +#include "sun50i-h5.dtsi" + +#include + +/ { + model = "FriendlyARM NanoPi NEO Plus 2"; + compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + }; +}; + + { + status = "okay"; +}; + + { + compatible = "allwinner,sun50i-h5-mmc", +"allwinner,sun50i-a64-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>, <_cd_pin>; + vmmc-supply = <_vcc3v3>; + bus-width = <4>; + cd-gpios = < 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_8bit_pins>; + vmmc-supply = <_vcc3v3>; + bus-width = <8>; + non-remova
[U-Boot] [PATCH] sun50i: h5: Add NanoPi Neo Plus2 DT initial support
Add initial DT for NanoPi NEO Plus2 by FriendlyARM - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU - 1 GB DDR3 RAM - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) - micro SD card slot - Gigabit Ethernet (external RTL8211E-VB-CG chip) - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module) - 2x USB 2.0 host ports Signed-off-by: Antony Antony <ant...@phenome.org> Tested-by: Antony Antony <ant...@phenome.org> --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 113 configs/nanopi_neo_plus2_defconfig | 21 ++ 3 files changed, 135 insertions(+) create mode 100644 arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts create mode 100644 configs/nanopi_neo_plus2_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index fee4680..295a675 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -333,6 +333,7 @@ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ sun8i-v3s-licheepi-zero.dtb dtb-$(CONFIG_MACH_SUN50I_H5) += \ sun50i-h5-nanopi-neo2.dtb \ + sun50i-h5-nanopi-neo-plus2.dtb \ sun50i-h5-orangepi-pc2.dtb \ sun50i-h5-orangepi-prime.dtb \ sun50i-h5-orangepi-zero-plus2.dtb diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts new file mode 100644 index 000..7d12774 --- /dev/null +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts @@ -0,0 +1,113 @@ +/* + * Copyright (C) 2017 Antony Antony <ant...@phenome.org> + * Copyright (c) 2016 ARM Ltd. + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; + +#include "sun50i-h5.dtsi" + +#include + +/ { + model = "FriendlyARM NanoPi NEO Plus 2"; + compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + reg = <0x4000 0x4000>; + }; + + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + }; +}; + + { + status = "okay"; +}; + + { + compatible = "allwinner,sun50i-h5-mmc", +"allwinner,sun50i-a64-mmc", +"allwinner,sun5i-a13-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>, <_cd_pin>; + vmmc-supply = <_vcc3v3>; + bus-width = <4>; + cd-gpios = < 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_8bit_pins>; + vmmc-supply = <_vcc3v3>; + bus-width = <8>; + non-rem