Received: by 10.192.165.148 with SMTP id m20csp2186301imm; Thu, 26 Apr 2018 07:11:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx48tmA9cE3YojKtTOoaOZwnwqrbHzlZ7KV2IO9YcJ98AcuRlQxVt3rxYeHMZrhZIolgblXDK X-Received: by 10.98.144.205 with SMTP id q74mr32221008pfk.55.1524751894278; Thu, 26 Apr 2018 07:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524751894; cv=none; d=google.com; s=arc-20160816; b=Gd0FtYYJvHq9uCAskvo/2jgmZ7/bM5IvtlKh0juc/VH0zBsTiEp+BLA/3//RcGe8za czjHq1vPXgnIFhDepqtOzuGiuUGBpYfF+woy8VIBboUv6FnOgxtRopbOIbWA/mYfrbkm lhk7yelLgkX1pDYP+kHR2EOYO6H7nM5cAqGv7PqMjEJfTOJbqJovIN1wSrXzxA5O0qIM Ya7u+fRrPU/sR1g/yt/gvcr9OVOZWgUHDngnIQNG6JEo2Em51gHqrr5dq5usTmEhqpHE fl35Wye8zq0stJHA+EbX+S3OJUUAnJa/hQUlx7AjbAw6uLWydRCPTNsv1wzTjKl0LTqR gSjg== 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=qu8n7grX22XDIh8qqW5Ncn2viZsaCC8bf7BZzpysiTM=; b=soYcqaz7s7q826eFXYwqLKc6s1aIwsuHbzQD2LtyOc3beNPfkIJ4NPW7MPc54dqXOa uNXn2SM86ckobFSoAbu+H6ao7VTDskj8F4fCnxw4yq30atwvINsHriYWSnz7sJw6fLNZ 4eUZeqZxm7Pom7V25i38o3SV8cOiJISiRVm/+fpjzLH5K4tPmIyUEIE/T4MlJQwxZzJB QWTxu5qNvOozTxxfZQH82fCn1AKByPBlt5X8kcVAQGRj/YunbdPhkqdU1o2jg7TyqcgP RdQhoKZ70Qn1AydMuFxYGJ0X30bjaAXXvkDlW48Gv1zJOZQfX8UgesNAtS/k/sKQBLNJ ZZeQ== 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 w6-v6si15526012pll.50.2018.04.26.07.11.20; Thu, 26 Apr 2018 07:11:34 -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 S932283AbeDZOJm (ORCPT + 99 others); Thu, 26 Apr 2018 10:09:42 -0400 Received: from hermes.aosc.io ([199.195.250.187]:45882 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756547AbeDZOJk (ORCPT ); Thu, 26 Apr 2018 10:09:40 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 05B8E5BCC2; Thu, 26 Apr 2018 14:09:35 +0000 (UTC) From: Icenowy Zheng To: Ulf Hansson , Rob Herring , Maxime Ripard , Chen-Yu Tsai Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH 3/3] arm64: allwinner: h6: enable MMC0/2 on Pine H64 Date: Thu, 26 Apr 2018 22:07:28 +0800 Message-Id: <20180426140728.43155-4-icenowy@aosc.io> In-Reply-To: <20180426140728.43155-1-icenowy@aosc.io> References: <20180426140728.43155-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Pine H64 board have a MicroSD slot connected to MMC0 controller of the H6 SoC and a eMMC slot connected to MMC2. Enable them in the device tree. Signed-off-by: Icenowy Zheng --- .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts index d36de5eb81f3..78b1cd54687c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts @@ -20,6 +20,38 @@ chosen { stdout-path = "serial0:115200n8"; }; + + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + reg_vcc1v8: vcc1v8 { + compatible = "regulator-fixed"; + regulator-name = "vcc1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + vmmc-supply = <®_vcc3v3>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; + status = "okay"; +}; + +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_pins>; + vmmc-supply = <®_vcc3v3>; + vqmmc-supply = <®_vcc1v8>; + non-removable; + cap-mmc-hw-reset; + status = "okay"; }; &uart0 { -- 2.15.1