From patchwork Sat Apr 14 19:28:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10341409 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 411BB60365 for ; Sat, 14 Apr 2018 19:28:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F3F728AD5 for ; Sat, 14 Apr 2018 19:28:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 240C828AD7; Sat, 14 Apr 2018 19:28:55 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9FC4328AD5 for ; Sat, 14 Apr 2018 19:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6Xyn9sEV8pc56jlQs5j9E74VSzCeRMWUKVWhgjpUO3o=; b=B4nDkq6GEey/m9 LZp0PqXkiputjbvjlZ6xwEwOu/NHwtp30ne7zIDzstlKIBMDZ495GG0UzOxCSJYDXNJrnx6aRKEzk hIXTCMkrHj8ABROZJmccPaJtlQee1ztBsukQJWAQ9FiR14tC3eG4bslDhQiLywhy9Nrq1vVEskqyh 0ZV4mzSA2AWHBFVTPSgELcpSg3b/j27SINJdxKPaG2C1JkyDc/vbsdf5QnCx1fMyQ2LeK7dXp381P x4rsP4uLKRL0G/4PfkVCxoPYRNjWbuVeUcsxKmPJa6Cxky1vO0yOJVgR4nfSAAeSNakr3e1qDmLcx T1p+8o1OVA1TyUK188sA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f7Qqt-0008Fh-0F; Sat, 14 Apr 2018 19:28:47 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f7Qqp-0008D2-BT for linux-arm-kernel@lists.infradead.org; Sat, 14 Apr 2018 19:28:44 +0000 Received: by mail-lf0-x244.google.com with SMTP id m200-v6so16810716lfm.4 for ; Sat, 14 Apr 2018 12:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=T81ZXj9Vh7Dfy60s5RH40pEk7+yL6RP0g/t9jSpKrNY=; b=z/TydoShQ0RtpIIgPNEc1vba7dL4k94nx9K41DEVAtSJV4ZvtZCqAazyIXdlleMmLi l8ZxiwseJ10GFipsppEDMczJG5pXb03dZasw1cBIuwy9TmZJ5ZwaXWXaWicMcOeIMWHv D2r1OH6ifsrxTUfNceeTCSQIQsJFDLf0EmnppX72JFO4kYzvwxWuTeHp+RizrpLs5oOB qvGGrk3EYew1MjFSv5lvR1AoRpuVB9PWZpIjqwPURMImzK4qlZmHH632qs1qBsZecFCu 2abrie3ujTeeH/69u6Ahcpax+J3xA8NjHFFeuS2VMWkVMBsvKTpbgAUlmqCMQRdR+GMH mR2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=T81ZXj9Vh7Dfy60s5RH40pEk7+yL6RP0g/t9jSpKrNY=; b=oK9Zxi77cbmQXo7tHc49BUBm9o0E/PXL1ajFuv0pHCQtSmDAcJs5xU8JZTJqs3SxKP V85F6HkRFPSjpjKdDz2OXNtkGEcyvY+j7zZxfqGFmya0iieFEAPtZQDmlri3e1aQ51mg BymJTa2KSN/xaHqqNPc1TpWvcIi9s78D54zR21lzUEJOiWxwPv7fM/SUG1PS44syjTU1 9Zf8p+lyIc3jRwCqBS8VXL9L/FIzcY7sBp9Rhgt/zxHJqdZE2VDqcZn0YY/YcFZy0qbS Se9rSYYY+HRrTahpX5w1fOZX9eoPZUecKHH9yqFW8ovX4HeT2jxOnRbYWXXW/MDXRWaV bM3A== X-Gm-Message-State: ALQs6tC8HVNdj4A0ywCRNLabUGbtW4MX/Rz+77T/WJ9dfzv9/NZvjBlu ypvH0qoGzHX3ZqTQdktPGiQktrv/bhs= X-Google-Smtp-Source: AIpwx48PO4+b9F1Ig754hnQjUWczUlXc2h77xbgD2rUf6azt3tJ4kWGBVgRsYMWDDq2dqWNBJaQK+g== X-Received: by 2002:a19:d9d4:: with SMTP id s81-v6mr10714224lfi.49.1523734111331; Sat, 14 Apr 2018 12:28:31 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.84.49]) by smtp.gmail.com with ESMTPSA id c64-v6sm1901216lfc.67.2018.04.14.12.28.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Apr 2018 12:28:30 -0700 (PDT) Subject: [PATCH 2/2] arm64: dts: renesas: condor: add eMMC support From: Sergei Shtylyov To: Simon Horman , Rob Herring , Catalin Marinas , Will Deacon , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org References: <611daf1f-42a2-d463-0814-ebf762871018@cogentembedded.com> Organization: Cogent Embedded Message-ID: <309b5211-bab6-53de-b8a8-6e1049e1705e@cogentembedded.com> Date: Sat, 14 Apr 2018 22:28:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <611daf1f-42a2-d463-0814-ebf762871018@cogentembedded.com> Content-Language: en-MW X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180414_122843_394663_45591DBB X-CRM114-Status: GOOD ( 15.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Magnus Damm , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Define the Condor board dependent part of the MMC0 (connected to eMMC chip) device node along with the necessary voltage regulators... Signed-off-by: Sergei Shtylyov --- arch/arm64/boot/dts/renesas/r8a77980-condor.dts | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Index: renesas/arch/arm64/boot/dts/renesas/r8a77980-condor.dts =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980-condor.dts +++ renesas/arch/arm64/boot/dts/renesas/r8a77980-condor.dts @@ -27,6 +27,24 @@ /* first 128MB is reserved for secure area. */ reg = <0 0x48000000 0 0x78000000>; }; + + d3_3v: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "D3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + vddq_vin01: regulator-1 { + compatible = "regulator-fixed"; + regulator-name = "VDDQ_VIN01"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; }; &avb { @@ -52,6 +70,19 @@ clock-frequency = <32768>; }; +&mmc0 { + pinctrl-0 = <&mmc_3_3v_pins>; + pinctrl-1 = <&mmc_1_8v_pins>; + pinctrl-names = "default", "state_uhs"; + + vmmc-supply = <&d3_3v>; + vqmmc-supply = <&vddq_vin01>; + mmc-hs200-1_8v; + bus-width = <8>; + non-removable; + status = "okay"; +}; + &pciec { status = "okay"; }; @@ -70,6 +101,18 @@ function = "avb"; }; + mmc_1_8v_pins: mmc_1_8v { + groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; + function = "mmc"; + power-source = <1800>; + }; + + mmc_3_3v_pins: mmc_3_3v { + groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; + function = "mmc"; + power-source = <3300>; + }; + scif0_pins: scif0 { groups = "scif0_data"; function = "scif0";