From patchwork Thu Aug 22 20:25:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Mohan Adapa X-Patchwork-Id: 1151793 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=medhas.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46Dwzv10Qcz9s3Z for ; Fri, 23 Aug 2019 06:26:51 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id CAE53C220D8; Thu, 22 Aug 2019 20:26:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4D964C220C0; Thu, 22 Aug 2019 20:26:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 25192C22047; Thu, 22 Aug 2019 20:26:27 +0000 (UTC) Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) by lists.denx.de (Postfix) with ESMTPS id 64DFCC22066 for ; Thu, 22 Aug 2019 20:26:26 +0000 (UTC) Received: from towel.hsd1.wa.comcast.net ([71.197.225.149]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1N7AIq-1iJKkK1HeG-017SyV; Thu, 22 Aug 2019 22:26:20 +0200 From: Sunil Mohan Adapa To: u-boot@lists.denx.de, linux-sunxi@googlegroups.com Date: Thu, 22 Aug 2019 13:25:57 -0700 Message-Id: <20190822202558.15115-2-sunil@medhas.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822202558.15115-1-sunil@medhas.org> References: <20190822202558.15115-1-sunil@medhas.org> MIME-Version: 1.0 X-Provags-ID: V03:K1:f4LJkueKhoT+jHgxiZmBuxTld+6pNQYqB6vQ71ZdBSndRIQIyqr lm71Wl4Rf3O3D/z53GysiUzd78PHvlv+h0n0ZQ/AN9QrZZJ4eGoSd7zmQyCX+H+yhifTK44 SE2c39pn2rwC+q3iCw+WKs00kpdHj7Uub4WI19jJqGXhK+JtU2cd4eAJqnHNFTIBVCvG5vC z5ORPQwRoh8lc7JJcdTUQ== X-UI-Out-Filterresults: notjunk:1; V03:K0:6vY3sf2l6Rc=:pZ9DiFY3CjheV+4OlUcwKl S6jr+ftuDwy4DO6LQrJALvpP/5dJrgCiNs5tKgV4wKi7PNcYCNi28xKHP7RhAb4JL2h2M8nTk /X4pzJmwWpTt6Z0TSklcre9Y9Q9u9we4hZLK2rUUQLDd/5CJzMJ7P65iDUn8qvix5wCw1y4qG XspOSCoLidJLx+0eoniQqsP+/PekIsdNfe36B6GugoLeCOJhmHMdwJehhY5L68jgIlYK6jh1u 51dsB2CecNWu5IOiVA0W5keIBxpK31nNJfSCrTALKy/IjZ9Cw4j5tTAKZKaP2MB8GDFVeTjBH ARVfP6ICeZBT/YYKLHVV0ZWMv6gnOxBed9To6MNB17MNQLgMSbI5UEtmZkBZNt1fFl09Xl4MC d5ROXuuG5abut8N1x3nbXZOO5kF6GoVjiJCVxEjEU3S42uZDr/XVoDwLExqICSL2Bnzzym9Ga ZLr9WzvC8Gm8d7MSQ4TJH4d3VfmG4i9mOcb9yOZkRBOdQ2RfR8WGReNvUhmUCCH8i61s/4Uar QTdC+8DjpbpQ+D5AurqKQRDhDoXPpIkmoLAKepiF16rMs/P5E2kTFva/0FBUjuzLN8mHHMMAY aqVFHWjEgMthhIDeu6RZFrC5Ul86hO+41YQ5yhXcCSWdZlflftgS3ssf8+Qf0ukWZGCsIBvzX 6U1qPhQ6NwxuWYZJmr7AfsJLEVob+qGB7vOjQuNu3Mz6/YR/fTMi34mXaX+xhgXnHebEb6XOy eiVTeU+phrubUHfwMZCE2PkM6pN41PN2R8HISkPfcjGyDF+i1vQ4kpjmuHjr5LVBesucgDYAe rLW1Mo3iB/fJhQ1fsxCbNcrW8k+Vg== Cc: martinayotte@gmail.com Subject: [U-Boot] [PATCH v2 1/2] arm64: dts: sun50i: Add support for A64 OLinuXino (with eMMC) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" A64 OLinuXino board from Olimex has three variants with onboard eMMC: A64-OLinuXino-1Ge16GW, A64-OLinuXino-1Ge4GW and A64-OLinuXino-2Ge8G-IND. In addition, there are two variants without eMMC. One without eMMC and one with SPI flash. This suggests the need for separate device tree for the three eMMC variants. The Linux kernel upstream has chosen to create and use a separate device tree for the eMMC variants instead of adding eMMC support existing device tree. These changes to Linux kernel are queued for Linux 5.4. https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/commit/?h=sunxi/dt-for-5.4&id=02bb66b347ff8115f53948f86b884e008ba385b9 This patch has been tested on A64-OLinuXino-1Ge16GW and is based on Linux device-tree. Signed-off-by: Sunil Mohan Adapa --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-a64-olinuxino-emmc.dts | 23 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 arch/arm/dts/sun50i-a64-olinuxino-emmc.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 05ff624c07..d28906a63b 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -530,6 +530,7 @@ dtb-$(CONFIG_MACH_SUN50I) += \ sun50i-a64-nanopi-a64.dtb \ sun50i-a64-oceanic-5205-5inmfd.dtb \ sun50i-a64-olinuxino.dtb \ + sun50i-a64-olinuxino-emmc.dtb \ sun50i-a64-orangepi-win.dtb \ sun50i-a64-pine64-lts.dtb \ sun50i-a64-pine64-plus.dtb \ diff --git a/arch/arm/dts/sun50i-a64-olinuxino-emmc.dts b/arch/arm/dts/sun50i-a64-olinuxino-emmc.dts new file mode 100644 index 0000000000..96ab0227e8 --- /dev/null +++ b/arch/arm/dts/sun50i-a64-olinuxino-emmc.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2018 Martin Ayotte + * Copyright (C) 2019 Sunil Mohan Adapa + */ + +#include "sun50i-a64-olinuxino.dts" + +/ { + model = "Olimex A64-Olinuxino-eMMC"; + compatible = "olimex,a64-olinuxino-emmc", "allwinner,sun50i-a64"; +}; + +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_pins>; + vmmc-supply = <®_dcdc1>; + vqmmc-supply = <®_dcdc1>; + bus-width = <8>; + non-removable; + cap-mmc-hw-reset; + status = "okay"; +}; From patchwork Thu Aug 22 20:25:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Mohan Adapa X-Patchwork-Id: 1151794 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=medhas.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46Dx0m3YJMz9s3Z for ; Fri, 23 Aug 2019 06:27:36 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 2D92EC220DB; Thu, 22 Aug 2019 20:27:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id DA089C220D2; Thu, 22 Aug 2019 20:26:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 93C7AC22066; Thu, 22 Aug 2019 20:26:31 +0000 (UTC) Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) by lists.denx.de (Postfix) with ESMTPS id 3C46DC220A7 for ; Thu, 22 Aug 2019 20:26:28 +0000 (UTC) Received: from towel.hsd1.wa.comcast.net ([71.197.225.149]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MQMJR-1hf5WY12cT-00MKJ8; Thu, 22 Aug 2019 22:26:23 +0200 From: Sunil Mohan Adapa To: u-boot@lists.denx.de, linux-sunxi@googlegroups.com Date: Thu, 22 Aug 2019 13:25:58 -0700 Message-Id: <20190822202558.15115-3-sunil@medhas.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822202558.15115-1-sunil@medhas.org> References: <20190822202558.15115-1-sunil@medhas.org> MIME-Version: 1.0 X-Provags-ID: V03:K1:jS+lDCeA7YnJfxzaOtKUr+BykIIyuKw3BN4B+VGj1rC0Hq0J8En Z3T++Lg3DplU7vFvGwhswMFFS/YzbI14ssZOkQBaJJWWcQX1Hi3zvqQoGZQ+vcueOSvKjIr CtpJqBgu3UADHUKf6tIHLGAM9HyHdJXx6v0KA8/NcRJc4CYS3STuqqU6H3OLg/EZ4PTm5Uq l7PPTYD9sU9JyB4aeFXQw== X-UI-Out-Filterresults: notjunk:1; V03:K0:fUenlFseTc8=:SfTTBSUruxZgoiZjyWxEGK DXXNnfe5Qyg6JneAB/iTPSEK/FHz+IVLi17KX2Bw+Lp4HmCkCdMu2CLS6WVRh/ynCjyhz4Vgu qdKtegdnd8M/o9D/yLiC0udl8c4cXMQYfHloBsK50mdmIUISTfLdobwhzAKuOuz+/jj6Chzs8 naoye2QzdxHYBBzYH/h6/ks5td/NkFh9UyPf9794vrLzNfldGwEusxVKJuw8VEQNjeiej1UE2 1TabVbX7ZlWHN6grx5mJMz7RUfnO1cUEAS33ruVLInbY706+pV6DDlroDAchnqWZgQRoUNJBQ 5zzxBW+K6T6UcHZrXKh5p+3GhCkZ4Bn9ssQC1HhNL9tc7igr7uSYDMAslvrJN/GHsd4ip2vwX o8u4Ami2d02ZzIlysCaHXSLNR2Yvp5azfvXKpp4zMMWk6eYM1vV3v3TxLD1iTwTBRBmDtaxmS 1OgCzIdcjwcdD864hZ6CCSoF+zLV+0+rbZFQAobUYkWM6lPIRXDSc05BW6f0vw/kyxAGyblbi 1mhWtHLTvGBIkc8qM1h4IOrHau+1+737hHJFtH4iwTI76gng3j7+zDRLg30eWDoPGJwim4HjS JwrKeX+aCwYNX2yjman46UOwuFBLQPv2I979c9wVNdH7u107KJ4Zw02fixh9BQg2hDVRizsOw 5OcQiD/VL5M3+yjDVIfVNAJL4X3+LTUciJT0cTREcVuAt3wtgHUvqlnRLYlq9IoyMJwBfhZrJ KxhjD0rUqq8nYZXjvu7UTQG9HGGPd1oa1qI6hw== Cc: martinayotte@gmail.com Subject: [U-Boot] [PATCH v2 2/2] configs: sun50i: Add support for Olimex A64-Olinuxino-eMMC X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" A64 OLinuXino board from Olimex has three variants with onboard eMMC: A64-OLinuXino-1Ge16GW, A64-OLinuXino-1Ge4GW and A64-OLinuXino-2Ge8G-IND. In addition, there are two variants without eMMC. One without eMMC and one with SPI flash. This suggests the need for separate device tree for the three eMMC variants. The Linux kernel upstream has chosen to create and use a separate device tree for the eMMC variants instead of adding eMMC support existing device tree. These changes to Linux kernel are queued for Linux 5.4. https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/commit/?h=sunxi/dt-for-5.4&id=02bb66b347ff8115f53948f86b884e008ba385b9 Based on a64-olinuxino_defconfig. This patch has been tested on A64-OLinuXino-1Ge16GW. Signed-off-by: Sunil Mohan Adapa --- board/sunxi/MAINTAINERS | 5 +++++ configs/a64-olinuxino-emmc_defconfig | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 configs/a64-olinuxino-emmc_defconfig diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index c7e9d3eda0..442ff3d9cd 100644 --- a/board/sunxi/MAINTAINERS +++ b/board/sunxi/MAINTAINERS @@ -106,6 +106,11 @@ M: Jagan Teki S: Maintained F: configs/a64-olinuxino_defconfig +A64-OLINUXINO-EMMC BOARD +M: Sunil Mohan Adapa +S: Maintained +F: configs/a64-olinuxino-emmc_defconfig + A80 OPTIMUS BOARD M: Chen-Yu Tsai S: Maintained diff --git a/configs/a64-olinuxino-emmc_defconfig b/configs/a64-olinuxino-emmc_defconfig new file mode 100644 index 0000000000..56153e38a7 --- /dev/null +++ b/configs/a64-olinuxino-emmc_defconfig @@ -0,0 +1,17 @@ +CONFIG_ARM=y +CONFIG_ARCH_SUNXI=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_SPL=y +CONFIG_MACH_SUN50I=y +CONFIG_RESERVE_ALLWINNER_BOOT0_HEADER=y +CONFIG_MMC_SUNXI_SLOT_EXTRA=2 +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set +CONFIG_USE_PREBOOT=y +# CONFIG_CMD_FLASH is not set +# CONFIG_SPL_DOS_PARTITION is not set +# CONFIG_SPL_EFI_PARTITION is not set +CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-olinuxino-emmc" +CONFIG_SUN8I_EMAC=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_OHCI_HCD=y +CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y