From patchwork Mon Feb 10 10:35:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre GRIVEAUX X-Patchwork-Id: 1235754 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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=deutnet.info Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=deutnet.info header.i=@deutnet.info header.a=rsa-sha256 header.s=default header.b=XSCcMJqd; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48GMkF3lhcz9sRt for ; Mon, 10 Feb 2020 21:35:33 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 868088025D; Mon, 10 Feb 2020 11:35:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=reject dis=none) header.from=deutnet.info Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=deutnet.info header.i=@deutnet.info header.b="XSCcMJqd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7B11380271; Mon, 10 Feb 2020 11:35:26 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from srv1.deutnet.info (srv1.deutnet.info [IPv6:2a01:4f8:c2c:6846::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 74A1080199 for ; Mon, 10 Feb 2020 11:35:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=deutnet.info Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=agriveaux@deutnet.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deutnet.info; s=default; h=Message-Id:Date:Subject:Cc:To:From:in-reply-to; bh=fKntSJSb6PdBxL7FZIh8yLxE2JZnkXv5eUw57yxUjQM=; b=XSCcMJqdt+EwIfhMa5i07bw42 WPaKrroP3W30ZKt8fk/Kf2i65wh/zQgzG9goqVMI0+kD8tDk2ZPDJLVpoFMtuZtvpVAQxnadmGhZt bSuuvcntUSqQoRxY2Lv7k6vl4L0CrRW+aprONBstlu9ziUnYXYCuNUcZppjaLGUmvlJKwVgNeu9C+ 7IpxzbbMUc2sIZhwTWe+JHsWmNGlgIkQuv9x23w8B1fA9dEbQBw1sC3773CIXi27YGq/250pTvCD4 C/dTElqZW4YHYHoHHbTZ0bsylhcl/bZviMATJMW7xR0eJ4e9p7al/6FzgCl7Q5gdkUjdrQcisY16L oTERrJErQ==; Received: from [2001:bc8:3dc9::1] (helo=srv100.deutnet.info) by srv1.deutnet.info with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j16PP-0007nU-Tb; Mon, 10 Feb 2020 11:35:19 +0100 Received: from agriveaux by srv100.deutnet.info with local (Exim 4.92) (envelope-from ) id 1j16PP-00DTAf-GH; Mon, 10 Feb 2020 11:35:19 +0100 From: agriveaux@deutnet.info To: albert.u.boot@aribaud.net, jagan@amarulasolutions.com, mripard@kernel.org Subject: [PATCH] sunxi: Add Inet 86V Rev 2 support Date: Mon, 10 Feb 2020 11:35:15 +0100 Message-Id: <20200210103515.3210356-1-agriveaux@deutnet.info> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: u-boot@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.1 at phobos.denx.de X-Virus-Status: Clean From: Alexandre GRIVEAUX Add Inet 86V Rev 2 support, based upon Inet 86VS. Missing things: - Accelerometer (MXC6225X) - Touchpanel (Sitronix SL1536) - Nand (29F32G08CBACA) - Camera (HCWY0308) Signed-off-by: Alexandre GRIVEAUX --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/sun5i-a13-inet-86v-rev2.dts | 17 +++++++++++++++ configs/inet86v_rev2_defconfig | 27 ++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/sun5i-a13-inet-86v-rev2.dts create mode 100644 configs/inet86v_rev2_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 6915783d9c..7a0f1c0484 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -444,7 +444,8 @@ dtb-$(CONFIG_MACH_SUN5I) += \ sun5i-a13-q8-tablet.dtb \ sun5i-a13-utoo-p66.dtb \ sun5i-gr8-chip-pro.dtb \ - sun5i-r8-chip.dtb + sun5i-r8-chip.dtb \ + sun5i-a13-inet-86v-rev2.dtb dtb-$(CONFIG_MACH_SUN6I) += \ sun6i-a31-app4-evb1.dtb \ sun6i-a31-colombus.dtb \ diff --git a/arch/arm/dts/sun5i-a13-inet-86v-rev2.dts b/arch/arm/dts/sun5i-a13-inet-86v-rev2.dts new file mode 100644 index 0000000000..9b4c5349f0 --- /dev/null +++ b/arch/arm/dts/sun5i-a13-inet-86v-rev2.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2020 Alexandre Griveaux + * + * Minimal dts file for the iNet 86V + */ + +/dts-v1/; + +#include "sun5i-a13.dtsi" +#include "sun5i-reference-design-tablet.dtsi" + +/ { + model = "iNET 86V Rev 02"; + compatible = "primux,inet86v-rev2", "allwinner,sun5i-a13"; + +}; diff --git a/configs/inet86v_rev2_defconfig b/configs/inet86v_rev2_defconfig new file mode 100644 index 0000000000..f8dbd14c0b --- /dev/null +++ b/configs/inet86v_rev2_defconfig @@ -0,0 +1,27 @@ +CONFIG_ARM=y +CONFIG_ARCH_SUNXI=y +CONFIG_MACH_SUN5I=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_SPL=y +# CONFIG_MACH_SUN5I=y +CONFIG_DRAM_CLK=432 +CONFIG_MMC0_CD_PIN="PG0" +CONFIG_USB0_VBUS_PIN="PG12" +CONFIG_USB0_VBUS_DET="PG1" +CONFIG_USB0_ID_DET="PG2" +CONFIG_AXP_GPIO=y +# CONFIG_VIDEO_HDMI is not set +CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:18,pclk_khz:33000,le:45,ri:209,up:22,lo:22,hs:1,vs:1,sync:3,vmode:0" +CONFIG_VIDEO_LCD_POWER="AXP0-0" +CONFIG_VIDEO_LCD_BL_EN="AXP0-1" +CONFIG_VIDEO_LCD_BL_PWM="PB2" +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set +CONFIG_USE_PREBOOT=y +CONFIG_SPL_I2C_SUPPORT=y +# CONFIG_SPL_DOS_PARTITION is not set +# CONFIG_SPL_EFI_PARTITION is not set +CONFIG_DEFAULT_DEVICE_TREE="sun5i-a13-inet-86v-rev2" +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_CONS_INDEX=2 +CONFIG_USB_MUSB_HOST=y +CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y