From patchwork Sun Sep 4 18:29:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9312731 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B021060865 for ; Sun, 4 Sep 2016 18:29:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5A692887C for ; Sun, 4 Sep 2016 18:29:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A4E12887E; Sun, 4 Sep 2016 18:29:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5A10B2887C for ; Sun, 4 Sep 2016 18:29:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bgcAl-0002Nl-SU; Sun, 04 Sep 2016 18:29:39 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bgcAh-0002FI-Ly for linux-amlogic@lists.infradead.org; Sun, 04 Sep 2016 18:29:36 +0000 Received: by mail-wm0-x242.google.com with SMTP id w207so10173466wmw.0 for ; Sun, 04 Sep 2016 11:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0pVy0zFwFRb4UjNgg9XIdBAt/leMiUrfDzckzOisEhk=; b=C5+XyZ6n8Yt3Nf8LndxDpmyt7lPME3m9izb4Nj6OQuNywNQzz9qLG7vvBJgkUOaV27 OpQa4yAyNUAcnEFV1X+fJNg5UU/GCPpgmJQGZN/0C0MQ8udcOyU++VEt9IJ7CJf0Wrb0 fR1asiRrX4t7Z5gqyT1TGPR1GhqlYeV438vhBc9CZbIkgntGnqxaCZKkzKa5uyivrkxT YTarfo47pq3sMwMvBWXQGqx+I303tJTqcBt6HtdUDEWtEchfgO47FEjWZRaZjbUaw4j+ kiMy1e14kgIL+9NN3x3GEbcVRbRCv8iXuKGzlHMthq4en9CLqR8V0oHs68sY+bqRtm2H y3sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0pVy0zFwFRb4UjNgg9XIdBAt/leMiUrfDzckzOisEhk=; b=UR/RxALJlp2LAdc3cu9aa3QDG7XHkrhmUBTpOK1cvCtGTpwiljZUGnCdUK0qVCcIAO vXGFHB28HFfF+L9OY7SL5+QO1OULwxreLSbd5R1uejyFobr2b7NckqU7ePLUCd15ado0 ugKmhi77q/Ygj0NoIcbOab7ZCMNstDl20mPaJk+WQNgcbGE4scEzvAQlAhM9+stf+JyM PI0KFLsHka1dTPDgEPMNg5jZWI6BwdqD8MDoMRFh4X2yZiG8pmstvP2PEpd8VUxukoWT 0+ICGVbNkvAs93VBrninWTnazBj0KuOAHv/HV5Z3OezVDYkvXszK6fud6i4ZoHDMfLQY qM0g== X-Gm-Message-State: AE9vXwNvbw5VXE+p5SEJMr4AxT3q+9dYltNFUDyIiIpB5qJBICkdFFfwyLHSGcgQd/JPxA== X-Received: by 10.194.178.165 with SMTP id cz5mr2836007wjc.57.1473013753876; Sun, 04 Sep 2016 11:29:13 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3CA8104A82AA8E503619161.dip0.t-ipconnect.de. [2003:dc:d3ca:8104:a82a:a8e5:361:9161]) by smtp.googlemail.com with ESMTPSA id a194sm15778878wmd.24.2016.09.04.11.29.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Sep 2016 11:29:13 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH v2 2/3] ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices Date: Sun, 4 Sep 2016 20:29:02 +0200 Message-Id: <20160904182903.1841-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160904182903.1841-1-martin.blumenstingl@googlemail.com> References: <20160815133811.19646-1-martin.blumenstingl@googlemail.com> <20160904182903.1841-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160904_112935_945235_61450595 X-CRM114-Status: UNSURE ( 7.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, afaerber@suse.de MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds eMMC support for all Tronsmart Vega S95 devices using sd_emmc_c. This is implemented similar to the p20x boards (meaning it uses fixed regulators). Signed-off-by: Martin Blumenstingl --- .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi index e9ead47..4573bac 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -62,6 +62,21 @@ regulator-always-on; }; + + vcc_1v8: regulator@1 { + compatible = "regulator-fixed"; + + regulator-name = "VCC1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-always-on; + }; + + emmc_pwrseq: emmc-pwrseq { + compatible = "mmc-pwrseq-emmc"; + reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; + }; }; &uart_AO { @@ -92,3 +107,23 @@ vmmc-supply = <&vcc_3v3>; voltage-ranges = <3300 3300>; }; + +&sd_emmc_c { + status = "okay"; + pinctrl-0 = <&emmc_pins>; + pinctrl-names = "default"; + + bus-width = <8>; + cap-sd-highspeed; + cap-mmc-highspeed; + max-frequency = <200000000>; + non-removable; + disable-wp; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + + mmc-pwrseq = <&emmc_pwrseq>; + voltage-ranges = <1800 3300>; + vmmc-supply = <&vcc_3v3>; + vmmcq-sumpply = <&vcc_1v8>; +};