* [U-Boot] [PATCH] arm: sunxi: Add support for the RerVision H3-DVK board
@ 2019-03-14 10:40 Paul Kocialkowski
2019-04-09 10:26 ` [U-Boot] [linux-sunxi] " Jagan Teki
0 siblings, 1 reply; 3+ messages in thread
From: Paul Kocialkowski @ 2019-03-14 10:40 UTC (permalink / raw)
To: u-boot
This is an H3-based board that sticks close to the reference design.
Supported features:
* UART
* DRAM
* MMC
* eMMC
* Ethernet
* USB host
* USB peripheral
* HDMI
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
---
arch/arm/dts/Makefile | 3 +-
arch/arm/dts/sun8i-h3-rervision-dvk.dts | 107 ++++++++++++++++++++++++
configs/rervision_h3_dvk_defconfig | 17 ++++
3 files changed, 126 insertions(+), 1 deletion(-)
create mode 100644 arch/arm/dts/sun8i-h3-rervision-dvk.dts
create mode 100644 configs/rervision_h3_dvk_defconfig
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 2a040b20a539..a64c0fada4cb 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -401,7 +401,8 @@ dtb-$(CONFIG_MACH_SUN8I_H3) += \
sun8i-h3-orangepi-pc.dtb \
sun8i-h3-orangepi-pc-plus.dtb \
sun8i-h3-orangepi-plus.dtb \
- sun8i-h3-orangepi-plus2e.dtb
+ sun8i-h3-orangepi-plus2e.dtb \
+ sun8i-h3-rervision-dvk.dtb
dtb-$(CONFIG_MACH_SUN8I_R40) += \
sun8i-r40-bananapi-m2-ultra.dtb \
sun8i-v40-bananapi-m2-berry.dtb
diff --git a/arch/arm/dts/sun8i-h3-rervision-dvk.dts b/arch/arm/dts/sun8i-h3-rervision-dvk.dts
new file mode 100644
index 000000000000..8a4b83a02d9d
--- /dev/null
+++ b/arch/arm/dts/sun8i-h3-rervision-dvk.dts
@@ -0,0 +1,107 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2019 Bootlin
+ * Author: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
+ */
+
+/dts-v1/;
+#include "sun8i-h3.dtsi"
+#include "sunxi-common-regulators.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ model = "RerVision H3-DVK";
+ compatible = "rervision,h3-dvk", "allwinner,sun8i-h3";
+
+ aliases {
+ ethernet0 = &emac;
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ connector {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi_connector_input: endpoint {
+ remote-endpoint = <&hdmi_connector_output>;
+ };
+ };
+ };
+};
+
+&ehci1 {
+ status = "okay";
+};
+
+&ehci2 {
+ status = "okay";
+};
+
+&emac {
+ phy-handle = <&int_mii_phy>;
+ phy-mode = "mii";
+ allwinner,leds-active-low;
+ status = "okay";
+};
+
+&hdmi {
+ status = "okay";
+};
+
+&hdmi_out {
+ hdmi_connector_output: endpoint {
+ remote-endpoint = <&hdmi_connector_input>;
+ };
+};
+
+&mmc0 {
+ bus-width = <4>;
+ cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ status = "okay";
+ vmmc-supply = <®_vcc3v3>;
+};
+
+&mmc2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc2_8bit_pins>;
+ vmmc-supply = <®_vcc3v3>;
+ bus-width = <8>;
+ non-removable;
+ cap-mmc-hw-reset;
+ status = "okay";
+};
+
+&mmc2_8bit_pins {
+ drive-strength = <40>;
+ bias-pull-up;
+};
+
+&ohci1 {
+ status = "okay";
+};
+
+&ohci2 {
+ status = "okay";
+};
+
+&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pins_a>;
+ status = "okay";
+};
+
+&usb_otg {
+ status = "okay";
+ dr_mode = "peripheral";
+};
+
+&usbphy {
+ status = "okay";
+};
diff --git a/configs/rervision_h3_dvk_defconfig b/configs/rervision_h3_dvk_defconfig
new file mode 100644
index 000000000000..895a985ccdcd
--- /dev/null
+++ b/configs/rervision_h3_dvk_defconfig
@@ -0,0 +1,17 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_SPL=y
+CONFIG_MACH_SUN8I_H3=y
+CONFIG_DRAM_CLK=408
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_NR_DRAM_BANKS=1
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+# CONFIG_CMD_FLASH is not set
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-rervision-dvk"
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
+CONFIG_USB_MUSB_GADGET=y
+CONFIG_FASTBOOT=y
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [linux-sunxi] [PATCH] arm: sunxi: Add support for the RerVision H3-DVK board
2019-03-14 10:40 [U-Boot] [PATCH] arm: sunxi: Add support for the RerVision H3-DVK board Paul Kocialkowski
@ 2019-04-09 10:26 ` Jagan Teki
2019-04-09 12:57 ` Paul Kocialkowski
0 siblings, 1 reply; 3+ messages in thread
From: Jagan Teki @ 2019-04-09 10:26 UTC (permalink / raw)
To: u-boot
On Thu, Mar 14, 2019 at 4:10 PM Paul Kocialkowski
<paul.kocialkowski@bootlin.com> wrote:
>
> This is an H3-based board that sticks close to the reference design.
>
> Supported features:
> * UART
> * DRAM
> * MMC
> * eMMC
> * Ethernet
> * USB host
> * USB peripheral
> * HDMI
Can you add commit details of dts file from Linux sync, I usually
prefer this for future reference syncs.
>
> Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
> ---
> arch/arm/dts/Makefile | 3 +-
> arch/arm/dts/sun8i-h3-rervision-dvk.dts | 107 ++++++++++++++++++++++++
> configs/rervision_h3_dvk_defconfig | 17 ++++
> 3 files changed, 126 insertions(+), 1 deletion(-)
> create mode 100644 arch/arm/dts/sun8i-h3-rervision-dvk.dts
> create mode 100644 configs/rervision_h3_dvk_defconfig
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index 2a040b20a539..a64c0fada4cb 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -401,7 +401,8 @@ dtb-$(CONFIG_MACH_SUN8I_H3) += \
> sun8i-h3-orangepi-pc.dtb \
> sun8i-h3-orangepi-pc-plus.dtb \
> sun8i-h3-orangepi-plus.dtb \
> - sun8i-h3-orangepi-plus2e.dtb
> + sun8i-h3-orangepi-plus2e.dtb \
> + sun8i-h3-rervision-dvk.dtb
> dtb-$(CONFIG_MACH_SUN8I_R40) += \
> sun8i-r40-bananapi-m2-ultra.dtb \
> sun8i-v40-bananapi-m2-berry.dtb
> diff --git a/arch/arm/dts/sun8i-h3-rervision-dvk.dts b/arch/arm/dts/sun8i-h3-rervision-dvk.dts
> new file mode 100644
> index 000000000000..8a4b83a02d9d
> --- /dev/null
> +++ b/arch/arm/dts/sun8i-h3-rervision-dvk.dts
> @@ -0,0 +1,107 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (C) 2019 Bootlin
> + * Author: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
> + */
> +
> +/dts-v1/;
> +#include "sun8i-h3.dtsi"
> +#include "sunxi-common-regulators.dtsi"
> +
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/input/input.h>
> +
> +/ {
> + model = "RerVision H3-DVK";
> + compatible = "rervision,h3-dvk", "allwinner,sun8i-h3";
> +
> + aliases {
> + ethernet0 = &emac;
> + serial0 = &uart0;
> + };
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + };
> +
> + connector {
> + compatible = "hdmi-connector";
> + type = "a";
> +
> + port {
> + hdmi_connector_input: endpoint {
> + remote-endpoint = <&hdmi_connector_output>;
> + };
> + };
> + };
> +};
> +
> +&ehci1 {
> + status = "okay";
> +};
> +
> +&ehci2 {
> + status = "okay";
> +};
> +
> +&emac {
> + phy-handle = <&int_mii_phy>;
> + phy-mode = "mii";
> + allwinner,leds-active-low;
> + status = "okay";
> +};
> +
> +&hdmi {
> + status = "okay";
> +};
> +
> +&hdmi_out {
> + hdmi_connector_output: endpoint {
> + remote-endpoint = <&hdmi_connector_input>;
> + };
> +};
> +
> +&mmc0 {
> + bus-width = <4>;
> + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
> + status = "okay";
> + vmmc-supply = <®_vcc3v3>;
> +};
> +
> +&mmc2 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&mmc2_8bit_pins>;
> + vmmc-supply = <®_vcc3v3>;
> + bus-width = <8>;
> + non-removable;
> + cap-mmc-hw-reset;
> + status = "okay";
> +};
> +
> +&mmc2_8bit_pins {
> + drive-strength = <40>;
> + bias-pull-up;
> +};
> +
> +&ohci1 {
> + status = "okay";
> +};
> +
> +&ohci2 {
> + status = "okay";
> +};
> +
> +&uart0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&uart0_pins_a>;
> + status = "okay";
> +};
> +
> +&usb_otg {
> + status = "okay";
> + dr_mode = "peripheral";
> +};
> +
> +&usbphy {
> + status = "okay";
> +};
> diff --git a/configs/rervision_h3_dvk_defconfig b/configs/rervision_h3_dvk_defconfig
> new file mode 100644
> index 000000000000..895a985ccdcd
> --- /dev/null
> +++ b/configs/rervision_h3_dvk_defconfig
> @@ -0,0 +1,17 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_SUNXI=y
> +CONFIG_SPL=y
> +CONFIG_MACH_SUN8I_H3=y
> +CONFIG_DRAM_CLK=408
> +CONFIG_MMC_SUNXI_SLOT_EXTRA=2
> +CONFIG_NR_DRAM_BANKS=1
> +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
> +# CONFIG_CMD_FLASH is not set
> +# CONFIG_SPL_DOS_PARTITION is not set
> +# CONFIG_SPL_EFI_PARTITION is not set
> +CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-rervision-dvk"
> +CONFIG_USB_EHCI_HCD=y
> +CONFIG_USB_OHCI_HCD=y
> +CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
> +CONFIG_USB_MUSB_GADGET=y
> +CONFIG_FASTBOOT=y
Not needed, this can enabled by MUSB_GADET
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [linux-sunxi] [PATCH] arm: sunxi: Add support for the RerVision H3-DVK board
2019-04-09 10:26 ` [U-Boot] [linux-sunxi] " Jagan Teki
@ 2019-04-09 12:57 ` Paul Kocialkowski
0 siblings, 0 replies; 3+ messages in thread
From: Paul Kocialkowski @ 2019-04-09 12:57 UTC (permalink / raw)
To: u-boot
Hi,
Le mardi 09 avril 2019 à 15:56 +0530, Jagan Teki a écrit :
> On Thu, Mar 14, 2019 at 4:10 PM Paul Kocialkowski
> <paul.kocialkowski@bootlin.com> wrote:
> > This is an H3-based board that sticks close to the reference design.
> >
> > Supported features:
> > * UART
> > * DRAM
> > * MMC
> > * eMMC
> > * Ethernet
> > * USB host
> > * USB peripheral
> > * HDMI
>
> Can you add commit details of dts file from Linux sync, I usually
> prefer this for future reference syncs.
Sure thing, I'll make a new version with the associated linux commit
listed.
Cheers,
Paul
> > Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
> > ---
> > arch/arm/dts/Makefile | 3 +-
> > arch/arm/dts/sun8i-h3-rervision-dvk.dts | 107 ++++++++++++++++++++++++
> > configs/rervision_h3_dvk_defconfig | 17 ++++
> > 3 files changed, 126 insertions(+), 1 deletion(-)
> > create mode 100644 arch/arm/dts/sun8i-h3-rervision-dvk.dts
> > create mode 100644 configs/rervision_h3_dvk_defconfig
> >
> > diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> > index 2a040b20a539..a64c0fada4cb 100644
> > --- a/arch/arm/dts/Makefile
> > +++ b/arch/arm/dts/Makefile
> > @@ -401,7 +401,8 @@ dtb-$(CONFIG_MACH_SUN8I_H3) += \
> > sun8i-h3-orangepi-pc.dtb \
> > sun8i-h3-orangepi-pc-plus.dtb \
> > sun8i-h3-orangepi-plus.dtb \
> > - sun8i-h3-orangepi-plus2e.dtb
> > + sun8i-h3-orangepi-plus2e.dtb \
> > + sun8i-h3-rervision-dvk.dtb
> > dtb-$(CONFIG_MACH_SUN8I_R40) += \
> > sun8i-r40-bananapi-m2-ultra.dtb \
> > sun8i-v40-bananapi-m2-berry.dtb
> > diff --git a/arch/arm/dts/sun8i-h3-rervision-dvk.dts b/arch/arm/dts/sun8i-h3-rervision-dvk.dts
> > new file mode 100644
> > index 000000000000..8a4b83a02d9d
> > --- /dev/null
> > +++ b/arch/arm/dts/sun8i-h3-rervision-dvk.dts
> > @@ -0,0 +1,107 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +/*
> > + * Copyright (C) 2019 Bootlin
> > + * Author: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
> > + */
> > +
> > +/dts-v1/;
> > +#include "sun8i-h3.dtsi"
> > +#include "sunxi-common-regulators.dtsi"
> > +
> > +#include <dt-bindings/gpio/gpio.h>
> > +#include <dt-bindings/input/input.h>
> > +
> > +/ {
> > + model = "RerVision H3-DVK";
> > + compatible = "rervision,h3-dvk", "allwinner,sun8i-h3";
> > +
> > + aliases {
> > + ethernet0 = &emac;
> > + serial0 = &uart0;
> > + };
> > +
> > + chosen {
> > + stdout-path = "serial0:115200n8";
> > + };
> > +
> > + connector {
> > + compatible = "hdmi-connector";
> > + type = "a";
> > +
> > + port {
> > + hdmi_connector_input: endpoint {
> > + remote-endpoint = <&hdmi_connector_output>;
> > + };
> > + };
> > + };
> > +};
> > +
> > +&ehci1 {
> > + status = "okay";
> > +};
> > +
> > +&ehci2 {
> > + status = "okay";
> > +};
> > +
> > +&emac {
> > + phy-handle = <&int_mii_phy>;
> > + phy-mode = "mii";
> > + allwinner,leds-active-low;
> > + status = "okay";
> > +};
> > +
> > +&hdmi {
> > + status = "okay";
> > +};
> > +
> > +&hdmi_out {
> > + hdmi_connector_output: endpoint {
> > + remote-endpoint = <&hdmi_connector_input>;
> > + };
> > +};
> > +
> > +&mmc0 {
> > + bus-width = <4>;
> > + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
> > + status = "okay";
> > + vmmc-supply = <®_vcc3v3>;
> > +};
> > +
> > +&mmc2 {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&mmc2_8bit_pins>;
> > + vmmc-supply = <®_vcc3v3>;
> > + bus-width = <8>;
> > + non-removable;
> > + cap-mmc-hw-reset;
> > + status = "okay";
> > +};
> > +
> > +&mmc2_8bit_pins {
> > + drive-strength = <40>;
> > + bias-pull-up;
> > +};
> > +
> > +&ohci1 {
> > + status = "okay";
> > +};
> > +
> > +&ohci2 {
> > + status = "okay";
> > +};
> > +
> > +&uart0 {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&uart0_pins_a>;
> > + status = "okay";
> > +};
> > +
> > +&usb_otg {
> > + status = "okay";
> > + dr_mode = "peripheral";
> > +};
> > +
> > +&usbphy {
> > + status = "okay";
> > +};
> > diff --git a/configs/rervision_h3_dvk_defconfig b/configs/rervision_h3_dvk_defconfig
> > new file mode 100644
> > index 000000000000..895a985ccdcd
> > --- /dev/null
> > +++ b/configs/rervision_h3_dvk_defconfig
> > @@ -0,0 +1,17 @@
> > +CONFIG_ARM=y
> > +CONFIG_ARCH_SUNXI=y
> > +CONFIG_SPL=y
> > +CONFIG_MACH_SUN8I_H3=y
> > +CONFIG_DRAM_CLK=408
> > +CONFIG_MMC_SUNXI_SLOT_EXTRA=2
> > +CONFIG_NR_DRAM_BANKS=1
> > +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
> > +# CONFIG_CMD_FLASH is not set
> > +# CONFIG_SPL_DOS_PARTITION is not set
> > +# CONFIG_SPL_EFI_PARTITION is not set
> > +CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-rervision-dvk"
> > +CONFIG_USB_EHCI_HCD=y
> > +CONFIG_USB_OHCI_HCD=y
> > +CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
> > +CONFIG_USB_MUSB_GADGET=y
> > +CONFIG_FASTBOOT=y
>
> Not needed, this can enabled by MUSB_GADET
--
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-09 12:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14 10:40 [U-Boot] [PATCH] arm: sunxi: Add support for the RerVision H3-DVK board Paul Kocialkowski
2019-04-09 10:26 ` [U-Boot] [linux-sunxi] " Jagan Teki
2019-04-09 12:57 ` Paul Kocialkowski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.