From patchwork Mon Jul 10 16:52:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307407 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 5A0DCC001DD for ; Mon, 10 Jul 2023 16:52:55 +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=068XpFTSOOcwv2807Thbr/zSvxE7zrw5uJmkExp6nrA=; b=U9CkBIj89gPVx4 RkuI//5DjRByzqplUNfs39Ruft/1JoOKyyXSsqcB8GhiVJ4j4ugkRCz7VUPHaN1kC241+OkhKS9Bx 5oIuaUPXAbcjcQB401dFIZMmz8sdST/zGga2X9/f4Vw0TqH6MvTvju8Rf2HsqTa48QyFS8Gxd66J1 2GfugXRlsJHqhM1VmQ86fFKotQCCCMtZjdFx2hnOhmtPjQkgwalLVD4ZK+2irIhj8iD7fr0zWcORA i74PZ52vjgcyroj2Vbqy5Wi3IhZT6bjgR4yaI+EfnSZdaD9SNkqyu+Pgh7NZtQ7HLQy0j+HR7FR80 QBnlZVjGbPQ2h1VPvc7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7t-00CEtA-25; Mon, 10 Jul 2023 16:52:41 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7o-00CEls-0o; Mon, 10 Jul 2023 16:52:38 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1B4846607003; Mon, 10 Jul 2023 17:52:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007950; bh=ylOQSv56tNARXU7wD+i/Ui9ZZ3urcE82+Sjw9FrSQq4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=keGTQfFufThI6X1Nj0NhxRmUf3CGkZvUaw0dcM9Y75GMRyCbmQxU7JC2O/bOBULrQ jbC0vwhJJPzr3QgNut/hZtFvW3L0NNlFmTQS6LWBB8lSgWNF+a60hYsqaTNFMOV7qI Jn8/H4rBXg6di3KbNwjwqIR5jaVOutcR4M2ZcIAuyfD4FvPVo70inwOX8RytQ74tdb fmfJpxRjzvjxZkRD+MhA+B9jSPhcrH8zIU+wedkXeHpjhhMxXzT/vNwoL8eqs1ibaC F6UBev4Ge08KMDFsfsUZJQ1y8Mt4BbGkuhoUKPq5IqXW2ZACz4tEjp+zdXVjD0PiW0 kWy8ZXUoBxtmw== Received: by jupiter.universe (Postfix, from userid 1000) id 1A84F48058E; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 01/13] dt-bindings: vendor-prefixes: Add prefix for belling Date: Mon, 10 Jul 2023 18:52:16 +0200 Message-Id: <20230710165228.105983-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095236_446321_2CA6B0E8 X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add a vendor prefix entry for belling (https://www.belling.com.cn) Signed-off-by: Sebastian Reichel Acked-by: Conor Dooley --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index af60bf1a6664..c80a866477e4 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -190,6 +190,8 @@ patternProperties: description: Compass Electronics Group, LLC "^beagle,.*": description: BeagleBoard.org Foundation + "^belling,.*": + description: Shanghai Belling Co., Ltd. "^bhf,.*": description: Beckhoff Automation GmbH & Co. KG "^bitmain,.*": From patchwork Mon Jul 10 16:52:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307406 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 0239CC001B0 for ; Mon, 10 Jul 2023 16:52:53 +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=tYVPyXim2Rs7vNABE2KuC1u3PNjZg5MmOyluGwgD0p0=; b=nHOmbA56kxi1xx 3wQhvWvxEW2e0MyvdNOTiHWny0OyoDtOCdQ/PcZ9IxI9BUAZfpk5jOUc0NO/5EcK+4nNk2bDakHAg dykivUxuThCotfVAxUVNSVSwyYZCWdwgm2T9wVtf8HoEZ3DKm0slL5UEtHJkCxeNS47yPAwmuEC6t wZO8B+ZX21ADaj0i+72Q+QIgoZkXQ4IvyVNUFbEqkvurIWWfQLUORZoQo5I8PRoCkaZEnGJ48r6P/ 3sR2P1ELZz4uYf6VAQya7MhJGLJZT4SkDjh2x6m6tXyuUT/C548LnhKoW+9z4gWND6tAW+IEAO9Ji 1txAY4HsYs7MdbydUFIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7w-00CEvo-18; Mon, 10 Jul 2023 16:52:44 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7o-00CElu-0u; Mon, 10 Jul 2023 16:52:38 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1DCF86607004; Mon, 10 Jul 2023 17:52:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007950; bh=70i+OsHCHw8ZA82Dnx5g055yqqG/MNhkLk11vHnkswU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZEcxa9PhS5m6HuCyfKMEB4sMrP0OFfZLNcG+CaFwXdTZS7E2o5crW93HRBD+2Sv1N 5KzYKKRtlT/I6mNL8NowEyfm1iehyT9b3MV4EkwujjR1gFu4HdQ07KVV7OeNgtrhcE cSWp7Rkxk3YCAQYDopJbnrENJZ/LQ88fhXKoV8lLxqV8sueJhE54g55H+pzJqxGW5O wSXW1bJMDa9AzmfXPqWaAXer6DPV2IyGZRsoE/4Zy7kg5wRoCdSqlZ+6JhT6hSwJda 6qDrcJ9uMM1uuHBp0rNrXp6YwhdwA/ybjKct6zZuWpRQ7intkIiT700Qbw7LnrAToS JzlkxjxU+fyEw== Received: by jupiter.universe (Postfix, from userid 1000) id 1BECC480598; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 02/13] dt-bindings: at24: add Belling BL24C16A Date: Mon, 10 Jul 2023 18:52:17 +0200 Message-Id: <20230710165228.105983-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095236_448167_011C9880 X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add binding for Belling BL24C16A, which is compatible with Atmel 24C16. Signed-off-by: Sebastian Reichel Acked-by: Conor Dooley --- Documentation/devicetree/bindings/eeprom/at24.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml index 84af0d5f52aa..2ec37c11286c 100644 --- a/Documentation/devicetree/bindings/eeprom/at24.yaml +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml @@ -101,6 +101,9 @@ properties: pattern: spd$ # These are special cases that don't conform to the above pattern. # Each requires a standard at24 model as fallback. + - items: + - const: belling,bl24c16a + - const: atmel,24c16 - items: - enum: - rohm,br24g01 From patchwork Mon Jul 10 16:52:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307409 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 A6896EB64D9 for ; Mon, 10 Jul 2023 16:52:58 +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=qTHROieaS/AQ3ADCO811kgwRMDK+vOWP0JQry86FbY8=; b=IFcyQpGtLr6RVj 8NcQ88JUp85vayncmmd101dGBn73ml99pSH1lEmWfzK9DcoOek12/ea1JjtEw01DDzzUgTXIGQAgz hkywIuTj+LdD3McrdpKVJT1YFHFquXg194wcyAKNtdf9cqxXuwg8f/UqrGYZBOxq/k5PUGEcBtGBU CEn3cZSAtmCmbUIbHlSTKxaW8P1a8/4HT3od8ATDMjLyFx4CeGtnXPtMC1oBpsnY64kbdXl+uelDn 5jfEYv22V9kAhwVCQrZjlZchQFsyGkwZlgPNl1aXXjKDJMZlWaGpE8ipVeWfo2YjZ82gXYnYotBNx 5C1LNQLYOG8yS58xpBwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu86-00CF1y-0W; Mon, 10 Jul 2023 16:52:54 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7o-00CElx-0u; Mon, 10 Jul 2023 16:52:39 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2B8C46607006; Mon, 10 Jul 2023 17:52:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007950; bh=qcZMYg/hobOPxfUzbHSRaIgS4/4DnqGJKx90YEYgZkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G8kbM1N3wQ8Z+krn9sU+VJfkobWwAfUMSBuaSKjPV1jqZ+HjrnQYwK8dOpjYanudQ 8ZeTCmgl5g2cB3vDqeyw+Nijnnm/qQ2/qdkkoegRGSEkM3E0XllvcjDFdHtE9YgWlg eas5AeLMk2/D50RX82QJ6ptPWy1jgE3Z/G3lLS9wzz+/J0AkII9PNab/DV4k9elPgv 0KDP7Ex5J7W+mN/yCSyIGBwFHozUxfpj1pFftrZ4UjIn5nhIAVdc55G4CbGjW29KNM dRgYD7xFk1AJkxubxhndU9KV8lbcszgO0oqCGBO1HgxE2GQMWvN6oJ2vmHl7tYJw6z pu5z1k51dgi0A== Received: by jupiter.universe (Postfix, from userid 1000) id 1D9FF48059A; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 03/13] arm64: dts: rockchip: rock-5a: add PMIC Date: Mon, 10 Jul 2023 18:52:18 +0200 Message-Id: <20230710165228.105983-4-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095236_577698_7B9BFF1C X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This adds PMIC support for the Radxa ROCK 5A Co-developed-by: shengfei Xu Signed-off-by: shengfei Xu Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588s-rock-5a.dts | 368 ++++++++++++++++++ 1 file changed, 368 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 901825514f9d..9b5c47b78eea 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -18,6 +18,51 @@ aliases { chosen { stdout-path = "serial2:1500000n8"; }; + + vcc12v_dcin: vcc12v-dcin { + compatible = "regulator-fixed"; + regulator-name = "vcc12v_dcin"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + + vcc5v0_sys: vcc5v0-sys { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc12v_dcin>; + }; + + vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 { + compatible = "regulator-fixed"; + regulator-name = "vcc_1v1_nldo_s3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + vin-supply = <&vcc5v0_sys>; + }; +}; + +&cpu_l0 { + cpu-supply = <&vdd_cpu_lit_s0>; +}; + +&cpu_l1 { + cpu-supply = <&vdd_cpu_lit_s0>; +}; + +&cpu_l2 { + cpu-supply = <&vdd_cpu_lit_s0>; +}; + +&cpu_l3 { + cpu-supply = <&vdd_cpu_lit_s0>; }; &gmac1 { @@ -67,6 +112,329 @@ &sdhci { status = "okay"; }; +&spi2 { + status = "okay"; + assigned-clocks = <&cru CLK_SPI2>; + assigned-clock-rates = <200000000>; + pinctrl-names = "default"; + pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; + num-cs = <1>; + + pmic@0 { + compatible = "rockchip,rk806"; + spi-max-frequency = <1000000>; + reg = <0x0>; + + interrupt-parent = <&gpio0>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, + <&rk806_dvs2_null>, <&rk806_dvs3_null>; + + vcc1-supply = <&vcc5v0_sys>; + vcc2-supply = <&vcc5v0_sys>; + vcc3-supply = <&vcc5v0_sys>; + vcc4-supply = <&vcc5v0_sys>; + vcc5-supply = <&vcc5v0_sys>; + vcc6-supply = <&vcc5v0_sys>; + vcc7-supply = <&vcc5v0_sys>; + vcc8-supply = <&vcc5v0_sys>; + vcc9-supply = <&vcc5v0_sys>; + vcc10-supply = <&vcc5v0_sys>; + vcc11-supply = <&vcc_2v0_pldo_s3>; + vcc12-supply = <&vcc5v0_sys>; + vcc13-supply = <&vcc_1v1_nldo_s3>; + vcc14-supply = <&vcc_1v1_nldo_s3>; + vcca-supply = <&vcc5v0_sys>; + + gpio-controller; + #gpio-cells = <2>; + + rk806_dvs1_null: dvs1-null-pins { + pins = "gpio_pwrctrl2"; + function = "pin_fun0"; + }; + + rk806_dvs2_null: dvs2-null-pins { + pins = "gpio_pwrctrl2"; + function = "pin_fun0"; + }; + + rk806_dvs3_null: dvs3-null-pins { + pins = "gpio_pwrctrl3"; + function = "pin_fun0"; + }; + + regulators { + vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 { + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <950000>; + regulator-ramp-delay = <12500>; + regulator-name = "vdd_gpu_s0"; + regulator-enable-ramp-delay = <400>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <950000>; + regulator-ramp-delay = <12500>; + regulator-name = "vdd_cpu_lit_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_log_s0: dcdc-reg3 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <750000>; + regulator-ramp-delay = <12500>; + regulator-name = "vdd_log_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <750000>; + }; + }; + + vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <950000>; + regulator-ramp-delay = <12500>; + regulator-name = "vdd_vdenc_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_ddr_s0: dcdc-reg5 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <900000>; + regulator-ramp-delay = <12500>; + regulator-name = "vdd_ddr_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <850000>; + }; + }; + + vdd2_ddr_s3: dcdc-reg6 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vdd2_ddr_s3"; + + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vcc_2v0_pldo_s3: dcdc-reg7 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <2000000>; + regulator-ramp-delay = <12500>; + regulator-name = "vdd_2v0_pldo_s3"; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <2000000>; + }; + }; + + vcc_3v3_s3: dcdc-reg8 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc_3v3_s3"; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vddq_ddr_s0: dcdc-reg9 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vddq_ddr_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_1v8_s3: dcdc-reg10 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_1v8_s3"; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + avcc_1v8_s0: pldo-reg1 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "avcc_1v8_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_1v8_s0: pldo-reg2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_1v8_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + avdd_1v2_s0: pldo-reg3 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-name = "avdd_1v2_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_3v3_s0: pldo-reg4 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-ramp-delay = <12500>; + regulator-name = "vcc_3v3_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vccio_sd_s0: pldo-reg5 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-ramp-delay = <12500>; + regulator-name = "vccio_sd_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + pldo6_s3: pldo-reg6 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "pldo6_s3"; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vdd_0v75_s3: nldo-reg1 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + regulator-name = "vdd_0v75_s3"; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <750000>; + }; + }; + + vdd_ddr_pll_s0: nldo-reg2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-name = "vdd_ddr_pll_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <850000>; + }; + }; + + avdd_0v75_s0: nldo-reg3 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + regulator-name = "avdd_0v75_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_0v85_s0: nldo-reg4 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-name = "vdd_0v85_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_0v75_s0: nldo-reg5 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + regulator-name = "vdd_0v75_s0"; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + }; + }; +}; + &uart2 { pinctrl-0 = <&uart2m0_xfer>; status = "okay"; From patchwork Mon Jul 10 16:52:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307408 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 97471EB64D9 for ; Mon, 10 Jul 2023 16:52:54 +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=ggqRgXzwlwyMyaCV1uErZPrnfOe/d7Z0GFeQBpAoet0=; b=JaSlLLiPcon6R0 VzZT8ZT2epLxUBDfcqLDM8S60CdU5pnKqle5adZr67GZV5CVTUk9/GQQESAtJVy4wZK7pf5qSlmV6 2CHSZ1/BNM1EvHN5ijCVKTXLixgw29DQmNBOaVvJD6byZlMbQekZGAlJE/ZDiMZVjQo4g1IB8ZLPb oAZqnm6AWJ4EK17EH/iC+gfCcjKIOmCipNPVMB0Y0jrRKhbtcKDVWeli9r6MLS7pZQ4jOGTtfTXx7 apkvfhXmfghk7lzB89xP3CALirR3m+eER423o4+3hLEhfv7NvqrWgwjff0mMrt+D8qYFAqwKval2u xPNxU2BbVt6Xaohj/ZQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu82-00CEzn-2A; Mon, 10 Jul 2023 16:52:50 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7o-00CEly-1S; Mon, 10 Jul 2023 16:52:39 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 37F3B6607007; Mon, 10 Jul 2023 17:52:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007950; bh=nz6AzM1vVIWarNK31rOaCRC6uCmfJnBWhfD7X/Ejsi4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=do0Fu59LJ1U8ZzCz9kJuuQV8REOb2zpF9Abxu7mP88d9i9UN4sGGndCIh6imj8OM6 1QqokxYlJHXC4w6cRCCsKvSKlVBf1T1Qza9hbcTU2SJ252a5nYcy8GlI3Fd9lXaE5f sA+kNZiGJ+uFh2HiGvNzGR4mmYAitd5C2OmtpC2IjenvKAW81ePNr1mSRKsAJ2bcU6 y6wppcAr4tX5f8/84UwqCwIl51nBjHoteNUn2mryMAEWkKUArtv/zmmuwxUipd2eTH L7jPRGUsrbA+Q8s9TBFjYC9F2CvO5Rp/9oyUZOMVBj8vi4Zxij50COgVuyv0SXSEN+ Bch/In6BEL7gg== Received: by jupiter.universe (Postfix, from userid 1000) id 1F3854805A0; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 04/13] arm64: dts: rockchip: rock-5a: add vdd_cpu_big regulators Date: Mon, 10 Jul 2023 18:52:19 +0200 Message-Id: <20230710165228.105983-5-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095236_626177_85BF399C X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The RK8602 and RK8603 voltage regulators on the Rock 5A board provide the power lines vdd_cpu_big0 and vdd_cpu_big1, respectively. Add the necessary device tree nodes and bind them to the corresponding CPU big core nodes. Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588s-rock-5a.dts | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 9b5c47b78eea..616a6bcfd60b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -49,6 +49,22 @@ vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 { }; }; +&cpu_b0 { + cpu-supply = <&vdd_cpu_big0_s0>; +}; + +&cpu_b1 { + cpu-supply = <&vdd_cpu_big0_s0>; +}; + +&cpu_b2 { + cpu-supply = <&vdd_cpu_big1_s0>; +}; + +&cpu_b3 { + cpu-supply = <&vdd_cpu_big1_s0>; +}; + &cpu_l0 { cpu-supply = <&vdd_cpu_lit_s0>; }; @@ -65,6 +81,46 @@ &cpu_l3 { cpu-supply = <&vdd_cpu_lit_s0>; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0m2_xfer>; + status = "okay"; + + vdd_cpu_big0_s0: regulator@42 { + compatible = "rockchip,rk8602"; + reg = <0x42>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_cpu_big0_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <1050000>; + regulator-ramp-delay = <2300>; + vin-supply = <&vcc5v0_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_cpu_big1_s0: regulator@43 { + compatible = "rockchip,rk8603", "rockchip,rk8602"; + reg = <0x43>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_cpu_big1_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <1050000>; + regulator-ramp-delay = <2300>; + vin-supply = <&vcc5v0_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; +}; + &gmac1 { clock_in_out = "output"; phy-handle = <&rgmii_phy1>; From patchwork Mon Jul 10 16:52:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307412 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 DE657EB64DA for ; Mon, 10 Jul 2023 16:53:05 +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=SLxScr8y/nlbmLTodYtjznNKhAmdq+xiM70/Yv0Q4m0=; b=ZQOEBaYzx9RziQ vj3aI6iCqstpdh2Se+Obr2Lzxx5u16ehcb6/w3LaAyXO57mBnxPI2iaWshB19LyeLWbLKaqaxgxKb ChhDnB9cNnRZjG1xMoq0I/jqOZ0h1/mkBh2X34yUOONyT9tTniMiLAdJDndmUVZZSNJeFajhtl25V lVubY5wXw8S4TCJhKbtsPQgktAenWb4yykzm3fQDMlqeVdW+3AkuvAWWw8abR1JYbOt3N6xf7tS9y 6SM7+W9jch6Xg59fVLDYrOexaUBKFazo6lbLo4aoDy0pH8fQikNqDrVXU4GNDgU4h2DKu/hPw1Va7 ggtgj6ILvNrkMNBLyncg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu89-00CF5m-1I; Mon, 10 Jul 2023 16:52:57 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7q-00CEor-2S; Mon, 10 Jul 2023 16:52:40 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 77AF56607009; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007952; bh=SyT5L6QW7HqAZecCA4MRYTD8aoZGBwujAo3dEnVZY78=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EQgqj1Q//kViqIzttfWnfi8UGG9Ap0+dTd6xwfUQHpnBaBfnkOSWSxiW3ibv4qJNh B1WKY1qWNlnxnH/JELYsFpEy2HVJHhSB3mYIuj8Fw0EPpiVD4o1NiedBTDTl4tVo5O yL/ofWvms2IAJRCxVnYK/ioKVcwSPrwXYLXQsNevxIDOryWBj6TmDCejSrfHPXxglO IvdIuyVyxmxkfOCVMqGOezk9ovTytdjc7EIThi/liFwqRpVckmmt56wka6Dof92eax U6qonkSGjyidbNhc0vYxk6EG1VLyKlBzuhuYNl6QDgAnCSqM7im5zQLoA9L0+bPUiT 9/0A1B3aN0N7g== Received: by jupiter.universe (Postfix, from userid 1000) id 212534805B8; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 05/13] arm64: dts: rockchip: rock-5a: add 5V regulator Date: Mon, 10 Jul 2023 18:52:20 +0200 Message-Id: <20230710165228.105983-6-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095238_932900_A85F4A37 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add GPIO controlled 5V regulator, which is used for supplying the fan, on-board USB hub and HDMI. Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588s-rock-5a.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 616a6bcfd60b..87864a991b50 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -38,6 +38,20 @@ vcc5v0_sys: vcc5v0-sys { vin-supply = <&vcc12v_dcin>; }; + vcc_5v0: vcc-5v0 { + compatible = "regulator-fixed"; + regulator-name = "vcc_5v0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + enable-active-high; + gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc_5v0_en>; + vin-supply = <&vcc5v0_sys>; + }; + vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 { compatible = "regulator-fixed"; regulator-name = "vcc_1v1_nldo_s3"; @@ -150,6 +164,12 @@ rgmii_phy1: ethernet-phy@1 { }; &pinctrl { + power { + vcc_5v0_en: vcc-5v0-en { + rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + rtl8211f { rtl8211f_rst: rtl8211f-rst { rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; From patchwork Mon Jul 10 16:52:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307413 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 CC95EEB64DC for ; Mon, 10 Jul 2023 16:53:12 +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=M0ksXssBVE/6gXvsqyi2vgwvpDRwe5BCNi+BIMys+8M=; b=BEI6OGPGRKpPqG 3m0V02yH7JKhWe0PZ4L+1vevzO7v/gjxLtVGEB2r0C73jGRsqOK3kCIZWAXza0VO3e1JmLpcHl8iM AgeX3A7Dtdv8sToR6nAGLsZnZ+cg1bul5m+pmhHOdxEWd5mlu7lTtdVKobsgyrjV+/ePcdP605C5m q2qDxTchBSZdr9dCHo3C7FR72lHj8tL2c/vaMIBWiIiQtp4MRoawqM8fezSda/Z6Fdp82BkHJdaxX +d97mvHsc7c4OZksQnbSbNVZPoLb7d4Sdt7PHwVDCTyuMrI797LC71jz7vasZS75HmNyNrfhNGT/M m7Nj47d+pMwqDIWnLn/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu8A-00CF6k-0v; Mon, 10 Jul 2023 16:52:58 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7r-00CEp5-0a; Mon, 10 Jul 2023 16:52:40 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7C52B660700D; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007952; bh=3T6R53iEwpPY/kj6xBN/ggft/CaTR55t0Gd3VFcgnDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GjPae7hvup5PHsZBHp3QERTx6JTI2bZiVgQZD9n+qj9YenY4nQeAdo88dT9vprK7L I8i8IFc1WsKgtrsDsrPLeRFvWcqSAksNI+z2CRzUjPWKIxon3sYk5g1MOVJDGiaCfU uGdehEVobkeI/XZFuAcM4bJE8Yrn9gVJVQr1j1QJI28Yd8SuAyGuPR9XttWN3seY7n I7VInvfCVtENDxFBmspF+P+K70X9WPt9n8A7MpbsZVxhFzBoDZuon10zNTDKIlmnV8 kz9roRF3hSvx/7tR+iKGazIftnxsJWYQvTQ3k+5+2lXxpUctSi+j7B5f9xmS4tQP8B plVqMyjMd4Rkg== Received: by jupiter.universe (Postfix, from userid 1000) id 225BA4805CC; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lucas Tanure , kernel@collabora.com, Sebastian Reichel Subject: [PATCH v1 06/13] arm64: dts: rockchip: rock-5a: add SD card support Date: Mon, 10 Jul 2023 18:52:21 +0200 Message-Id: <20230710165228.105983-7-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095239_366352_C2353B20 X-CRM114-Status: GOOD ( 10.11 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Lucas Tanure Add sdmmc support for Rock Pi 5A board. Signed-off-by: Lucas Tanure Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 87864a991b50..19e05dba2794 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -188,6 +188,20 @@ &sdhci { status = "okay"; }; +&sdmmc { + max-frequency = <150000000>; + no-sdio; + no-mmc; + bus-width = <4>; + cap-mmc-highspeed; + cap-sd-highspeed; + disable-wp; + sd-uhs-sdr104; + vmmc-supply = <&vcc_3v3_s0>; + vqmmc-supply = <&vccio_sd_s0>; + status = "okay"; +}; + &spi2 { status = "okay"; assigned-clocks = <&cru CLK_SPI2>; From patchwork Mon Jul 10 16:52:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307410 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 46B57EB64DA for ; Mon, 10 Jul 2023 16:53:02 +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=kWKitTXzwkNNBsz7tQTpzQzslrtbVXo9kXWaxnAdb1E=; b=DdczEky+wzeYAm fyrdhudcsE7yCb/S0L77LNc9PSfNS7TvGzFKtSF8gkMfKAQkHw7vgoqPgrDcv6O+8n/ueA3SoJhoU fruded7et/Kb2M1q2kMJ5b5uLwpMCqTBuDtnH8PAnF9D0RsIDM0jQ4/XyRMmWD+nW+MUFdrnEZ34G F/+6KhYjMjnwNuwk2jETpz+QMatlst+du2t7YR7utDChdZLod9mHYS5WIToG7UIT7bc6KBfbcqy1n 8UodZuFsID2Rj1XP50KBbsmWW0VFY+ag+Eh2fA4o2ng2ie51cUvc5+WHMEi2LcAetpHBD9GvtaAPI qTRP8PtIOgfsxA9GdXJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu89-00CF6K-2n; Mon, 10 Jul 2023 16:52:57 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7q-00CEos-2T; Mon, 10 Jul 2023 16:52:40 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 84DC7660700E; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007952; bh=a3k0dUHM06lGftFzGtEKHmme9qpS0zkKxKK5gJ/bpRY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SVTfT1svB+qYKJ+YUQytUF8S9Lnsy70JJGuv/LJhLfj7r9xyr4JQ0t/QdtciRcB4S 4yoJjwSY2GRdSACfpmwFxMT9MaqINvtxYu/9Hh00Ysqsu2V8gal9FbvEtI5MHtGr0v NFychpI+1eowvyeSsJuKMLH8MmLtipn7oRKOy5WbTyG6WxfCMJKnwVal/knP/GBhP7 /OKtsYR+a/WFH17KtPf6iBOSrPLP+7CJy/XH1s9qVf9b94iNZ+66zdAUKqFFp3L6VN racEdGJtU3JATOwCVSXKLv66ELPYL3oDUyf9JvAl/QocF1xWrgQkhKGtHEGy+fLnk1 SrawxKGOM71tQ== Received: by jupiter.universe (Postfix, from userid 1000) id 239F64807E0; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 07/13] arm64: dts: rockchip: rock-5a: add status LED Date: Mon, 10 Jul 2023 18:52:22 +0200 Message-Id: <20230710165228.105983-8-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095238_937528_78178889 X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Describe the Rock 5A status LED in its device tree. Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588s-rock-5a.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 19e05dba2794..5bad81c5b09d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -3,6 +3,7 @@ /dts-v1/; #include +#include #include #include "rk3588s.dtsi" @@ -19,6 +20,19 @@ chosen { stdout-path = "serial2:1500000n8"; }; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&io_led>; + + io-led { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; + vcc12v_dcin: vcc12v-dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -164,6 +178,12 @@ rgmii_phy1: ethernet-phy@1 { }; &pinctrl { + leds { + io_led: io-led { + rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + power { vcc_5v0_en: vcc-5v0-en { rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; From patchwork Mon Jul 10 16:52:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307411 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 DDBE9EB64DC for ; Mon, 10 Jul 2023 16:53:04 +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=RUI4Lx/PEwBOpcOLeC6O0pb6Df39bnNxwME00ZqYwY8=; b=hFAuj2PEgkDWyP 8GYM490KuOm5h6tJ7r0wWQ4e4Wwp0ft0FsjSqK/ln3D59brZjE0AAkFE++vClhKylFgIcnHUNa8Wt 0r7OzX8bEqIx79n1ga68Ln3gd3lpyICbJPH0Qt0446ELPs3ElQCGF0nEq1id7p4nr5U9/IJBrZlcw ZJ0A+Ayytm0HsLF1NcthzD0hRy6XCIULSiWaujmDQIcJlbVwlYLEcqTmIzM9wiTUFhnBlzZDniE38 /zjaXnJ+hLGvApI/h1gcNlz+FoL+dEhpEyePro4B9/SqgmIoK4YmtzrdbYLAKpJqeEHFBFTA+e0fa lWQZX/G9q6pkzCiEUqrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu8A-00CF7L-2g; Mon, 10 Jul 2023 16:52:58 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7r-00CEp6-0e; Mon, 10 Jul 2023 16:52:40 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 868AE660700F; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007952; bh=iAAaULXKzOM58JwUjAKjW61TNCzveUnAnpYj6EelEwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ScLMNM0dSZ8G/eH50KidWkP/xzmxVlbKltljXCZhP3HbwUfO6EK+OYxMUq0Z+xurM iuxxTCcR1QAN0N+ufCiX1UPJy/9qL93HMCCXdK8zofBSwW3csw0RN4pLK5pE6T0aEy cLigX3JaScbuqXikzYD4zLOAJZw3s6yuUfx7ZD9R0HAxdI62DhVkb97hIFRfpDavCb UUCXPrgxGAp4c+EzJ5YRBbjkMGj6WrGfFGQd3RxY9cw611oqQZ5X9tsDQ4Z5/Vp39v ldcSCEKUntJlpyX5naJDCxbjosTQit2avsrVKiczs3S5C9Wi0//leJcHNsDOXR2EkS aU+YTzb3XKLMQ== Received: by jupiter.universe (Postfix, from userid 1000) id 24C224807E1; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 08/13] arm64: dts: rockchip: rock-5a: add analog audio Date: Mon, 10 Jul 2023 18:52:23 +0200 Message-Id: <20230710165228.105983-9-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095239_382002_200C1EF2 X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add analog audio support based on the Everest Semi ES8316 codec. Note, that this currently does not support headphone plug events. The Rock 5A uses a different headphone jack with a different logic to detect a headphone plug. Unfortunately the detect GPIO is always low. Downstream uses an ADC channel instead, but that is currently not supported upstream. Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588s-rock-5a.dts | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 5bad81c5b09d..4c6c87d462e9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -16,6 +16,20 @@ aliases { serial2 = &uart2; }; + analog-sound { + compatible = "audio-graph-card"; + label = "rk3588-es8316"; + + widgets = "Microphone", "Mic Jack", + "Headphone", "Headphones"; + + routing = "MIC2", "Mic Jack", + "Headphones", "HPOL", + "Headphones", "HPOR"; + + dais = <&i2s0_8ch_p0>; + }; + chosen { stdout-path = "serial2:1500000n8"; }; @@ -149,6 +163,44 @@ regulator-state-mem { }; }; +&i2c7 { + status = "okay"; + + es8316: audio-codec@11 { + compatible = "everest,es8316"; + reg = <0x11>; + clocks = <&cru I2S0_8CH_MCLKOUT>; + clock-names = "mclk"; + assigned-clocks = <&cru I2S0_8CH_MCLKOUT>; + assigned-clock-rates = <12288000>; + #sound-dai-cells = <0>; + + port { + es8316_p0_0: endpoint { + remote-endpoint = <&i2s0_8ch_p0_0>; + }; + }; + }; +}; + +&i2s0_8ch { + pinctrl-names = "default"; + pinctrl-0 = <&i2s0_lrck + &i2s0_mclk + &i2s0_sclk + &i2s0_sdi0 + &i2s0_sdo0>; + status = "okay"; + + i2s0_8ch_p0: port { + i2s0_8ch_p0_0: endpoint { + dai-format = "i2s"; + mclk-fs = <256>; + remote-endpoint = <&es8316_p0_0>; + }; + }; +}; + &gmac1 { clock_in_out = "output"; phy-handle = <&rgmii_phy1>; From patchwork Mon Jul 10 16:52:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307414 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 5B3F4EB64DC for ; Mon, 10 Jul 2023 16:53:24 +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=POGY3jQO2CrMbQeUZZJd49HlitSxSpZkw0qGXAkRHc8=; b=ZbfT1EHR88mexZ MyhOGi6gCHPCof/xfknPf4koFh3J8NhzotK1lu1+h5HSFTE5HihSuN/s7pa4Y9g+BOMcLzNnovLxn SixhJHgWjQ6bCIJVMiLJETckyYhtyE1yBK8iIGMxarXyvTCZxbsbjcEnWCe8d3FnR8D0620+3Ln2G Ah5GGUejZGejq0jjZis0t0rwQOOX6j6TauOgG682IwVoiw7aQjyJqgQfGOGO51o9X86Ip9Way32JR ZWjYjAxQjZGle4XY4Natvbf8Kv+tkoG2bj6fI2Ycdwfxnwjsl26YzXxFPyLixTXdn83dlpfyKiVDx hXM3liAMwuV7g+pdZfSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu8I-00CFFY-1r; Mon, 10 Jul 2023 16:53:07 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7r-00CEpr-35; Mon, 10 Jul 2023 16:52:41 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 9429D6607010; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007952; bh=Y8zCZDXJA+QQttHu6G0S/ZvTbsLSn9iT9xtJEks7f7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qwm9fxWx9cwglDKV41Qlt8Hh15tpIqTskcSg1crsARgGWJ+CbJxgkpOQuDVR+T2N6 nA+/+QjbGmNCG6Ir1Ng6ppcKfl20xaWHchuJcgG7z7YnAld8YpvD7I+s4OMUI8Pfut R6P+F3lC6gIQZdO3msyDDgymfdstchovo54+1Oi0jKtQRQHaEGFUbKBBJMCeNRywYG 4IY6RgM7gfJqmLg56y7jw3VOnXK+qBVlhdK3edfvIgkrZTeHDnTi5D+q2RmPpjsYmB QvS5dIIJOW0ZcaGmSa+g7FjkGhfZIcKVGYa9wGg0OCbv2+aLqHGayUlUjf1cXcxIV7 r3+8OZd8erZeA== Received: by jupiter.universe (Postfix, from userid 1000) id 25F024807E2; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 09/13] arm64: dts: rockchip: rock-5a: add I2C EEPROM Date: Mon, 10 Jul 2023 18:52:24 +0200 Message-Id: <20230710165228.105983-10-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095240_138870_63A4A0D9 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add the I2C EEPROM to the Rock 5A DT. Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 4c6c87d462e9..0b18d4230eef 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -163,6 +163,16 @@ regulator-state-mem { }; }; +&i2c2 { + status = "okay"; + + eeprom: eeprom@50 { + compatible = "belling,bl24c16a", "atmel,24c16"; + reg = <0x50>; + pagesize = <16>; + }; +}; + &i2c7 { status = "okay"; From patchwork Mon Jul 10 16:52:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307415 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 65E0BEB64D9 for ; Mon, 10 Jul 2023 16:53:28 +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=L9Rr3DsPBoYwdqTGKhhsJN9l90IGv27Vvqe+0pdBQQA=; b=SUwTpOTDD9jULZ HDowyllCWyYkYGRYvFZwxeRJcNCfBc2ifbSsmwzukNhP1FyQCyJU3LeNXPN8fOgIUlodP/vJZet0l FxyLwERBE8cjT+L2hLxzklAs53ptls0+z6H8jGn4JeMBo5riAVUkB4HdcY78ousETwpgOSaST8Vhe cFApLrNFr7ND/gEUQttNq0szxEK0cDaFvdILyDvcAuS9pgqjixtyDvumsoEPwnQ4uUzmDLRIYHKMz qMEAbyeuDv6ooV/uvWyhq/0wQ7odBWBivDVa4S3j8i2wHHkb7FipZYxkT0k2OuvZBvEumfipCrpz/ 0tJ60+qAkxBEolCLDuVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu8Y-00CFSj-0N; Mon, 10 Jul 2023 16:53:22 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7r-00CEps-2y; Mon, 10 Jul 2023 16:52:42 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 9BF9D6607011; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007952; bh=5gfqP3n6JjVI7mvmyViy3tF4VZ4HgaaoXQiCBJkMdHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YRHOXVMdvXzNxcVh5XUUZ8XGCQuLSgz5Narnemjq4Xz1X8nV8MHJmvBpFE6sEjuWb YKYpcIJpsgmU8RYfFjm4Xs7RhDLGWoA2t8qmEtwdZpSSeqencI3gZE0ES4MVaem0sO WFXEccC2v9teJFxxdmlwT18nQdHlgTxqqElRNYh6/K4PomawMPh1bTn6L0BjdCmj+C t5z+tqNzsCiQe0C0k9yN9d2Etrhk+4PfA6gdpgMCQiLpHkL6CChXjSlCMST1WhdxmT kssUoPwJtQw1sYvwz4nookq2x3PGC+n3xIv69jBi9R1oQupCi54qU4wnLYj2cN+ur0 3H64agKwP78Ug== Received: by jupiter.universe (Postfix, from userid 1000) id 273804807EF; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 10/13] arm64: dts: rockchip: rock-5a: add vdd_npu_s0 regulator Date: Mon, 10 Jul 2023 18:52:25 +0200 Message-Id: <20230710165228.105983-11-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095240_097770_511BBB4E X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add the NPU regulator. Signed-off-by: Sebastian Reichel --- .../arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 0b18d4230eef..c4471dfe574f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -166,6 +166,23 @@ regulator-state-mem { &i2c2 { status = "okay"; + vdd_npu_s0: rk8602@42 { + compatible = "rockchip,rk8602"; + reg = <0x42>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_npu_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <950000>; + regulator-ramp-delay = <2300>; + vin-supply = <&vcc5v0_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + eeprom: eeprom@50 { compatible = "belling,bl24c16a", "atmel,24c16"; reg = <0x50>; From patchwork Mon Jul 10 16:52:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307418 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 D2A30EB64DA for ; Mon, 10 Jul 2023 16:53:39 +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=+Eu35oS+o2TE0MPHDbYzkhmZm2pxdDHHwlytTivod6M=; b=bYNlnZKMmjwQNY Z+1nMrNp+CBFy4cnD25Ar4um8kMID2dfDdxKpGjBLHLkrOeG0XF7UJ7vmJ28DnZ0G3rFmirGZnwMm W2aFRTfd33ahImrzLXCuwy1eaKhun91mTa7Wz8d3jBUqReJfIKCncf0IsxlVbFJhBYACqBI9McDLS uO6XFQYYAnTRI8kSaBQu+plYa9P+E/7oRyiOsCknG7JK6VipdV4RMgi/ZeWaX8clf5/5Hl+L6F4WD pss7PFZukrcZ/1Tr9ClaG5MCoBarJp87Rk9UIntj+CdNJLwXxGJFQzKZnqwonQhvhUoDWynds49Dl ilsmTwtLiMtNp5qqLiqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu8e-00CFa7-2g; Mon, 10 Jul 2023 16:53:28 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7s-00CEqt-2L; Mon, 10 Jul 2023 16:52:42 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id A8CCA6607013; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007953; bh=Tt7uUAjNgNzRuuG1D8AKfKaibOhh6srEjpIfBkMqmqY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T2rWDUoRmK60Z8jFi0D5hZ2iF9hLhNMlkn86LM8HLig14/WAMprxcy+jUhJnyJ1/j EvxSq0p659Lj9R8DJsdStkW3HTtnc08VRWbG+MaHJNS/UCUdoojwK4XO+PSxT8DQtd Yxmu9MlhBhV4nzThGuFaqqFMkDA/comV8OVV6p35PFPliUn+RrsIMbaGJg5Fab1Wb9 SK0U12SeVbBnOSgKRkCcqkUn6naZmGC13PkFXxWAU9syPLrHaCrP4IivpZABIUnDOL bx8aMkmf77YRXGYFekJzSJwvVzy9BNZ4gCPCiWeU7grQOViZ6UVWd/g5qZXQIWgv58 7jwlbaUxK/WEQ== Received: by jupiter.universe (Postfix, from userid 1000) id 28A114807F0; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 11/13] arm64: dts: rockchip: rock-5a: enable I2C interface from DSI and CSI connectors Date: Mon, 10 Jul 2023 18:52:26 +0200 Message-Id: <20230710165228.105983-12-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095240_913354_04326C33 X-CRM114-Status: GOOD ( 10.25 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org I2C3 is routed to the Camera connector and I2C5 is routed to the LCD connector. On I2C5 additionally there is an unpopulated footprint for a HYM8563TS RTC. Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index c4471dfe574f..01822dda0b2d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -190,6 +190,16 @@ eeprom: eeprom@50 { }; }; +&i2c3 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c5m2_xfer>; +}; + &i2c7 { status = "okay"; From patchwork Mon Jul 10 16:52:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307417 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 CBD95EB64D9 for ; Mon, 10 Jul 2023 16:53:37 +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=5uFywQLPKZ3jYbT5f0hfR2AUroVB+ocNrUU54uetkjA=; b=T17e1lVnlpxPkI sJR7H5XHNhJz6u62sK3f7EJC6QDoG3x/Ryje2iwkLGx94DQcIGRU0CEuKI0In2OTNce8zBp6gKcKo 83cThKPITogkfOjNzOoGLwqyZ8a3zz8UAzpj6mtYOxNbXtUstqCxfJilVo0OrDDj+g99sr/ji4CU2 evIBfTsgr2+gdwqI6qlYrdLI86t10NoGlqMlTcwcMToSGVXSpdwB6bHacvMY1AaLyruWqjGgYZOxO /crf/AHN4rib/72e4otLDXgcR8VoBZva+D58CvLM+XquKau5kZH4n3LsuuIfa31pFfqjXW5DRCLn7 pDj094QI7BmGdXueCgMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu8b-00CFWn-0V; Mon, 10 Jul 2023 16:53:25 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7s-00CEqM-0o; Mon, 10 Jul 2023 16:52:42 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id A3BB26607012; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007952; bh=uaW3HH5gaQAF27KPDqGks6sLcRizP/fPz2qLsQGc7Ag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=El/Zs90obycRKg1fy0jYWamDvct6KGWlzWQXcBL1MSvVC/4k+P9Kh1i1KqfGC0hJj hOZ9oiS4waXnI7t21Zl0QMgZ7ynyM/m11vfwyZyns7YxEsxwMIunhcznA1Rq0hUVQn AEN+5LG5ERQBFJ/WNuBPnyJGBoQ+RKgYyBeuRhRCKYqDJxAlpuj4KV7AyA1RkCOWFn kDGuoNE3x0e/s6GO8Fhszf5CIUvjKeFVKjY7O9m6dsxwqGkMTBjYPkTPhrtLMrQCFx jQNsjKJJYjECl/2E4zRwu/2YQHhWNuBn0YwOiOIC7wIqiee9w6JPpkuPXV0UqMVOHt AaAJ3qOVcRYig== Received: by jupiter.universe (Postfix, from userid 1000) id 29FEC4807F1; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 12/13] arm64: dts: rockchip: rock-5a: add ADC Date: Mon, 10 Jul 2023 18:52:27 +0200 Message-Id: <20230710165228.105983-13-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095240_446147_A0928FAC X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Enable ADC support for Rock 5A, which has the following ADC channels: Channel 0 = Boot Mode Config Channel 1 = Recovery Key Channel 2 = PWM Fan Channel 3 = Headphone Hook Channel 4 = System Input Voltage Channel 5 = Board ID Config Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 01822dda0b2d..156c93b22382 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -286,6 +286,11 @@ rtl8211f_rst: rtl8211f-rst { }; }; +&saradc { + vref-supply = <&avcc_1v8_s0>; + status = "okay"; +}; + &sdhci { bus-width = <8>; no-sdio; From patchwork Mon Jul 10 16:52:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307416 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 CFFACEB64D9 for ; Mon, 10 Jul 2023 16:53:32 +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=HPEvI/+ED4/zQTm4B5XHbdmH2ake9d973OU0sliwzOQ=; b=SzCTlmh3IrMph8 hPxn6NVNmlGHH06GoLrqcrDQpzTd3Rd/infk9qEUJSz+mC+QI9nXffHoel5i73Qink6wOesT1TagQ ywna8o4MqCNf7cSmz6B1FntITpdkg1Gp4mClvS6bBRN5bjDssf79bBcS7C9nvaJ//aJD0Dj0xxPtP EYu0e6sK/zn7UMrOyADwJlCEcsf8GqTZqEWbcI+uWr+fOdzZQw9KzyUzIBEatKX+q2m54S1Lfvk/x GmRW8a/60wXNxM5HMLn8oqyh/rtewPAGMkACo6TujUrvcwc556lg0mL7Xl8mOUIRJKW9kgVSkHuj0 bgws+jJm17N6X9uguMUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu8c-00CFXX-2I; Mon, 10 Jul 2023 16:53:26 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7s-00CEqK-16; Mon, 10 Jul 2023 16:52:42 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id B61F56607014; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007953; bh=xVJiHHBgSYdFFPYuWJ0JCFP5E3jXfJPB/JrJpxl+6Ik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ILdbPwQegcxLF21efO2MVdXrkDFfjrKje0WkWItjlWMyshyr30keRfkX+PVggOLD6 ro7IZlA6+Xo3ZPNX6I63gHJU7qjYqioTlRLvXhqer/F3ayyV3+7h8QbuccpDMcvcQU dskGp8j7x83sjxe08NDt6iWL9vRh+/MWJQ6Eq70EBbBYkRadQxrsEErIce4DjBEXlB nIlFaS1kbbmMONkiHG8eohByLRilIm6HAOp9nZnhTPKVyNBgAJXWE2CFNovYYQolBL AbET5kYr2AZ+QaalpAA+y9qJHppphCeIZWxpT7N/r9wnKd9RCzzXize3E66n8Gv7rl zLK0f2EYdwxBQ== Received: by jupiter.universe (Postfix, from userid 1000) id 2B29B4807F2; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 13/13] arm64: dts: rockchip: rock-5a: add fan support Date: Mon, 10 Jul 2023 18:52:28 +0200 Message-Id: <20230710165228.105983-14-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095240_550655_A2F680E7 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add the necessary DT changes for the Rock 5A board to enable support for the PWM controlled heat sink fan. Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 156c93b22382..ad6fec5514a0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -47,6 +47,14 @@ io-led { }; }; + fan: pwm-fan { + compatible = "pwm-fan"; + cooling-levels = <0 95 145 195 255>; + fan-supply = <&vcc_5v0>; + pwms = <&pwm3 0 50000 0>; + #cooling-cells = <2>; + }; + vcc12v_dcin: vcc12v-dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -286,6 +294,12 @@ rtl8211f_rst: rtl8211f-rst { }; }; +&pwm3 { + pinctrl-names = "default"; + pinctrl-0 = <&pwm3m1_pins>; + status = "okay"; +}; + &saradc { vref-supply = <&avcc_1v8_s0>; status = "okay";