From patchwork Fri Apr 14 12:54:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 13211430 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 7C865C77B72 for ; Fri, 14 Apr 2023 12:54:49 +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=PE4ACKoZ/d/09zlF8Shyk5bc6Y92jdtlhVc5+HEYd6Y=; b=VMDt7jV0dUt+3I XCTzYx2W5KKGB4QuLCmrdXBChFL6RopsPFGktxaz4UHLOGjWsNwc/bSxta2cxHX2wO9pOPHNKRnnX oZiRKm9QsAre9eWetDX7Lz/PlfQbm1xcsusB8kVPIV8LT/lDm8Hn2yV3CgSDWIW0flV/Kblf/IWoX gC5QnQOX6o5w5AhBeamt1dA2OfKeptih0PT827KZ+pt23gUE1XU+xSFbCpc6NOb5K1qLbgLdtTcpB Jgw0aF4QT+wMGE8XCg3dGN6wViyyknVhXLVpllZYYwuBZ5hwcRdhgdUUl6DkxqXZtUy7wSWrNO9i9 h1pvT1N7zduvqu9Ww+MA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnIwt-009ZbL-0K; Fri, 14 Apr 2023 12:54:43 +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 1pnIwl-009ZXz-2R; Fri, 14 Apr 2023 12:54:37 +0000 Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 50C4D6603224; Fri, 14 Apr 2023 13:54:33 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681476873; bh=79Xyn3JweqPQZ+zPYKJbf84qXzEBPD+1ifxyVQSTsFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z7hYJfFwBiXHrm9ACTA0C437cyw527Jbo9CMfe4DcZeZGACYQwQLNLhXvBtN/Dpqv e+Ps9NVa3S0DIdT5ZtXA0FnbvuCRsE/M/MPQIa1ZnM6z++ZeNpamvslVB+hHQvl1hu zU9J2F/FCm9Dju5FYvZw2ZOqxlCETweZg00LpSXxqvGKn0enQ2oJsAVqJ2Yn94M9a4 bEdUCXgXhIREYpf2PZb+JSlZipeu7Aw17LhJYrDPQiAUpzggHf4x+gHsG5dsHpgJCZ oITKOIJO9AZMarvxHX0p3rdlns0tcxDxEpebHHbXFF9M+gNRPB0iwFsft0uf+UxQZj Ab0Ofjp8Qrjnw== From: Cristian Ciocaltea To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Christopher Obbard , Michael Riesch , Sebastian Reichel , Shreeya Patel Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH v2 1/3] arm64: dts: rockchip: Drop RTC clock-frequency on rk3588-rock-5b Date: Fri, 14 Apr 2023 15:54:23 +0300 Message-Id: <20230414125425.124994-2-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230414125425.124994-1-cristian.ciocaltea@collabora.com> References: <20230414125425.124994-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230414_055435_925910_FBD3D679 X-CRM114-Status: GOOD ( 10.70 ) 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 hym8563 RTC driver doesn't handle the 'clock-frequency' property, which is also indicated by the following dtbs_check warning: rk3588-rock-5b.dtb: rtc@51: Unevaluated properties are not allowed ('clock-frequency' was unexpected) From schema: Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml Drop the unsupported property. Fixes: 1e9c2404d887 ("arm64: dts: rockchip: Enable RTC support for Rock 5B") Signed-off-by: Cristian Ciocaltea --- arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 88b9f7ddf291..62750beb12aa 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -60,7 +60,6 @@ hym8563: rtc@51 { compatible = "haoyu,hym8563"; reg = <0x51>; #clock-cells = <0>; - clock-frequency = <32768>; clock-output-names = "hym8563"; pinctrl-names = "default"; pinctrl-0 = <&hym8563_int>; From patchwork Fri Apr 14 12:54:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 13211431 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 95A8DC77B72 for ; Fri, 14 Apr 2023 12:54:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+SNvg3cneR+pOy/ZSvaPPpIE7R5RBKaSa4yJNswV4z0=; b=VCmv6Fn6Pi+lwT W58CIj6uZ0f8Z8UdOyw8Ae3Uz3Hab+PaLWXHvZJN6dgj1ROQG4Oy5juTkm17+Ai0zzNHQMJM6BRrZ Ca2FQpWlt695dqIQi3Qhui9tZAoDNqRrw3NiwAYaFhqBCx0t5y8nfxacLOZyJyIQM8v7PDZtPjLRe Gc4pP2bzEGX/Py2PPLzzPmtAE5xGpn7qSyuEPWqPKlMdvhUkpvxevddHAxhx3lEFzWaNi5R1bZwuq XnIpxk4obW1wS9CfJ6u2h1PBJwp8KsHe+vEiQmAPUINIsCAheIX7WC1cpeIj47ry9DlnSgDQBEwgT UwFOrak7ckNOgTmEK5kQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnIwy-009ZdW-2O; Fri, 14 Apr 2023 12:54:48 +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 1pnIwo-009ZYr-00; Fri, 14 Apr 2023 12:54:40 +0000 Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id AC011660321F; Fri, 14 Apr 2023 13:54:36 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681476876; bh=y7x1MkybuYSyaQBnwljTwJm7qDnk3tGE0dYCCnPU/sQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gBVz3kTNR5NfGUgwdO0z8jm7/l8GObeYbfmX0VLEsp4kMrQlwVsPpXgwnnkhXlDVo V8MYWQApG545u8bc6AujCmLLuVkfWvMV2QUq43kso4IGq+4UywMHPA8yjRvs7uFBrl bzgeA1cW1jq3ZuQS0nXV55lahS4QbbJXXG0zO9Z8kwma4p/2ryMALmnPCs1eyACHrv 4Gh4NahTdQAgVcYwiU5CAnw+sV411ZszXp3iRL44cFe4YaN0qmS5P8H+w+B+YQVzJZ kC+RShjH2TzGefoCPgeoQg2tHYRWB6akDa4SH/9Qv6jqbxNNDQ+FMZS8aofuR+2B+S fNiNaU0tBHF0Q== From: Cristian Ciocaltea To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Christopher Obbard , Michael Riesch , Sebastian Reichel , Shreeya Patel , Dan Johansen , Dragan Simic Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH v2 2/3] arm64: dts: rockchip: Use generic name for es8316 on Pinebook Pro and Rock 5B Date: Fri, 14 Apr 2023 15:54:24 +0300 Message-Id: <20230414125425.124994-3-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230414125425.124994-1-cristian.ciocaltea@collabora.com> References: <20230414125425.124994-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230414_055438_596160_40F4F237 X-CRM114-Status: GOOD ( 11.61 ) 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 Use generic 'audio-codec' name for es8316 node on Pinebook Pro and Rock 5B boards. Signed-off-by: Cristian Ciocaltea --- arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts index ddd45de97950..054c6a4d1a45 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts @@ -665,7 +665,7 @@ &i2c1 { i2c-scl-rising-time-ns = <168>; status = "okay"; - es8316: es8316@11 { + es8316: audio-codec@11 { compatible = "everest,es8316"; reg = <0x11>; clocks = <&cru SCLK_I2S_8CH_OUT>; diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 62750beb12aa..8cc97d146a73 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -72,7 +72,7 @@ hym8563: rtc@51 { &i2c7 { status = "okay"; - es8316: es8316@11 { + es8316: audio-codec@11 { compatible = "everest,es8316"; reg = <0x11>; clocks = <&cru I2S0_8CH_MCLKOUT>; From patchwork Fri Apr 14 12:54:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 13211432 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 BA8DBC77B72 for ; Fri, 14 Apr 2023 12:55:07 +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=FuvIauJjGnwaEcohxPtoIeMu+No32DKPKxFvmrDTe0o=; b=cKMAGfoFjgeZtI u6CidAqZUIXOtoKK56s0Wq3gmP3/79a4rOJghwLikfDT5qBATw9JozxXIi3cUl3OxwNFVjui0jh3q KApuXqWSjCJiFmhDQ9l0kqa30TnbVh5tEfdT5fenVew03D6rPkPhuf5dfpsfHbU3QXM666/1peeLV sBkpxZuwio4MxfMQkXTcN8A9FWLnk/39QRn3Z2KOCucGy3pgMp2FUxCut5GjQqcfjDuWRDDXlp9bt +oVqEYfXuQUVMsXVrWqefSMjN66nsHc1jG4LlrNzMFU5gM2u3FWoTCfvZVT3QtQ7f7JEQS288rxRE 7L6vME0jHfVvFtEKVScQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnIx1-009Zey-2Y; Fri, 14 Apr 2023 12:54:51 +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 1pnIwq-009ZZw-2i; Fri, 14 Apr 2023 12:54:42 +0000 Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7B881660323E; Fri, 14 Apr 2023 13:54:39 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681476879; bh=SL4oR9DMBlA3ZRbxA7FV7Lx4/lBBOGSv1cTEyplWL7c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SRiDRcX1dkawx6tH1VBdMScxDGQe3DdIzR9mjYVFaPeO1jHBXMH/e7RBLFXpgh/HV DMmHlUMSOYhhKDepyprD3tDr5IgcxifrMbrYo1+OWC8od9UYPkQ8UZyZPbIyltoppo 3m4/LtxOlXkWYJKsm0rGVn++NVxhnYthVW0z5ojns5SvXG6M5EKUsg4QE2FUdxvYUM P9lNEJV1hcf1bT/Kt75jbY0D7VLopOZ9JLw0H4/4qeDN3B2Vstd3YswNIH+8sATvRF 3IM0BvhVhTSbkAJNaD9TyjRT6aSSgnTbMkicxekbYmfKLPKCfHdL9l7htI714nAAxx RykGTfgFQfKkw== From: Cristian Ciocaltea To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Christopher Obbard , Michael Riesch , Sebastian Reichel , Shreeya Patel Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH v2 3/3] arm64: dts: rockchip: Add vdd_cpu_big regulators to rk3588-rock-5b Date: Fri, 14 Apr 2023 15:54:25 +0300 Message-Id: <20230414125425.124994-4-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230414125425.124994-1-cristian.ciocaltea@collabora.com> References: <20230414125425.124994-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230414_055441_020980_1D47ACC2 X-CRM114-Status: UNSURE ( 9.93 ) 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 The RK8602 and RK8603 voltage regulators on the Rock 5B 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: Cristian Ciocaltea --- .../boot/dts/rockchip/rk3588-rock-5b.dts | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 8cc97d146a73..3e4aee8f70c1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -53,6 +53,62 @@ vcc5v0_sys: vcc5v0-sys-regulator { }; }; +&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>; +}; + +&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; + }; + }; +}; + &i2c6 { status = "okay";