[U-Boot] [PATCH] sunxi: Add support for Libre Computer Board ALL-H3-CC H3 ver.

Jagan Teki jagannadh.teki at gmail.com
Fri Dec 8 03:01:08 UTC 2017


On Fri, Dec 8, 2017 at 7:59 AM, Chen-Yu Tsai <wens at csie.org> wrote:
> On Fri, Dec 8, 2017 at 1:01 AM, Jagan Teki <jagannadh.teki at gmail.com> wrote:
>> On Thu, Dec 7, 2017 at 6:30 PM, Chen-Yu Tsai <wens at csie.org> wrote:
>>> The Libre Computer Board ALL-H3-CC from Libre Technology is a Raspberry
>>> Pi B+ form factor single board computer based on the Allwinner H3 SoC.
>>> The board has 1GB DDR3 SDRAM, provided by 4 2Gb chips. The mounting holes
>>> and connectors are in the exact same position as on the Raspberry Pi B+.
>>>
>>> Raspberry Pi B+ like peripherals supported on this board include:
>>>
>>>   - Power input through micro-USB connector (without USB OTG)
>>>   - Native 100 Mbps ethernet using the internal PHY, as opposed to
>>>     USB-based on the RPi
>>>   - 4x USB 2.0 host ports, directly connected to the SoC, as opposed to
>>>     being connected through a USB 2.0 hub on the RPi
>>>   - TV and audio output on a 3.5mm TRRS jack
>>>   - HDMI output
>>>   - Micro-SD card slot
>>>   - Standard RPi B+ GPIO header, with the standard peripherals routed to
>>>     the same pins.
>>>
>>>     * 5V, 3.3V power, and ground
>>>     * I2C0 on the H3 is routed to I2C1 pins on the RPi header
>>>     * I2C1 on the H3 is routed to I2C0 pins on the RPi header
>>>     * UART1 on the H3 is routed to UART0 pins on the RPi header
>>>     * SPI0 on the H3 is routed to SPI0 pins on the RPi header,
>>>       with GPIO pin PA17 replacing the missing Chip Select 1
>>>     * I2S1 on the H3 is routed to PCM pins on the RPi header
>>>
>>>   - Additional peripherals from the H3 are available on different pins.
>>>     These include I2S0, JTAG, PWM1, SPDIF, SPI1, and UART3
>>>
>>> In addition, there are a number of new features:
>>>
>>>   - Console UART header
>>>   - Consumer IR receiver
>>>   - Camera interface (not compatible with RPi)
>>>   - Onboard microphone
>>>   - eMMC expansion module port
>>>   - Heatsink mounting holes
>>>
>>> This patch adds defconfig and dts files for this board. The dts file is
>>> the same as the one submitted for inclusion in Linux, with some minor
>>> revisions to match the dtsi file and old EMAC bindings in U-boot.
>>>
>>> Since the OTG controller is wired to a USB host port, and the H3 has
>>> proper USB hosts to handle host mode, the MUSB driver is not enabled.
>>>
>>> Signed-off-by: Chen-Yu Tsai <wens at csie.org>
>>> ---
>>>  arch/arm/dts/Makefile                         |   1 +
>>>  arch/arm/dts/sun8i-h3-libretech-all-h3-cc.dts | 180 ++++++++++++++++++++++++++
>>>  board/sunxi/MAINTAINERS                       |   5 +
>>>  configs/libretech_all_h3_cc_h3_defconfig      |  19 +++
>>>  4 files changed, 205 insertions(+)
>>>  create mode 100644 arch/arm/dts/sun8i-h3-libretech-all-h3-cc.dts
>>>  create mode 100644 configs/libretech_all_h3_cc_h3_defconfig
>>>
>>> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
>>> index f54adb21847a..0aba72d3a72f 100644
>>> --- a/arch/arm/dts/Makefile
>>> +++ b/arch/arm/dts/Makefile
>>> @@ -320,6 +320,7 @@ dtb-$(CONFIG_MACH_SUN8I_A83T) += \
>>>  dtb-$(CONFIG_MACH_SUN8I_H3) += \
>>>         sun8i-h2-plus-orangepi-zero.dtb \
>>>         sun8i-h3-bananapi-m2-plus.dtb \
>>> +       sun8i-h3-libretech-all-h3-cc.dtb \
>>>         sun8i-h3-orangepi-2.dtb \
>>>         sun8i-h3-orangepi-lite.dtb \
>>>         sun8i-h3-orangepi-one.dtb \
>>> diff --git a/arch/arm/dts/sun8i-h3-libretech-all-h3-cc.dts b/arch/arm/dts/sun8i-h3-libretech-all-h3-cc.dts
>>> new file mode 100644
>>> index 000000000000..97b993f636f9
>>> --- /dev/null
>>> +++ b/arch/arm/dts/sun8i-h3-libretech-all-h3-cc.dts
>>> @@ -0,0 +1,180 @@
>>> +/*
>>> + * Copyright (C) 2017 Chen-Yu Tsai <wens at csie.org>
>>> + *
>>> + * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>>> + */
>>
>> Why can't we use Linux license? since we always sync dts files from Linux.
>
> This IS the same license we use for dts files in the Linux kernel.
> We want all projects to be able to use them. It wouldn't make sense
> to have BSD licensed projects to include GPL-only files, now would
> it?

Reviewed-by: Jagan Teki <jagan at amarulasolutions.com>

-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list