diff mbox

[U-Boot,PATCHv2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

Message ID 20170503144002.29523-1-oliver@schinagl.nl
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Olliver Schinagl May 3, 2017, 2:40 p.m. UTC
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash
storage.
https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/

It is a assembly variant of the regular Lime2 but featuring eMMC for
storage.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
---
Jagan,

I was fairly certain that I was updated, guess I was wrong! Sorry.

Changes since v1:
	rebase with master

Note: for the board to work properly, the updated eMMC dts variant needs to
be resynced from upstream.

 board/sunxi/MAINTAINERS                    |  5 +++++
 configs/A20-OLinuXino-Lime2-eMMC_defconfig | 36 ++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 configs/A20-OLinuXino-Lime2-eMMC_defconfig

Comments

Jagan Teki May 4, 2017, 7:10 a.m. UTC | #1
On Wed, May 3, 2017 at 8:10 PM, Olliver Schinagl <oliver@schinagl.nl> wrote:
> This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash
> storage.
> https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/
>
> It is a assembly variant of the regular Lime2 but featuring eMMC for
> storage.
>
> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>

Reviewed-by: Jagan Teki <jagan@openedev.com>

thanks!
Maxime Ripard May 4, 2017, 8:43 a.m. UTC | #2
On Wed, May 03, 2017 at 04:40:02PM +0200, Olliver Schinagl wrote:
> This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash
> storage.
> https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/
> 
> It is a assembly variant of the regular Lime2 but featuring eMMC for
> storage.
> 
> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
> ---
> Jagan,
> 
> I was fairly certain that I was updated, guess I was wrong! Sorry.
> 
> Changes since v1:
> 	rebase with master
> 
> Note: for the board to work properly, the updated eMMC dts variant needs to
> be resynced from upstream.

Please do so then.

Maxime
Olliver Schinagl May 4, 2017, 8:44 a.m. UTC | #3
Hey Maxime,

On 04-05-17 10:43, Maxime Ripard wrote:
> On Wed, May 03, 2017 at 04:40:02PM +0200, Olliver Schinagl wrote:
>> This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash
>> storage.
>> https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/
>>
>> It is a assembly variant of the regular Lime2 but featuring eMMC for
>> storage.
>>
>> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
>> ---
>> Jagan,
>>
>> I was fairly certain that I was updated, guess I was wrong! Sorry.
>>
>> Changes since v1:
>> 	rebase with master
>>
>> Note: for the board to work properly, the updated eMMC dts variant needs to
>> be resynced from upstream.
>
> Please do so then.

Sure, how do we normally do this? format-patch? cherry-pick from linux? 
I see it happening in the logs that periodically all dts files are 
synced, but don't know how we do this.

Olliver
>
> Maxime
>
Chen-Yu Tsai May 4, 2017, 8:48 a.m. UTC | #4
On Thu, May 4, 2017 at 4:44 PM, Olliver Schinagl <oliver@schinagl.nl> wrote:
> Hey Maxime,
>
> On 04-05-17 10:43, Maxime Ripard wrote:
>>
>> On Wed, May 03, 2017 at 04:40:02PM +0200, Olliver Schinagl wrote:
>>>
>>> This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash
>>> storage.
>>> https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/
>>>
>>> It is a assembly variant of the regular Lime2 but featuring eMMC for
>>> storage.
>>>
>>> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
>>> ---
>>> Jagan,
>>>
>>> I was fairly certain that I was updated, guess I was wrong! Sorry.
>>>
>>> Changes since v1:
>>>         rebase with master
>>>
>>> Note: for the board to work properly, the updated eMMC dts variant needs
>>> to
>>> be resynced from upstream.
>>
>>
>> Please do so then.
>
>
> Sure, how do we normally do this? format-patch? cherry-pick from linux? I
> see it happening in the logs that periodically all dts files are synced, but
> don't know how we do this.

Just copy the files (or symlinks) directly from the kernel, and make a patch.

ChenYu
Olliver Schinagl May 4, 2017, 8:51 a.m. UTC | #5
Hey ChenYu

On 04-05-17 10:48, Chen-Yu Tsai wrote:
> On Thu, May 4, 2017 at 4:44 PM, Olliver Schinagl <oliver@schinagl.nl> wrote:
>> Hey Maxime,
>>
>> On 04-05-17 10:43, Maxime Ripard wrote:
>>>
>>> On Wed, May 03, 2017 at 04:40:02PM +0200, Olliver Schinagl wrote:
>>>>
>>>> This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash
>>>> storage.
>>>> https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/
>>>>
>>>> It is a assembly variant of the regular Lime2 but featuring eMMC for
>>>> storage.
>>>>
>>>> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
>>>> ---
>>>> Jagan,
>>>>
>>>> I was fairly certain that I was updated, guess I was wrong! Sorry.
>>>>
>>>> Changes since v1:
>>>>         rebase with master
>>>>
>>>> Note: for the board to work properly, the updated eMMC dts variant needs
>>>> to
>>>> be resynced from upstream.
>>>
>>>
>>> Please do so then.
>>
>>
>> Sure, how do we normally do this? format-patch? cherry-pick from linux? I
>> see it happening in the logs that periodically all dts files are synced, but
>> don't know how we do this.
>
> Just copy the files (or symlinks) directly from the kernel, and make a patch.
Ah fair enough. Easy :)

