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: 83393 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp358581vqo; Fri, 14 Apr 2023 05:58:29 -0700 (PDT) X-Google-Smtp-Source: AKy350bOUjCZxclq4awxyP7Fyh12DWKpyimqFC//T1zOQ9oNZBF23dvGNwZ/aPajwUZr/gADzckH X-Received: by 2002:a17:902:e751:b0:1a6:7632:2b20 with SMTP id p17-20020a170902e75100b001a676322b20mr3510297plf.40.1681477109119; Fri, 14 Apr 2023 05:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681477109; cv=none; d=google.com; s=arc-20160816; b=LrMGcCK/fYG7i0xv1YikWwH3XwUY32ZZwOrHqqJtBScK7yqX7JHDdeX8r5aqlkOjwL Wd24q8TcWDhogYSb38gOKrZFRnCznqXU9nfxcXZOS6f5z985ubQX69lhniKFTj8MwRoy /9oUsckbq6Bog98BGufZBcccOVBM6NO+m0WE35rvLZQaqzrU80xGC0Ql31U/bJxPufj/ JbzRttyylmW4EgL+5P+ljVImj3+2yi69TSrt94mgsdvZSOAhZGAeDJf1giXoLFVBlxNz OWHbPGHXbHfvg/e303vEImf35FaxBe8zj4b71ace4nCYJjjfURJaoxHtgzTnksUpQTl1 HmaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3HLbXlFIi6HnhCh3a2C6poVWbSpbIWiH/FaYjakkbXw=; b=v8MjTYPN0HYsC4hphjEpcpYjkHWOvl/7iORBtg1Jc/Tqy2INLoPvKDfcm0j9B1SzWN i89Gg0Cye1Ejhvtr25+GUK98Ry8JWJVfisQ2eJoLM0jqQJ9G7Jg4iZkUxwrMcCm6wufF ILazLXwHCJ1Zcca5AYv5em5E4QAa6f+GsWDv2KlD0DBCpey+qGJmGFouaAxfgyEwnUmK V105X/BuAYcqVaTyzN8hslwz/d8PjisKeetxshKeBDp9A0M7zjcDvzjJLEpeEZJ8csu+ CayTWtHIGTc8/XtpzMZNObHHl3h3fk7nZmUSO5vSjTbepjTb/BeqHBTCeIp6s2Dq0SpC 3ydQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Z7hYJfFw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a170902e81000b001a5783b9d5asi4807752plg.221.2023.04.14.05.58.16; Fri, 14 Apr 2023 05:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Z7hYJfFw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230291AbjDNMyi (ORCPT + 99 others); Fri, 14 Apr 2023 08:54:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbjDNMyh (ORCPT ); Fri, 14 Apr 2023 08:54:37 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8EFF5FDE; Fri, 14 Apr 2023 05:54:34 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763156540876891562?= X-GMAIL-MSGID: =?utf-8?q?1763156540876891562?= 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: 83394 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp358585vqo; Fri, 14 Apr 2023 05:58:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ag21RpP9oOUDpx8aKWC5yPsnUqm9/2PKEraNXPsPssMl2n7RTXaMF/gvkGezDA7nKEbK3N X-Received: by 2002:a17:90a:c797:b0:237:30ef:e593 with SMTP id gn23-20020a17090ac79700b0023730efe593mr5320377pjb.24.1681477109446; Fri, 14 Apr 2023 05:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681477109; cv=none; d=google.com; s=arc-20160816; b=lZcIqFBVDN8DnNUYWU8fr97F0Ltpo6IPoBujKp4LnwdbchAl0EeltbOsHmNLsNs9O3 1wX1f1bkrT5LcznDRayAoFJ7NfTLDQ6Zi/hveDoCkXFz0Rn1rGNgQsh0LC4xhi+ebdIJ YscUuWkZxbjgAbphmDVkyjzRjZWhNESqXHyFq/oTzaE0R6P82h/cot1cD5ZcvLDZXnHE jDqrm6oRimLGgJJGwqkY1QgWEpYnHo7zL2alsCwAz9CMBAJWex2ftKVy7PoObKp3GAH5 vUJ2YsCoqcu3j5f2k5b2/i1mpkA8zXUfu5+0VCHFpKlLnfPnSc0oWn4LHJpwaCz5YHLd 2Icw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Uurd5vnkawckljW7AZOppxH+nfV3CmjrPwl5rMi6jUI=; b=Gja7Do7QgLQTavLugZv5UxtkzwpQJThZYUXMpFdZSmJKNMg06JVr7YRG5XK9FWmkBD 3MEiGGSlQ5lJ9S8SvZIMFwshIJLwbXUr6CfE6WXpkWbN9z5Rycy6NWDGIIei6wUBCY9Y JxCHAAzwOS/NpcEdLZRFYVsTMRkBZEu0h5N2w8hB7aKIOfrGwSKZ+WJGfHWv92mInuI1 SiKzZwUP3d8CaYxhWdxVd1OAmV5DMXKiN9jrIcvLaVsujNrj7vi+YOSrVKyesRdCMKMQ KKtcqXudilazHqNylrFB8fpzUUhX+D1Qe2sFUMoWDE+FbP8VvEXJo2Csjkrh3mOjXI/P KrBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gBVz3kTN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp10-20020a17090b190a00b002372f2c4d9dsi6980065pjb.44.2023.04.14.05.58.17; Fri, 14 Apr 2023 05:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gBVz3kTN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229989AbjDNMyp (ORCPT + 99 others); Fri, 14 Apr 2023 08:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbjDNMyi (ORCPT ); Fri, 14 Apr 2023 08:54:38 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03C319ECF; Fri, 14 Apr 2023 05:54:38 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763156541415047214?= X-GMAIL-MSGID: =?utf-8?q?1763156541415047214?= 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: 83400 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp372576vqo; Fri, 14 Apr 2023 06:14:14 -0700 (PDT) X-Google-Smtp-Source: AKy350Ym6PcU3r3MNiutl4fYkUZShclbHs//R9ESMivmgcun0uVFwRPBWJZC0jHXXMmTqvvTfPEZ X-Received: by 2002:a05:6a20:1454:b0:ec:414f:8f9f with SMTP id a20-20020a056a20145400b000ec414f8f9fmr7267186pzi.25.1681478054323; Fri, 14 Apr 2023 06:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681478054; cv=none; d=google.com; s=arc-20160816; b=HGIeh+rUtZIpTD81nt7AUeJTCuDHzVX67MCIEwKU6n907hBCJjbyZO2YCX/D9/dsKC o+LH6bhRvZwrlchdrfs8mMmeXRaXKaYfoG4WRn2ctajY9ic2nsxu7dZLINA/LgB3PkMM 6kzeuguZhLJjyEk1aI4F6DoWHYx4/nzDY5L9pYiLM9YySVbubDSYRd28CYdMs2DiuhgI gLh4OacYD7G/yDM8N94yBpWvFqKelQS5m42xcAdChBje6hyx6aZwPS2SEKeqepeF/C6w jSBQ8D6KOlV+EMygW5ujzdMgDU9fyUE4GZIsUh8PaPzYfd8qH80EUBxOFo5mVmgQX44z vfYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pzJenD44ss0NiQ8wh5aXnbf3IFa/OaCVyCJWlzBYrL0=; b=w3R+rR7PdCrJXcAVaalJbtNiM63H14HFdbketsCsMBtL8Uv5DIrc2N+uTUVJYrbsR/ LeBp9sSJIXYamL0+5IIQvZLoy/ALrt5wk5zXw6+NC3ChYK/VcT3DP8POkAmz6I707ch8 dZMgTzU2woQD2vEjZsgz3pNORn2uGuo8B+uwDeE/WnltHRR0pFu/XxXnbg3fet9/R6Wu b3pmKsSQW/wUmsfddBlBvHdIQMK/b9KZ6sWpj3Lw5DNv/MG8EBvTdsZj9pK/vzdMkyLD cgDb94qZZC3rcPmafmL80/e+yaHVFe82D8qfAFQx/jWxz85uJltQGquz6r5ZhX7qjvbh SJaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SRiDRcX1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020aa78ec7000000b0063b64e61649si1858408pfr.6.2023.04.14.06.13.59; Fri, 14 Apr 2023 06:14:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SRiDRcX1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbjDNMyr (ORCPT + 99 others); Fri, 14 Apr 2023 08:54:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbjDNMyn (ORCPT ); Fri, 14 Apr 2023 08:54:43 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 945DD93FF; Fri, 14 Apr 2023 05:54:41 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763157531919247147?= X-GMAIL-MSGID: =?utf-8?q?1763157531919247147?= 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";