From patchwork Wed May 13 06:36:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 6393921 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 19EDF9F1C2 for ; Wed, 13 May 2015 06:39:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4056420430 for ; Wed, 13 May 2015 06:39:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62D5F2042C for ; Wed, 13 May 2015 06:39:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752598AbbEMGjE (ORCPT ); Wed, 13 May 2015 02:39:04 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35710 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752124AbbEMGjD (ORCPT ); Wed, 13 May 2015 02:39:03 -0400 Received: by pabtp1 with SMTP id tp1so40723313pab.2; Tue, 12 May 2015 23:39:03 -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:in-reply-to:references; bh=pbmbI9bxEAXHIsLMz9Jt09l/5lp8BVX7Cd2MNm6/PH8=; b=XsaFumIqmpKRXyevA17t8PSoKiEC9hedr2HLckvONiRvhWmHKIw5UOSwLo/cXr1Rot vVYt6qGd4/Itf/xccu4OsBwpwUwXBsG88ygZRDWrb67ixdR3/OGj0kmaie2Psoh8FEri JrFzjl+KfdjQtwH1/AonqTIBB0l/pg/qhGDF/8qF88jhexMgyjuvAC0rovUMcdnPkDXR Gk6BwG5SxTnsR1/hjv4idqp5giIi7GHRz3xJYOnTMxuHCWF2DQI6Y+ozJBEm+s2KehbH HltlxEIZs+t2DF70+Ts3sA4ZT7y+nfxkDcu59+x2w5S1voQ9Zc4wTAz1BMqjFsdWeeE6 9W5Q== X-Received: by 10.68.115.42 with SMTP id jl10mr35420082pbb.39.1431499143289; Tue, 12 May 2015 23:39:03 -0700 (PDT) Received: from odroidxu3.localdomain ([103.249.88.226]) by mx.google.com with ESMTPSA id pp6sm18131111pbb.17.2015.05.12.23.38.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 May 2015 23:39:02 -0700 (PDT) From: Anand Moon To: Lukasz Majewski , Guenter Roeck , Markus Reichl , Eduardo Valentin , Sjoerd Simons , Russell King , Kukjin Kim Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Anand Moon Subject: [PATCHv5 1/5] ARM: dts: exynos5422-odroidxu3 Add pwm-fan node to the Odroid-XU3 board Date: Wed, 13 May 2015 16:06:56 +0930 Message-Id: <1431499020-3912-2-git-send-email-linux.amoon@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431499020-3912-1-git-send-email-linux.amoon@gmail.com> References: <1431499020-3912-1-git-send-email-linux.amoon@gmail.com> 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=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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. Tested-by: Markus Reichl Acked-by: Lukasz Majewski Signed-off-by: Anand Moon Acked-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts index f0ce60b..9446e28 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts @@ -310,6 +310,15 @@ linux,default-trigger = "mmc1"; }; }; + + 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>; + }; }; &hdmi { @@ -415,3 +424,10 @@ shunt-resistor = <10000>; }; }; + +&pwm { + pinctrl-0 = <&pwm0_out>; + pinctrl-names = "default"; + samsung,pwm-outputs = <0>; + status = "okay"; +};