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: 83311 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp249300vqo; Fri, 14 Apr 2023 02:37:29 -0700 (PDT) X-Google-Smtp-Source: AKy350aSScGzWLP7zj4kmzfSq5a6BsIG3XBACUhvgsElXr95aCc/mP555Cv891TE8zMQAJ6+ILXb X-Received: by 2002:a17:90b:685:b0:233:c301:32b3 with SMTP id m5-20020a17090b068500b00233c30132b3mr5068696pjz.3.1681465049106; Fri, 14 Apr 2023 02:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681465049; cv=none; d=google.com; s=arc-20160816; b=RdeaHLkrXJrhyVWpyuhqm3NuwY4fj8NkMCleH1uWB1rmJbbsfzA00PtZBvEGfHd8c5 ikfh1CQMHl+hcaYLG9pGzxNezIZ7jdnmsdca7Eb/l2R9U0bn25VY9GS7vnQKF6AB7H6D VX7c1zMRj3Pn2lNPVPYNLOqCq167XyiK8+O82bmTsF+IBJOc2f21bTtrCfX397SJoSIS uo29QEKFbbGSFcESNduMDX4JpImt6IeW2kZaX9yf/xfy/BTt+qrkvKV0sCiV+qSa/PU7 TYsvVO+h+QExP4ckSo5+YFVImjEB/sG0dQMiNWk3Lh+OVZAlvLJMr8wtWDBfTK9V9zcw 6x0w== 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=WRsZWltjYnn4zVEqQxUvf2a+l3+K2PXEKrU3pFSXn9ypKu9L+kCPTsOnngPM6z8mWx Sd3RVFOaqfA8qy3rtLJaSnGR9lWbpd4xIP95RVMpEqUr6uBDARnbRe84z9NtaAYSs9i8 dMTcsbESvG+ooLIjOliF2kX0aoGhgoF1Gr6KPZtp8Esfl8QSJs+DBoSESyDh8LT1W1P3 cpKwG8K7oIhpnyJa5O7lC9GnuT+UzpUDk2/C/ENrtXy7KS25lw2noklkWqw6jjW8vcWt 4YKL3I0Ua31HghBL0egt9yxQkVg6kVHyXrf/Vb86EG3lLJzJI7U/zV8lbuU+UV7F7XXS YoAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Bqmko3xw; 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 fw2-20020a17090b128200b0022c24bf1810si4206270pjb.29.2023.04.14.02.37.17; Fri, 14 Apr 2023 02:37: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=Bqmko3xw; 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 S229773AbjDNJfN (ORCPT + 99 others); Fri, 14 Apr 2023 05:35:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbjDNJfL (ORCPT ); Fri, 14 Apr 2023 05:35:11 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F9029ED6; Fri, 14 Apr 2023 02:34:47 -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 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-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?1763143894860398467?= X-GMAIL-MSGID: =?utf-8?q?1763143894860398467?= 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: 83321 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp264883vqo; Fri, 14 Apr 2023 03:11:15 -0700 (PDT) X-Google-Smtp-Source: AKy350Y2dFQItOTxjswE6kwBKmX/EnUQnipdmqG4ZmYn/paX1ggvIv/yxr1LV9FlSLS3GWldF7Zy X-Received: by 2002:a05:6a20:42a6:b0:ee:74d9:52ec with SMTP id o38-20020a056a2042a600b000ee74d952ecmr720765pzj.8.1681467075655; Fri, 14 Apr 2023 03:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681467075; cv=none; d=google.com; s=arc-20160816; b=OLbVGDc5jrOHnuujGd7CiQb8QP/1u50ATW6y80cA0dospcRrE4Pm2CUH4mGm58yZVE U68ccZ6IDPUhSPtRZIQcC1RTJ43Q1e5g9+kREwn2kcVOQreYBFWH8i4fq9DgGCUQ5aCq E7J5bSDdSaGfIFfFJ2PAajOCC1qujpU29O6kOxEGfkdbgbUf4M/D7tW6c1W4tMDAB8Y5 lSCU4krB8GOtf5oxw2Tfv/L/aOWVD7iuYpXcRkkx6rmbhbw7FpQzOYX6s11bTfbYK3ty S6LaWCEo2zEtl7pBlRtB3TwtmojoEkVmQO1A+ecLnu0CZluGUyQZ5hVNUSPJJVzSBtob RSkA== 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=NTvsl3dE3rtkTi+1ykJfXsNTNAlqqgfyg5NNjQHFOIs=; b=hWOBsM5QOtfkUQVFjxwItOr1nIvS8mdoZu6RqRgdMsPb9CNW7e4CakH9Gcw9blAefG izrptWOye4JmRWp8Te/kjFrzvYHSA8RncjK2yQLtTrAWzHLoHTSSHr0nyfx5/y2uh8El Zi2szo+fNUc1sy6KfdoDlq6Wb2XYMRYNJTMTdHRiJBWdIYY8Vys5yoiE0tEo5pseJWB/ 0cWBzim3rJA13hQwidyJ5pSmU+Zwxsq9cU5rE3xOKscaZA6Wl1sB8+88S78BkrY4txgH IzidoTV1khJxgC4p/83pu3E2vL4iRlsGnNyJrhvCoTg7g8E2M0D528LsNXWhuCa+Kr8e Jkzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UofXJW8d; 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 t14-20020aa7946e000000b006321d3921bfsi3873438pfq.381.2023.04.14.03.11.01; Fri, 14 Apr 2023 03:11:15 -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=UofXJW8d; 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 S230034AbjDNJfQ (ORCPT + 99 others); Fri, 14 Apr 2023 05:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbjDNJfM (ORCPT ); Fri, 14 Apr 2023 05:35:12 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F62C83CF; Fri, 14 Apr 2023 02:34:48 -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 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-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?1763146020279014253?= X-GMAIL-MSGID: =?utf-8?q?1763146020279014253?= 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: 83316 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp255593vqo; Fri, 14 Apr 2023 02:53:43 -0700 (PDT) X-Google-Smtp-Source: AKy350Z7jgtAjtX8UeCIZETgWViNTOPZH+rFws0p0FZzQnb0vN3jaC1xLg8QEvwGoL/Nnjecav4+ X-Received: by 2002:a17:90a:bb8d:b0:246:b617:c730 with SMTP id v13-20020a17090abb8d00b00246b617c730mr5085021pjr.39.1681466023111; Fri, 14 Apr 2023 02:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681466023; cv=none; d=google.com; s=arc-20160816; b=aUYlkKUjJ07EVLuqxCwy097zKi1MZJvd+1Ej8zKYiyAa19Gf2/buQnojABZI/ALceX s6pKMQb+sn12LGxD6VCISO2rvRUI+wQ5syXebDzvf0m169MluGR+Z1s+smwe52hpBJ1j nQVCdzfeKOcUot7EfefXXh+QtzmDcmRjC/vHFxt+N7WgZ1SMeFUlgq3QNCjRSL5NqkNb pq/YzAEABTB4GPUJND0Vspa9uXTKgreTn0zB4NfG/r6pIWgczjRsuSqztvqJyRjeDdTJ IQwqeJvqS1x+CgoPyrPJ+3pl8o0FFoAplDe77lYwpw4PjgGJc6hPqV9LMcUxPdOP1E/5 37Nw== 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=c4KlZSdOKhOzTeDg39+a3CXYtGzXFSmC0I/dL9ojJw23QMPCGYLRsM8cDMrWrgIWoE 9FN97BrFy/ZDtZHHXH3ai9MXGreQy+gCtFIvUM0yMsHT6KMEaWFiJ4WFP+CE53v6xOhf YfZ4O8RSNayhfvZMbxgLRJguDhlYpJrbHHHj+w9d6OQbQgqaWxsjW1UGcIKiJH1w1nmD 63tm/LrddeWC4VMY7b9iLtNtQIqOPRhXB0LSwKfnrrOD9VQ/hvEgKOYzMTSQR85zTEWc tJmJSU+mdU43FGlZvYAetXI5jLKWLS0Y/j88f4p89wkaGzCKh4hNKNMFV7y2HQhqaCto IDEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XfaroY62; 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 j5-20020a170903024500b001a1deff6062si4506692plh.281.2023.04.14.02.53.29; Fri, 14 Apr 2023 02:53:43 -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=XfaroY62; 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 S230004AbjDNJex (ORCPT + 99 others); Fri, 14 Apr 2023 05:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjDNJeu (ORCPT ); Fri, 14 Apr 2023 05:34:50 -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 0F0E683EA; Fri, 14 Apr 2023 02:34:28 -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 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-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?1763144916793831174?= X-GMAIL-MSGID: =?utf-8?q?1763144916793831174?= 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";