From patchwork Sun Jun 14 10:24:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 6604231 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 18B199F326 for ; Sun, 14 Jun 2015 10:25:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E7AE2063B for ; Sun, 14 Jun 2015 10:25:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 21EE7205BA for ; Sun, 14 Jun 2015 10:25:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751361AbbFNKZF (ORCPT ); Sun, 14 Jun 2015 06:25:05 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35711 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750968AbbFNKZD (ORCPT ); Sun, 14 Jun 2015 06:25:03 -0400 Received: by pacyx8 with SMTP id yx8so47461023pac.2; Sun, 14 Jun 2015 03:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=KpTEAi8ID1BLRSrVFb7G7n12Q4KZArSx9FhwPjziH0E=; b=ZmiEle3khFr1l/Svrc9AgSR6QbRt7DBi2KI1OALHkL8O6xKwf8WNinhmaVOc0eUqTB JWeu1nnfy/241szUIZyR8BioOu9iFPePEOH7rDigBu3a6PH/T68rnQFzx26we2ot58QT aZvWixgaLb+fTkBzAm5Z7RKSkvNmUuBh7xMqTbICO2+a/fOplBPILU0LMpPggjn+iwpC rySA0b9aiKOItEejzwW4e0G3joZErINlBBudxhZ36izyg4cdkPCA6FUCEEzxn2muavXJ oeyVovlWyha7jZRHN1L1K9MnodBRaRLjk2mB/tHSnDV0exntaG9/jSTAF9/UWWBSypbp 81Xg== X-Received: by 10.66.218.6 with SMTP id pc6mr38166933pac.20.1434277502872; Sun, 14 Jun 2015 03:25:02 -0700 (PDT) Received: from localhost.localdomain ([103.249.90.212]) by mx.google.com with ESMTPSA id da2sm8853079pbb.57.2015.06.14.03.24.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Jun 2015 03:25:01 -0700 (PDT) From: Anand Moon To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Kukjin Kim , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Anand Moon Subject: [PATCHv6 1/4] ARM: dts: exynos5422-odroidxu3: Add pwm-fan node Date: Sun, 14 Jun 2015 19:54:02 +0930 Message-Id: <1434277445-5243-1-git-send-email-linux.amoon@gmail.com> X-Mailer: git-send-email 2.4.3 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add pwm-fan node to the Odroid-XU3 board. Signed-off-by: Anand Moon Tested-by: Markus Reichl Acked-by: Lukasz Majewski Acked-by: Krzysztof Kozlowski --- Changes rebase on git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung branch for-next --- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi index deb8d78..a2f9941 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi @@ -107,6 +107,15 @@ clocks = <&i2s0 CLK_I2S_CDCLK>; }; }; + + fan0: pwm-fan { + compatible = "pwm-fan"; + pwms = <&pwm 0 20972 0>; + cooling-min-state = <0>; + cooling-max-state = <3>; + #cooling-cells = <2>; + cooling-levels = <0 130 170 230>; + }; }; &clock_audss { @@ -461,6 +470,7 @@ */ pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>; pinctrl-names = "default"; + samsung,pwm-outputs = <0>; status = "okay"; };