Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1893110imm; Wed, 16 May 2018 04:49:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo0UU/W1zk0homMGHsA4Ds2YhGUmDy5EFOt3UawFwKmyWOLrasf3GZ7Tc2XTVh/UvVOGNqi X-Received: by 2002:a17:902:7405:: with SMTP id g5-v6mr651809pll.102.1526471344392; Wed, 16 May 2018 04:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526471344; cv=none; d=google.com; s=arc-20160816; b=KI26tA7XOcRQoN7UlTOMmhJiTiv/LfajsXziRqqqOKlvaCcw+N1Nup3RCKoSeB0JjR 9wRX1f1dxIzHabZ92Tk2HtJ0ZwLLCEmbOeyRBz/E5G7QecHLzzAow8t6wQ29ookeAtnU OBT9ippeoQDkh/Nt9+atwsPlJdkLeCEvQO7IUB+KdJpANriNau7RYTlitcqj4UJscCbS vj8MAZqStox70rsbVkcvUdlbbhqL+CCGoK9inAEYL0995mI7Oi9ZKBFm2o/bXylCupUz 4hkig7jBkPvhJETkYtyEEqg65c4ccO9CurLkT2yn9pCDTBlCce5YnNbYhqmtiXQ34dKV 9+ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=1JrARhZ72oZBu5Nvz746tDJgFtheKCURIxdhDs3ETqU=; b=Ae2s62MYn9CPScgS0s3teB0A06a6c2ksSxeqyQXUCCoXsVHOENl6hZY2oaelMw57+h bAUx6MtQs2bI0X90cKWYR6NiyQzD9W/51wfkGqReC1DajZ/IyrukulRSB3zsUoODdKKo gEj9P5EvjsT3WD453Syf4aZUOFZR3zOEzYTmQCAc+oB7j1IZg6sEvqlVimOEovuUXVD0 3lEG9bVV65tMwVFu7F15TPmrYPXhBsFObHamLt/+U2TGZ7cFXJ2sw9IBwk9Pxaf0bDMD 9nYq2GEFFZW5i6mTrnNmMScphGu3RVw2PX5x1B8SE2615fbBrzhiRu7tk0p2AKdffAHL RYpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4-v6si2057395pgs.126.2018.05.16.04.48.49; Wed, 16 May 2018 04:49:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752292AbeEPLsj (ORCPT + 99 others); Wed, 16 May 2018 07:48:39 -0400 Received: from olimex.com ([184.105.72.32]:35676 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751844AbeEPLsi (ORCPT ); Wed, 16 May 2018 07:48:38 -0400 X-Greylist: delayed 602 seconds by postgrey-1.27 at vger.kernel.org; Wed, 16 May 2018 07:48:38 EDT Received: from localhost.localdomain ([195.238.85.143]) by olimex.com with ESMTPSA (ECDHE-RSA-AES128-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AES(128):Mac=SHA256) (SMTP-AUTH username stefan@olimex.com, mechanism PLAIN) for ; Wed, 16 May 2018 04:38:34 -0700 From: Stefan Mavrodiev To: Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support) Cc: linux-sunxi@googlegroups.com, Stefan Mavrodiev Subject: [PATCH 1/1] ARM:dts:sunxi: Add Olimex A20-SOM-EVB-eMMC board Date: Wed, 16 May 2018 14:38:08 +0300 Message-Id: <1526470689-6275-1-git-send-email-stefan@olimex.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the new rev.E of A20-SOM-EVB, there is option for 16GB eMMC. Currently used card is KLMAG2GEND, wired to MMC2 slot. Signed-off-by: Stefan Mavrodiev --- arch/arm/boot/dts/Makefile | 1 + .../arm/boot/dts/sun7i-a20-olimex-som-evb-emmc.dts | 37 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-olimex-som-evb-emmc.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 1db91ec..7f1ee65 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -959,6 +959,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-m3.dtb \ sun7i-a20-mk808c.dtb \ sun7i-a20-olimex-som-evb.dtb \ + sun7i-a20-olimex-som-evb-emmc.dtb \ sun7i-a20-olimex-som204-evb.dtb \ sun7i-a20-olimex-som204-evb-emmc.dtb \ sun7i-a20-olinuxino-lime.dtb \ diff --git a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb-emmc.dts b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb-emmc.dts new file mode 100644 index 0000000..81ebc97 --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb-emmc.dts @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree Source for A20-Olimex-SOM-EVB-eMMC Board + * + * Copyright (C) 2018 Olimex Ltd. + * Author: Stefan Mavrodiev + */ + +/dts-v1/; +#include "sun7i-a20-olimex-som-evb.dts" + +/ { + + model = "Olimex A20-Olimex-SOM-EVB-eMMC"; + compatible = "olimex,a20-olimex-som-evb-emmc", "allwinner,sun7i-a20"; + + mmc2_pwrseq: mmc2_pwrseq { + compatible = "mmc-pwrseq-emmc"; + reset-gpios = <&pio 2 18 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@0 { + reg = <0>; + compatible = "mmc-card"; + broken-hpi; + }; +}; -- 2.7.4