Skip to contentSkip to conversation

sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

PATCH New Adam Sampson 4 participants 7 messages Jan 25, 2015 – Jan 26, 2015 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

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

---
 board/sunxi/MAINTAINERS                    |    5 +++++
 configs/Linksprite_pcDuino3_Nano_defconfig |   11 +++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 configs/Linksprite_pcDuino3_Nano_defconfig
board/sunxi/MAINTAINERS +5 -0
index 743e7f5..479d147 100644
@@ -100,3 +100,8 @@ MELE M5 BOARD
 M:	Ian Campbell <[email protected]>
 S:	Maintained
 F:	configs/Mele_M5_defconfig
+
+LINKSPRITE-PCDUINO3-NANO BOARD
+M:	Adam Sampson <[email protected]>
+S:	Maintained
+F:	configs/Linksprite_pcDuino3_Nano_defconfig
configs/Linksprite_pcDuino3_Nano_defconfig new file +11 -0
new file mode 100644
index 0000000..22435eb
@@ -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
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

Hi Adam,

Quoted 35 lines · Adam Sampson

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

---
 board/sunxi/MAINTAINERS                    |    5 +++++
 configs/Linksprite_pcDuino3_Nano_defconfig |   11 +++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 configs/Linksprite_pcDuino3_Nano_defconfig
board/sunxi/MAINTAINERS +5 -0
index 743e7f5..479d147 100644
@@ -100,3 +100,8 @@ MELE M5 BOARD
 M:     Ian Campbell <[email protected]>
 S:     Maintained
 F:     configs/Mele_M5_defconfig
+
+LINKSPRITE-PCDUINO3-NANO BOARD
+M:     Adam Sampson <[email protected]>
+S:     Maintained
+F:     configs/Linksprite_pcDuino3_Nano_defconfig
configs/Linksprite_pcDuino3_Nano_defconfig new file +1 -0
new file mode 100644
index 0000000..22435eb
@@ -0,0 +1,11 @@
+CONFIG_SPL=y

configs/Linksprite_pcDuino3_Nano_defconfig line 11

Quoted 10 lines
configs/Linksprite_pcDuino3_Nano_defconfig new file +10 -0
+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?

Regards,
Simon

#2 lore raw

PATCH 1/1 sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

Hi,

Quoted 43 lines · Simon Glass

Hi Adam,

Quoted 40 lines · Adam Sampson

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

---
  board/sunxi/MAINTAINERS                    |    5 +++++
  configs/Linksprite_pcDuino3_Nano_defconfig |   11 +++++++++++
  2 files changed, 16 insertions(+)

create mode 100644 configs/Linksprite_pcDuino3_Nano_defconfig

board/sunxi/MAINTAINERS +5 -0
index 743e7f5..479d147 100644
@@ -100,3 +100,8 @@ MELE M5 BOARD
  M:     Ian Campbell <[email protected]>
  S:     Maintained
  F:     configs/Mele_M5_defconfig
+
+LINKSPRITE-PCDUINO3-NANO BOARD
+M:     Adam Sampson <[email protected]>
+S:     Maintained
+F:     configs/Linksprite_pcDuino3_Nano_defconfig
configs/Linksprite_pcDuino3_Nano_defconfig new file +6 -0
new file mode 100644
index 0000000..22435eb
@@ -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
Quoted 8 lines

configs/Linksprite_pcDuino3_Nano_defconfig line 11

Quoted 5 lines
configs/Linksprite_pcDuino3_Nano_defconfig new file +5 -0
++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 ?

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

#3 lore raw

PATCH 1/1 sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

Hi Hans,

Quoted 67 lines · Hans de Goede

Hi,

Quoted 42 lines · Simon Glass

Hi Adam,

Quoted 38 lines · Adam Sampson

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

---
  board/sunxi/MAINTAINERS                    |    5 +++++
  configs/Linksprite_pcDuino3_Nano_defconfig |   11 +++++++++++
  2 files changed, 16 insertions(+)

create mode 100644 configs/Linksprite_pcDuino3_Nano_defconfig

