Received: by 10.223.176.5 with SMTP id f5csp2901562wra; Mon, 29 Jan 2018 05:59:05 -0800 (PST) X-Google-Smtp-Source: AH8x224sbDO1EDIlArsqGfwunzJaxKgrYyZ9s5hjY2wkuZTpBiiu2v2/5Cph1ncchfL+8VzaWzhd X-Received: by 2002:a17:902:1683:: with SMTP id h3-v6mr21023660plh.433.1517234345858; Mon, 29 Jan 2018 05:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517234345; cv=none; d=google.com; s=arc-20160816; b=VjEyvSKeEuFaDj5BASip3v418gE2MXV+t2NK7XzWQXjf+s6r1wB885MFg1cYEWv3/M jvnph4OC2nA2SaNMVr+Aqb+SWjdUnCRaegVZvXnz4KP32MLBB/n+7zk/FrzPQlDZp3tz PAHbDs5ey10u2T7bsq4QrtZrBFVKUaOtunEFearhRoOY2+8mHx7euytl14/lSQJH7MMM fd1HJSy5M8tiIMeTdzE5Z10By5fd5TqwpIsKbjd4R933RNbTn3ESbFcXjAPmLr+VREfM KhaA6bO/ZU89a6ds4gyCfEqBSHWguR8zzfaWFKPngO05NAilBy7vtCJViJrK3vI/8Ctw J2ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=5WP2eHmqLd1YdhIv71fEefk15sjFDIb6V3Ano6K3Wso=; b=uHOWesHc1W09L96VjazW2enKM5bpoRyCyhKTYjLuHXpRTbZqvXGFuNYsT5qlanLuOH VNOIPTFnO/FTD9wQKCs2fIoBVebmJAxB4FIXEY7ff019X5RTOD74DJ4bFIzTKNEqfXug Laq8v3ypk3Lvw1obV/G2dlc2RLiwp6I2oAP4VOPvWWyJD4Vh3edSvcF5j14WtVnl5m7U PK476eTb//cg3ZwfvN9wGZeakWnrVKelNMoFqLlXWJuiGvVDTyB9j1isWKufBXlJqjZw wlieaDfN7zTyL4HwSD8FAPiiVYVUqvur/zlEL6ssXfsdS0O5x6bZ4E7rvuVNnLRTuHJZ MSzw== 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 y9-v6si8373456pll.776.2018.01.29.05.58.51; Mon, 29 Jan 2018 05:59:05 -0800 (PST) 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 S1752041AbeA2N5J (ORCPT + 99 others); Mon, 29 Jan 2018 08:57:09 -0500 Received: from olimex.com ([184.105.72.32]:41407 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbeA2N5H (ORCPT ); Mon, 29 Jan 2018 08:57:07 -0500 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 ; Mon, 29 Jan 2018 05:56:56 -0800 From: Stefan Mavrodiev To: Rob Herring , Mark Rutland , Russell King , Maxime Ripard , Chen-Yu Tsai , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT), linux-kernel@vger.kernel.org (open list) Cc: linux-sunxi@googlegroups.com, Stefan Mavrodiev Subject: [PATCH v2 2/2] ARM: dts: sunxi: Add Olimex A20-SOM204-EVB-eMMC board Date: Mon, 29 Jan 2018 15:56:40 +0200 Message-Id: <1517234202-1892-2-git-send-email-stefan@olimex.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517234202-1892-1-git-send-email-stefan@olimex.com> References: <1517234202-1892-1-git-send-email-stefan@olimex.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A20-SOM204 board has option with onboard 16GB eMMC. The chip is wired to MMC2 slot. Signed-off-by: Stefan Mavrodiev --- Changes for v2: - Replaced license header with SPDX-License-Identifier arch/arm/boot/dts/Makefile | 1 + .../boot/dts/sun7i-a20-olimex-som204-evb-emmc.dts | 36 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-olimex-som204-evb-emmc.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index d88f04d..c890042 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -919,6 +919,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/boot/dts/sun7i-a20-olimex-som204-evb-emmc.dts b/arch/arm/boot/dts/sun7i-a20-olimex-som204-evb-emmc.dts new file mode 100644 index 0000000..c56620a --- /dev/null +++ b/arch/arm/boot/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 + */ + +/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@0 { + reg = <0>; + compatible = "mmc-card"; + broken-hpi; + }; +}; -- 2.7.4