Are they any plans to make this nicer/easier? E.g. have the dts files in 
a separate repo to be used by both?

>
> ChenYu
>
Emmanuel Vadot May 4, 2017, 9:32 a.m. UTC | #6
On Thu, 4 May 2017 10:51:46 +0200
Olliver Schinagl <oliver@schinagl.nl> wrote:

> Hey ChenYu
> 
> On 04-05-17 10:48, Chen-Yu Tsai wrote:
> > On Thu, May 4, 2017 at 4:44 PM, Olliver Schinagl <oliver@schinagl.nl> wrote:
> >> Hey Maxime,
> >>
> >> On 04-05-17 10:43, Maxime Ripard wrote:
> >>>
> >>> On Wed, May 03, 2017 at 04:40:02PM +0200, Olliver Schinagl wrote:
> >>>>
> >>>> This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash
> >>>> storage.
> >>>> https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/
> >>>>
> >>>> It is a assembly variant of the regular Lime2 but featuring eMMC for
> >>>> storage.
> >>>>
> >>>> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
> >>>> ---
> >>>> Jagan,
> >>>>
> >>>> I was fairly certain that I was updated, guess I was wrong! Sorry.
> >>>>
> >>>> Changes since v1:
> >>>>         rebase with master
> >>>>
> >>>> Note: for the board to work properly, the updated eMMC dts variant needs
> >>>> to
> >>>> be resynced from upstream.
> >>>
> >>>
> >>> Please do so then.
> >>
> >>
> >> Sure, how do we normally do this? format-patch? cherry-pick from linux? I
> >> see it happening in the logs that periodically all dts files are synced, but
> >> don't know how we do this.
> >
> > Just copy the files (or symlinks) directly from the kernel, and make a patch.
> Ah fair enough. Easy :)
> 
> Are they any plans to make this nicer/easier? E.g. have the dts files in 
> a separate repo to be used by both?

 For the FreeBSD import we use this repo :
https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git

 I don't know if it would make sense to use that for u-boot.

> >
> > ChenYu
> >
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> https://lists.denx.de/listinfo/u-boot
diff mbox

Patch

diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS
index f39402b89c..24235a71a7 100644
--- a/board/sunxi/MAINTAINERS
+++ b/board/sunxi/MAINTAINERS
@@ -89,6 +89,11 @@  M:	Iain Paton <ipaton0@gmail.com>
 S:	Maintained
 F:	configs/A20-OLinuXino-Lime2_defconfig
 
+A20-OLINUXINO-LIME2-EMMC BOARD
+M:	Olliver Schinagl <oliver@schinagl.nl>
+S:	Maintained
+F:	configs/A20-OLinuXino-Lime2-eMMC_defconfig
+
 A33-OLINUXINO BOARD
 M:	Stefan Mavrodiev <stefan.mavrodiev@gmail.com>
 S:	Maintained
diff --git a/configs/A20-OLinuXino-Lime2-eMMC_defconfig b/configs/A20-OLinuXino-Lime2-eMMC_defconfig
new file mode 100644
index 0000000000..034ae983a5
--- /dev/null
+++ b/configs/A20-OLinuXino-Lime2-eMMC_defconfig
@@ -0,0 +1,36 @@ 
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN7I=y
+CONFIG_DRAM_CLK=384
+CONFIG_MMC0_CD_PIN="PH1"
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_USB0_VBUS_PIN="PC17"
+CONFIG_USB0_VBUS_DET="PH5"
+CONFIG_I2C1_ENABLE=y
+CONFIG_SATAPWR="PC3"
+CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino-lime2-emmc"
+CONFIG_AHCI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_SPL=y
+CONFIG_SPL_I2C_SUPPORT=y
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+CONFIG_CMD_DFU=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+# CONFIG_CMD_FPGA is not set
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_ISO_PARTITION is not set
+# CONFIG_SPL_PARTITION_UUIDS is not set
+CONFIG_DFU_RAM=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_RGMII=y
+CONFIG_SUN7I_GMAC=y
+CONFIG_AXP_ALDO3_VOLT=2800
+CONFIG_AXP_ALDO4_VOLT=2800
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_MUSB_GADGET=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Allwinner Technology"
+CONFIG_G_DNL_VENDOR_NUM=0x1f3a
+CONFIG_G_DNL_PRODUCT_NUM=0x1010