[U-Boot] [PATCH] sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

Simon Glass sjg at chromium.org
Mon Jan 26 17:17:20 CET 2015


Hi Hans,

On 26 January 2015 at 00:44, Hans de Goede <hdegoede at redhat.com> wrote:
> Hi,
>
>
> On 26-01-15 04:30, Simon Glass wrote:
>>
>> Hi Adam,
>>
>> On 25 January 2015 at 08:24, Adam Sampson <ats at offog.org> wrote:
>>>
>>> This is a low-cost Allwinner A20 board with Arduino-style GPIO headers;
>>> it features 1G RAM, 4G NAND flash, 1 micro-SD, 2 USB sockets, 1 micro
>>> USB socket for OTG and another for power in, HDMI, SATA, 5V power for
>>> SATA devices, gigabit Ethernet, an IR receiver, 3.5mm audio out and a
>>> MIPI camera connector.
>>>
>>> For more details, see: http://linux-sunxi.org/LinkSprite_pcDuino3_Nano
>>>
>>> Signed-off-by: Adam Sampson <ats at offog.org>
>>> ---
>>>   board/sunxi/MAINTAINERS                    |    5 +++++
>>>   configs/Linksprite_pcDuino3_Nano_defconfig |   11 +++++++++++
>>>   2 files changed, 16 insertions(+)
>>>   create mode 100644 configs/Linksprite_pcDuino3_Nano_defconfig
>>>
>>> diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS
>>> index 743e7f5..479d147 100644
>>> --- a/board/sunxi/MAINTAINERS
>>> +++ b/board/sunxi/MAINTAINERS
>>> @@ -100,3 +100,8 @@ MELE M5 BOARD
>>>   M:     Ian Campbell <ijc at hellion.org.uk>
>>>   S:     Maintained
>>>   F:     configs/Mele_M5_defconfig
>>> +
>>> +LINKSPRITE-PCDUINO3-NANO BOARD
>>> +M:     Adam Sampson <ats at offog.org>
>>> +S:     Maintained
>>> +F:     configs/Linksprite_pcDuino3_Nano_defconfig
>>> diff --git a/configs/Linksprite_pcDuino3_Nano_defconfig
>>> b/configs/Linksprite_pcDuino3_Nano_defconfig
>>> new file mode 100644
>>> index 0000000..22435eb
>>> --- /dev/null
>>> +++ b/configs/Linksprite_pcDuino3_Nano_defconfig
>>> @@ -0,0 +1,11 @@
>>> +CONFIG_SPL=y
>>>
>>> +CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPH(2),USB_EHCI"
>>> +CONFIG_FDTFILE="sun7i-a20-pcduino3-nano.dtb"
>>> +CONFIG_USB1_VBUS_PIN="PH11"
>>> ++S:CONFIG_ARM=y
>>> ++S:CONFIG_ARCH_SUNXI=y
>>> ++S:CONFIG_MACH_SUN7I=y
>>> ++S:CONFIG_TARGET_PCDUINO3_NANO=y
>>> ++S:CONFIG_DRAM_CLK=408
>>> ++S:CONFIG_DRAM_ZQ=122
>>> ++S:CONFIG_DRAM_EMR1=4
>>
>>
>> Since this is a new board, could it follow along ith the Linksprice
>> pcDuino3 and support driver rmodel / device tree?
>
>
> That is a good idea, I think we should be slowly moving over all sunxi
> boards to this. Note I'll merge this version as is for now, lets wait
> with the devicetree version till the dts is accepted in the upstream
> kernel (*).
>
> While on this subject I do want to move to devicetree everywhere, but
> I don't want 2 configs per board like with the Linksprite_pcDuino3
> from an end user pov the resulting u-boot-sunxi-with-spl.bin works
> identical, and that is what we tell sunxi users to use.
>
> So my plan is to just drop the non fdt version of the Linksprite_pcDuino3
> config and drop the _fdt suffix on the fdt version, any objections
> against that ?

Fair enough, it was just an example...

>
> Regards,
>
> Hans
>
>
>
>
> *) Once we've gone all devicetree we need to revisit this as I don't
> want new board additions be blocked on this

Yes and often U-Boot will have support before Linux. One option is to
merge an initial FDT and resync with Linux later.

Regards,
Simon


More information about the U-Boot mailing list