* [U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board
@ 2018-02-02 9:37 Stefan Mavrodiev
2018-02-02 12:54 ` Maxime Ripard
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Mavrodiev @ 2018-02-02 9:37 UTC (permalink / raw)
To: u-boot
A20-SOM204 board has option with onboard 16GB eMMC. The chip is wired
to MMC2 slot.
This patch adds defconfig and dts files for this board. The dts is same
with mainline kernel.
Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
---
arch/arm/dts/Makefile | 1 +
arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts | 36 +++++++++++++++++++++++
configs/A20-Olimex-SOM204-EVB-eMMC_defconfig | 34 +++++++++++++++++++++
3 files changed, 71 insertions(+)
create mode 100644 arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts
create mode 100644 configs/A20-Olimex-SOM204-EVB-eMMC_defconfig
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 97e8790..f9764a4 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -304,6 +304,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \
sun7i-a20-mk808c.dtb \
sun7i-a20-olimex-som-evb.dtb \
sun7i-a20-olimex-som204-evb.dtb \
+ sun7i-a20-olimex-som204-evb-emmc.dtb \
sun7i-a20-olinuxino-lime.dtb \
sun7i-a20-olinuxino-lime2.dtb \
sun7i-a20-olinuxino-lime2-emmc.dtb \
diff --git a/arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts b/arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts
new file mode 100644
index 0000000..c56620a
--- /dev/null
+++ b/arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts
@@ -0,0 +1,36 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree Source for A20-SOM204-EVB-eMMC Board
+ *
+ * Copyright (C) 2018 Olimex Ltd.
+ * Author: Stefan Mavrodiev <stefan@olimex.com>
+ */
+
+/dts-v1/;
+#include "sun7i-a20-olimex-som204-evb.dts"
+
+/ {
+ model = "Olimex A20-SOM204-EVB-eMMC";
+ compatible = "olimex,a20-olimex-som204-evb-emmc", "allwinner,sun7i-a20";
+
+ mmc2_pwrseq: mmc2_pwrseq {
+ compatible = "mmc-pwrseq-emmc";
+ reset-gpios = <&pio 2 16 GPIO_ACTIVE_LOW>;
+ };
+};
+
+&mmc2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc2_pins_a>;
+ vmmc-supply = <®_vcc3v3>;
+ mmc-pwrseq = <&mmc2_pwrseq>;
+ bus-width = <4>;
+ non-removable;
+ status = "okay";
+
+ emmc: emmc at 0 {
+ reg = <0>;
+ compatible = "mmc-card";
+ broken-hpi;
+ };
+};
diff --git a/configs/A20-Olimex-SOM204-EVB-eMMC_defconfig b/configs/A20-Olimex-SOM204-EVB-eMMC_defconfig
new file mode 100644
index 0000000..11fe6bd
--- /dev/null
+++ b/configs/A20-Olimex-SOM204-EVB-eMMC_defconfig
@@ -0,0 +1,34 @@
+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_GMAC_TX_DELAY=4
+CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olimex-som204-evb-emmc"
+CONFIG_AHCI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_SPL=y
+CONFIG_SPL_I2C_SUPPORT=y
+# CONFIG_CMD_FLASH is not set
+# 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_SCSI_AHCI=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_PHY_ADDR=3
+CONFIG_PHY_MICREL=y
+CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_RGMII=y
+CONFIG_SUN7I_GMAC=y
+CONFIG_AXP_ALDO3_VOLT=2800
+CONFIG_AXP_ALDO4_VOLT=2800
+CONFIG_SCSI=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_MUSB_GADGET=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* [U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board
2018-02-02 9:37 [U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board Stefan Mavrodiev
@ 2018-02-02 12:54 ` Maxime Ripard
2018-02-02 13:12 ` Stefan Mavrodiev
0 siblings, 1 reply; 5+ messages in thread
From: Maxime Ripard @ 2018-02-02 12:54 UTC (permalink / raw)
To: u-boot
On Fri, Feb 02, 2018 at 11:37:03AM +0200, Stefan Mavrodiev wrote:
> A20-SOM204 board has option with onboard 16GB eMMC. The chip is wired
> to MMC2 slot.
>
> This patch adds defconfig and dts files for this board. The dts is same
> with mainline kernel.
>
> Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Thanks!
Maxime
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180202/b8f87fb8/attachment-0001.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board
2018-02-02 12:54 ` Maxime Ripard
@ 2018-02-02 13:12 ` Stefan Mavrodiev
2018-02-02 13:36 ` Maxime Ripard
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Mavrodiev @ 2018-02-02 13:12 UTC (permalink / raw)
To: u-boot
On 02/02/2018 02:54 PM, Maxime Ripard wrote:
> On Fri, Feb 02, 2018 at 11:37:03AM +0200, Stefan Mavrodiev wrote:
>> A20-SOM204 board has option with onboard 16GB eMMC. The chip is wired
>> to MMC2 slot.
>>
>> This patch adds defconfig and dts files for this board. The dts is same
>> with mainline kernel.
>>
>> Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
>
> Thanks!
> Maxime
>
Should I send "Patch v2" with the changes mentioned by Jagan (Wrong
--subject-prefix and updated MAINTAINERS) ?
Regards,
Stefan Mavrodiev
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board
2018-02-02 13:12 ` Stefan Mavrodiev
@ 2018-02-02 13:36 ` Maxime Ripard
0 siblings, 0 replies; 5+ messages in thread
From: Maxime Ripard @ 2018-02-02 13:36 UTC (permalink / raw)
To: u-boot
On Fri, Feb 02, 2018 at 03:12:47PM +0200, Stefan Mavrodiev wrote:
> On 02/02/2018 02:54 PM, Maxime Ripard wrote:
> > On Fri, Feb 02, 2018 at 11:37:03AM +0200, Stefan Mavrodiev wrote:
> > > A20-SOM204 board has option with onboard 16GB eMMC. The chip is wired
> > > to MMC2 slot.
> > >
> > > This patch adds defconfig and dts files for this board. The dts is same
> > > with mainline kernel.
> > >
> > > Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
> > Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> >
> > Thanks!
> > Maxime
> >
> Should I send "Patch v2" with the changes mentioned by Jagan (Wrong
> --subject-prefix and updated MAINTAINERS) ?
Yes, please, and you can add my Acked-by in your v2
Maxime
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180202/8379af08/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/3] sunxi: Add selective PHY address
@ 2018-02-01 10:12 Stefan Mavrodiev
2018-02-01 10:12 ` [U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board Stefan Mavrodiev
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Mavrodiev @ 2018-02-01 10:12 UTC (permalink / raw)
To: u-boot
By default PHY address used for sunxi boards is 1. Some new boards
(A20-SOM204-EVB) uses different address.
The code enables selective PHY address via menuconfig inside ARM
submenu. The option has default value of 1.
Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
---
arch/arm/mach-sunxi/Kconfig | 9 +++++++++
include/configs/sunxi-common.h | 4 ++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 1fededd..034c2fd 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -838,6 +838,15 @@ config GMAC_TX_DELAY
---help---
Set the GMAC Transmit Clock Delay Chain value.
+config SUNXI_PHY_ADDR
+ int "PHY address"
+ default 1
+ depends on SUN7I_GMAC
+ ---help---
+ The default PHY address for SUNXI is 1. Change this if your PHY
+ is configured with different address.
+
+
config SPL_STACK_R_ADDR
default 0x4fe00000 if MACH_SUN4I
default 0x4fe00000 if MACH_SUN5I
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index ee1cb39..fd68d2b 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -288,12 +288,12 @@ extern int soft_i2c_gpio_scl;
/* Ethernet support */
#ifdef CONFIG_SUN4I_EMAC
-#define CONFIG_PHY_ADDR 1
+#define CONFIG_PHY_ADDR CONFIG_SUNXI_PHY_ADDR
#define CONFIG_MII /* MII PHY management */
#endif
#ifdef CONFIG_SUN7I_GMAC
-#define CONFIG_PHY_ADDR 1
+#define CONFIG_PHY_ADDR CONFIG_SUNXI_PHY_ADDR
#define CONFIG_MII /* MII PHY management */
#define CONFIG_PHY_REALTEK
#endif
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board
2018-02-01 10:12 [U-Boot] [PATCH 1/3] sunxi: Add selective PHY address Stefan Mavrodiev
@ 2018-02-01 10:12 ` Stefan Mavrodiev
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Mavrodiev @ 2018-02-01 10:12 UTC (permalink / raw)
To: u-boot
A20-SOM204 board has option with onboard 16GB eMMC. The chip is wired
to MMC2 slot.
This patch adds defconfig and dts files for this board. The dts is same
with mainline kernel.
Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
---
arch/arm/dts/Makefile | 1 +
arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts | 36 +++++++++++++++++++++++
configs/A20-Olimex-SOM204-EVB-eMMC_defconfig | 36 +++++++++++++++++++++++
3 files changed, 73 insertions(+)
create mode 100644 arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts
create mode 100644 configs/A20-Olimex-SOM204-EVB-eMMC_defconfig
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index a358d19..c85979c 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -286,6 +286,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \
sun7i-a20-mk808c.dtb \
sun7i-a20-olimex-som-evb.dtb \
sun7i-a20-olimex-som204-evb.dtb \
+ sun7i-a20-olimex-som204-evb-emmc.dtb \
sun7i-a20-olinuxino-lime.dtb \
sun7i-a20-olinuxino-lime2.dtb \
sun7i-a20-olinuxino-lime2-emmc.dtb \
diff --git a/arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts b/arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts
new file mode 100644
index 0000000..c56620a
--- /dev/null
+++ b/arch/arm/dts/sun7i-a20-olimex-som204-evb-emmc.dts
@@ -0,0 +1,36 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree Source for A20-SOM204-EVB-eMMC Board
+ *
+ * Copyright (C) 2018 Olimex Ltd.
+ * Author: Stefan Mavrodiev <stefan@olimex.com>
+ */
+
+/dts-v1/;
+#include "sun7i-a20-olimex-som204-evb.dts"
+
+/ {
+ model = "Olimex A20-SOM204-EVB-eMMC";
+ compatible = "olimex,a20-olimex-som204-evb-emmc", "allwinner,sun7i-a20";
+
+ mmc2_pwrseq: mmc2_pwrseq {
+ compatible = "mmc-pwrseq-emmc";
+ reset-gpios = <&pio 2 16 GPIO_ACTIVE_LOW>;
+ };
+};
+
+&mmc2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc2_pins_a>;
+ vmmc-supply = <®_vcc3v3>;
+ mmc-pwrseq = <&mmc2_pwrseq>;
+ bus-width = <4>;
+ non-removable;
+ status = "okay";
+
+ emmc: emmc at 0 {
+ reg = <0>;
+ compatible = "mmc-card";
+ broken-hpi;
+ };
+};
diff --git a/configs/A20-Olimex-SOM204-EVB-eMMC_defconfig b/configs/A20-Olimex-SOM204-EVB-eMMC_defconfig
new file mode 100644
index 0000000..4becfe0
--- /dev/null
+++ b/configs/A20-Olimex-SOM204-EVB-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_GMAC_TX_DELAY=4
+CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olimex-som204-evb-emmc"
+CONFIG_AHCI=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_SPL=y
+CONFIG_SPL_I2C_SUPPORT=y
+CONFIG_CMD_DFU=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+CONFIG_CMD_USB_MASS_STORAGE=y
+# 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_PHY_MICREL=y
+CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_RGMII=y
+CONFIG_SUN7I_GMAC=y
+CONFIG_SUNXI_PHY_ADDR=3
+CONFIG_AXP_ALDO3_VOLT=2800
+CONFIG_AXP_ALDO4_VOLT=2800
+CONFIG_SCSI=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_MUSB_GADGET=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-02-02 13:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-02 9:37 [U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board Stefan Mavrodiev
2018-02-02 12:54 ` Maxime Ripard
2018-02-02 13:12 ` Stefan Mavrodiev
2018-02-02 13:36 ` Maxime Ripard
-- strict thread matches above, loose matches on Subject: below --
2018-02-01 10:12 [U-Boot] [PATCH 1/3] sunxi: Add selective PHY address Stefan Mavrodiev
2018-02-01 10:12 ` [U-Boot] [PATCH 3/3] sunxi: Add A20-SOM204-EVB-eMMC board Stefan Mavrodiev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox