From patchwork Tue Mar 17 12:32:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 11442827 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18C8C1392 for ; Tue, 17 Mar 2020 12:33:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CAE862077B for ; Tue, 17 Mar 2020 12:33:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="LzvEkGks" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726948AbgCQMdM (ORCPT ); Tue, 17 Mar 2020 08:33:12 -0400 Received: from mail-bgr052101134067.outbound.protection.outlook.com ([52.101.134.67]:55685 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726874AbgCQMdL (ORCPT ); Tue, 17 Mar 2020 08:33:11 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mdbzNbA+yVBwfCsuAeBduGF/33F0g4qeg9kaRicH5rbhXLssA63xSbSwoB1bWFgEhOOqy4Eu6HEUDwKdmHhtUiD1OchbZfZ7wF16MlThtL7i6BIkX0ByTArzSRF9387jAFHiWHwVID41L9ybxJhZZeatBv/3XvVkSZ3Lzq342MmBtuteSGwEML/Mz2kvnJNfHtw0v4YXnR2QTmzObnL6Al4Iauygf5EiLlNUngw8vgOPrE0ZpgSG2b3D5cBE5gfSDD4n88ygAZT4oVJq0m2B5xWpRUbofKTX921RhXfxgfUP+AmWC+4jtl8KtVyXS8m7qIgLt7zfKc8qTOVuKO8JMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1wtL1nZXpd+XXipa1VX+ckcknea0pBxc/qEXwx6X1Tc=; b=d9JDGBTiMsKOwGUuYyeLv9Eh31aX7COLALLX1MN/JqHitpP64KxQDoVUcHn4lXC/sSZWWzU19JS1lt0mMgs8F88tfi8GQc2TYVDkE0bOca8y1cvgooUvdTd+YGDkK6NBgdx4odR6HiirpqgNU/36VIrFJmbbucsLOrsEUCPp/J7Er89nmAA3nd4tTs2P7wlLahtNbLu8ibYk1pMIiifCakJ0fngTTgrt2oeO5e7mjKVJ6Irff2DZ2G84NJ/sOokimvb7yMpUkf5C73ISlbvnjIArv/9+j8GhDlafX9OoO7bxO+zkYsxrGTmxGcmQdayS+Jwl+1VEhvFbvr6+r5OoPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1wtL1nZXpd+XXipa1VX+ckcknea0pBxc/qEXwx6X1Tc=; b=LzvEkGksEIx3rsShVBrkHUvMlz6jfjxXcT5uxy3cBQe/gnQwJump3s9jhHOJgU48bVYjbwC4D4es1O+THpHXrmmzbCCUI4ZM5oMADc18Pz6y4/97EC/hUvVZI1LVT7d4D406c5wmGOBFPlkgTi8N2x/u9q9yYNQDF+0WZ4Pm/V8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; Received: from VI1PR05MB3279.eurprd05.prod.outlook.com (10.170.238.24) by VI1PR05MB4462.eurprd05.prod.outlook.com (10.171.182.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13; Tue, 17 Mar 2020 12:32:54 +0000 Received: from VI1PR05MB3279.eurprd05.prod.outlook.com ([fe80::7cdd:4feb:a8b6:a6d2]) by VI1PR05MB3279.eurprd05.prod.outlook.com ([fe80::7cdd:4feb:a8b6:a6d2%7]) with mapi id 15.20.2814.021; Tue, 17 Mar 2020 12:32:54 +0000 From: Oleksandr Suvorov To: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org Cc: Paul Barker , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Laurent Pinchart , Marcel Ziswiler , Igor Opaniuk , Philippe Schenker , Oleksandr Suvorov , =?utf-8?q?Andrius_=C5=A0?= =?utf-8?q?tikonas?= , Andy Yan , Chen-Yu Tsai , Christoph Muellner , Daniel Lezcano , Enric Balletbo i Serra , Heiko Stuebner , Hugh Cole-Baker , Jagan Teki , Johan Jonker , Katsuhiro Suzuki , Kever Yang , Kevin Hilman , Krzysztof Kozlowski , Kukjin Kim , Marc Zyngier , Markus Reichl , Maxime Ripard , Miquel Raynal , Nick Xie , Philipp Tomsich , Rob Herring , Robin Murphy , Soeren Moch , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [RFC PATCH 6/7] arm64: dts: pwm: replace polarity constant with macro Date: Tue, 17 Mar 2020 14:32:30 +0200 Message-Id: <20200317123231.2843297-7-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200317123231.2843297-1-oleksandr.suvorov@toradex.com> References: <20200317123231.2843297-1-oleksandr.suvorov@toradex.com> X-ClientProxiedBy: PR0P264CA0218.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::14) To VI1PR05MB3279.eurprd05.prod.outlook.com (2603:10a6:802:1c::24) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (82.193.109.226) by PR0P264CA0218.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.14 via Frontend Transport; Tue, 17 Mar 2020 12:32:54 +0000 X-Mailer: git-send-email 2.24.1 X-Originating-IP: [82.193.109.226] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ef9f637-63f4-49e2-4979-08d7ca6f50c6 X-MS-TrafficTypeDiagnostic: VI1PR05MB4462:|VI1PR05MB4462: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-Forefront-PRVS: 0345CFD558 X-Forefront-Antispam-Report: SFV:SPM;SFS:(10019020)(4636009)(39850400004)(396003)(136003)(366004)(346002)(376002)(199004)(66946007)(6666004)(66476007)(66556008)(5660300002)(7406005)(36756003)(7416002)(30864003)(1076003)(4326008)(26005)(6496006)(44832011)(52116002)(54906003)(81166006)(81156014)(2906002)(8676002)(55236004)(316002)(186003)(8936002)(956004)(478600001)(2616005)(6486002)(86362001)(16526019)(23200700001);DIR:OUT;SFP:1501;SCL:5;SRVR:VI1PR05MB4462;H:VI1PR05MB3279.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;CAT:OSPM; Received-SPF: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Grtzewr3FeoAz6uyJQ90Y/K5++wcacWMwVqqUqDG1xfOyCQAzGLv1kFOww1sTodsb0HNU31A9qphIT9AjEhEH2M3JUUgzjeLrsXh9z+1nf+wYmI22yJnFuuSn69okhY0JEJj8Qva41TFVqA1GaB4N4dbvHYnINgTBMuKo+TyMrE8wq0OfbJI9w9WHVPS+yKOypIBT4fMgqg3YkNQv+r1Ia62zPbf8Fx6dtbsbCBi+xn7fBTzZieRU9gW3DAILmjz/STq92WfHZU99DtwsaRqdc2xvxgv0ZUZzUC3vI3FIjfCJTe7BcNZmp3V+0E/Mr+QGmipg6lQgFeG8HxwjCSxI7VvUDNchW0LUNlM+xRcoty3X8f2f8iIk9A0TVkDxEQbezxM5pFMrqD6R29GFlNtdt41Mc1LsZFoSJhWOMjNK7om6d9RBNYFkpK0XEkInXDjrPyHalEFZcV5JjJASvY89fiQdynaf0wuaTECd0jG9itNhgGIhYFTNZqFUH3z+DILTAfFgJuoqs50XEk8C71oENWGNMkkYcOXzkvD5Mvr2+RwC/zfX9v3Bksw4ewtJ+J3ptNM2japxrMg9HMQq6nxJ9ciNNUGHOaGjX7QTqDh2QTwra47PuRSPNZwZSV619A/jwoiBufhRnS0m74pe8ipraSL4z4lkqwUmPQRoXLZWZPHSxevid35VaqZ3hYALeEuusrGhyMpv/fF/1qjCnzEwWDH4MPXCQC42OzfbUeHiqQayoUBoaPjoGNf/fF5bdoUpt29669SNFSZ4FzosXHwLw== X-MS-Exchange-AntiSpam-MessageData: XL/q3X9IA1St81Jaz6ffDv1irHLS5vYAB9mLfcKY63WmDFKX7iKzf3RHgLTrYQ/loKChb2UQTsOY7d0kseUifN//ZDrqTyNzU4nE04J/uHJUivXZivsNLM1IEHq9fHTJBUqnYZYZyYEhqsLL2Fh7bA== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ef9f637-63f4-49e2-4979-08d7ca6f50c6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2020 12:32:54.4485 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vS0/x60yo50mruhFSVS2DZRk+k8Gcn5nkZUcE6B8Kxjker3T7U86a48/RKzZBJzpS6n8jZPUoBjbq4Ot4FYj0BqV3Uz7Fp8kP/KOFaNIaOA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4462 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org There is the PWM_POLARITY_NORMAL defined and describled in and used by pwm drivers. This patch converts all '0' constant in pwms parameters into PWM_POLARITY_NORMAL. Replace with sed regexp: 's/(pwms = <&[a-zA-Z_0-9]+ [0-9]+ [0-9]+) 0>/\1 PWM_POLARITY_NORMAL>/' Then: - include pwm.h in some dts/dtsi to fix building errors about undefined symbols. - fix the patman warnings about the code format; Signed-off-by: Oleksandr Suvorov Acked-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 2 +- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 3 ++- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 1 + arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 1 + arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 5 +++-- arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts | 2 +- arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 5 +++-- arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi | 4 ++-- arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts | 4 ++-- arch/arm64/boot/dts/amlogic/meson-g12b-ugoos-am6.dts | 7 ++++--- arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 1 + arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 3 ++- arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts | 3 ++- arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts | 3 ++- .../boot/dts/amlogic/meson-gxl-s905x-hwacom-amazetv.dts | 3 ++- arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts | 2 +- .../arm64/boot/dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts | 3 ++- arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 5 +++-- arch/arm64/boot/dts/amlogic/meson-gxm-rbox-pro.dts | 3 ++- arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 4 +++- arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 2 +- arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts | 7 ++++--- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 3 ++- arch/arm64/boot/dts/rockchip/px30-evb.dts | 2 +- arch/arm64/boot/dts/rockchip/px30.dtsi | 1 + arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 1 + arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 4 ++-- arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi | 4 ++-- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 6 +++--- arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 1 + 44 files changed, 77 insertions(+), 51 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index 64b1c54f87c0..adbcf6abf338 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -23,7 +23,7 @@ aliases { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm 0 50000 0>; + pwms = <&pwm 0 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 5 10 15 20 30 40 55 70 85 100>; default-brightness-level = <2>; enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */ diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts index f5df5f705b72..083f3dc9deaa 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts @@ -21,7 +21,7 @@ aliases { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm 0 50000 0>; + pwms = <&pwm 0 50000 PWM_POLARITY_NORMAL>; power-supply = <®_dcdc1>; brightness-levels = <0 5 7 10 14 20 28 40 56 80 112>; default-brightness-level = <5>; diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index cb1360ae1211..97b31a914def 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts @@ -356,7 +356,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ab 0 30518 0>; /* PWM_A at 32.768KHz */ + /* PWM_A at 32.768KHz */ + pwms = <&pwm_ab 0 30518 PWM_POLARITY_NORMAL>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index aace3d32a3df..e536436f6306 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 87b9a47a51b9..c1f8232fdde1 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts index 168f460e11fa..7408c5b58105 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts @@ -141,7 +141,7 @@ vddcpu: regulator-vddcpu { vin-supply = <&dc_in>; - pwms = <&pwm_AO_cd 1 1250 0>; + pwms = <&pwm_AO_cd 1 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -176,7 +176,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sound { diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts index 2a324f0136e3..7b1e17267ae3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts @@ -141,7 +141,7 @@ vddcpu: regulator-vddcpu { vin-supply = <&main_12v>; - pwms = <&pwm_AO_cd 1 1250 0>; + pwms = <&pwm_AO_cd 1 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts index 4f2596d82989..8cc90ae9b326 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts @@ -141,7 +141,7 @@ vddcpu: regulator-vddcpu { vin-supply = <&dc_in>; - pwms = <&pwm_AO_cd 1 1250 0>; + pwms = <&pwm_AO_cd 1 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -232,7 +232,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi index b1fab5749ca8..9d1411724dbb 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi @@ -20,7 +20,7 @@ vddcpu_a: regulator-vddcpu-a { vin-supply = <&dc_in>; - pwms = <&pwm_ab 0 1250 0>; + pwms = <&pwm_ab 0 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -39,7 +39,7 @@ vddcpu_b: regulator-vddcpu-b { vin-supply = <&vsys_3v3>; - pwms = <&pwm_AO_cd 1 1250 0>; + pwms = <&pwm_AO_cd 1 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts index 8830d3844885..4c3252b0cc67 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts @@ -127,7 +127,7 @@ vddcpu_a: regulator-vddcpu-a { vin-supply = <&main_12v>; - pwms = <&pwm_ab 0 1250 0>; + pwms = <&pwm_ab 0 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -146,7 +146,7 @@ vddcpu_b: regulator-vddcpu-b { vin-supply = <&main_12v>; - pwms = <&pwm_AO_cd 1 1250 0>; + pwms = <&pwm_AO_cd 1 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-ugoos-am6.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-ugoos-am6.dts index ccd0bced01e8..15759f3df472 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-ugoos-am6.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-ugoos-am6.dts @@ -109,7 +109,7 @@ vddcpu_a: regulator-vddcpu-a { vin-supply = <&main_12v>; - pwms = <&pwm_ab 0 1250 0>; + pwms = <&pwm_ab 0 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -128,7 +128,7 @@ vddcpu_b: regulator-vddcpu-b { vin-supply = <&main_12v>; - pwms = <&pwm_AO_cd 1 1250 0>; + pwms = <&pwm_AO_cd 1 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -282,7 +282,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi index 12d5e333e5f2..4e1a429b3dff 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi @@ -72,7 +72,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 40db06e28b66..d584c99e60c6 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -12,6 +12,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts index d6ca684e0e61..6dc2e6aafe97 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts @@ -79,7 +79,8 @@ wifi_32k: wifi-32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts index 65ec7dea828c..77d1d729e857 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts @@ -109,7 +109,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi index e803a466fe4e..41406fba88bc 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi @@ -83,7 +83,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi index 45cb83625951..59e436c41da9 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -77,7 +77,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; hdmi-connector { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi index dee51cf95223..2d0c4badfe3b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi @@ -82,7 +82,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts index a1119cfb0280..90cfdb96cba9 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts @@ -93,7 +93,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-hwacom-amazetv.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-hwacom-amazetv.dts index c8d74e61dec1..69b9f2a31ae3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-hwacom-amazetv.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-hwacom-amazetv.dts @@ -72,7 +72,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts index 440bc23c7342..95b654846db8 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts @@ -47,7 +47,7 @@ pwmleds { power { label = "vim:red:power"; - pwms = <&pwm_AO_ab 1 7812500 0>; + pwms = <&pwm_AO_ab 1 7812500 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts index 62dd87821ce5..28c814460d72 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts @@ -72,7 +72,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi index 6ac678f88bd8..b7923f2278b7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi @@ -76,7 +76,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts index d5dc12878dfe..674e5e765a32 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts @@ -87,7 +87,7 @@ pwmleds { power { label = "vim:red:power"; - pwms = <&pwm_AO_ab 1 7812500 0>; + pwms = <&pwm_AO_ab 1 7812500 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; }; @@ -187,7 +187,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-rbox-pro.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-rbox-pro.dts index 420a88e9a195..87475bd61cdf 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-rbox-pro.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-rbox-pro.dts @@ -81,7 +81,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi index 90815fa25ec6..a5babf55a937 100644 --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi @@ -7,6 +7,7 @@ #include #include +#include / { model = "Khadas VIM3"; @@ -167,7 +168,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts index dbbf29a0dbf6..23e3bc0cc765 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts @@ -25,7 +25,7 @@ vddcpu: regulator-vddcpu { vin-supply = <&vsys_3v3>; - pwms = <&pwm_AO_cd 1 1250 0>; + pwms = <&pwm_AO_cd 1 1250 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts index cb1b48f5b8b1..e55631b815c3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts @@ -116,7 +116,7 @@ pwmleds { power { label = "sei610:red:power"; - pwms = <&pwm_AO_ab 0 30518 0>; + pwms = <&pwm_AO_ab 0 30518 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; active-low; @@ -187,7 +187,7 @@ vddcpu: regulator-vddcpu { vin-supply = <&dc_in>; - pwms = <&pwm_AO_cd 1 1500 0>; + pwms = <&pwm_AO_cd 1 1500 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -336,7 +336,8 @@ wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + /* PWM_E at 32.768KHz */ + pwms = <&pwm_ef 0 30518 PWM_POLARITY_NORMAL>; }; }; diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index 250fc01de78d..f70703df97e3 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi @@ -14,6 +14,7 @@ #include #include #include +#include #include / { @@ -913,7 +914,7 @@ charger_reg: CHARGER { haptic: max77843-haptic { compatible = "maxim,max77843-haptic"; haptic-supply = <&ldo38_reg>; - pwms = <&pwm 0 33670 0>; + pwms = <&pwm 0 33670 PWM_POLARITY_NORMAL>; pwm-names = "haptic"; }; }; diff --git a/arch/arm64/boot/dts/rockchip/px30-evb.dts b/arch/arm64/boot/dts/rockchip/px30-evb.dts index 0a680257d9c2..f9359ece5b28 100644 --- a/arch/arm64/boot/dts/rockchip/px30-evb.dts +++ b/arch/arm64/boot/dts/rockchip/px30-evb.dts @@ -57,7 +57,7 @@ vol-up-key { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm1 0 25000 0>; + pwms = <&pwm1 0 25000 PWM_POLARITY_NORMAL>; power-supply = <&vcc3v3_lcd>; }; diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi index 60de8e9c421b..97bf03d536a3 100644 --- a/arch/arm64/boot/dts/rockchip/px30.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts b/arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts index aa256350b18f..502d2d9fa8dc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts @@ -22,7 +22,7 @@ ir_rx { ir_tx { compatible = "pwm-ir-tx"; - pwms = <&pwm5 0 25000 0>; + pwms = <&pwm5 0 25000 PWM_POLARITY_NORMAL>; }; leds { diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi index ac43bc3f7031..f3d0295a8046 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts index 694b0d08d644..6fd15469b6f0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts @@ -47,7 +47,7 @@ backlight: backlight { 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>; default-brightness-level = <200>; - pwms = <&pwm0 0 25000 0>; + pwms = <&pwm0 0 25000 PWM_POLARITY_NORMAL>; }; edp_panel: edp-panel { @@ -72,7 +72,7 @@ clkin_gmac: external-gmac-clock { vdd_center: vdd-center { compatible = "pwm-regulator"; - pwms = <&pwm3 0 25000 0>; + pwms = <&pwm3 0 25000 PWM_POLARITY_NORMAL>; regulator-name = "vdd_center"; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts index d63faf38cc81..c233f8a2f444 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts @@ -20,7 +20,7 @@ chosen { backlight: backlight { compatible = "pwm-backlight"; enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; - pwms = <&pwm0 0 25000 0>; + pwms = <&pwm0 0 25000 PWM_POLARITY_NORMAL>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi index 1384dabbdf40..ae44d55e38d1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi @@ -50,7 +50,7 @@ ppvar_centerlogic_pwm: ppvar-centerlogic-pwm { compatible = "pwm-regulator"; regulator-name = "ppvar_centerlogic_pwm"; - pwms = <&pwm3 0 3337 0>; + pwms = <&pwm3 0 3337 PWM_POLARITY_NORMAL>; pwm-supply = <&ppvar_sys>; pwm-dutycycle-range = <100 0>; pwm-dutycycle-unit = <100>; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi index 4373ed732af7..e7c2d31bece2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi @@ -164,7 +164,7 @@ backlight: backlight { enable-gpios = <&gpio4 21 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&bl_en>; - pwms = <&pwm1 0 1000000 0>; + pwms = <&pwm1 0 1000000 PWM_POLARITY_NORMAL>; pwm-delay-us = <10000>; }; @@ -217,7 +217,7 @@ &ppvar_bigcpu { &ppvar_bigcpu_pwm { /* On scarlet ppvar big cpu use pwm3 */ - pwms = <&pwm3 0 3337 0>; + pwms = <&pwm3 0 3337 PWM_POLARITY_NORMAL>; regulator-min-microvolt = <800074>; regulator-max-microvolt = <1299226>; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index 2f3997740068..f5ebafb64820 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi @@ -101,7 +101,7 @@ ppvar_bigcpu_pwm: ppvar-bigcpu-pwm { compatible = "pwm-regulator"; regulator-name = "ppvar_bigcpu_pwm"; - pwms = <&pwm1 0 3337 0>; + pwms = <&pwm1 0 3337 PWM_POLARITY_NORMAL>; pwm-supply = <&ppvar_sys>; pwm-dutycycle-range = <100 0>; pwm-dutycycle-unit = <100>; @@ -130,7 +130,7 @@ ppvar_litcpu_pwm: ppvar-litcpu-pwm { compatible = "pwm-regulator"; regulator-name = "ppvar_litcpu_pwm"; - pwms = <&pwm2 0 3337 0>; + pwms = <&pwm2 0 3337 PWM_POLARITY_NORMAL>; pwm-supply = <&ppvar_sys>; pwm-dutycycle-range = <100 0>; pwm-dutycycle-unit = <100>; @@ -159,7 +159,7 @@ ppvar_gpu_pwm: ppvar-gpu-pwm { compatible = "pwm-regulator"; regulator-name = "ppvar_gpu_pwm"; - pwms = <&pwm0 0 3337 0>; + pwms = <&pwm0 0 3337 PWM_POLARITY_NORMAL>; pwm-supply = <&ppvar_sys>; pwm-dutycycle-range = <100 0>; pwm-dutycycle-unit = <100>; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi index e87a04477440..979fd0832efd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi @@ -161,7 +161,7 @@ fan: pwm-fan { cooling-levels = <0 150 200 255>; #cooling-cells = <2>; fan-supply = <&vsys_5v0>; - pwms = <&pwm0 0 40000 0>; + pwms = <&pwm0 0 40000 PWM_POLARITY_NORMAL>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts index e0d75617bb7e..c63a115930aa 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts @@ -62,7 +62,7 @@ fan: pwm-fan { cooling-levels = <0 12 18 255>; #cooling-cells = <2>; fan-supply = <&vcc12v0_sys>; - pwms = <&pwm1 0 50000 0>; + pwms = <&pwm1 0 50000 PWM_POLARITY_NORMAL>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi index 9f225e9c3d54..3656a8d71b4a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi @@ -19,7 +19,7 @@ chosen { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm0 0 25000 0>; + pwms = <&pwm0 0 25000 PWM_POLARITY_NORMAL>; }; clkin_gmac: external-gmac-clock { diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi index 9bca25801260..2712270e93ca 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi @@ -58,7 +58,7 @@ fan: pwm-fan { compatible = "pwm-fan"; #cooling-cells = <2>; fan-supply = <&vcc12v_dcin>; - pwms = <&pwm1 0 50000 0>; + pwms = <&pwm1 0 50000 PWM_POLARITY_NORMAL>; }; sdio_pwrseq: sdio-pwrseq { diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts b/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts index b4d8f60b7e44..0b658374fb9a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts @@ -79,7 +79,7 @@ backlight: backlight { 248 249 250 251 252 253 254 255>; default-brightness-level = <200>; enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; - pwms = <&pwm0 0 25000 0>; + pwms = <&pwm0 0 25000 PWM_POLARITY_NORMAL>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 28c7ee540439..8e7dfa8449c6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include / { From patchwork Tue Mar 17 12:32:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 11442837 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 73E081392 for ; Tue, 17 Mar 2020 12:33:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3029E2076E for ; Tue, 17 Mar 2020 12:33:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="J2vXHQMN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727001AbgCQMdf (ORCPT ); Tue, 17 Mar 2020 08:33:35 -0400 Received: from mail-eopbgr00102.outbound.protection.outlook.com ([40.107.0.102]:23107 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726250AbgCQMdf (ORCPT ); Tue, 17 Mar 2020 08:33:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MRce5piF4Siy2dETghFy0J7BX1K+EuGBRdaMF6D0HEW5oi0YE/SWt54XgK2l2AAYdnpBCwVyXJ166Kp6jWiLQIrYIjROKBPFZvvcFHNxtblRTAXccRP6fckpZ3J6845cgdRiGRWIsyb8uPtwvXYXmvBk1feIc6YLasW4urbGE8D191vCIENG2QDDW4Q2WEyG7i2OFOWsre2nq3/I00TZRCbk0th/aBHSLr8ZbSD6yo1KDJjvNKdBGoMA6iWAKDZHHTQjRDSNWU8zmEOrYRKFacGfbwyuawmKcgUS1ZSHgkecp/hIBCCUrla2F2V9XrzyVhh6vpVjOYO9nh1SXe6EKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=82kulA8ji5q3ysz4nsElSwam1xMV6WqSJo2CjWUdpsI=; b=nDF6asTUcwtwbcWpNWgjLHi/SJgtwDeERy26UYxFeFX3dB3wm+MfZhXiUf5Kh4JOzVAR4eeJj1RWatPQBVYC3wAyl6oH6FRSyYxv56vCY3+dqIPWcmdywqkwjyKEi8t6NLliA9Y0H7rf7lf/d50bRYp429hnUdzpANobWmo26DJkMUkuFIs+8/UXe5OkqdIjxGcZPpq1pEZJWfIkp7nzX6KYbm610PKlwP+rwrP1yR9JqBGgw1g9pbvCYrOG5Klazw3bdm6oIjOzbHfTvoLXGjqExOEtgUlAvNNREFAalz4WrftrDhRoWHY600HtW/jg1hnAh14sFrerViAKq/IKmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=82kulA8ji5q3ysz4nsElSwam1xMV6WqSJo2CjWUdpsI=; b=J2vXHQMN5Mhihp1Nk/0ob7QdWqTIt8/NN3oPgBU+/kS310+oAe7FOWluNcuYXHaUbdvy3t7NREXEMwQJWMktIrIQ9uAqlSbx5yWkY/Jn+uD/kgXaw+IxWSNBHciMysKIqHROQJjRTUNSKszmpHgYC2+rBJHb6/AsQJl+0VyNOQc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; Received: from VI1PR05MB3279.eurprd05.prod.outlook.com (10.170.238.24) by VI1PR05MB4462.eurprd05.prod.outlook.com (10.171.182.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13; Tue, 17 Mar 2020 12:32:56 +0000 Received: from VI1PR05MB3279.eurprd05.prod.outlook.com ([fe80::7cdd:4feb:a8b6:a6d2]) by VI1PR05MB3279.eurprd05.prod.outlook.com ([fe80::7cdd:4feb:a8b6:a6d2%7]) with mapi id 15.20.2814.021; Tue, 17 Mar 2020 12:32:56 +0000 From: Oleksandr Suvorov To: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org Cc: Paul Barker , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Laurent Pinchart , Marcel Ziswiler , Igor Opaniuk , Philippe Schenker , Oleksandr Suvorov , Alexandre Belloni , Bartosz Golaszewski , =?utf-8?q?Beno=C3=AEt_Cous?= =?utf-8?q?son?= , Chen-Yu Tsai , David Lechner , Fabio Estevam , Geert Uytterhoeven , Heiko Stuebner , Jisheng Zhang , Kevin Hilman , Krzysztof Kozlowski , Kukjin Kim , Ludovic Desroches , Magnus Damm , Maxime Ripard , NXP Linux Team , Nicolas Ferre , Pengutronix Kernel Team , Peter Rosin , Rob Herring , Sascha Hauer , Sebastian Hesselbarth , Sekhar Nori , Shawn Guo , Stefan Agner , Tony Lindgren , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [RFC PATCH 7/7] arm: dts: pwm: replace polarity constant with macro Date: Tue, 17 Mar 2020 14:32:31 +0200 Message-Id: <20200317123231.2843297-8-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200317123231.2843297-1-oleksandr.suvorov@toradex.com> References: <20200317123231.2843297-1-oleksandr.suvorov@toradex.com> X-ClientProxiedBy: PR0P264CA0055.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1d::19) To VI1PR05MB3279.eurprd05.prod.outlook.com (2603:10a6:802:1c::24) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (82.193.109.226) by PR0P264CA0055.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.14 via Frontend Transport; Tue, 17 Mar 2020 12:32:56 +0000 X-Mailer: git-send-email 2.24.1 X-Originating-IP: [82.193.109.226] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4cf6849a-bb29-4d99-5041-08d7ca6f5220 X-MS-TrafficTypeDiagnostic: VI1PR05MB4462: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-Forefront-PRVS: 0345CFD558 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4636009)(39850400004)(396003)(136003)(366004)(346002)(376002)(199004)(66946007)(6666004)(66476007)(66556008)(5660300002)(7406005)(36756003)(7416002)(30864003)(1076003)(4326008)(26005)(6496006)(44832011)(52116002)(54906003)(81166006)(81156014)(2906002)(8676002)(55236004)(316002)(186003)(8936002)(956004)(478600001)(2616005)(6486002)(86362001)(16526019)(95444002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR05MB4462;H:VI1PR05MB3279.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; Received-SPF: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VXIdAqM06X/qSAnrCzCaBSGeQ+JUbptcZJkoVIdk14ROueYjHn60MJMxoaiWMwsDyskhyKE5xd96erhJ3Lhl0XPqKW6T/e7XBl6hZAroG1rqcpZjI78Y9dGrZmyZ1WMUKKUOXe0EHz5ZsYS/icK7z6msJzQVKbRzZ/tOjmjgyLzaOwHUXKgl70aYXCxCkse4LcFlE4HQkcC5kWN8lUGTE78ODak6GMB11vPh35LeMN0Ox1DfVagIDvR6XtH/cOUfW/z46DkJYfcRnL8h4BmlnHaOGMOBdSiCgQKEw8TDmixSZavmzECgwQXlszKtYUczwISv0hC2A0c8KIrIix9NoUlcNrLGlLY6dzxmZDdbtpAd3CcC0OhSIJedsJY1LTvcLg6iPaywbwCRasEqJDxVWxizxJ61mZQSyxaUTyw0H9qmOJiTQqETR20DUTL1Fam5IFf96zPAy3MCQApHDmOWTnZs5niPOl1QvT210uoQCSJsmPiG8pxnRufNJDqRNqj5 X-MS-Exchange-AntiSpam-MessageData: O2Wp8K5vbuXUdHxPHQK9d4OK0aLTdJ3wvdp+oNqLqHrQGjgoKofPRxTrThKQNOe4gnhbx5oSGFxFmDOgmk/07xo99jME7YSOWfzJbOeiqaRYY4IaWF1bPRhuobA3xv3+iAY4uIbVR8mJc/vz4eDrWw== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cf6849a-bb29-4d99-5041-08d7ca6f5220 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2020 12:32:56.6413 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6nNVUt2OtsSWkvp9AagC2c7ZYtF4TSsw8KkdqGDJThmz+CoG4CxnJL8PeFDk/seedyQd+1RmlXPPjxMZEvrF6Voi3tsBVa3Od7IaZFdCVKk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4462 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org There is the PWM_POLARITY_NORMAL defined and describled in and used by pwm drivers. This patch converts all '0' constant in pwms parameters into PWM_POLARITY_NORMAL. Replace with sed regexp: 's/(pwms = <&[a-zA-Z_0-9]+ [0-9]+ [0-9]+) 0>/\1 PWM_POLARITY_NORMAL>/' Then: - included pwm.h in some dts/dtsi to fix building errors about undefined symbols. - fixed the patman warnings about the code format; Signed-off-by: Oleksandr Suvorov Acked-by: Krzysztof Kozlowski --- arch/arm/boot/dts/am335x-cm-t335.dts | 2 +- arch/arm/boot/dts/am335x-evm.dts | 2 +- arch/arm/boot/dts/am3517-evm.dts | 2 +- arch/arm/boot/dts/at91-dvk_su60_somc_lcm.dtsi | 2 +- arch/arm/boot/dts/at91-kizbox2-common.dtsi | 6 +++--- arch/arm/boot/dts/at91-kizbox3_common.dtsi | 8 ++++---- arch/arm/boot/dts/at91-kizboxmini-common.dtsi | 6 +++--- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 2 +- arch/arm/boot/dts/at91-sama5d4_ma5d4evk.dts | 2 +- arch/arm/boot/dts/at91sam9n12ek.dts | 2 +- arch/arm/boot/dts/at91sam9x5dm.dtsi | 2 +- arch/arm/boot/dts/berlin2cd-google-chromecast.dts | 4 ++-- arch/arm/boot/dts/da850-evm.dts | 2 +- arch/arm/boot/dts/da850-lego-ev3.dts | 4 ++-- arch/arm/boot/dts/exynos4412-midas.dtsi | 2 +- arch/arm/boot/dts/exynos4412-odroidu3.dts | 2 +- arch/arm/boot/dts/exynos5250-snow-common.dtsi | 2 +- arch/arm/boot/dts/exynos5410-odroidxu.dts | 2 +- arch/arm/boot/dts/exynos5420-peach-pit.dts | 2 +- arch/arm/boot/dts/exynos5422-odroidhc1.dts | 2 +- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 2 +- arch/arm/boot/dts/exynos5422-odroidxu4.dts | 2 +- arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi | 4 ++-- arch/arm/boot/dts/exynos5800-peach-pi.dts | 2 +- arch/arm/boot/dts/imx53-tx53-x13x.dts | 5 +++-- arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts | 2 +- arch/arm/boot/dts/imx6q-display5.dtsi | 2 +- arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts | 2 +- arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts | 2 +- arch/arm/boot/dts/imx6qdl-tx6-lvds.dtsi | 4 ++-- arch/arm/boot/dts/imx7-colibri.dtsi | 4 +++- arch/arm/boot/dts/imx7d-nitrogen7.dts | 3 ++- arch/arm/boot/dts/imx7d-pico.dtsi | 3 ++- arch/arm/boot/dts/imx7d-sdb.dts | 3 ++- arch/arm/boot/dts/imx7ulp-evk.dts | 3 ++- arch/arm/boot/dts/iwg20d-q7-common.dtsi | 2 +- arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi | 2 +- arch/arm/boot/dts/meson8b-ec100.dts | 4 ++-- arch/arm/boot/dts/meson8b-mxq.dts | 4 ++-- arch/arm/boot/dts/meson8b-odroidc1.dts | 4 ++-- arch/arm/boot/dts/motorola-mapphone-common.dtsi | 3 ++- arch/arm/boot/dts/omap3-gta04.dtsi | 2 +- arch/arm/boot/dts/omap3-n900.dts | 2 +- arch/arm/boot/dts/rk3288-veyron-edp.dtsi | 2 +- arch/arm/boot/dts/rk3288-veyron.dtsi | 2 +- arch/arm/boot/dts/rv1108-evb.dts | 2 +- arch/arm/boot/dts/s3c6410-mini6410.dts | 2 +- arch/arm/boot/dts/s5pv210-aries.dtsi | 2 +- arch/arm/boot/dts/s5pv210-smdkv210.dts | 2 +- arch/arm/boot/dts/sun5i-gr8-evb.dts | 2 +- arch/arm/boot/dts/vf-colibri.dtsi | 4 +++- 51 files changed, 76 insertions(+), 66 deletions(-) diff --git a/arch/arm/boot/dts/am335x-cm-t335.dts b/arch/arm/boot/dts/am335x-cm-t335.dts index c6fe9db660e2..cb1ec60fb455 100644 --- a/arch/arm/boot/dts/am335x-cm-t335.dts +++ b/arch/arm/boot/dts/am335x-cm-t335.dts @@ -48,7 +48,7 @@ vwlan_fixed: fixedregulator2 { backlight { compatible = "pwm-backlight"; - pwms = <&ecap0 0 50000 0>; + pwms = <&ecap0 0 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 51 53 56 62 75 101 152 255>; default-brightness-level = <8>; }; diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 68252dab32c3..dd8eba3d85c7 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts @@ -115,7 +115,7 @@ switch10 { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&ecap0 0 50000 0>; + pwms = <&ecap0 0 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 51 53 56 62 75 101 152 255>; default-brightness-level = <8>; }; diff --git a/arch/arm/boot/dts/am3517-evm.dts b/arch/arm/boot/dts/am3517-evm.dts index a1fd3e63e86e..206e00db67f7 100644 --- a/arch/arm/boot/dts/am3517-evm.dts +++ b/arch/arm/boot/dts/am3517-evm.dts @@ -144,7 +144,7 @@ bl: backlight { pinctrl-names = "default"; power-supply = <&vdd_io_reg>; pinctrl-0 = <&backlight_pins>; - pwms = <&pwm11 0 5000000 0>; + pwms = <&pwm11 0 5000000 PWM_POLARITY_NORMAL>; brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; default-brightness-level = <7>; enable-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio_182 */ diff --git a/arch/arm/boot/dts/at91-dvk_su60_somc_lcm.dtsi b/arch/arm/boot/dts/at91-dvk_su60_somc_lcm.dtsi index bea920b192b6..839b0d1e8a17 100644 --- a/arch/arm/boot/dts/at91-dvk_su60_somc_lcm.dtsi +++ b/arch/arm/boot/dts/at91-dvk_su60_somc_lcm.dtsi @@ -10,7 +10,7 @@ / { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&hlcdc_pwm 0 50000 0>; + pwms = <&hlcdc_pwm 0 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <6>; status = "okay"; diff --git a/arch/arm/boot/dts/at91-kizbox2-common.dtsi b/arch/arm/boot/dts/at91-kizbox2-common.dtsi index af38253a6e7a..cea5226c5118 100644 --- a/arch/arm/boot/dts/at91-kizbox2-common.dtsi +++ b/arch/arm/boot/dts/at91-kizbox2-common.dtsi @@ -63,21 +63,21 @@ pwm_leds { blue { label = "pwm:blue:user"; - pwms = <&pwm0 2 10000000 0>; + pwms = <&pwm0 2 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "none"; }; green { label = "pwm:green:user"; - pwms = <&pwm0 1 10000000 0>; + pwms = <&pwm0 1 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; }; red { label = "pwm:red:user"; - pwms = <&pwm0 0 10000000 0>; + pwms = <&pwm0 0 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; }; diff --git a/arch/arm/boot/dts/at91-kizbox3_common.dtsi b/arch/arm/boot/dts/at91-kizbox3_common.dtsi index 299e74d23184..f1a8448ba6e1 100644 --- a/arch/arm/boot/dts/at91-kizbox3_common.dtsi +++ b/arch/arm/boot/dts/at91-kizbox3_common.dtsi @@ -73,7 +73,7 @@ &pinctrl_pwm0_pwm_h2 red { label = "pwm:red:user"; - pwms = <&pwm0 0 10000000 0>; + pwms = <&pwm0 0 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; status = "disabled"; @@ -81,7 +81,7 @@ red { green { label = "pwm:green:user"; - pwms = <&pwm0 1 10000000 0>; + pwms = <&pwm0 1 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; status = "disabled"; @@ -89,14 +89,14 @@ green { blue { label = "pwm:blue:user"; - pwms = <&pwm0 2 10000000 0>; + pwms = <&pwm0 2 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; status = "disabled"; }; white { label = "pwm:white:user"; - pwms = <&pwm0 3 10000000 0>; + pwms = <&pwm0 3 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/at91-kizboxmini-common.dtsi b/arch/arm/boot/dts/at91-kizboxmini-common.dtsi index fddf267b2d17..60dad4ff6f27 100644 --- a/arch/arm/boot/dts/at91-kizboxmini-common.dtsi +++ b/arch/arm/boot/dts/at91-kizboxmini-common.dtsi @@ -59,7 +59,7 @@ leds: pwm_leds { led_blue: pwm_blue { label = "pwm:blue:user"; - pwms = <&pwm0 2 10000000 0>; + pwms = <&pwm0 2 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "none"; status = "disabled"; @@ -67,14 +67,14 @@ led_blue: pwm_blue { led_green: pwm_green { label = "pwm:green:user"; - pwms = <&pwm0 0 10000000 0>; + pwms = <&pwm0 0 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; }; led_red: pwm_red { label = "pwm:red:user"; - pwms = <&pwm0 1 10000000 0>; + pwms = <&pwm0 1 10000000 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; }; diff --git a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts b/arch/arm/boot/dts/at91-nattis-2-natte-2.dts index 4f123477e631..d9813299fd47 100644 --- a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts +++ b/arch/arm/boot/dts/at91-nattis-2-natte-2.dts @@ -42,7 +42,7 @@ bl_reg: backlight-regulator { panel_bl: backlight { compatible = "pwm-backlight"; - pwms = <&hlcdc_pwm 0 100000 0>; + pwms = <&hlcdc_pwm 0 100000 PWM_POLARITY_NORMAL>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 diff --git a/arch/arm/boot/dts/at91-sama5d4_ma5d4evk.dts b/arch/arm/boot/dts/at91-sama5d4_ma5d4evk.dts index 4d7cee569ff2..0ab4533ca789 100644 --- a/arch/arm/boot/dts/at91-sama5d4_ma5d4evk.dts +++ b/arch/arm/boot/dts/at91-sama5d4_ma5d4evk.dts @@ -105,7 +105,7 @@ pinctrl_usba_vbus: usba_vbus { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&hlcdc_pwm 0 50000 0>; + pwms = <&hlcdc_pwm 0 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <6>; status = "okay"; diff --git a/arch/arm/boot/dts/at91sam9n12ek.dts b/arch/arm/boot/dts/at91sam9n12ek.dts index d36e162a8817..958c87abd865 100644 --- a/arch/arm/boot/dts/at91sam9n12ek.dts +++ b/arch/arm/boot/dts/at91sam9n12ek.dts @@ -189,7 +189,7 @@ usb0: ohci@500000 { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&hlcdc_pwm 0 50000 0>; + pwms = <&hlcdc_pwm 0 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <6>; power-supply = <&bl_reg>; diff --git a/arch/arm/boot/dts/at91sam9x5dm.dtsi b/arch/arm/boot/dts/at91sam9x5dm.dtsi index a9278038af3b..a04ca0b08494 100644 --- a/arch/arm/boot/dts/at91sam9x5dm.dtsi +++ b/arch/arm/boot/dts/at91sam9x5dm.dtsi @@ -11,7 +11,7 @@ / { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&hlcdc_pwm 0 50000 0>; + pwms = <&hlcdc_pwm 0 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <6>; power-supply = <&bl_reg>; diff --git a/arch/arm/boot/dts/berlin2cd-google-chromecast.dts b/arch/arm/boot/dts/berlin2cd-google-chromecast.dts index 56fa951bc86f..12c19f45efad 100644 --- a/arch/arm/boot/dts/berlin2cd-google-chromecast.dts +++ b/arch/arm/boot/dts/berlin2cd-google-chromecast.dts @@ -41,14 +41,14 @@ leds { white { label = "white"; - pwms = <&pwm 0 600000 0>; + pwms = <&pwm 0 600000 PWM_POLARITY_NORMAL>; max-brightness = <255>; linux,default-trigger = "default-on"; }; red { label = "red"; - pwms = <&pwm 1 600000 0>; + pwms = <&pwm 1 600000 PWM_POLARITY_NORMAL>; max-brightness = <255>; }; }; diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index f2e7609e5346..d62503cb9a88 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -34,7 +34,7 @@ backlight: backlight-pwm { * schematic needs to be 1015171 (15 March 2010), Rev A * or newer. */ - pwms = <&ecap2 0 50000 0>; + pwms = <&ecap2 0 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 10 20 30 40 50 60 70 80 90 99>; default-brightness-level = <7>; }; diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts b/arch/arm/boot/dts/da850-lego-ev3.dts index afd04a423856..4dc42901c6f4 100644 --- a/arch/arm/boot/dts/da850-lego-ev3.dts +++ b/arch/arm/boot/dts/da850-lego-ev3.dts @@ -118,7 +118,7 @@ sound { compatible = "pwm-beeper"; pinctrl-names = "default"; pinctrl-0 = <&ehrpwm0b_pins>; - pwms = <&ehrpwm0 1 1000000 0>; + pwms = <&ehrpwm0 1 1000000 PWM_POLARITY_NORMAL>; amp-supply = <&>; }; @@ -185,7 +185,7 @@ bt_slow_clk: bt-clock { compatible = "pwm-clock"; #clock-cells = <0>; clock-frequency = <32768>; - pwms = <&ecap2 0 30518 0>; + pwms = <&ecap2 0 30518 PWM_POLARITY_NORMAL>; }; /* ARM local RAM */ diff --git a/arch/arm/boot/dts/exynos4412-midas.dtsi b/arch/arm/boot/dts/exynos4412-midas.dtsi index 3023bc3b68ce..ee64081abce9 100644 --- a/arch/arm/boot/dts/exynos4412-midas.dtsi +++ b/arch/arm/boot/dts/exynos4412-midas.dtsi @@ -171,7 +171,7 @@ charger_reg: CHARGER { max77693_haptic { compatible = "maxim,max77693-haptic"; haptic-supply = <&ldo26_reg>; - pwms = <&pwm 0 38022 0>; + pwms = <&pwm 0 38022 PWM_POLARITY_NORMAL>; }; charger { diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts index 8ff243ba4542..d97b290565e2 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts @@ -33,7 +33,7 @@ led1 { fan0: pwm-fan { compatible = "pwm-fan"; - pwms = <&pwm 0 10000 0>; + pwms = <&pwm 0 10000 PWM_POLARITY_NORMAL>; #cooling-cells = <2>; cooling-levels = <0 102 170 230>; }; diff --git a/arch/arm/boot/dts/exynos5250-snow-common.dtsi b/arch/arm/boot/dts/exynos5250-snow-common.dtsi index c952a615148e..8b94b9d88f1e 100644 --- a/arch/arm/boot/dts/exynos5250-snow-common.dtsi +++ b/arch/arm/boot/dts/exynos5250-snow-common.dtsi @@ -196,7 +196,7 @@ xxti { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm 0 1000000 0>; + pwms = <&pwm 0 1000000 PWM_POLARITY_NORMAL>; brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; default-brightness-level = <7>; enable-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>; diff --git a/arch/arm/boot/dts/exynos5410-odroidxu.dts b/arch/arm/boot/dts/exynos5410-odroidxu.dts index 4f9297ae0763..5edd2b94135a 100644 --- a/arch/arm/boot/dts/exynos5410-odroidxu.dts +++ b/arch/arm/boot/dts/exynos5410-odroidxu.dts @@ -37,7 +37,7 @@ emmc_pwrseq: pwrseq { fan0: pwm-fan { compatible = "pwm-fan"; - pwms = <&pwm 0 20972 0>; + pwms = <&pwm 0 20972 PWM_POLARITY_NORMAL>; #cooling-cells = <2>; cooling-levels = <0 130 170 230>; }; diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index 2bcbdf8a39bf..1a89f3783b42 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -34,7 +34,7 @@ aliases { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm 0 1000000 0>; + pwms = <&pwm 0 1000000 PWM_POLARITY_NORMAL>; brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; default-brightness-level = <7>; power-supply = <&tps65090_fet1>; diff --git a/arch/arm/boot/dts/exynos5422-odroidhc1.dts b/arch/arm/boot/dts/exynos5422-odroidhc1.dts index 812659260278..c7d81c4d3465 100644 --- a/arch/arm/boot/dts/exynos5422-odroidhc1.dts +++ b/arch/arm/boot/dts/exynos5422-odroidhc1.dts @@ -20,7 +20,7 @@ pwmleds { blueled { label = "blue:heartbeat"; - pwms = <&pwm 2 2000000 0>; + pwms = <&pwm 2 2000000 PWM_POLARITY_NORMAL>; pwm-names = "pwm2"; max_brightness = <255>; linux,default-trigger = "heartbeat"; diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi index 5da2d81e3be2..ecebb6867329 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi @@ -43,7 +43,7 @@ emmc_pwrseq: pwrseq { fan0: pwm-fan { compatible = "pwm-fan"; - pwms = <&pwm 0 20972 0>; + pwms = <&pwm 0 20972 PWM_POLARITY_NORMAL>; #cooling-cells = <2>; cooling-levels = <0 130 170 230>; }; diff --git a/arch/arm/boot/dts/exynos5422-odroidxu4.dts b/arch/arm/boot/dts/exynos5422-odroidxu4.dts index 892d389d6d09..ef22f2b37dea 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu4.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu4.dts @@ -22,7 +22,7 @@ pwmleds { blueled { label = "blue:heartbeat"; - pwms = <&pwm 2 2000000 0>; + pwms = <&pwm 2 2000000 PWM_POLARITY_NORMAL>; pwm-names = "pwm2"; max_brightness = <255>; linux,default-trigger = "heartbeat"; diff --git a/arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi b/arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi index 56acd832f0b3..90d80aa8b160 100644 --- a/arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi +++ b/arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi @@ -16,7 +16,7 @@ pwmleds { greenled { label = "green:mmc0"; - pwms = <&pwm 1 2000000 0>; + pwms = <&pwm 1 2000000 PWM_POLARITY_NORMAL>; pwm-names = "pwm1"; /* * Green LED is much brighter than the others @@ -28,7 +28,7 @@ greenled { blueled { label = "blue:heartbeat"; - pwms = <&pwm 2 2000000 0>; + pwms = <&pwm 2 2000000 PWM_POLARITY_NORMAL>; pwm-names = "pwm2"; max_brightness = <255>; linux,default-trigger = "heartbeat"; diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 60ab0effe474..ef289c040a78 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -32,7 +32,7 @@ aliases { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm 0 1000000 0>; + pwms = <&pwm 0 1000000 PWM_POLARITY_NORMAL>; brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; default-brightness-level = <7>; enable-gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>; diff --git a/arch/arm/boot/dts/imx53-tx53-x13x.dts b/arch/arm/boot/dts/imx53-tx53-x13x.dts index 6cdf2082c742..57d5d7fe3881 100644 --- a/arch/arm/boot/dts/imx53-tx53-x13x.dts +++ b/arch/arm/boot/dts/imx53-tx53-x13x.dts @@ -48,6 +48,7 @@ /dts-v1/; #include "imx53-tx53.dtsi" #include +#include / { model = "Ka-Ro electronics TX53 module (LVDS)"; @@ -61,7 +62,7 @@ aliases { backlight0: backlight0 { compatible = "pwm-backlight"; - pwms = <&pwm2 0 500000 0>; + pwms = <&pwm2 0 500000 PWM_POLARITY_NORMAL>; power-supply = <®_3v3>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 @@ -81,7 +82,7 @@ backlight0: backlight0 { backlight1: backlight1 { compatible = "pwm-backlight"; - pwms = <&pwm1 0 500000 0>; + pwms = <&pwm1 0 500000 PWM_POLARITY_NORMAL>; power-supply = <®_3v3>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 diff --git a/arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts b/arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts index 51a9bb9d6bc2..12c43823b1ed 100644 --- a/arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts +++ b/arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts @@ -50,7 +50,7 @@ / { }; &backlight { - pwms = <&pwm2 0 500000 0>; + pwms = <&pwm2 0 500000 PWM_POLARITY_NORMAL>; /delete-property/ turn-on-delay-ms; }; diff --git a/arch/arm/boot/dts/imx6q-display5.dtsi b/arch/arm/boot/dts/imx6q-display5.dtsi index 83524bb99eb3..b37382b0a4f1 100644 --- a/arch/arm/boot/dts/imx6q-display5.dtsi +++ b/arch/arm/boot/dts/imx6q-display5.dtsi @@ -56,7 +56,7 @@ backlight_lvds: backlight { compatible = "pwm-backlight"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_backlight>; - pwms = <&pwm2 0 5000000 0>; + pwms = <&pwm2 0 5000000 PWM_POLARITY_NORMAL>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 diff --git a/arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts b/arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts index ac3050a835e5..507133858719 100644 --- a/arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts +++ b/arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts @@ -50,7 +50,7 @@ / { }; &backlight { - pwms = <&pwm2 0 500000 0>; + pwms = <&pwm2 0 500000 PWM_POLARITY_NORMAL>; /delete-property/ turn-on-delay-ms; }; diff --git a/arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts b/arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts index a773f252816c..6656da97c7d2 100644 --- a/arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts +++ b/arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts @@ -50,7 +50,7 @@ / { }; &backlight { - pwms = <&pwm2 0 500000 0>; + pwms = <&pwm2 0 500000 PWM_POLARITY_NORMAL>; /delete-property/ turn-on-delay-ms; }; diff --git a/arch/arm/boot/dts/imx6qdl-tx6-lvds.dtsi b/arch/arm/boot/dts/imx6qdl-tx6-lvds.dtsi index 2ca2eb37e14f..04387d0fe8f3 100644 --- a/arch/arm/boot/dts/imx6qdl-tx6-lvds.dtsi +++ b/arch/arm/boot/dts/imx6qdl-tx6-lvds.dtsi @@ -48,7 +48,7 @@ aliases { backlight0: backlight0 { compatible = "pwm-backlight"; - pwms = <&pwm2 0 500000 0>; + pwms = <&pwm2 0 500000 PWM_POLARITY_NORMAL>; power-supply = <®_lcd0_pwr>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 @@ -66,7 +66,7 @@ backlight0: backlight0 { backlight1: backlight1 { compatible = "pwm-backlight"; - pwms = <&pwm1 0 500000 0>; + pwms = <&pwm1 0 500000 PWM_POLARITY_NORMAL>; power-supply = <®_lcd1_pwr>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi index dbb98b03f9ad..4b0d8f35e119 100644 --- a/arch/arm/boot/dts/imx7-colibri.dtsi +++ b/arch/arm/boot/dts/imx7-colibri.dtsi @@ -4,12 +4,14 @@ * */ +#include + / { bl: backlight { compatible = "pwm-backlight"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bl_on>; - pwms = <&pwm1 0 5000000 0>; + pwms = <&pwm1 0 5000000 PWM_POLARITY_NORMAL>; enable-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; }; diff --git a/arch/arm/boot/dts/imx7d-nitrogen7.dts b/arch/arm/boot/dts/imx7d-nitrogen7.dts index 6b4acea1ef79..b3e32b3a7a35 100644 --- a/arch/arm/boot/dts/imx7d-nitrogen7.dts +++ b/arch/arm/boot/dts/imx7d-nitrogen7.dts @@ -6,6 +6,7 @@ /dts-v1/; #include "imx7d.dtsi" +#include / { model = "Boundary Devices i.MX7 Nitrogen7 Board"; @@ -26,7 +27,7 @@ backlight-j9 { backlight_lcd: backlight-j20 { compatible = "pwm-backlight"; - pwms = <&pwm1 0 5000000 0>; + pwms = <&pwm1 0 5000000 PWM_POLARITY_NORMAL>; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <6>; status = "okay"; diff --git a/arch/arm/boot/dts/imx7d-pico.dtsi b/arch/arm/boot/dts/imx7d-pico.dtsi index e57da0d32b98..08f0f46f1e60 100644 --- a/arch/arm/boot/dts/imx7d-pico.dtsi +++ b/arch/arm/boot/dts/imx7d-pico.dtsi @@ -5,11 +5,12 @@ /dts-v1/; #include "imx7d.dtsi" +#include / { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm4 0 50000 0>; + pwms = <&pwm4 0 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 36 72 108 144 180 216 255>; default-brightness-level = <6>; }; diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 869efbc4af42..e924ee8eddcb 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -5,6 +5,7 @@ /dts-v1/; #include "imx7d.dtsi" +#include / { model = "Freescale i.MX7 SabreSD Board"; @@ -129,7 +130,7 @@ reg_fec2_3v3: regulator-fec2-3v3 { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm1 0 5000000 0>; + pwms = <&pwm1 0 5000000 PWM_POLARITY_NORMAL>; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <6>; status = "okay"; diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts index eff51e113db4..818bc0fac3d4 100644 --- a/arch/arm/boot/dts/imx7ulp-evk.dts +++ b/arch/arm/boot/dts/imx7ulp-evk.dts @@ -8,6 +8,7 @@ /dts-v1/; #include "imx7ulp.dtsi" +#include / { model = "NXP i.MX7ULP EVK"; @@ -24,7 +25,7 @@ memory@60000000 { backlight { compatible = "pwm-backlight"; - pwms = <&tpm4 1 50000 0>; + pwms = <&tpm4 1 50000 PWM_POLARITY_NORMAL>; brightness-levels = <0 20 25 30 35 40 100>; default-brightness-level = <6>; status = "okay"; diff --git a/arch/arm/boot/dts/iwg20d-q7-common.dtsi b/arch/arm/boot/dts/iwg20d-q7-common.dtsi index ebbe1518ef8a..e9ea04540c16 100644 --- a/arch/arm/boot/dts/iwg20d-q7-common.dtsi +++ b/arch/arm/boot/dts/iwg20d-q7-common.dtsi @@ -49,7 +49,7 @@ audio_clock: audio_clock { lcd_backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm3 0 5000000 0>; + pwms = <&pwm3 0 5000000 PWM_POLARITY_NORMAL>; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <7>; enable-gpios = <&gpio5 14 GPIO_ACTIVE_HIGH>; diff --git a/arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi b/arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi index f7b82ced4080..4bf696c3c242 100644 --- a/arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi +++ b/arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi @@ -149,7 +149,7 @@ bl: backlight { compatible = "pwm-backlight"; pinctrl-names = "default"; pinctrl-0 = <&backlight_pins>; - pwms = <&pwm10 0 5000000 0>; + pwms = <&pwm10 0 5000000 PWM_POLARITY_NORMAL>; brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; default-brightness-level = <7>; enable-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>; /* gpio_154 */ diff --git a/arch/arm/boot/dts/meson8b-ec100.dts b/arch/arm/boot/dts/meson8b-ec100.dts index 163a200d5a7b..0380206eb13f 100644 --- a/arch/arm/boot/dts/meson8b-ec100.dts +++ b/arch/arm/boot/dts/meson8b-ec100.dts @@ -150,7 +150,7 @@ vcck: regulator-vcck { vin-supply = <&vcc_5v>; - pwms = <&pwm_cd 0 1148 0>; + pwms = <&pwm_cd 0 1148 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -234,7 +234,7 @@ vddee: regulator-vddee { vin-supply = <&vcc_5v>; - pwms = <&pwm_cd 1 1148 0>; + pwms = <&pwm_cd 1 1148 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; diff --git a/arch/arm/boot/dts/meson8b-mxq.dts b/arch/arm/boot/dts/meson8b-mxq.dts index 33037ef62d0a..910942d4785a 100644 --- a/arch/arm/boot/dts/meson8b-mxq.dts +++ b/arch/arm/boot/dts/meson8b-mxq.dts @@ -39,7 +39,7 @@ vcck: regulator-vcck { regulator-min-microvolt = <860000>; regulator-max-microvolt = <1140000>; - pwms = <&pwm_cd 0 1148 0>; + pwms = <&pwm_cd 0 1148 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -86,7 +86,7 @@ vddee: regulator-vddee { vin-supply = <&vcc_5v>; - pwms = <&pwm_cd 1 1148 0>; + pwms = <&pwm_cd 1 1148 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <100 0>; regulator-boot-on; diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index a2a47804fc4a..cb7411fc6d84 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -132,7 +132,7 @@ vcck: regulator-vcck { vin-supply = <&p5v0>; - pwms = <&pwm_cd 0 12218 0>; + pwms = <&pwm_cd 0 12218 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <91 0>; regulator-boot-on; @@ -164,7 +164,7 @@ vddee: regulator-vddee { vin-supply = <&p5v0>; - pwms = <&pwm_cd 1 12218 0>; + pwms = <&pwm_cd 1 12218 PWM_POLARITY_NORMAL>; pwm-dutycycle-range = <91 0>; regulator-boot-on; diff --git a/arch/arm/boot/dts/motorola-mapphone-common.dtsi b/arch/arm/boot/dts/motorola-mapphone-common.dtsi index b6e82b165f5c..87b78dbe4b42 100644 --- a/arch/arm/boot/dts/motorola-mapphone-common.dtsi +++ b/arch/arm/boot/dts/motorola-mapphone-common.dtsi @@ -178,7 +178,8 @@ pwm9: dmtimer-pwm-9 { vibrator { compatible = "pwm-vibrator"; - pwms = <&pwm9 0 10000000 0>, <&pwm8 0 10000000 0>; + pwms = <&pwm9 0 10000000 PWM_POLARITY_NORMAL>, + <&pwm8 0 10000000 PWM_POLARITY_NORMAL>; pwm-names = "enable", "direction"; direction-duty-cycle-ns = <10000000>; }; diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 409a758c99f1..a30278267ac2 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi @@ -138,7 +138,7 @@ lcd_in: endpoint { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm11 0 12000000 0>; + pwms = <&pwm11 0 12000000 PWM_POLARITY_NORMAL>; pwm-names = "backlight"; brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>; default-brightness-level = <9>; /* => 90 */ diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 4089d97405c9..99e5f0e5a271 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -152,7 +152,7 @@ pwm9: dmtimer-pwm { ir: n900-ir { compatible = "nokia,n900-ir"; - pwms = <&pwm9 0 26316 0>; /* 38000 Hz */ + pwms = <&pwm9 0 26316 PWM_POLARITY_NORMAL>; /* 38000 Hz */ }; rom_rng: rng { diff --git a/arch/arm/boot/dts/rk3288-veyron-edp.dtsi b/arch/arm/boot/dts/rk3288-veyron-edp.dtsi index 32c0f10765dd..56404139ac28 100644 --- a/arch/arm/boot/dts/rk3288-veyron-edp.dtsi +++ b/arch/arm/boot/dts/rk3288-veyron-edp.dtsi @@ -47,7 +47,7 @@ backlight: backlight { enable-gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&bl_en>; - pwms = <&pwm0 0 1000000 0>; + pwms = <&pwm0 0 1000000 PWM_POLARITY_NORMAL>; post-pwm-on-delay-ms = <10>; pwm-off-delay-ms = <10>; power-supply = <&backlight_regulator>; diff --git a/arch/arm/boot/dts/rk3288-veyron.dtsi b/arch/arm/boot/dts/rk3288-veyron.dtsi index 54a6838d73f5..58dd4fbd057c 100644 --- a/arch/arm/boot/dts/rk3288-veyron.dtsi +++ b/arch/arm/boot/dts/rk3288-veyron.dtsi @@ -101,7 +101,7 @@ vdd_logic: vdd-logic { compatible = "pwm-regulator"; regulator-name = "vdd_logic"; - pwms = <&pwm1 0 1994 0>; + pwms = <&pwm1 0 1994 PWM_POLARITY_NORMAL>; pwm-supply = <&vcc33_sys>; pwm-dutycycle-range = <0x7b 0>; diff --git a/arch/arm/boot/dts/rv1108-evb.dts b/arch/arm/boot/dts/rv1108-evb.dts index 30f3d0470ad9..dc7efab6af93 100644 --- a/arch/arm/boot/dts/rv1108-evb.dts +++ b/arch/arm/boot/dts/rv1108-evb.dts @@ -53,7 +53,7 @@ backlight: backlight { 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>; default-brightness-level = <200>; - pwms = <&pwm0 0 25000 0>; + pwms = <&pwm0 0 25000 PWM_POLARITY_NORMAL>; }; vcc_sys: vsys-regulator { diff --git a/arch/arm/boot/dts/s3c6410-mini6410.dts b/arch/arm/boot/dts/s3c6410-mini6410.dts index 1aeac33b0d34..30814ae5c09d 100644 --- a/arch/arm/boot/dts/s3c6410-mini6410.dts +++ b/arch/arm/boot/dts/s3c6410-mini6410.dts @@ -159,7 +159,7 @@ led-4 { buzzer { compatible = "pwm-beeper"; - pwms = <&pwm 0 1000000 0>; + pwms = <&pwm 0 1000000 PWM_POLARITY_NORMAL>; pinctrl-names = "default"; pinctrl-0 = <&pwm0_out>; }; diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi index 8ff70b856334..68c909588fa8 100644 --- a/arch/arm/boot/dts/s5pv210-aries.dtsi +++ b/arch/arm/boot/dts/s5pv210-aries.dtsi @@ -324,7 +324,7 @@ fuelgauge@36 { vibrator: pwm-vibrator { compatible = "pwm-vibrator"; - pwms = <&pwm 1 44642 0>; + pwms = <&pwm 1 44642 PWM_POLARITY_NORMAL>; pwm-names = "enable"; vcc-supply = <&vibrator_pwr>; pinctrl-names = "default"; diff --git a/arch/arm/boot/dts/s5pv210-smdkv210.dts b/arch/arm/boot/dts/s5pv210-smdkv210.dts index 84b38f185199..440c6811ff58 100644 --- a/arch/arm/boot/dts/s5pv210-smdkv210.dts +++ b/arch/arm/boot/dts/s5pv210-smdkv210.dts @@ -42,7 +42,7 @@ ethernet@18000000 { backlight { compatible = "pwm-backlight"; - pwms = <&pwm 3 5000000 0>; + pwms = <&pwm 3 5000000 PWM_POLARITY_NORMAL>; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <6>; pinctrl-names = "default"; diff --git a/arch/arm/boot/dts/sun5i-gr8-evb.dts b/arch/arm/boot/dts/sun5i-gr8-evb.dts index 4c20d731a9c6..0e4e2cee3a64 100644 --- a/arch/arm/boot/dts/sun5i-gr8-evb.dts +++ b/arch/arm/boot/dts/sun5i-gr8-evb.dts @@ -69,7 +69,7 @@ chosen { backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm 0 10000 0>; + pwms = <&pwm 0 10000 PWM_POLARITY_NORMAL>; enable-gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>; brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi index fba37b8756f7..ff7c703cde4f 100644 --- a/arch/arm/boot/dts/vf-colibri.dtsi +++ b/arch/arm/boot/dts/vf-colibri.dtsi @@ -39,6 +39,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include + / { aliases { ethernet0 = &fec1; @@ -49,7 +51,7 @@ bl: backlight { compatible = "pwm-backlight"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bl_on>; - pwms = <&pwm0 0 5000000 0>; + pwms = <&pwm0 0 5000000 PWM_POLARITY_NORMAL>; enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; status = "disabled"; };