From patchwork Thu Jan 27 01:00:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 12725987 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43717C433EF for ; Thu, 27 Jan 2022 01:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zW40s9TCwWWjh0TJ/MoF8UuA6AY2XOX0zvML4boh9wE=; b=AtvbUnZNLYtySs X7zhA+ga6xA2QJ1AKnk/yH67eryInHYf2hy4Vk1AV6zMNLngu9PnqVPNmHcMG0DDb1EM5s/TAo9xY iOgHpEugU/0y0J13BuRIiq+O7tCXG1+fwsR0Ws9gQ/umv22sSDRjQq9sWnVNiqyyeTxeEmWoUJym2 diP0b6awDCrb1Wm/MyCjyNdMNenACiJkLr109NDCh8wMqhViZaGeyormnLuxgaGJPNnaWDAZJ3r9k mFlNFNz9tMdrX0TkP/4WuaDiveJApKY13vhscSH0t+++GO0P9yj8IKk4F+boAwzvQ3E4CWeFZ6Bzr 9ootjVdShGIJM7n5+qsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCt9Z-00DuZI-4Q; Thu, 27 Jan 2022 01:00:45 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCt9J-00DuU8-SA; Thu, 27 Jan 2022 01:00:31 +0000 Received: by mail-qt1-x82a.google.com with SMTP id j12so967544qtr.2; Wed, 26 Jan 2022 17:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vajErjDWK29FvNOeA4ceH5ORPugHRCo1to0RNKcwTFU=; b=QgNvaXFHaMQz4rxk5UlHaIxI7n+089K4Astv6OBdqs2zKDF+fKF8kvop+rXFxvlq0W ZqdaCg4RP/DFJNkTn5zno3ps/kvQ9SHg/EVkTr9FinV4u/YkdQzO7Yy3XRpq5phdcNW/ 4lPipLqukO3oiRwFsQR/Ndnd7F0Fmzm+Xbgbf3BHhft0ImKfgrCc6WiibW8CZxYuNIVE 46n306m5bvWDX7itR8X3dXCSJXshDxpWRhz1STS2C5spw2YN2itox9TXgDf5dQwZSNwT 8E7kdAQmics8nIiZEfX5YEuJL52EcaesDHWSo0JK7OGDqhS4HytMSJOHTECO+V3NDCFi 8mZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vajErjDWK29FvNOeA4ceH5ORPugHRCo1to0RNKcwTFU=; b=RtkXVhWSFORZTVlD/UnuKc697xgM1wlx/wi2nRah0sFoQ0Gs2Sep7yB6Pv8fJgzqfA oYR/vrbO4POl9xOqF1VhDyfPtBX30IGbzvygOF3O4jVMKhXtfB6KRlOxmkZa8P4Tmlg2 5fYZ3UlA3ABTncCpbositQhTRVgXBGpgZyfB7Zp9TgoNXu4g6b2y9UsNnr+KmHfD7YxL MTvS2KZuqiy4mXtgFHhCtyXPywYUzfGgMiyy2Wqe7BoTXsYvFG8qN1UqJ/yYi1zUSpFL 6LtP5aQ3bqm3egV1ioqJe23tMP1NrB8X1tMcXynbZgoJLnrB4/dAjs9gnxqu/tRE1Jtc sHMA== X-Gm-Message-State: AOAM53395G1EZr6nY+wYN9nQrcah8h/iSlu5BLsjy3z8o3vJLOTDd+M8 FQwzm6Koe8wjkUbAEgUyEnfBNzfIOL8BYA== X-Google-Smtp-Source: ABdhPJwxQAwzc/Zno4iXwIWNgILmCOnWnIQJd6njQUYmw0iI1RfcM5/4qZKIH/FKJCNK3C1xAvrhQA== X-Received: by 2002:a05:622a:1102:: with SMTP id e2mr1121245qty.2.1643245228558; Wed, 26 Jan 2022 17:00:28 -0800 (PST) Received: from master-x64.sparksnet (c-98-233-193-225.hsd1.dc.comcast.net. [98.233.193.225]) by smtp.gmail.com with ESMTPSA id n2sm483389qti.59.2022.01.26.17.00.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 17:00:28 -0800 (PST) From: Peter Geis To: Rob Herring , Heiko Stuebner , Peter Geis Cc: Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: rockchip: fix Quartz64-A ddr regulator voltage Date: Wed, 26 Jan 2022 20:00:21 -0500 Message-Id: <20220127010023.3169415-2-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220127010023.3169415-1-pgwipeout@gmail.com> References: <20220127010023.3169415-1-pgwipeout@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_170029_936928_E9AE80A1 X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Quartz64 Model A uses a voltage divider to ensure ddr voltage is within specification from the default regulator configuration. Adjusting this voltage is detrimental, and currently causes the ddr voltage to be about 0.8v. Remove the min and max voltage setpoints for the ddr regulator. Fixes: b33a22a1e7c4 ("arm64: dts: rockchip: add basic dts for Pine64 Quartz64-A") Signed-off-by: Peter Geis --- arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index 166399b7f13f..d9eb92d59099 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -285,8 +285,6 @@ regulator-state-mem { vcc_ddr: DCDC_REG3 { regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1100000>; regulator-initial-mode = <0x2>; regulator-name = "vcc_ddr"; regulator-state-mem { From patchwork Thu Jan 27 01:00:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 12725988 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0084C433F5 for ; Thu, 27 Jan 2022 01:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=g1c3cy4trTypbqodAh09HZyq1iKYh0JkhHe5zj5RanI=; b=VrrinB0q8YkDze ZtcwEniusU/hYhxIAXmWeiusX0g11hnjqRIFgePN8CUs6LPbsmpjaM1a4YujJPHkjXhV8uq1EgKCd G8I7NovwM/ETGaCFmdqiOzIl82iavkWxCG/V4WsUR0O8fQL6185JKP10qFnZnzNlHZoMDT2nXvMac TgCaOynctOq4O7rK7XqzHXHzW4j4VQAK6xk/+sR8GDHZsUhHBB7wCCQpm6J2pLmFl3xBIgmxxi1zA ikjwllBkO5wa0ZdvMcWJn52d5akWsOdMBIDl96XClTNxBQ2JDbHk4aj42PaBMrVCrQ/HUjaEgxpPD zwCNQVL4GFEPXlYK4xxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCt9p-00Duej-DO; Thu, 27 Jan 2022 01:01:01 +0000 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCt9K-00DuUN-Ms; Thu, 27 Jan 2022 01:00:31 +0000 Received: by mail-qt1-x82b.google.com with SMTP id w6so1248187qtk.4; Wed, 26 Jan 2022 17:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pLFwv7MjOQ+N54vrBm9216io6/o12k65yBVIhwcPg5Y=; b=UuXHtZj6naH5Qlpl7yYKAN24yAq91MwRMnrvc6+Msosu5VXeuPePja8bprAmpTnJrw T+lqZ5TdlgyRuucCAbFlhxmiq+ZiaoZQlgwdw14R6w0jORWFp1ecrt7ndXhU9uON7qS0 netZb4cbt0tnQuHr+tfpp5SOj9hycUaRxFVZPjxYVmv8660d1jRsdS+nkyaOyp+0/5dr a6bN/RRQHLNwSRcqLkEiP1Bfd+4rN9QvK2qjfoxWRwsu7Vo/Kr/k2F+mGLwHQgokw88H 9dXJmomYclZd91El57AwX7mHFLyRUyvtlvjjM7x9WQGrBqtiS/FF0Jnvwgo/VrsetF+D yyoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pLFwv7MjOQ+N54vrBm9216io6/o12k65yBVIhwcPg5Y=; b=X1TV7L3DEBPx5GSMCOrXRlYu3mrQR7yAas0zTMq5RNQf1WPGz4VQnVjzo8LZbw+AMA vuffIoPrhcyTD4/gLwQ3Jd4aLfVkYQL4WjJTanIcC6pj06wlE56YlgtU9n7Y1bsYABWa j2QFSHNA+/vjMAAcOLo/E8Y/f7btpW/eFozirEyI5cIjZKTv4W6EG/LuYRlUXs87jnCd np3N++/V6JN/ugaK9B2vOxgpuIEdw8Y7Al3v+Ni7yiwcnSJAu3WyfbgtHtOM7mm15PSU 5Od9oVM3OZy1bh8htR5iCjPjlJHPPNaMiwCT3rwY2dy5Z+f7lwXi962C4ATl1trkuzFX 96Dw== X-Gm-Message-State: AOAM5308v3kczbsQsh4rUvxOlO21KNueOawQiqbaN+IRRC83rIJtUWcS sth+r7+f7zE7nk4DStwooik= X-Google-Smtp-Source: ABdhPJw4SPn8Gn9OXwDfQ5CSfiB8YgLmJ9SonumxylWB5ioKxx/YkkbJtMLfedEtEg4B15f82eguSQ== X-Received: by 2002:a05:622a:181a:: with SMTP id t26mr1059867qtc.81.1643245229362; Wed, 26 Jan 2022 17:00:29 -0800 (PST) Received: from master-x64.sparksnet (c-98-233-193-225.hsd1.dc.comcast.net. [98.233.193.225]) by smtp.gmail.com with ESMTPSA id n2sm483389qti.59.2022.01.26.17.00.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 17:00:29 -0800 (PST) From: Peter Geis To: Rob Herring , Heiko Stuebner Cc: Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: rockchip: add Quartz64-A pmu_io_domains Date: Wed, 26 Jan 2022 20:00:22 -0500 Message-Id: <20220127010023.3169415-3-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220127010023.3169415-1-pgwipeout@gmail.com> References: <20220127010023.3169415-1-pgwipeout@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_170030_772539_E9A36B3C X-CRM114-Status: GOOD ( 11.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Several io power domains on the Quartz64-A operate at 1.8v. Add the pmu_io_domains definition to enable support for this. This permits the enablement of the following features: sdio - wifi support sdhci - mmc-hs200-1_8v Signed-off-by: Peter Geis --- arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index d9eb92d59099..33c2c18caaa9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -482,6 +482,19 @@ vcc_sd_h: vcc-sd-h { }; }; +&pmu_io_domains { + pmuio1-supply = <&vcc3v3_pmu>; + pmuio2-supply = <&vcc3v3_pmu>; + vccio1-supply = <&vccio_acodec>; + vccio2-supply = <&vcc_1v8>; + vccio3-supply = <&vccio_sd>; + vccio4-supply = <&vcc_1v8>; + vccio5-supply = <&vcc_3v3>; + vccio6-supply = <&vcc1v8_dvp>; + vccio7-supply = <&vcc_3v3>; + status = "okay"; +}; + &sdhci { bus-width = <8>; mmc-hs200-1_8v; From patchwork Thu Jan 27 01:00:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 12725989 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C36CC433F5 for ; Thu, 27 Jan 2022 01:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nevLcEkjGss/+9yuiMCzp5nqOctWKdj6gY8kbueANqE=; b=cFyKE0YB1sDV25 e3cMEZrIQuZmsxRoDlDcKmMoZUFWliCeh5fwIirw0vqpuimo0JFEYF2h01h7RoHv8mGWrr9TOquqX IBPbe3+wmn3lVfnrZe8tPFw1/h27Xo8HAZIK36KacXrICPPkCBeVxKsbc76PpakPTzl+SOOPDVbuH AhJSOMYmdiaQQ8msFhNgYXk9zlADQqSd/xENKs8/XCSh6tfbxr+Uum4DND+YLomUQJ4ArKxT1FHdd td01Ff2jIqH+w9uWThceFOU+8d6aHqlX4a6hoU9DfkMuqOpcz3W+iagoRu6B24swrMBSAUhvkYOX2 WeJIZKRcvx2WqyFv43lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCtA5-00DunJ-9J; Thu, 27 Jan 2022 01:01:17 +0000 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCt9L-00DuUo-9F; Thu, 27 Jan 2022 01:00:32 +0000 Received: by mail-qt1-x830.google.com with SMTP id y17so1222817qtx.9; Wed, 26 Jan 2022 17:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GxAKjAaT7xRmtbaC3UIIpwOLw+3uTtc8mu7tmoAjfy4=; b=Zz5yz1+UVMMTvLCtOtyv1ZgzZJE+2Lbq65e1LjBY2npGuew1iHnyPapsTtMOi75TUT OfHJYobE6UF154PgmJ07u8oVnSikBFm32KgAAf4mtcRE647MF4g+YG4nBr6+6dhU4AMR ZL9cs3fdTfoSbP5Re4bP3QUTpj+If2aBNL1cbldtmqrUa127ilFC6P2DZoEUOtm/0y33 tobH1jDchHq7J0Kcwyj/26mufSQ+K42HYBfc04EGwlCLOVI5iVztHPK9bn4joRWodAK1 4diVKf38TynRJDKMTWjngeHPelD3K13PgZtiMMDysSNIS0+N7ANcGX34PEGrquNOou7i e6aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GxAKjAaT7xRmtbaC3UIIpwOLw+3uTtc8mu7tmoAjfy4=; b=2LxwZ9CrljAKiGfpTrXpdnxzSm1ZJiWuba13qoYPzKH0gSX9OTvOOcUlJVl5m5YmlH kPHvZFlCqj8cfD6kgXDNjsATTifGDw7DhQgTulqmzc7yF2+tG6VWN3kC72N26rsaTS/i NxSj+/7M22Q8fYajoQ8eBMPlj5HqoO+cJW7/tcvqUC/G1b2MF2vlWO7oLF+OGW85xsHC WZ44SeMfRELRKo4bKsrHxe+d/TXZWgXsfiWruB8/5xYCeUVdMgOLkGdRwEBczAkxB4Wl xreNjo/OZTndZMsdFWdpNVgLbZNkLpUzHOTWXTUatmUR8iYoSJ4iqO6YJpVADuKPA7Es cyiQ== X-Gm-Message-State: AOAM5303MoaHFNJQUu0ZH2fega64munOFVHyaZwmKucOMyHzW3eRhWTn hhf5KeARvU0TRm0XoIV2XUs= X-Google-Smtp-Source: ABdhPJwg/dm6qzEciVkoxXvVnll6gPik2tZHun90f4n5bDYY8SUlJCOcYtpp5q5msQBnzLhJSOiGrQ== X-Received: by 2002:ac8:578e:: with SMTP id v14mr1045070qta.345.1643245230206; Wed, 26 Jan 2022 17:00:30 -0800 (PST) Received: from master-x64.sparksnet (c-98-233-193-225.hsd1.dc.comcast.net. [98.233.193.225]) by smtp.gmail.com with ESMTPSA id n2sm483389qti.59.2022.01.26.17.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 17:00:30 -0800 (PST) From: Peter Geis To: Rob Herring , Heiko Stuebner Cc: Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: rockchip: add Quartz64-A sdmmc1 node Date: Wed, 26 Jan 2022 20:00:23 -0500 Message-Id: <20220127010023.3169415-4-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220127010023.3169415-1-pgwipeout@gmail.com> References: <20220127010023.3169415-1-pgwipeout@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_170031_373477_A661B6E8 X-CRM114-Status: GOOD ( 10.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The sdmmc1 node on Quartz64-A supports the optional wifi module from Pine64. Add the sdmmc1 node and requisite sdio_pwrseq to enable wifi support on the Quartz64-A. Signed-off-by: Peter Geis --- .../boot/dts/rockchip/rk3566-quartz64-a.dts | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index 33c2c18caaa9..1d73ac6557c5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -91,6 +91,18 @@ simple-audio-card,codec { }; }; + sdio_pwrseq: sdio-pwrseq { + status = "okay"; + compatible = "mmc-pwrseq-simple"; + clocks = <&rk817 1>; + clock-names = "ext_clock"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h>; + reset-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_LOW>; + post-power-on-delay-ms = <100>; + power-off-delay-us = <5000000>; + }; + vcc12v_dcin: vcc12v_dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -147,6 +159,17 @@ vcc_sys: vcc_sys { regulator-max-microvolt = <4400000>; vin-supply = <&vbus>; }; + + /* sourced from vcc_sys, sdio module operates internally at 3.3v */ + vcc_wl: vcc_wl { + compatible = "regulator-fixed"; + regulator-name = "vcc_wl"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_sys>; + }; }; &cpu0 { @@ -475,6 +498,12 @@ pmic_int_l: pmic-int-l { }; }; + sdio-pwrseq { + wifi_enable_h: wifi-enable-h { + rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + vcc_sd { vcc_sd_h: vcc-sd-h { rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; @@ -516,6 +545,22 @@ &sdmmc0 { status = "okay"; }; +&sdmmc1 { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + disable-wp; + keep-power-in-suspend; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; + sd-uhs-sdr104; + vmmc-supply = <&vcc_wl>; + vqmmc-supply = <&vcc_1v8>; + status = "okay"; +}; + &spdif { status = "okay"; };