From patchwork Mon May 10 09:06:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 12247239 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EE8DC433ED for ; Mon, 10 May 2021 09:06:36 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DB5B060232 for ; Mon, 10 May 2021 09:06:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB5B060232 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kleine-koenig.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=RhpSHduMWNlrQqWsL5ATTAcbjpweEdMiBdqMSGh7NU4=; b=dcU50JnGiZ6GRPq3Cqv3KtylZE A8aJblIGaxjbuZ/iUVb2s1odAYJkQhvjtsCcBbWHBMt/3IchCMFZqynqt1aFQKJ6njwvQI2QzhTlG W09PVUSUKSvuteU7uyQobcGo85FtlcrpQSfV2pdks0srwla6DxC5qrfDGyLwfTj2rJL9Oc2uuGplg 7bDQMULDxeubnavhXFxU7PS0MRFbZWSvggqI83LxJht2tU81XvpNPITzaucZRr+mQnTRdBEuh3+Ji 1KDmxwlOtTiWeYMgDwD/uIgFUoogalWuizwXL0k3Dbmu0n5JoXxYnHtaUItL7QSyIFoyxODpA0uYH Gpo/PAkw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg1ry-00Di8T-KH; Mon, 10 May 2021 09:06:30 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg1rk-00Di7o-0h for linux-rockchip@desiato.infradead.org; Mon, 10 May 2021 09:06:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=Mzr7L4vZi2LsQrseyiQ0fmS9pjWrd9vd0Kpq93HROb0=; b=W6SRTHilJZfLEijlqh9GmF5rds oCxgbcuq/KYvsSnAoGonFrysVmW60164H9oeA60JSoweI5RV2KxvPk+tA4flGt8qhmW4G5c1YtuA+ 9Tn0tPzDeIJ7xUK6pJ0qF6MLhNzRHj3s7N+v4hyTDAe9x1cTH+VPmnhzOpIOyTBZrtSuFv1bicR8E woa8uHv0zlxo0CIb86jphS/AdiOinDnf3yUI6saSC1Ri/pHqo75un6lIgrHov3H3aZ9btGY3zecOq 06K2lu1HJuXVxdHed85Zgom+3sdTZGak1dHLJYDXnQbFum7YDNymsSTlsqQcUJhfm3XWbzJeM+gI5 GxsePEZA==; Received: from antares.kleine-koenig.org ([2a01:4f8:c0c:3a97::2]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg1rh-008RLK-BI for linux-rockchip@lists.infradead.org; Mon, 10 May 2021 09:06:14 +0000 Received: by antares.kleine-koenig.org (Postfix, from userid 1000) id F21D5B91E0B; Mon, 10 May 2021 11:06:11 +0200 (CEST) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Heiko Stuebner Cc: Rob Herring , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, Aditya Prayoga Subject: [PATCH] arm64: dts: rockchip: helios64: Add support for two PWM fans Date: Mon, 10 May 2021 11:06:07 +0200 Message-Id: <20210510090607.970145-1-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_020613_557972_A7664674 X-CRM114-Status: GOOD ( 10.64 ) 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 On the helios64 board the two connectors P6 and P7 are supposed to power two fans. Add the corresponding pwm-fan devices. Signed-off-by: Uwe Kleine-König --- .../dts/rockchip/rk3399-kobol-helios64.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts index 39a1d276bd05..1dd9535520b2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts @@ -58,6 +58,20 @@ led-1 { }; }; + fan1 { + /* fan connected to P7 */ + compatible = "pwm-fan"; + pwms = <&pwm0 0 40000 0>; + cooling-levels = <0 80 170 255>; + }; + + fan2 { + /* fan connected to P6 */ + compatible = "pwm-fan"; + pwms = <&pwm1 0 40000 0>; + cooling-levels = <0 80 170 255>; + }; + vcc1v8_sys_s0: vcc1v8-sys-s0 { compatible = "regulator-fixed"; regulator-name = "vcc1v8_sys_s0"; @@ -352,6 +366,16 @@ &pmu_io_domains { status = "okay"; }; +&pwm0 { + /* pwm-fan on P7 */ + status = "okay"; +}; + +&pwm1 { + /* pwm-fan on P6 */ + status = "okay"; +}; + &sdhci { bus-width = <8>; mmc-hs200-1_8v;