board/sunxi/MAINTAINERS +5 -0
index 743e7f5..479d147 100644
@@ -100,3 +100,8 @@ MELE M5 BOARD
  M:     Ian Campbell <[email protected]>
  S:     Maintained
  F:     configs/Mele_M5_defconfig
+
+LINKSPRITE-PCDUINO3-NANO BOARD
+M:     Adam Sampson <[email protected]>
+S:     Maintained
+F:     configs/Linksprite_pcDuino3_Nano_defconfig
configs/Linksprite_pcDuino3_Nano_defconfig new file +1 -0
new file mode 100644
index 0000000..22435eb
@@ -0,0 +1,11 @@
+CONFIG_SPL=y
Quoted 14 lines

configs/Linksprite_pcDuino3_Nano_defconfig line 11

Quoted 10 lines
configs/Linksprite_pcDuino3_Nano_defconfig new file +10 -0
+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 (*).

Quoted 8 lines

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...

Quoted 10 lines

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

#4 lore raw

PATCH 1/1 sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

In reply to Adam Sampson

Hi,

Quoted 9 lines · Adam Sampson

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

Thanks, I've queued this up for merging in u-boot-sunxi/next

Regards,

Hans

Quoted 37 lines
---
  board/sunxi/MAINTAINERS                    |    5 +++++
  configs/Linksprite_pcDuino3_Nano_defconfig |   11 +++++++++++
  2 files changed, 16 insertions(+)

create mode 100644 configs/Linksprite_pcDuino3_Nano_defconfig

board/sunxi/MAINTAINERS +5 -0
index 743e7f5..479d147 100644
@@ -100,3 +100,8 @@ MELE M5 BOARD
  M:	Ian Campbell <[email protected]>
  S:	Maintained
  F:	configs/Mele_M5_defconfig
+
+LINKSPRITE-PCDUINO3-NANO BOARD
+M:	Adam Sampson <[email protected]>
+S:	Maintained
+F:	configs/Linksprite_pcDuino3_Nano_defconfig
configs/Linksprite_pcDuino3_Nano_defconfig new file +11 -0
new file mode 100644
index 0000000..22435eb
@@ -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
#5 lore raw

PATCH 1/1 sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

In reply to Adam Sampson

Le lundi 26 janvier 2015 13:14:31 UTC+1, Adam Sampson a ?crit?:

Quoted 47 lines

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

---
 board/sunxi/MAINTAINERS                    |    5 +++++
 configs/Linksprite_pcDuino3_Nano_defconfig |   11 +++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 configs/Linksprite_pcDuino3_Nano_defconfig
board/sunxi/MAINTAINERS +5 -0
index 743e7f5..479d147 100644
@@ -100,3 +100,8 @@ MELE M5 BOARD
 M:	Ian Campbell <[email protected]>
 S:	Maintained
 F:	configs/Mele_M5_defconfig
+
+LINKSPRITE-PCDUINO3-NANO BOARD
+M:	Adam Sampson <[email protected]>
+S:	Maintained
+F:	configs/Linksprite_pcDuino3_Nano_defconfig
configs/Linksprite_pcDuino3_Nano_defconfig new file +11 -0
new file mode 100644
index 0000000..22435eb
@@ -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
Signature · 1 line
1.7.10.4

Hello Adam,

What do you think about adding "RGMII" in the CONFIG_SYS_EXTRA_OPTIONS like other gigabit A20 board ?

ps : thank you for your pcduino3 Nano contribution, i miss some time to do it :)

Regards,

KrissFR

#6 lore raw

PATCH 1/1 sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

Hi Christophe,

Quoted 4 lines · On Mon, Jan 26, 2015 at 07:15:20AM -0800, christophe.le.roux.1 at gmail.com…
Quoted 1 line

+CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPH(2),USB_EHCI"

What do you think about adding "RGMII" in the CONFIG_SYS_EXTRA_OPTIONS like other gigabit A20 board ?

Good catch -- I'll respin the patch!

Thanks very much,

Signature · 1 line
Adam Sampson <[email protected]>                         <http://offog.org/>