From patchwork Tue Nov 6 04:24:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 993501 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iOmuI/vm"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42pxKd4MGsz9sCw for ; Tue, 6 Nov 2018 15:25:09 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 4371CC22327; Tue, 6 Nov 2018 04:25: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=FREEMAIL_FROM, KHOP_BIG_TO_CC, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID 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 5C52BC22160; Tue, 6 Nov 2018 04:24:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 23C02C22160; Tue, 6 Nov 2018 04:24:58 +0000 (UTC) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by lists.denx.de (Postfix) with ESMTPS id 870E6C2214F for ; Tue, 6 Nov 2018 04:24:57 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id i4-v6so5221230pgq.9 for ; Mon, 05 Nov 2018 20:24:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=TL3IbP4rWvnrKaz5GKpVETDnRGOgoh4OJ97Zo+JqYV0=; b=iOmuI/vmCy/JRYBfOSqkfE8XIJsTfM8wAYutsAuJm75Nhm41GEaK0Wqr0zabdfV7uN leJ3ZMYZjyhaNVP5zjWquzf4TlTam0I/ue9Nm3eUyDvC3bi5KIEL21T2o0AaX+L3DRvt FGesiYZIyrAoKjX/rRGHBdO3luCQYDG6ShW70cKimHL272qKk4JQ+I6VD0cZ/eb3Rf2w M1UBVuQsZl+YK0qVcIbDWXVjCATPsM8QXmNnJp/sckVCEM7n7jj/J54fAU8rEFO2FxLU elsjEmgNWs96PSpUW2m3HNBVcHuJ6PH2YVpOHzJS4egCqdbRv87GJQgIF0yc1ApU0Kpp vWDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=TL3IbP4rWvnrKaz5GKpVETDnRGOgoh4OJ97Zo+JqYV0=; b=mTIyNHNzRgBmpn0zJZvAwIXGMwl4IQ/6g7pY1fN7kCG3LBsAHymSo+oCZyU/GBW3sC v21gnG1/7C9OytsCCn8P9voDh8zJZaIFokEr3ahsQj0wIGROw4c1g29DwhgiaIgjmLPw TNYVpOr6CKNQn0PVhQRGC0Jgd5/+qfqPuLDifgds9QOw4pm4MziB62ZpAdqGn/70NJO4 crAFj9yobxjk9gLUOg/arcuNGD25theWFYoqakpKQId+13ZuVT2xo/iilPkiHf405xaR v8l3otVkgZY9ixA0ED21mbzyFQXNY9elYJczZlQg1+DeAc71PIEXG38DAcT7nvBrHxgs h6HA== X-Gm-Message-State: AGRZ1gLTyYviWhSddmpop8AaeKFjKsJTRg94newl8zCrrgiEgaSORg0r FHdin3LTe6T6uWljDKHKM2o= X-Google-Smtp-Source: AJdET5chPPu6GKbTzZ/Whz1MsatyjS8hY8yXKs0aygcQb0I8BJvpCIpCljLCWYp6Xb9IKDqYEccU7Q== X-Received: by 2002:a63:608f:: with SMTP id u137mr22505589pgb.203.1541478295763; Mon, 05 Nov 2018 20:24:55 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id b185sm11143964pga.85.2018.11.05.20.24.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 20:24:55 -0800 (PST) From: Vasily Khoruzhick To: Albert Aribaud , Jagan Teki , Maxime Ripard , Hans de Goede , Jaehoon Chung , Anatolij Gustschin , Chen-Yu Tsai , Andre Przywara , =?utf-8?q?Jernej_=C5=A0krabec?= , Vagrant Cascadian , anarsoul@gmail.com, u-boot@lists.denx.de Date: Mon, 5 Nov 2018 20:24:27 -0800 Message-Id: <20181106042431.21595-1-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [U-Boot] [PATCH v5 0/4] Add support for Pinebook 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" This series adds support for the Pinebook, an allwinner A64 laptop produced by Pine64. It also adds support for mmc delay calibration, R_I2C controller, and addresses the issue with activating video bridge when any of GPIOs is missing. This series depends on André's "sunxi: A64/H3/H5 DT updates" v2: - sync sun50i-a64.dtsi with linux instead of adding missing nodes - take sun50i-a64-pinebook.dts from linux - don't introduce new Kconfig for A64 MMC calibration - improve code in video bridge uclass to check for presensce of GPIO instead of ingoring EINVAL errors v3: - enable calibration for H6 as well - init ret variable in video_bridge_set_active() - fix order of dts files Makefile - split anx6345 binding into sun50i-a64-pinebook-u-boot.dts - drop speaker_amp node from pinebook dts - drop unnecessary options from defconfig v4: - sync device tree files with linux-next v5: - drop patch to sync device tree files with linux-next Vasily Khoruzhick (4): mmc: sunxi: add support for automatic delay calibration dm: video: bridge: don't fail to activate bridge if reset or sleep GPIO is missing sun50i: A64: add support for R_I2C controller sunxi: DT: add support for Pinebook arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-a64-pinebook-u-boot.dtsi | 15 + arch/arm/dts/sun50i-a64-pinebook.dts | 294 +++++++++++++++++++ arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/include/asm/arch-sunxi/mmc.h | 6 +- arch/arm/mach-sunxi/Kconfig | 1 + board/sunxi/board.c | 6 + configs/pinebook_defconfig | 22 ++ drivers/mmc/sunxi_mmc.c | 21 +- drivers/video/bridge/video-bridge-uclass.c | 16 +- 10 files changed, 376 insertions(+), 7 deletions(-) create mode 100644 arch/arm/dts/sun50i-a64-pinebook-u-boot.dtsi create mode 100644 arch/arm/dts/sun50i-a64-pinebook.dts create mode 100644 configs/pinebook_defconfig