From patchwork Sat Nov 25 13:34:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10074827 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 B3B0F602BC for ; Sat, 25 Nov 2017 13:35:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4E58290E5 for ; Sat, 25 Nov 2017 13:35:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99B2F29254; Sat, 25 Nov 2017 13:35:45 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 226C5290E5 for ; Sat, 25 Nov 2017 13:35:44 +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=pNaxZdMlkfj5GoR3JWl9AAEXLt3W/aF4/wgkOb1ZP1o=; b=mpV QDUrCPjOM0n7KuC9In2ouRSfJGKD82uwPmYte+RWdXG8X7XFHZRD+S/CkHlB6NZqtpqLagOzTC7NL vXyecDU3+X+OPw6SOAqOxL1elNGIEuGSIsGQ2Vwb9+DS84GLoVHauIYBCjPFSz1khibJbgZ6AGpai uHEf1Y0SJ/X1sfWKx4nhXhJippLjVzLwJ7+8O4enJng9T8UnYnJKkHMxnZM5uvfA48uQQrUhZPkzr am8VHJ7emiP1Vi3Z/rwuuFDG8UnW+Qw5CK6joq1gI1FqRQ58Nn6MNggOEdFNv8Ifq0J/EL2l3M8h3 PoHP8o0PkERzcoVweRnh6x6Ky95AW3w==; 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 1eIacP-0002um-F7; Sat, 25 Nov 2017 13:35:41 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eIac0-0001gr-Ux; Sat, 25 Nov 2017 13:35:19 +0000 Received: from localhost.localdomain ([95.90.209.104]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M3uUc-1fA0VL1cLS-00rbUP; Sat, 25 Nov 2017 14:34:45 +0100 From: Stefan Wahren To: Eric Anholt , Florian Fainelli , Rob Herring , Mark Rutland Subject: [PATCH] ARM: dts: bcm283x: Use GPIO polarity defines consequently Date: Sat, 25 Nov 2017 14:34:05 +0100 Message-Id: <1511616845-16298-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K0:tUJV1pHJ0F5Y9Uq2TOwY7Tlh9Yssbslu5YkQlklU7bubTYRkzJw yVri4uRVx/RSwEBNUB8nbWL9uYgBLfv9YQw0ZMWjH3ymV8hBWmLTMyMEBRcoz0QHvLhQiA1 FLyGC8C4uJD2+lrRNMpr3cSj0roztQl1TMhU1LNEPcldlqq1hpL9uRUkKp5D++ULFKz1tqA siOtJlUJHgTGBw+9eWCQQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:qv4K1MGUl9s=:6rhqAyH8DpYOH8ep+8WCGr sZU8EXeajGQtgFufgcKPWAOJ80HIWrT9kaCtuSvS0jE7rqn8dFvOqnBthaVzFU3kSh1DTt5jm Cn1hZIAoGBevi4avB5+PrQif2yURLPnLWPhfUDBxvh7EItqDeHAvc9e7F3ZH0Rx3WYtTikjWs 4qKddpZih7iOaQ6SfwIeJr/7mq99fxlzxn7ATNV2Yn9QTqeBeS5VooIwVfU9MlxOY1sDytc6P Hb/mGBu8EaXjh+fIKymptpa7oxERUDhyr8CB9mW/zBfZa2bhPG465TtPE5l1T8bMxcnVqKPMV 0beixhwzxj9BHFZ4a7Sn4E2gKbHG7tCfu8FW1HAG1rzFY9eIsJW8IiGaABlEF4/9IYigSvctJ vm2hBpWDa153vKXdHn01dZrNbgXXNNX82XlURckAKIm0LtmWXPu1dkF/8nkhfeQfs1iDCHuMQ JTWKKycitNrF8RCT52/NcVwHwIvJ4iMYPYn9I+IKznheNtuMvqhLBHdjNzfjFtADhERoQ541w psw00GduxUDQKP5Bh1iRa0DZRBqZLrF0sAa0MLDxY37RFdou/qGbqndM63rBC34eUZqFGRCtP N/gDF6i5ucmbZzxsih8Y1ppMEhYbqzIfdfu4H9amWH0q0m5pcnPMtm4atGoBwF188A07B/kPZ fI5dmpJxeQHXgZlRFxcnkJtL1s4SfZiFzKT3wxYqEDPSc7d8T1zvK1eDtMp2f0TYJsbCpOY+C dQkqc2yeCbOfotscRsohZO+Nzw6pe0nDNe56MA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171125_053517_362995_2DBC0EE6 X-CRM114-Status: UNSURE ( 7.87 ) 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: Stefan Wahren , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org 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 Currently most of the Raspberry Pi DTS have a mixture of magic numbers and the proper GPIO polarity defines. So use the latter one consequently. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 4 ++-- arch/arm/boot/dts/bcm2835-rpi-a.dts | 2 +- arch/arm/boot/dts/bcm2835-rpi-b-plus.dts | 4 ++-- arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts | 2 +- arch/arm/boot/dts/bcm2835-rpi-b.dts | 2 +- arch/arm/boot/dts/bcm2836-rpi-2-b.dts | 4 ++-- arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts index f81ae0a..aa1fc7b 100644 --- a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts +++ b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts @@ -10,12 +10,12 @@ leds { act { - gpios = <&gpio 47 0>; + gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; }; pwr { label = "PWR"; - gpios = <&gpio 35 0>; + gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; default-state = "keep"; linux,default-trigger = "default-on"; }; diff --git a/arch/arm/boot/dts/bcm2835-rpi-a.dts b/arch/arm/boot/dts/bcm2835-rpi-a.dts index 7a960a0..425f6b0 100644 --- a/arch/arm/boot/dts/bcm2835-rpi-a.dts +++ b/arch/arm/boot/dts/bcm2835-rpi-a.dts @@ -10,7 +10,7 @@ leds { act { - gpios = <&gpio 16 1>; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; }; }; diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts index 0161a84..effa195 100644 --- a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts +++ b/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts @@ -11,12 +11,12 @@ leds { act { - gpios = <&gpio 47 0>; + gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; }; pwr { label = "PWR"; - gpios = <&gpio 35 0>; + gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; default-state = "keep"; linux,default-trigger = "default-on"; }; diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts index 4bc70ef..772ec3b 100644 --- a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts +++ b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts @@ -11,7 +11,7 @@ leds { act { - gpios = <&gpio 16 1>; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; }; }; diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts index cca4a75..434483d 100644 --- a/arch/arm/boot/dts/bcm2835-rpi-b.dts +++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts @@ -11,7 +11,7 @@ leds { act { - gpios = <&gpio 16 1>; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; }; }; diff --git a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts index 6669355..5c339ad 100644 --- a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts +++ b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts @@ -15,12 +15,12 @@ leds { act { - gpios = <&gpio 47 0>; + gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; }; pwr { label = "PWR"; - gpios = <&gpio 35 0>; + gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; default-state = "keep"; linux,default-trigger = "default-on"; }; diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts index a8844d0..3e4ed7c 100644 --- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts +++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts @@ -20,7 +20,7 @@ leds { act { - gpios = <&gpio 47 0>; + gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; }; }; };