From patchwork Wed Jan 18 14:47:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 45313 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2387652wrn; Wed, 18 Jan 2023 07:07:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXs7NsS23RZeZkLcG3+jbZDd+vli6KEMY/huewto2SftDKhNqpBQNtz1S0r4Tn139sAO2X7f X-Received: by 2002:aa7:cd89:0:b0:49d:14cf:5f4a with SMTP id x9-20020aa7cd89000000b0049d14cf5f4amr7476421edv.39.1674054429036; Wed, 18 Jan 2023 07:07:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674054429; cv=none; d=google.com; s=arc-20160816; b=IYxBn92RxzyBlCwrHZia4hdavP84GkSjkEq8CtanJmijMlPgbCIGyapuUTSTltQPeF RdzMc/G6WeBgZT/IpCn86g9mAaFZj0I0MJaCeFNQjCXnIAKVm8iZjb8KQF/sn3VY/lH8 QVSamzQC+/jqlVODdEREHDnFdzwwuM801ocMDNz8j7o4nsYcZhNq59/whDIk8H+xstnp bo0gZMY7wxrEbgATQ4M9uUOjN+ilxnlSR7eAdMfqbaoX5N1IzHPopksTw8YHNFdPN3Pg Kz0fRb1kEv+6GHVOQXQoLu871kFGCBOaqnJGfbjpSOB1vxWdOxNNlOcadXTQQg0q0dRc kt4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hGqVMOoSFtNG3bev/G5sOlGheP4RIFkCPu81IVIrc78=; b=UbejO25a8ne/z88h81Z1npxT5DiLKsz2ltaZ+yTM/LvbDzeepKXRTSXRiJeDrw9Qqf +XiouMWxONnZ85PEPpK11Xxk1A8/OQbpCLBYkoBusn2MXW3ZkAelPFPrTdUJyVblkLh9 mjtRPKPtBe1YAD5wIaRxVNRQdbf2O037uVknTEs/kVfKEEsW9Xe0yLz5RGrTNzrFXFhP en36aFqp+PTqLN9rQRCUhaz90qyu8nH3WJs4jEYfWXadz3UxuQIV8MduVwEEVhCncVWT BM+jO7ps0GPfdM3F+XAugYZP+WLVGbAmjf0h+YTsztHsk32BVk75g9ZsIN+a5u9fVPN2 6JrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a056402519000b0049e3e6aa74bsi5339759edd.352.2023.01.18.07.06.22; Wed, 18 Jan 2023 07:07:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbjAROyO (ORCPT + 99 others); Wed, 18 Jan 2023 09:54:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231414AbjAROx6 (ORCPT ); Wed, 18 Jan 2023 09:53:58 -0500 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC5AB4DCEF; Wed, 18 Jan 2023 06:48:02 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.97,226,1669042800"; d="scan'208";a="149830468" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 18 Jan 2023 23:48:02 +0900 Received: from mulinux.example.org (unknown [10.226.93.55]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id ED3A44007209; Wed, 18 Jan 2023 23:47:58 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven Cc: Fabrizio Castro , Magnus Damm , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Paterson , Biju Das , Laurent Pinchart , Jacopo Mondi Subject: [PATCH 1/3] arm64: dts: renesas: r9a09g011: Add PWC support Date: Wed, 18 Jan 2023 14:47:45 +0000 Message-Id: <20230118144747.24968-2-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230118144747.24968-1-fabrizio.castro.jz@renesas.com> References: <20230118144747.24968-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755373296662966005?= X-GMAIL-MSGID: =?utf-8?q?1755373296662966005?= The RZ/V2M SoC contains an External Power Sequence Controller (PWC) module. This module provides an external power supply on/off sequence, on/off signal for the LPDDR4 core power supply, General Purpose Outputs, and key input signals. This patch adds PWC support to the SoC specific device tree. Signed-off-by: Fabrizio Castro Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r9a09g011.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi index b0c066c5e0ba..b5d6f7701ef1 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi @@ -178,6 +178,14 @@ cpg: clock-controller@a3500000 { #power-domain-cells = <0>; }; + pwc: pwc@a3700000 { + compatible = "renesas,r9a09g011-pwc", "renesas,rzv2m-pwc"; + reg = <0 0xa3700000 0 0x800>; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + sys: system-controller@a3f03000 { compatible = "renesas,r9a09g011-sys"; reg = <0 0xa3f03000 0 0x400>; From patchwork Wed Jan 18 14:47:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 45311 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2387499wrn; Wed, 18 Jan 2023 07:06:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXtz6s/LzS36r4014dA6BxMqKokqPMbQ8ZFUvAyXV//c3TDC5/JST3JkGq4j2ZULd8hFN3s4 X-Received: by 2002:a17:906:22da:b0:7ac:2db9:6f4d with SMTP id q26-20020a17090622da00b007ac2db96f4dmr19828774eja.8.1674054415113; Wed, 18 Jan 2023 07:06:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674054415; cv=none; d=google.com; s=arc-20160816; b=ne4TnCXFo+/pGZUsQ1GbqAJ/Df+DU/OY0qSGAi75AXA3kYaoLqJeIYoNlJeoZ5rk1i 4O2YdUnGzX7xH+7k3wNQhvTv2UsOf4ME8BiD7IP7YvgSQyU7iypmCB4rGyrak+pSGVvK wxfI8Js9BpeOJc/kS5FnjljW9dNQVeG4DCmMkg8h/wsRmhYu6C73q330PlAG4Wbb3Rk5 mkAuGM7x5iyX1welVjS95m6Lu3/CCHAx9YePQkLTIf3Y3m62bCEeGQPq0ZG5vxwnsZvA MmFQlopWjEAlh4CKmDqUX2F4djojO7kqAI+Qt3wqwIU4kHmVmL38ggrSLuH6sD0u8Iit YyUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mfb/kvMgC8v/oHsTHrbfirYOWif/PCno2gGQt32SXrY=; b=GfCXY/ZSMxyDfC70O88CeDs2VaG8aqXgowbkigggECm21jvDv5SoHp3EolmvV0WzKA LaaA19i+32/uliCnrRzYLuFnLy+DKjchviFZlHeOS38JTzRy4CWPTQhvZRn8ngKcDENp sDtMkvoFZ85Ukzj8GNGd5Fcnh+/YAbFj5XrfWcCZlY5GXOb5J9l7GV/F6cZSDSDYPnn9 VQSfgDaTFIHsZXONUrX6hk5bp7oLNlESyuq83hvDaAKgFv7zo5Qu2jpnuw7hRFM9CRNU j14tKsxMDnsDG6HCIhm6OnDxMHCfeByx6WdWpurd0zyAA67IgURJcPvmXu8bzPohWlP/ TRTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc18-20020a1709078a1200b00872236c2747si8230579ejc.305.2023.01.18.07.06.30; Wed, 18 Jan 2023 07:06:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbjAROyT (ORCPT + 99 others); Wed, 18 Jan 2023 09:54:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231584AbjAROyA (ORCPT ); Wed, 18 Jan 2023 09:54:00 -0500 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5F4C847ED3; Wed, 18 Jan 2023 06:48:07 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.97,226,1669042800"; d="scan'208";a="146745763" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 18 Jan 2023 23:48:06 +0900 Received: from mulinux.example.org (unknown [10.226.93.55]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 227E1400B9E3; Wed, 18 Jan 2023 23:48:02 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven Cc: Fabrizio Castro , Magnus Damm , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Paterson , Biju Das , Laurent Pinchart , Jacopo Mondi Subject: [PATCH 2/3] arm64: dts: renesas: v2mevk2: Add PWC support Date: Wed, 18 Jan 2023 14:47:46 +0000 Message-Id: <20230118144747.24968-3-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230118144747.24968-1-fabrizio.castro.jz@renesas.com> References: <20230118144747.24968-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755373282177658938?= X-GMAIL-MSGID: =?utf-8?q?1755373282177658938?= The RZ/V2M EVK uses the PWC IP to control external power supplies and the I/O voltage for the uSD card. This patch enables the PWC node, and it also enables the poweroff features since PWC is actually used to control the board power rails. Signed-off-by: Fabrizio Castro Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r9a09g011-v2mevk2.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g011-v2mevk2.dts b/arch/arm64/boot/dts/renesas/r9a09g011-v2mevk2.dts index 11e1d51c7c0e..d6737395df67 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g011-v2mevk2.dts +++ b/arch/arm64/boot/dts/renesas/r9a09g011-v2mevk2.dts @@ -80,6 +80,11 @@ i2c2_pins: i2c2 { }; }; +&pwc { + renesas,rzv2m-pwc-power; + status = "okay"; +}; + &uart0 { status = "okay"; }; From patchwork Wed Jan 18 14:47:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 45312 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2387534wrn; Wed, 18 Jan 2023 07:06:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXuaiTDqSjdj5Z3pDKzVpeaHGvKVpX05wP1uAYmo46LxbyXGBJf1TYkcKYLmP52PtjMijfLi X-Received: by 2002:a05:6402:2989:b0:461:1998:217f with SMTP id eq9-20020a056402298900b004611998217fmr7278726edb.4.1674054418019; Wed, 18 Jan 2023 07:06:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674054418; cv=none; d=google.com; s=arc-20160816; b=GOjG3Ew0jo6XMyD21bOTG30zOyk/Fr1GT5kVBI71Aht/G4emCMyPgVHZQqXsEcgiIs r1fejZf8yabEozom6l7nCljJmu7neokC41dwsVDU6xoghoThhuDkUixPcvfhjJGNI7bc M/mvUrnFQZGPYNcz8gGsAr7gUugzT+6wXIVGwo+PG0T5N2ek8Hnk/o7kSVJGmMEQPFHb EgGsEuosYv9AdIkoZsP8Da7FPfNj8l7r6PGaXFjP34B6AsjUGbLawcYt7qI8NO0O2fz6 wzaxFcSSHMdpcIroaFyP3tcR26SqRGwPtpDsfydRdKFCITDmOxEyuZJ9fNA6NXCklaU5 um2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=81CtQGhy28PRuevPWq/b4DgjTYrmsIT9w21I2KJi9pM=; b=v6+/0JVZ9rENtewd8gubvPhsmVLwSNgR9tLUYJA6/hNbfWoRIyMS+ANJyWKE0iQbbo MBIxYk7Uu68slEwWk7iBDjeM/xW0RHkeyqEVM91wbG3BEHYi1hMtMS7JiMegpLCq5y2Y dQhNnaeVS1h5IN3lFVQxh4CmytydqMFzsIUGIRY5rHT+HYsgOl/rhmWseAmU2GP4fNYz LgV8eSCnAvEqNhR/Uylw+Z2ERr2RaCxR4Uc5mhkSAQ60ltPDbjKFKVh3ZGPj4Xd7zadL HzOGrQxIrTaBGPHnOhjfNQMKj9N2uV018fvRDOXQmwQRJzSQwq6i621opNYSAyoWp7tG Keqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f7-20020a056402354700b00469b79303b6si13601120edd.195.2023.01.18.07.06.33; Wed, 18 Jan 2023 07:06:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbjAROyZ (ORCPT + 99 others); Wed, 18 Jan 2023 09:54:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbjAROyA (ORCPT ); Wed, 18 Jan 2023 09:54:00 -0500 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2EDC44ABD7; Wed, 18 Jan 2023 06:48:11 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.97,226,1669042800"; d="scan'208";a="146745768" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 18 Jan 2023 23:48:10 +0900 Received: from mulinux.example.org (unknown [10.226.93.55]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 51D5C4007209; Wed, 18 Jan 2023 23:48:07 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven Cc: Fabrizio Castro , Magnus Damm , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Paterson , Biju Das , Laurent Pinchart , Jacopo Mondi Subject: [PATCH 3/3] arm64: dts: renesas: v2mevk2: Add uSD card and eMMC support Date: Wed, 18 Jan 2023 14:47:47 +0000 Message-Id: <20230118144747.24968-4-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230118144747.24968-1-fabrizio.castro.jz@renesas.com> References: <20230118144747.24968-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755373285346857260?= X-GMAIL-MSGID: =?utf-8?q?1755373285346857260?= The RZ/V2M EVK comes with a slot for a uSD card, and an eMMC. Add support for the both of them. Please note that the pinctrl driver for RZ/V2M doesn't support interrupts yet, therefore the card detect pin has been connected to the SDHI IP directly in this patch. We'll connect the card detect pin to its corresponding GPIO when we'll have driver support for interrupts in the RZ/V2M pinctrl driver. Signed-off-by: Fabrizio Castro Reviewed-by: Geert Uytterhoeven --- .../boot/dts/renesas/r9a09g011-v2mevk2.dts | 122 ++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g011-v2mevk2.dts b/arch/arm64/boot/dts/renesas/r9a09g011-v2mevk2.dts index d6737395df67..75ded4680dba 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g011-v2mevk2.dts +++ b/arch/arm64/boot/dts/renesas/r9a09g011-v2mevk2.dts @@ -7,6 +7,7 @@ /dts-v1/; #include "r9a09g011.dtsi" +#include #include / { @@ -35,6 +36,36 @@ memory@180000000 { device_type = "memory"; reg = <0x1 0x80000000 0x0 0x80000000>; }; + + reg_1v8: regulator-1v8 { + compatible = "regulator-fixed"; + regulator-name = "fixed-1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_3v3: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + vccq_sdhi0: regulator-vccq-sdhi0 { + compatible = "regulator-gpio"; + + regulator-name = "SDHI0 VccQ"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + + gpios = <&pwc 0 GPIO_ACTIVE_HIGH>; + gpios-states = <1>; + states = <3300000 0>, <1800000 1>; + }; }; &avb { @@ -50,6 +81,22 @@ phy0: ethernet-phy@0 { }; }; +&emmc { + pinctrl-0 = <&emmc_pins>; + pinctrl-1 = <&emmc_pins>; + pinctrl-names = "default", "state_uhs"; + + vmmc-supply = <®_3v3>; + vqmmc-supply = <®_1v8>; + bus-width = <8>; + mmc-hs200-1_8v; + non-removable; + fixed-emmc-driver-type = <1>; + max-frequency = <200000000>; + status = "okay"; +}; + + &extal_clk { clock-frequency = <48000000>; }; @@ -78,6 +125,68 @@ i2c2_pins: i2c2 { pinmux = , /* SDA */ ; /* SCL */ }; + + sdhi0_pins: sd0 { + sd0_data { + pinmux = , /* SD0DAT0 */ + , /* SD0DAT1 */ + , /* SD0DAT2 */ + ; /* SD0DAT3 */ + power-source = <3300>; + }; + + sd0_ctrl { + pinmux = , /* SD0CMD */ + ; /* SD0CLK */ + power-source = <3300>; + }; + + sd0_cd { + pinmux = ; /* SD0CD */ + power-source = <3300>; + }; + }; + + sdhi0_pins_uhs: sd0_uhs { + sd0_data_uhs { + pinmux = , /* SD0DAT0 */ + , /* SD0DAT1 */ + , /* SD0DAT2 */ + ; /* SD0DAT3 */ + power-source = <1800>; + }; + + sd0_ctrl_uhs { + pinmux = , /* SD0CMD */ + ; /* SD0CLK */ + power-source = <1800>; + }; + + sd0_cd_uhs { + pinmux = ; /* SD0CD */ + power-source = <1800>; + }; + }; + + emmc_pins: emmc { + emmc_pins_data { + pinmux = , /* MMDAT0 */ + , /* MMDAT1 */ + , /* MMDAT2 */ + , /* MMDAT3 */ + , /* MMDAT4 */ + , /* MMDAT5 */ + , /* MMDAT6 */ + ; /* MMDAT7 */ + power-source = <1800>; + }; + + emmc_pins_ctrl { + pinmux = , /* MMCMD */ + ; /* MMCLK */ + power-source = <1800>; + }; + }; }; &pwc { @@ -85,6 +194,19 @@ &pwc { status = "okay"; }; +&sdhi0 { + pinctrl-0 = <&sdhi0_pins>; + pinctrl-1 = <&sdhi0_pins_uhs>; + pinctrl-names = "default", "state_uhs"; + + vmmc-supply = <®_3v3>; + vqmmc-supply = <&vccq_sdhi0>; + bus-width = <4>; + sd-uhs-sdr50; + sd-uhs-sdr104; + status = "okay"; +}; + &uart0 { status = "okay"; };