From patchwork Sun Apr 12 14:54:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 6203391 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 447D9BF4A6 for ; Sun, 12 Apr 2015 14:55:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 71D9220272 for ; Sun, 12 Apr 2015 14:55:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 880762017E for ; Sun, 12 Apr 2015 14:55:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751354AbbDLOzN (ORCPT ); Sun, 12 Apr 2015 10:55:13 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:36631 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750889AbbDLOzM (ORCPT ); Sun, 12 Apr 2015 10:55:12 -0400 Received: by pablj1 with SMTP id lj1so21383012pab.3; Sun, 12 Apr 2015 07:55:11 -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=cdCrFJuSpnWZIL6QCGxNT1BGR01iOhTjTMjfFq4Tia4=; b=fXXXT3ozcEJW78emSXbsSDJAD5MAguhXO1UkwsYr7R2pmea23q6B3+2bxzrw4T9iql GGwf1vvm+tmDfOOv+AgRAAIvIAKbb2ljejBzpjq6oSb4BC9SjfTH/3okVv7cgyBjt7bx E3eLRkputrRW0wVhhpAsJh4AlDRhVkmITomMb5vjXMkRk71+EyKAZOU3i+LrFyW8X/t2 gxIYF9qTZes9XwNGKtQ88z2/bS0Z+asPRb35j9jXcpNggjAUQ3dudLZKbIE9W142uJkZ 4Nna5h4u+ogy7Dx1XByBp/YaWcOM8cEx/j0CPFjRLRwlVoXrv1mn5m61Aj/A9ghw78vw eXcQ== X-Received: by 10.70.36.130 with SMTP id q2mr18599488pdj.27.1428850511716; Sun, 12 Apr 2015 07:55:11 -0700 (PDT) Received: from odroidxu3.localdomain ([115.117.44.43]) by mx.google.com with ESMTPSA id vh2sm4557363pbc.49.2015.04.12.07.55.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Apr 2015 07:55:10 -0700 (PDT) From: Anand Moon To: Lukasz Majewski , Guenter Roeck , Eduardo Valentin , Sjoerd Simons , Markus Reichl , Russell King , Kukjin Kim Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Anand Moon Subject: [PATCH v3 1/6] ARM: dts :exynos5422-odroidxu3 Add pwm-fan node to the Odroid-XU3 board. Date: Mon, 13 Apr 2015 00:24:07 +0930 Message-Id: <1428850452-4178-2-git-send-email-linux.amoon@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428850452-4178-1-git-send-email-linux.amoon@gmail.com> References: <1428850452-4178-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 OdroidXU3 board. Tested on OdroidXU3 board. Changes since v1 : None Changes since v2 : None Tested-by: Markus Reichl Acked-by: Lukasz Majewski Signed-off-by: Anand Moon --- 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 a519c86..04d982b 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts @@ -278,6 +278,15 @@ rtc@101E0000 { status = "okay"; }; + + 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 { @@ -369,3 +378,10 @@ shunt-resistor = <10000>; }; }; + +&pwm { + pinctrl-0 = <&pwm0_out>; + pinctrl-names = "default"; + samsung,pwm-outputs = <0>; + status = "okay"; +};