From patchwork Fri Apr 14 09:34:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 13211175 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 8A766C77B6F for ; Fri, 14 Apr 2023 09:35:22 +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=1h1YfJDRqVTbXDqlZgCJtMIClYm9g1+pVW1AS8Ykq9A=; b=jdn5bu06MWXE0w JIbU9y4E2XJ+6wWCtprFDpVjNYwtA5/mPWjipZZhf+7FOar4jwv2WFu3gt7RKNJso5o/1kveRvyU2 HF4r3aZAAH8qgKiMvbTKlcUoznNtvXS6prmJjIk+goLtWRrgGCZPz6DtOf+mHEQhY1XXsPTO36cs0 1X0RYOCQ31onTkHafAekrg3q03/55sdaSd7LQZNpfMuWKE9CzILpVSZD+B6tdHrvDVWyxKWq/XaBz tM5+QRkb2PIl1/8ft64CuP28XfQ8g5c1xZFEYhZZ3UFMVwve8rTXAf9V9CRvrYtuPCPF24LB8FKOb safgkmBn9eMElG51W31w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnFp2-008sck-2D; Fri, 14 Apr 2023 09:34:24 +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 1pnFoz-008sbn-2Z; Fri, 14 Apr 2023 09:34:23 +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 E3A1A6603208; Fri, 14 Apr 2023 10:34:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681464859; bh=79Xyn3JweqPQZ+zPYKJbf84qXzEBPD+1ifxyVQSTsFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bqmko3xwA4v2xultFWwlwnPdQOQMVF/Xb+z/A9DfjU24qRJ+nX4zlAJXdg/kzuo28 Ps6VBqu1HlosmJu5ct9VL4AbYVrNmPJjafw0VGCxDnqYY78wsX/UpAhvHscqEJ8keb pATLT5V5XeiYDcHMMNXN6+KwM/M+9G2NvjWn4CJPE1tnBPziDIIKPaGUvUkqbvO3Sz 1qpiIkpNiLtP3BVRZPyU+13u+Vk6+7deiml3BEOT5yCycLIIiCPuVyotJRDTdx7zAi G2HIWs4z1LEtRBqqG4Ji96bNst/FH2sw8O5r0RicQfciQIINoRjAN0rLwKFDfjt7dm u8bP9LGtbYzfw== 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 1/3] arm64: dts: rockchip: Drop RTC clock-frequency on rk3588-rock-5b Date: Fri, 14 Apr 2023 12:34:09 +0300 Message-Id: <20230414093411.113787-2-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230414093411.113787-1-cristian.ciocaltea@collabora.com> References: <20230414093411.113787-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_023421_980165_9EC92650 X-CRM114-Status: GOOD ( 10.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The 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 09:34:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 13211174 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 5EB61C77B6E for ; Fri, 14 Apr 2023 09:35:19 +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=vUxrOx1Pu+i+mQAvorKR7C6zjvxK6V18RgUBSsZ7u7s=; b=w9Ly/RFTK5IpOW yCcCL3N6zjRxO3PzN5pDcTxyqzqFws17aKHm+mRzvpQsKfuF7YSMGMbWZzX1HRLkfUXIlk7Ku6XxK 4esMS/HjTkN51RsOxGy21q7tmOFISi2qTgJBzhyGUBUlESMO+SRiT9U6TZZkK4s6nirGnAJr2O/br lh8xj29mIwLag3Tb5gn19kFPJjgrl4ZyTkf/seVMTiAUWVOWZlt9yvSrN8KlEXCyf2c9uxnhMkT+4 ND9a+5Y/mVOJcr+ArU2lQSt4fR78J7qBf76pKGb5XXcs/5ogcfl0Wa4oVlxxPxtFZNzB6vkMRXOEO uf7nNfWcJx16AFhsCjkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnFpB-008sf8-1M; Fri, 14 Apr 2023 09:34:33 +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 1pnFp3-008scK-2t; Fri, 14 Apr 2023 09:34:27 +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 DD467660320A; Fri, 14 Apr 2023 10:34:21 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681464862; bh=0pJdxIJkVJSQqKBTxSYqm8uKUIxBe37vCYuK7W6XaLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UofXJW8dvLsF4YLVoEdLhw33+WIoxvTTiUglwVfH0K9csK9WtuiwKT4OoJixDaX3k hv6YZvrK1Ri0ISZ/jReXdX/pfzK2hPStHZBNeNUchHnCedA+YX/EzVLhUvVqWttyi8 tNrvYnIuYETJOQSBhx60/s6+By5xrfjaSnXOa1mT2ul+dPxrCV6S6ksASz2lkIl5xF JNJUAhLpw9/XTYjZjoHFw9jDC9cyoHER+9Mv2qOeoLr+yEqjlpxMoucVbQ+7FWPFoP 3Wc5b/5Cnghz46JzcgM23LvTy1YAWJBam8tXlAycLAfHwpEF6a8AF9k2Y4+kwygLgP dU+cr9A/V14mA== 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 2/3] arm64: dts: rockchip: Use generic name for es8316 on rk3588-rock-5b Date: Fri, 14 Apr 2023 12:34:10 +0300 Message-Id: <20230414093411.113787-3-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230414093411.113787-1-cristian.ciocaltea@collabora.com> References: <20230414093411.113787-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_023426_061368_FAB4B601 X-CRM114-Status: GOOD ( 11.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use generic 'audio-codec' name for es8316 node on Rock 5B board. Signed-off-by: Cristian Ciocaltea --- arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 2 +- 1 file changed, 1 insertion(+), 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 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 09:34:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 13211176 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 BC1D5C77B6E for ; Fri, 14 Apr 2023 09:35:22 +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=P/az71a+aW8AiK0q7jmfIxGnnTCZRxl5qfk/OvwTg+k=; b=eVQPcO3Cdqcmra x6/10YXb9NQzzcwBLnF3qmiT3913BJHInYEEQjPPWXKr7T5X/xpgLKWB6lFAxSwPMfdaixLzVX0Ca fVWQfZIlxaoEEC+m8zBxbDOnppHPT/WArW1jBRpxb8PpJFaNljzp6Zvj5k3f+y4MqRV++S8kuFWvd bWjyNXb+4QmuiUcj00DBP5ry/nBQdhhApFkkfw0GbCao1JB2vnK6Gy+3xvI7pKj9eNl8lbMPEH0Q+ jwRn8R2gYTvLuCUxpJHwPnq3Cv3Hae9jM0tpCPhV1mZ3rPcaE0AmheCr68KhiczYdwkWzvcaWaBsV Fb14lpHoKlAGdal4Bshw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnFpC-008sfl-1X; Fri, 14 Apr 2023 09:34:34 +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 1pnFp4-008scs-0h; Fri, 14 Apr 2023 09:34:27 +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 DEB2E6603211; Fri, 14 Apr 2023 10:34:24 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681464865; bh=SL4oR9DMBlA3ZRbxA7FV7Lx4/lBBOGSv1cTEyplWL7c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XfaroY62eCJ7VoD5+eR+PFu2Ryz5MjKaHeaX6EQy8APG9o3KQi0D9YocbykyTf/qO RCfQ4DNV+yB898E36azimgZPM1VHvrIH0dgMO+5nx7w6yJYZ7p5ZYxwcxJXad5pg9I Y7s3mhdkqNWidm8loUMS17nPgw6arKWU8LMFXO3pHbYJU7ivCyIerolWlT2EtKdxYJ mikDDDuFOdor4ur3roAHc6iqPEyYYQvmDh3jXOS+IQYhOA5aXXu5LBFcIvgOSJmpYN ChqGlhWclV4QbC6L7ZcnkfMFR4RRuhNBhaV1DxPqO8UdVQMvdnOSYsjIgVTLjiGJAg z2kNVIDklcsqg== 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 3/3] arm64: dts: rockchip: Add vdd_cpu_big regulators to rk3588-rock-5b Date: Fri, 14 Apr 2023 12:34:11 +0300 Message-Id: <20230414093411.113787-4-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230414093411.113787-1-cristian.ciocaltea@collabora.com> References: <20230414093411.113787-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_023426_379892_4C04412C X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The 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";