From patchwork Sun Dec 3 16:36:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10089323 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 F147560327 for ; Sun, 3 Dec 2017 16:43:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFA5B28F8E for ; Sun, 3 Dec 2017 16:43:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1C6C28F90; Sun, 3 Dec 2017 16:43:05 +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 37D7228F8E for ; Sun, 3 Dec 2017 16:43:05 +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=AKt6ZRUSd8GZz/eI5m30ERTRzSJNBCbY/o6lw9H7AX8=; b=DCw fRLUQeQBNElnJwyt+JnCPi96bz4EEgDuiN9XG2VpDIB3Xcg2HVgAlOxOctt0BRVimjJC6GoDnxftm spdDqmSx5/HQCJyhGg0w9uLQ530keX8qwFEgeOPKOV3Zo+UWXcRWlGn8YPf/2E67a930SD1nBZ6rm /RuhMvmbk2oPmUAofJ4AdwgXm+knQgsLZM3U6JYjCUanMiNNPuM74Z3q5xPQIGFHxXLBwNdl6tFG/ m7rDtIfJrYFawLwI1IL5GqqCmQvV2m6NwNmHgcnlrMxS3nszefYh08Q5eTKgJcOLxe9aMPLImtYn5 P+lqUTrswN+sV+xDeEp+DFfLqwRdQpw==; 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 1eLXM7-0001Of-F4; Sun, 03 Dec 2017 16:43:03 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLXM3-0001Kz-C6; Sun, 03 Dec 2017 16:43:01 +0000 Received: from localhost.localdomain ([95.90.209.95]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LzFLh-1f8OkN0yKf-014UJ2; Sun, 03 Dec 2017 17:37:14 +0100 From: Stefan Wahren To: Eric Anholt , Florian Fainelli , Rob Herring , Mark Rutland Subject: [PATCH V2] ARM: dts: bcm283x: Use GPIO polarity defines consistently Date: Sun, 3 Dec 2017 17:36:18 +0100 Message-Id: <1512318978-3174-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K0:cQErMvvyZ5pjZX1JUVyTFJBZ02hPLiObG3KnU6sGAgH+298Tosm dshvhvw4XVB9yGVGWXKoXrayug0D5A+q8NHPTbYbgEoDmYJS77UyWYRQ4txeej37TZ3I59v 7hTmq5X4C2tizGfg1+CM0TMkQudmw666K25Qe632uXcIVw66elbKAqPqsKGd6HzYCPuQoRh MdETrncbqYOT7EXlHpipQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:DUtlvCdwmlU=:CO8FGAzcOjiXMWi5Eotlzq iEPE05Dpb1FquDHHT+f2zql3t0VY+imHouf86dAqvCfabFFOvyqUY6sryQCVJWjvEsnH4SYzC K1lhvpaS+UyoCqhmzk23D6HUtqO9ttZT+vbs0i3sPJwbOtbFqcFCLPQVEISyeyP4lm+5YT6N0 QHOGG+f06rBU9mV7sVF97LGVmo1785SQAAbnUG7a5GmT/4jhxhO9dcgaHg0dQTynrsqpbH8Sm 7998AihapXkGOLYHpnmDu8gBTIUCF1JEFhqB0nZerOXB1voeQsVuTidtwKoT4GIhpSGOnAlV+ TOrSsZFkL+pMz5mptJEeLMjnT2TDncdqJY6yXWxh2+t1SZSW7wHcCoXiXD+Nyg9W8v7q64D42 0plHtjfJ+PQSLh8YKv/KcVt/tyYpws5bZIzbQ824SLoqw2fXU7KwRZRK0ZA/UpEpIGD99D3fO RXcPtJWqIoQ3vBsEWta1LtBX9T+5VcTXxy4BkGrT8p0wQRuTY5ZJG/OdQkqzsdO5qgvRNF9ZI kete5pgvBb/HGk4acuSsp9xtc4d3E+YEnMI57uG+l+O/Xj/ICkb12lTzIp4FWDOg8SydIwIya BNNmR7eqx0uZJg+fYN54GGsZQgprwW1FF4wk6NNrUVWgLr/AZ+MRGjnkFPjF0IF3zft6VMSxO gMneM9BvMbT/XmLBEpNMWkm67Uyz49OUz6WeFb7aDfU/1R2SCHTXAF65RDYIZ7XW/2HYWP80G Z05dzcIH/kIDoz3RMYfkxQ5OPIYbUDetcUP92g== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171203_084259_784543_C0D2D90C X-CRM114-Status: UNSURE ( 7.48 ) 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 consistently. 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(-) Changes in V2: * fix wording in commit log 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>; }; }; };