From patchwork Wed Feb 23 16:20:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12757178 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 06D29C433F5 for ; Wed, 23 Feb 2022 16:21: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: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:In-Reply-To:References: List-Owner; bh=USwbAChlKhsnZuTRwr6XeCAnxJuBxczhNd6kvNfbBxA=; b=S6alCOC8ZRpXe6 EflINhgmMoBy8w87CcTzxrL+A4JlFTHCrKOhM/FOlzzgF65NekFGfLrD6hQl/yUYjKw2EyQdvTmMM pfch7WwQrA3ZupDOQy+CIcY/LVXuQGageFPm5WMb7a5x5MUVD7TMCJF6t9bjZBhuAFc585W4ygWjo MtvirlT7SUv76rtdI1ycIm4HdhsmcEjpX1H6jQ0yJYepCvyUJne4+KyzU2yRjauXWtSlAfSIap1qC uAPzs2MmSZFKODCDDh6HfZz6dxe6lfV9D8PJWKYK+wvwJMny9oRdOIaRuI5LeJD1Rksmd7RdhwIoj f0mKTiq6wPzYPGGy+Rbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMuOO-00FHTZ-M8; Wed, 23 Feb 2022 16:21:28 +0000 Received: from mail-db3eur04on062c.outbound.protection.outlook.com ([2a01:111:f400:fe0c::62c] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMuOA-00FHMe-7d; Wed, 23 Feb 2022 16:21:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YYlcIGaeCuUDXQYnKeKccTMHSdAevX89tHtvwdSNFVgU/rgz7Yq7pEABifhurv8dNUWsfPXJyIAo30ErfByzOdZfHHp6+fx+yGW/O5rQ6mzBZfIXx+Z7YjjicSoJCZyWbK9iL8U9HtMwBYevv4JRBnqJAqlnXnfuybfr4sAfWJbhCu53How8M/yw+Yq8LhnvxubgXniw3bV5xkUpRr9QEgMvNj7RlQYxV8YD+kmFT+m5B6tkpUQh3W6ThhYJa6HVBL8XAWer9EBWuOnHb8zar5H5zj466E8V/WVVf7aIcY7t6XdGH9Q/8Fuwz8UXYAF8alsmTNaqmyoPlE+FNQe10g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lmylffdE7ICLsXYq7mnD3JZBs6zEm80G7C1Ek+QXQ+4=; b=DuOjxv4zr58M2hZBaFHB/xaO33AmLwqdNNbIUizGTGw1G7ldhQHtpHVE7tk2pmysD+z/I4kq2nVT0UdtKZGwvtjIaHEG9asMd+NCR2+GsRBc2zBwWdclCeKRhWQrT7TqnBAudXdrnMtf8yn3FX3ohiV0v4Nabl0kKwuC8otd15KzphTHO4y40dRCCwhRR+SIBhxtGOJfBMeGGDOJ0g/H6wv8i+by0emGkAl+gRV+NWwYBTJDyMnlE/io3N8SYxR3iZK9uNZFYGmj2ZeXUkPCmLJlJZsCR2NVIRQThGOGnquxw8CVkiE8aQJfM8WXDGawf9lhawCRZyi5fOWRKjZDkw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lmylffdE7ICLsXYq7mnD3JZBs6zEm80G7C1Ek+QXQ+4=; b=FJAbuawVhIbsh5X+r58yyaBO12d8VqkWULGgsDQMbuO9Xl9yC0bZYUe4/WQkWxjT3mmeZVq+hev9FpIgjIMP8r37qwnXMYEcnS6o9jrFgjQf4Ma306ycDKLcZWfZiW8GMwDF8CjMDTOBswKWYfw+bU11NEJU2Gda6DJdMWCIkz0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by PAXPR08MB7264.eurprd08.prod.outlook.com (2603:10a6:102:213::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Wed, 23 Feb 2022 16:21:07 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049%4]) with mapi id 15.20.4995.027; Wed, 23 Feb 2022 16:21:07 +0000 From: Michael Riesch To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Heiko Stuebner , Michael Riesch , Liang Chen Subject: [PATCH] arm64: dts: rockchip: add the vdd_cpu regulator to rk3568-evb1-v10 Date: Wed, 23 Feb 2022 17:20:54 +0100 Message-Id: <20220223162054.1626257-1-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: ZR0P278CA0175.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:45::17) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b0f871a-73ed-4d96-ddec-08d9f6e87ed2 X-MS-TrafficTypeDiagnostic: PAXPR08MB7264:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WmU1zMw2mhLgk1L3xUADttidESynGoIjDUJIyGEQEoGUDUt7/SSpeID4EgAVVWPsig1cfMT2tEb6PdP+MjA7x1JObET/RcHCODowF2mXY17JZj2fIPWbqf1RKt7yMeo6YfVfhRjWAUyCBJ+3imOeE0IowmVsc/4T/CTPTY/gPJ6g/8AXLs42xpAJaZ4nY67hwIAPktoAfsjeV21gYvShAY+tdpIA/22gHZ1rY1HbMMoWk/0LjduZLzpR4MEWRNMMRSH+C8QlQ3tZbZhMIq1EIFoIfiPkefyUQ0xKrwXyzdrdRznOJdzA3gvPouNnkcDlcBWSDDgHqu8kiwgr/h7peTEnYSNPDk9311q4UudVvKgImmlr/iD96B4Uk/CUjTUFIG3n8JS3Ddn/QJkRvrHnce6FsBxCPA/MKG+VWclIqVciiSh4Hzp8wDnlaCendrQutUw0EAvh78B5VKZIa2J+INiBVpogfhrtx3iGK6pQYHu0b4en5O7ahK6xIxRhPY8UUjUQmPA1Xsin3x9FFSk+CY7Yy+tMrEF7/RjAOPcOGv/CFn3SGB5GRFWVncQ6/P/kIsL6vfEvATHA0oRJN1UhqZIkxHSdmh8m4VkCYNt3OTRERcJ0Bq/H+pVdhSCaX3aXjTE/ouSL2Jr2/xehxfHVwA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(136003)(376002)(39850400004)(366004)(396003)(346002)(66476007)(66556008)(66946007)(4326008)(83380400001)(86362001)(44832011)(8936002)(316002)(36756003)(2906002)(5660300002)(8676002)(186003)(6486002)(508600001)(6506007)(2616005)(54906003)(1076003)(38100700002)(52116002)(6512007)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tc5tfbHgnR3N+COHHwAMUrT3kRT5OgZveMkvc1gNkhfY9XUTJAr3cgOSo8uoMkshpzQQI+v5ckaIDU49T0/kzs3iUjtcWgGFsRtAbCbR89epYW13jsxiD/liV/Hfcl1vZqWivadF/YmANUGptTbgQynFOzfkzt9LHUsKYcknIzBnqxUV1qY28ZT5BhMfsMZ84WBvX2PygagN6cV0Mu1KIyYJGazlzGwRgUiiK7PDuMOzAcjJqq4VPYVPeHEsLhEAGZ7ESi3rCxpCx/S2ORIascCMoNMQhMpBb+Qpooc+o+8bPhJDRBWKrsld56I3WbsxpUjcWo5qi9zbPEVLal8rT0jDa5RQoKIuJvfEzsZ7NMs7c4pN0HFzgeqIsPc0M7qOC5rs9lUHHefcL1FWRZOQW7AnpbRaylc/+bxyAd8dQAX4gHZq+We7KDISlFQk+YT49LeYPcGHVb42ak4xwP6LiuG768YXw3F3Vi/1mWeaXFWEU4EXfCNd24WginR1rxfbEr2gLwYe3V08L2df9QTAd9p6mvVbZyeMeracoULtYe7st70YCQ1Ai0J9ZHF7TXrL79xgHCFCgjORE0HOZXldC74EacIofzyCpDD9T09mIX9MBS3NQ1DRIPlllAhySkGDYUJl4AIIDslBJXOmScdUi2IDFWk/qbHIfdYViZE0LWMXaAsaE3Uku0XPCsGKjjuvaAVxBIZcae507yKhfAX4I81kKuVE41j0A2HFhzLn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d96-ddec-08d9f6e87ed2 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2022 16:21:07.2104 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uEL7Jw100moVQgQwfYo0HhTanza1mGxoBcbwXVyfqoYgR72pooc70AC3tJ8o+OKotxbRXfDSIAzLtDplax/OaDLr0q4eHMikTRz8k08/RQc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7264 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220223_082114_363048_5CB54199 X-CRM114-Status: UNSURE ( 8.72 ) 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 TCS4525 voltage regulator provides the vdd_cpu on the Rockchip RK3568 EVB1. Add the device tree node and connect it to the CPU nodes. Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-evb1-v10.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index bb7177ff92ac..a794a0ea5c70 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -136,6 +136,22 @@ regulator-state-mem { }; }; +&cpu0 { + cpu-supply = <&vdd_cpu>; +}; + +&cpu1 { + cpu-supply = <&vdd_cpu>; +}; + +&cpu2 { + cpu-supply = <&vdd_cpu>; +}; + +&cpu3 { + cpu-supply = <&vdd_cpu>; +}; + &gmac0 { assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>; @@ -176,6 +192,23 @@ &gpu { &i2c0 { status = "okay"; + vdd_cpu: regulator@1c { + compatible = "tcs,tcs4525"; + reg = <0x1c>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_cpu"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1150000>; + regulator-ramp-delay = <2300>; + vin-supply = <&vcc5v0_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + rk809: pmic@20 { compatible = "rockchip,rk809"; reg = <0x20>;