From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFDD0C001DD for ; Mon, 10 Jul 2023 16:52:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231298AbjGJQwo (ORCPT ); Mon, 10 Jul 2023 12:52:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231191AbjGJQwg (ORCPT ); Mon, 10 Jul 2023 12:52:36 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C5A112E; Mon, 10 Jul 2023 09:52:35 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id B61F56607014; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007953; bh=xVJiHHBgSYdFFPYuWJ0JCFP5E3jXfJPB/JrJpxl+6Ik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ILdbPwQegcxLF21efO2MVdXrkDFfjrKje0WkWItjlWMyshyr30keRfkX+PVggOLD6 ro7IZlA6+Xo3ZPNX6I63gHJU7qjYqioTlRLvXhqer/F3ayyV3+7h8QbuccpDMcvcQU dskGp8j7x83sjxe08NDt6iWL9vRh+/MWJQ6Eq70EBbBYkRadQxrsEErIce4DjBEXlB nIlFaS1kbbmMONkiHG8eohByLRilIm6HAOp9nZnhTPKVyNBgAJXWE2CFNovYYQolBL AbET5kYr2AZ+QaalpAA+y9qJHppphCeIZWxpT7N/r9wnKd9RCzzXize3E66n8Gv7rl zLK0f2EYdwxBQ== Received: by jupiter.universe (Postfix, from userid 1000) id 2B29B4807F2; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 13/13] arm64: dts: rockchip: rock-5a: add fan support Date: Mon, 10 Jul 2023 18:52:28 +0200 Message-Id: <20230710165228.105983-14-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the necessary DT changes for the Rock 5A board to enable support for the PWM controlled heat sink fan. Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 156c93b22382..ad6fec5514a0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -47,6 +47,14 @@ io-led { }; }; + fan: pwm-fan { + compatible = "pwm-fan"; + cooling-levels = <0 95 145 195 255>; + fan-supply = <&vcc_5v0>; + pwms = <&pwm3 0 50000 0>; + #cooling-cells = <2>; + }; + vcc12v_dcin: vcc12v-dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -286,6 +294,12 @@ rtl8211f_rst: rtl8211f-rst { }; }; +&pwm3 { + pinctrl-names = "default"; + pinctrl-0 = <&pwm3m1_pins>; + status = "okay"; +}; + &saradc { vref-supply = <&avcc_1v8_s0>; status = "okay"; -- 2.40.1