From patchwork Fri Jan 28 00:38:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 537771 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75044C433F5 for ; Fri, 28 Jan 2022 00:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241520AbiA1AiS (ORCPT ); Thu, 27 Jan 2022 19:38:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241477AbiA1AiS (ORCPT ); Thu, 27 Jan 2022 19:38:18 -0500 Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6FFDC06173B; Thu, 27 Jan 2022 16:38:17 -0800 (PST) Received: by mail-qv1-xf30.google.com with SMTP id h16so4389011qvk.10; Thu, 27 Jan 2022 16:38:17 -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=n6hH5bE0tAhwSpDQfYcACSaoNCPingDZDvHbL/z2fUqpjUxXolUF5Lddf+Ulk3FcSk uIOaVxUSetYMbtgUL0PF//qrQ+foqdwWOi8MdsUTvIKtGuK4LDg66AIG3XcN3BccrqPR wrowKuCSNvx8hSimAVZKlwiPzMgCci4UK+n6C1uawK3mML4uwLcuZTRfrGUsdIX9gmO4 qYTZ4FBTwIR4gt+8pbcHeiXcBStn0TwITrVx5QgX2p18LC59OkW3pUTYzm8W/FKQZxZS C9tyb9vVM+CmJm7Ytw1WX7n3e4pFr9oaS27ge+VViaJ9nkHXcIR4ngAV7/6hELyoZD4I J/UA== 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=kl3WGC1z1fzzMhjrDGOopwubuqrMi4vIEg/1EoyPntcgtC2c/bjZLZYc30ahMbCNgd FSDXX7Yo0Mzx67teVz/zUNVXxVQCGBpGHtEjEfEsFxiGVr2AYWMM+lFN6WMDhVDOQyCF RK7e25JDq6SufCi6YoZhy+tHuALR7s+5pNIX7ORIXBjoymKMw/23PX5R32yDS64zJn0m MaStJTZxrqJGzlZt+JaY7G0/yvYLwnEAbx3tdbWMqJeWN92Urc4K6egGI5vcQYjlwJ2L 7Ite0ObpbJ1XsiG9uURHO4ja4C6REjJ1c6L582U6fVYG5SGse/K3Snn2r0Z1mTw4YUab oVnQ== X-Gm-Message-State: AOAM530eF8GK09ujtLqqUrDVjauBd/WF83P3PRsiCyBRG5Ryz1+kA9Fe i7iB8PpeGvbDjnTA6E2+AM4= X-Google-Smtp-Source: ABdhPJx6Ewcb3mNLM99tOI9RuDyK8k/N3O3ytSQsjCpu8y3yQASkoh7sG45wXL3ayDBANmW6nd8v9w== X-Received: by 2002:ad4:5968:: with SMTP id eq8mr5136360qvb.80.1643330295757; Thu, 27 Jan 2022 16:38:15 -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 t1sm2142883qtc.48.2022.01.27.16.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 16:38:15 -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 v2 1/4] arm64: dts: rockchip: fix Quartz64-A ddr regulator voltage Date: Thu, 27 Jan 2022 19:38:05 -0500 Message-Id: <20220128003809.3291407-2-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220128003809.3291407-1-pgwipeout@gmail.com> References: <20220128003809.3291407-1-pgwipeout@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Fri Jan 28 00:38:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 538059 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1521C433FE for ; Fri, 28 Jan 2022 00:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241622AbiA1AiS (ORCPT ); Thu, 27 Jan 2022 19:38:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbiA1AiR (ORCPT ); Thu, 27 Jan 2022 19:38:17 -0500 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0717C061714; Thu, 27 Jan 2022 16:38:17 -0800 (PST) Received: by mail-qv1-xf2f.google.com with SMTP id k9so4397315qvv.9; Thu, 27 Jan 2022 16:38:17 -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=LxbFlMhLkImQU7BenMFSJxGZJe7qA50NBhuhQySXdCmKQOPYYjk6mWtu6ikBn35pca 3+mCL1QKPT2X0fBzscixX63/zFpbqu4oIK8Z/y6xelxW61p94+DgEU/WP9KX3k1TaHIe somjPHKZ+svAFdzQvVqmxibq414ThT1PZq66WMG6XfkpmFhE7bzMS+KAcLJj2eqhPLiu DlVUcm6n07Hwymu9QlH9YHlchrZ2W7mwjJwK1klkWGvXtqFEWRqMh0/rIZDj/65aRQUz fZxMxzxG6ziSLO4idnclWdYFXqsZQBllQWdfAQFOLN92XE5cZJrNjK0Gmf5E9qlUwf7C dpZA== 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=HY8bcVARS0n8t13qC0NUIOuAuOj8Xq46KJg8ic1+hGb6NkfHxn/QLJmr4X11wSlKdc yM+S3tZXPVCxAMe8cu15pHL2NBH2fm8mTU/tyPYcWzmRNyVWnBbDiqZVeAqo4nJ7aaBg gyRq3wyy7P+oUBXv6mokiric0le2WX0FSUa54c0wWLJKjOWcjb8E83O6NMyPKA7VyG3D MIYqULFz0NbHRvHDeEsVJhLTTt1QNnZc1oo4x1yvgZQj9DcYTmuuxLl6y6o40nDJHPq8 1xEJpkEGCUOdWlfteTD1pY1qLjgg+85YnWG9B7ZcR+fWLJlb0NurdCPeAsfsfXBnXhFD tBig== X-Gm-Message-State: AOAM530FHIxiiTAw3KhyYlMG45NcDA5QnhBAyw+m1gBNtmztdLSGi+c/ CZIWbBDDsSk9K1t8EmYfkBw= X-Google-Smtp-Source: ABdhPJwrhsjuD03NSeUskaZoQXKK7d36ovsnIB0/+BjyXAkBfGW8Owu0kBbjWXKy0HrxScJjC41hRw== X-Received: by 2002:a05:6214:238a:: with SMTP id fw10mr5286173qvb.15.1643330296577; Thu, 27 Jan 2022 16:38:16 -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 t1sm2142883qtc.48.2022.01.27.16.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 16:38:16 -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 v2 2/4] arm64: dts: rockchip: add Quartz64-A pmu_io_domains Date: Thu, 27 Jan 2022 19:38:06 -0500 Message-Id: <20220128003809.3291407-3-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220128003809.3291407-1-pgwipeout@gmail.com> References: <20220128003809.3291407-1-pgwipeout@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Fri Jan 28 00:38:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 538058 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 030F2C4332F for ; Fri, 28 Jan 2022 00:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241599AbiA1AiT (ORCPT ); Thu, 27 Jan 2022 19:38:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241595AbiA1AiS (ORCPT ); Thu, 27 Jan 2022 19:38:18 -0500 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5346BC061714; Thu, 27 Jan 2022 16:38:18 -0800 (PST) Received: by mail-qt1-x830.google.com with SMTP id k14so3938373qtq.10; Thu, 27 Jan 2022 16:38:18 -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=U0ZtMbfGNf5bI/1AePHt7T+pCQPNUqP752Ba3r+02dM=; b=ky3S5f7lhADSWWb9ST7r5M95iARgFNUMQiSs99hEtWaw9Cp2LuMvM2peP/BugzC8Qt hL9HrtWe8moyMoNhZNvQiBjznS0tyEp0+rY8HYfYN3VoUS9cBnnKNVKYMZvPiwqJ3hic rb+I9nYH8h0r66PhJaB8YPjBF9DzPXWTqulCSkokuNa48FoUim3pIGSCvAdRruR0m7or ZEFoVTctqzAl3Jqh0xysji9bV1mN4IQwTUN8w0vgoz9hC+t+leeHidi4OkC03NIkFhF6 WMPV9PjfvLSKgDZRSQ/1m6rui25WgB5iCND4dEom4YN5aYnGka/J8MzSpBSV/2uSjfvw hwSg== 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=U0ZtMbfGNf5bI/1AePHt7T+pCQPNUqP752Ba3r+02dM=; b=75pljKZn7xxl+fqETECsICeU5NGkHHJr7+FiJQYAgCOuEa8nEH2wwghWncm7Q8EE9i 9zWrzylcVAPiTVKuGKLR6rBC2gHkrrCyhfTSnKlE7x1tY7hcDpwz5j+lKu8Sge9/nFp7 kGkQ7UhL1KtDf7kiSK8HRcyMkRX4XP//ALgowpPqefBA8Az4rt0Nu6xSD7xkKK0sdgqF 08zNlCF1clPyiGP4H5sPHdX+9LH/HrNXMuTe6QAYy8lMUVhLK3R9Z1vuCuNbmuVCxKB+ sxNyaNFaphYRypYGYbk3CkyrmZeRGxXIAyaGXfPFvPYYpIvmHWjIO80Q4IF8wFBLjzsD /vRg== X-Gm-Message-State: AOAM532wZsUnvcrZq+6Y3TWxY3BFK5I2ssDUQImps9j8gCuHzaHBWyK2 QewXwh69KaynrBeMcQ4+kM4= X-Google-Smtp-Source: ABdhPJwRZPAqYv4oJNy1fNafX2Qj6lvpf2KHx++EeZKTn31dh+x8Mtfsyq8oYEbbM/XWJw5lq3VWrw== X-Received: by 2002:ac8:5e0d:: with SMTP id h13mr4763623qtx.97.1643330297428; Thu, 27 Jan 2022 16:38:17 -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 t1sm2142883qtc.48.2022.01.27.16.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 16:38:17 -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 v2 3/4] arm64: dts: rockchip: add Quartz64-A sdmmc1 node Date: Thu, 27 Jan 2022 19:38:07 -0500 Message-Id: <20220128003809.3291407-4-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220128003809.3291407-1-pgwipeout@gmail.com> References: <20220128003809.3291407-1-pgwipeout@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 --- Changelog: v2: - drop status = "okay" from sdio_pwrseq - drop disable-wp from sdmmc1 - move reset-gpios to be alphabetical in sdio_pwrseq --- .../boot/dts/rockchip/rk3566-quartz64-a.dts | 43 +++++++++++++++++++ 1 file changed, 43 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..c5a79046a9d0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -91,6 +91,17 @@ simple-audio-card,codec { }; }; + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rk817 1>; + clock-names = "ext_clock"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h>; + post-power-on-delay-ms = <100>; + power-off-delay-us = <5000000>; + reset-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_LOW>; + }; + vcc12v_dcin: vcc12v_dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -147,6 +158,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 +497,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 +544,21 @@ &sdmmc0 { status = "okay"; }; +&sdmmc1 { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + 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"; }; From patchwork Fri Jan 28 00:38:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 537770 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00377C43217 for ; Fri, 28 Jan 2022 00:38:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344580AbiA1AiT (ORCPT ); Thu, 27 Jan 2022 19:38:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241685AbiA1AiT (ORCPT ); Thu, 27 Jan 2022 19:38:19 -0500 Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33203C061749; Thu, 27 Jan 2022 16:38:19 -0800 (PST) Received: by mail-qv1-xf33.google.com with SMTP id k9so4397369qvv.9; Thu, 27 Jan 2022 16:38:19 -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=j2PLycvcW6dLTZ8kcMY5iFXYAkkFP3UnZiWjf1YUPQ4=; b=qei5y1xK5AiiFqzeJefi3veSDhVeTBnZu8kMBlXneKUPa8tac/pYCkuigqyB6dU8po jo6xLloKFqPXGZTlJEzi+nNm9P4AFCGOnAKG2pG3GUjrRjJ2J61K4UEiUj4QJz739dZg UnpeXicZpoOkOSftq78cDX4rMTR38Tnoog8YEVHVTEhDrdwvPllI8QZM+kKjGt4O4FLO tdh9wcNQLAB4Au3XCe3+8ZtLAM0fwd5ibfwz7VGdd1mWF5rMDW8A/c6QJfFue0GcXUs2 Ji7/dRmJ1PpHOuYqxm/yiEuRA2vB67e8c02i+YQN30MIacjrkFnKjCmFubKYmo+q6ggl /YXA== 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=j2PLycvcW6dLTZ8kcMY5iFXYAkkFP3UnZiWjf1YUPQ4=; b=PRMbAhI8tBrHu29i8HWnvMxIbGLb3j6TlnJGBB1uUm1iELAXhHleSq0U1GQCUBb9KU j4wviePu/vwdYI4PW16vfjXf/L3uNltEBXXOlEMvAIuVlN4wBof578qF+GmvMdEPLqKq sKTjZp4Azb4UPOVY39ONedWdQ0fiSCwwc/fVrFsQWs6BrTooQcFdKJSgOh6DFmBR8Ktx qh4xoxz/b6TLzGbAS1rfkti4/ZHZJ4R/auFKGUP/HlFLu3qRO2j3+lG4lmlTonbzpBOs WIH1mmE8GARvQeYk69xRMhIJEA/WjHvsWaUWpD7D4AcyzGe9N1wE09Z5cCfiA1Jz7mXv 1bLA== X-Gm-Message-State: AOAM532VH+FdPu5xA9nbbkQ9L7zw7st4SED5+LVvFSA+tRHVdtFt8IH8 +tsOlXMIys/nae3uxZE+xqjRwUVpqsVpDw== X-Google-Smtp-Source: ABdhPJyR73xdepexciUgvlSA/jSq2GFvHyyuqvrAYyMxkwDfo1QZ7VBQCxZ2wWUgM/C9GfryivNEPA== X-Received: by 2002:a05:6214:1d2e:: with SMTP id f14mr5730571qvd.2.1643330298334; Thu, 27 Jan 2022 16:38:18 -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 t1sm2142883qtc.48.2022.01.27.16.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 16:38:18 -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 v2 4/4] arm64: dts: rockchip: add Quartz64-A con40 hardware Date: Thu, 27 Jan 2022 19:38:08 -0500 Message-Id: <20220128003809.3291407-5-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220128003809.3291407-1-pgwipeout@gmail.com> References: <20220128003809.3291407-1-pgwipeout@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Quartz64-A has a 40 pin connector that exposes various functions. Annotate the functions exposed in the device tree. Enable i2c3, which is pulled up to vcc_3v3 on board. The following functions are currently exposed: i2c3 spi1 uart2 uart0 spdif Signed-off-by: Peter Geis --- .../boot/dts/rockchip/rk3566-quartz64-a.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index c5a79046a9d0..d3dc60ff60dd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -449,6 +449,14 @@ regulator-state-mem { }; }; +/* i2c3 is exposed on con40 + * pin 3 - i2c3_sda_m0, pullup to vcc_3v3 + * pin 5 - i2c3_scl_m0, pullup to vcc_3v3 + */ +&i2c3 { + status = "okay"; +}; + &i2s1_8ch { pinctrl-names = "default"; pinctrl-0 = <&i2s1m0_sclktx @@ -559,10 +567,17 @@ &sdmmc1 { status = "okay"; }; +/* spdif is exposed on con40 pin 18 */ &spdif { status = "okay"; }; +/* spi1 is exposed on con40 + * pin 11 - spi1_mosi_m1 + * pin 13 - spi1_miso_m1 + * pin 15 - spi1_clk_m1 + * pin 17 - spi1_cs0_m1 + */ &spi1 { pinctrl-names = "default"; pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins>; @@ -576,6 +591,10 @@ &tsadc { status = "okay"; }; +/* uart0 is exposed on con40 + * pin 12 - uart0_tx + * pin 14 - uart0_rx + */ &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_xfer>; @@ -602,6 +621,10 @@ bluetooth { }; }; +/* uart2 is exposed on con40 + * pin 8 - uart2_tx_m0_debug + * pin 10 - uart2_rx_m0_debug + */ &uart2 { status = "okay"; };