From patchwork Sat Feb 11 08:56:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Willy Tarreau X-Patchwork-Id: 9567879 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A282E6043D for ; Sat, 11 Feb 2017 08:57:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F6A425D99 for ; Sat, 11 Feb 2017 08:57:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8033A285F4; Sat, 11 Feb 2017 08:57:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8428425D99 for ; Sat, 11 Feb 2017 08:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=YQCQZDcNEuV2sRNCkxsGg4dU6GVI/gXHeIRVbxCfK/Y=; b=nCn JNoaX/UixD7tc3DrkgxERDqiDCO/yztqdD23Z9kLwjx1Tes+0pFTdAmbgWg6J4SROcmrvpus7TxaY HCBq1o/wpZXGhG3KP8ufgZmut2VfYNozWYBRybWtZ+7X4a9pxxYVyPY0fq2RNEHM5BGMoQVOPZPV+ E58bPU6n/K9Wx7uTGTZ12qCDZ9Js4KDRFCaq2y3P1cbNIgmr8U3HLQr5r8tIxaf2taIj96WpTsJtF yB+Re7VTOTQ5ENPnG+3JYeqEvIXLv5G1sS2k8LUNAx1RP5Ld7jMtjdfe2Vfarn/OtY/EBrFZcNVA4 xe/SAvCBIZVZptuj2xyFQJvh9Y0lBrg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ccTUh-0004sp-05; Sat, 11 Feb 2017 08:57:23 +0000 Received: from wtarreau.pck.nerim.net ([62.212.114.60] helo=1wt.eu) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ccTUa-0004qm-Vf; Sat, 11 Feb 2017 08:57:20 +0000 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id v1B8uvmn014721; Sat, 11 Feb 2017 09:56:57 +0100 From: Willy Tarreau To: linux-rockchip@lists.infradead.org, Heiko Stuebner , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring Subject: ARM: dts: rockchip: add the MiQi board's fan definition Date: Sat, 11 Feb 2017 09:56:55 +0100 Message-Id: <1486803415-14680-1-git-send-email-w@1wt.eu> X-Mailer: git-send-email 2.8.0.rc2.1.gbe9624a X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170211_005717_493505_31F0C6E7 X-CRM114-Status: UNSURE ( 5.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Willy Tarreau MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The MiQi board is sold with an enclosure in which a fan is connected to the second LED output, and configured by default in "heartbeat" mode so that it rotates slowly and increases when the CPU load increases, ensuring appropriate cooling by default. This LED output is called "Fan" in the original kernel and connected to GPIO18 (gpiochip 0, pin 18). Here we called it "miqi:green:fan" to stay consistent with the kernel's naming conventions. It's worth noting that without this patch the fan doesn't work at all, risking to make the board overheat. Fixes: 162718c (v4.7) Cc: Heiko Stuebner Signed-off-by: Willy Tarreau --- arch/arm/boot/dts/rk3288-miqi.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-miqi.dts b/arch/arm/boot/dts/rk3288-miqi.dts index 2f4c635..ef702db 100644 --- a/arch/arm/boot/dts/rk3288-miqi.dts +++ b/arch/arm/boot/dts/rk3288-miqi.dts @@ -67,6 +67,12 @@ leds { compatible = "gpio-leds"; + fan { + gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; + label = "miqi:green:fan"; + linux,default-trigger = "heartbeat"; + }; + work { gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>; label = "miqi:green:user";