From patchwork Sat Nov 30 00:40:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13889028 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 AFECFD735EA for ; Sat, 30 Nov 2024 00:41:41 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1unwV1KUNkiy0eVQszdPxtT7PM3cQZg25AOhP0sHsFk=; b=U0/2ivE/g/nBRw n/guwXBgrCQ7tVuOShjOI8aBZMXF9lNUur1cnfJGXF5Bqipjfymz3AjNQanwXNieuJhMt4pfImotq 132o4uMrRdh/ZBr4UJClzmwRpDoXP+JbwspaZnKQGgUWoj4O2XjdyDfoCwsMExjAxa+hLq81qxfJG usiLF4Vhe5rt+xjv1X4OeTpFFdlZ11jhe7A0Q4C4x0tdUJEmLsyLOb7LMAoprfE9UqCjT/Zya27GP gFd3IhnJoADMEqoyKEy5TOGM4MwbcUQzvEEv6uyEFvXerUCo57HCtU7IEOUSvbySUyj7DuV2qS/Zs H4bvGncsJcKBEqWDyPDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tHBY9-00000001B8i-34CX; Sat, 30 Nov 2024 00:41:29 +0000 Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tHBY4-00000001B5t-3ZlN for linux-rockchip@lists.infradead.org; Sat, 30 Nov 2024 00:41:28 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 4AU0f3BG024368; Sat, 30 Nov 2024 09:41:04 +0900 From: FUKAUMI Naoki To: heiko@sntech.de Subject: [PATCH 2/6] arm64: dts: rockchip: add regulator for NPU for Radxa ROCK 5B Date: Sat, 30 Nov 2024 00:40:53 +0000 Message-ID: <20241130004057.7432-3-naoki@radxa.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241130004057.7432-1-naoki@radxa.com> References: <20241130004057.7432-1-naoki@radxa.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241129_164125_094646_F1130479 X-CRM114-Status: UNSURE ( 7.20 ) 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: , Cc: robh@kernel.org, conor+dt@kernel.org, inindev@gmail.com, devicetree@vger.kernel.org, sebastian.reichel@collabora.com, linux-rockchip@lists.infradead.org, alchark@gmail.com, FUKAUMI Naoki , krzk+dt@kernel.org, dsimic@manjaro.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org add "vdd_vpu_s0" regulator for NPU. Signed-off-by: FUKAUMI Naoki --- .../boot/dts/rockchip/rk3588-rock-5b.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 727a5880d87a..3cd8c63151db 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -270,6 +270,29 @@ regulator-state-mem { }; }; +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1m2_xfer>; + status = "okay"; + + vdd_npu_s0: regulator@42 { + compatible = "rockchip,rk8602"; + reg = <0x42>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_npu_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <950000>; + regulator-ramp-delay = <2300>; + vin-supply = <&vcc4v0_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; +}; + &i2c6 { status = "okay";