From patchwork Thu Oct 27 17:47:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 9400053 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 827406057E for ; Thu, 27 Oct 2016 17:47:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7661E2A31D for ; Thu, 27 Oct 2016 17:47:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69DCE2A321; Thu, 27 Oct 2016 17:47:35 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A651A2A31D for ; Thu, 27 Oct 2016 17:47:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752728AbcJ0Rrd (ORCPT ); Thu, 27 Oct 2016 13:47:33 -0400 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:49763 "EHLO s-opensource.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934036AbcJ0Rrc (ORCPT ); Thu, 27 Oct 2016 13:47:32 -0400 Received: from localhost (localhost [127.0.0.1]) by s-opensource.com (Postfix) with ESMTP id 68EF2A1352; Thu, 27 Oct 2016 17:47:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osg.samsung.com Received: from s-opensource.com ([127.0.0.1]) by localhost (s-opensource.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6IWZv7BDHtK9; Thu, 27 Oct 2016 17:47:38 +0000 (UTC) Received: from minerva.localdomain (unknown [181.121.136.80]) by s-opensource.com (Postfix) with ESMTPSA id 2395DA0E78; Thu, 27 Oct 2016 17:47:34 +0000 (UTC) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , devicetree@vger.kernel.org, Kukjin Kim , Russell King , linux-samsung-soc@vger.kernel.org, Rob Herring , Mark Rutland , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] ARM: dts: exynos: Use macro for PWM signal polarity in Exynos4 boards Date: Thu, 27 Oct 2016 14:47:17 -0300 Message-Id: <1477590438-18095-1-git-send-email-javier@osg.samsung.com> X-Mailer: git-send-email 2.7.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Using the PWM_POLARITY_INVERTED macro instead of the hardcoded number 0 makes the DTS easier to read. Signed-off-by: Javier Martinez Canillas --- arch/arm/boot/dts/exynos4412-odroidu3.dts | 3 ++- arch/arm/boot/dts/exynos4412-trats2.dts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts index 99634c54dca9..480a80624b77 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts @@ -12,6 +12,7 @@ */ /dts-v1/; +#include #include "exynos4412-odroid-common.dtsi" / { @@ -35,7 +36,7 @@ fan0: pwm-fan { compatible = "pwm-fan"; - pwms = <&pwm 0 10000 0>; + pwms = <&pwm 0 10000 PWM_POLARITY_INVERTED>; cooling-min-state = <0>; cooling-max-state = <3>; #cooling-cells = <2>; diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 41ecd6d465a7..63ad30507d4f 100644 --- a/arch/arm/boot/dts/exynos4412-trats2.dts +++ b/arch/arm/boot/dts/exynos4412-trats2.dts @@ -18,6 +18,7 @@ #include #include #include +#include / { model = "Samsung Trats 2 based on Exynos4412"; @@ -164,7 +165,7 @@ max77693_haptic { compatible = "maxim,max77693-haptic"; haptic-supply = <&ldo26_reg>; - pwms = <&pwm 0 38022 0>; + pwms = <&pwm 0 38022 PWM_POLARITY_INVERTED>; }; charger {