Skip to contentSkip to conversation

sunxi: add support for Orange Pi R1 board

PATCH New Icenowy Zheng 2 participants 4 messages Nov 13, 2017 – Nov 16, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunxi: add support for Orange Pi R1 board

Orange Pi R1 is a board designed based on Orange Pi Zero, with Wi-Fi chip replaced and USB Type-A jack replaced with an on-board RTL8152B USB-Ethernet adapter.

Add support for it.

---
 arch/arm/dts/Makefile                      |  1 +
 arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts | 73 ++++++++++++++++++++++++++++++
 board/sunxi/MAINTAINERS                    |  5 ++
 configs/orangepi_r1_defconfig              | 19 ++++++++
 4 files changed, 98 insertions(+)
 create mode 100644 arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts
 create mode 100644 configs/orangepi_r1_defconfig
arch/arm/dts/Makefile +1 -0
index 6db64f9101..a34634d219 100644
@@ -317,6 +317,7 @@ dtb-$(CONFIG_MACH_SUN8I_A83T) += \
 	sun8i-a83t-bananapi-m3.dtb \
 	sun8i-a83t-cubietruck-plus.dtb
 dtb-$(CONFIG_MACH_SUN8I_H3) += \
+	sun8i-h2-plus-orangepi-r1.dtb \
 	sun8i-h2-plus-orangepi-zero.dtb \
 	sun8i-h3-bananapi-m2-plus.dtb \
 	sun8i-h3-orangepi-2.dtb \
arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts new file +73 -0

73 lines not on this page · raw message

board/sunxi/MAINTAINERS +5 -0
index 99809c6a1c..0db64e6080 100644
@@ -326,6 +326,11 @@ M:	Jagan Teki <[email protected]>
 S:	Maintained
 F:	configs/orangepi_prime_defconfig
 
+ORANGEPI R1 BOARD
+M:	Icenowy Zheng <[email protected]>
+S:	Maintained
+F:	configs/orangepi_r1_defconfig
+
 PINE64 BOARDS
 M:	Andre Przywara <[email protected]>
 S:	Maintained
configs/orangepi_r1_defconfig new file +19 -0
new file mode 100644
index 0000000000..87037a7b79
@@ -0,0 +1,19 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN8I_H3=y
+CONFIG_DRAM_CLK=624
+CONFIG_DRAM_ZQ=3881979
+CONFIG_DRAM_ODT_EN=y
+# CONFIG_VIDEO_DE2 is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_CONSOLE_MUX=y
+CONFIG_SPL=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+CONFIG_SPL_SPI_SUNXI=y
+CONFIG_SUN8I_EMAC=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
Signature · 1 line
2.14.2
#1 lore raw

PATCH 1/1 sunxi: add support for Orange Pi R1 board

Hi,

configs/orangepi_r1_defconfig line 10

Quoted 12 lines · Icenowy Zheng

+++ b/configs/orangepi_r1_defconfig

configs/orangepi_r1_defconfig new file +10 -0
@@ -0,0 +1,19 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN8I_H3=y
+CONFIG_DRAM_CLK=624
+CONFIG_DRAM_ZQ=3881979
+CONFIG_DRAM_ODT_EN=y
+# CONFIG_VIDEO_DE2 is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_CONSOLE_MUX=y

Why?

configs/orangepi_r1_defconfig line 19

Quoted 9 lines
configs/orangepi_r1_defconfig new file +9 -0
+CONFIG_SPL=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+CONFIG_SPL_SPI_SUNXI=y
+CONFIG_SUN8I_EMAC=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y

Shouldn't this one depend on USB_HOST_ETHER?

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171113/89def057/attachment.sig>
#2 lore raw

PATCH 1/1 sunxi: add support for Orange Pi R1 board

Quoted 17 lines · 在 2017-11-13 20:38,Maxime Ripard 写道:

Hi,

configs/orangepi_r1_defconfig line 10

Quoted 12 lines · Icenowy Zheng

+++ b/configs/orangepi_r1_defconfig

configs/orangepi_r1_defconfig new file +10 -0
@@ -0,0 +1,19 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN8I_H3=y
+CONFIG_DRAM_CLK=624
+CONFIG_DRAM_ZQ=3881979
+CONFIG_DRAM_ODT_EN=y
+# CONFIG_VIDEO_DE2 is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_CONSOLE_MUX=y

Why?

This option is also present on the original Orange Pi Zero defconfig. If you like I will delete it.

Quoted 12 lines

configs/orangepi_r1_defconfig line 19

Quoted 10 lines
configs/orangepi_r1_defconfig new file +9 -0
+CONFIG_SPL=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+CONFIG_SPL_SPI_SUNXI=y
+CONFIG_SUN8I_EMAC=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y

Shouldn't this one depend on USB_HOST_ETHER?

I think so, but make savedefconfig generates this; if the CONFIG_USB_HOST_ETHER line is deleted, make orangepi_r1_defconfig won't be able to enable CONFIG_USB_ETHER_RTL8152 properly.

Quoted 3 lines

Thanks!
Maxime

#3 lore raw

PATCH 1/1 sunxi: add support for Orange Pi R1 board

Quoted 19 lines · Icenowy Zheng
Quoted 17 lines · 在 2017-11-13 20:38,Maxime Ripard 写道:

Hi,

configs/orangepi_r1_defconfig line 10

Quoted 12 lines · Icenowy Zheng

+++ b/configs/orangepi_r1_defconfig

configs/orangepi_r1_defconfig new file +10 -0
@@ -0,0 +1,19 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN8I_H3=y
+CONFIG_DRAM_CLK=624
+CONFIG_DRAM_ZQ=3881979
+CONFIG_DRAM_ODT_EN=y
+# CONFIG_VIDEO_DE2 is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_CONSOLE_MUX=y

Why?

Quoted 2 lines

This option is also present on the original Orange Pi Zero defconfig. If you like I will delete it.

If there's no justifications, then yes, please do.

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171116/9638f609/attachment.sig>