From patchwork Sun Apr 5 19:22:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 11474849 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 ED7CF14B4 for ; Sun, 5 Apr 2020 19:24:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C035020672 for ; Sun, 5 Apr 2020 19:24:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pRwFP0Pq"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="Y78B8K7q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C035020672 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=toradex.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=/oTUOqF6Ruk1Rr93i0r4lXMNi6DXe2lK80Z6rhV7KF8=; b=pRwFP0PqSczvB+ mE4hBid+pK8YbuKL8gJ90ueDjwt3CQTFarkeaWC1cMMidpdrEjNZ4cBdq4ra5qtZjPjJkoKfNGOv0 Q1No9+EQBw9tVMOvs3KH4aYuWeJQezCPgu85npEa0EihoMCA8iLdcwFvTXbkUu2Z+8f76eGHb6kBT nFD04iiyczhRP31ZTNlVUIMvVQsEjkZ7eRcYZZjSP5/weX+D3xj1rWL3u3ilyKsdxIEpFBgWcanHK idC8rWPD3Nxzz3op0VY/aaY4wd04OYDBBCfrJkqiLMDsU53oglC5tYMBXTBa6ECW7PdhUPuaL+TdB EFqXiXe9isiPI5yVLXjA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLAsH-0001bU-8D; Sun, 05 Apr 2020 19:24:05 +0000 Received: from mail-bgr052101131072.outbound.protection.outlook.com ([52.101.131.72] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLArQ-0000kb-W6; Sun, 05 Apr 2020 19:23:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GlprnCBFTCbGN6nvOLdRXb4W/gzkx8MjUad/gX5CKRpTM0IbT39HRspdE18EMIKJnzHDeKqpHD0kU9U2ZWjBv50hIICKhADh8s3pZwsFmNe+VpzveWSg9zTBzO3NLwxpYD5rO9g2mIGX6dmiM0aljOWAYDXxyf5JLdFAk4ffgmC9n5cFsa8Jyt7aoDc4Xcrw89wuHJQzIff3oTmcoX+2Mu1Wxxa60YncVLuH28FSDf2OjxtgrMTfQ4rXf0XuEdvr6MMp23/bk5xB2UmiVCwgo1OAT3J7pkWgp7V1JTT8lgSDrkx+6LPhwFt9QSX1LDvmSkrK7Tnu6GuMhvdPtRb4xw== 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=iOkPSnLpEY3RV6H3sW5ScnsoPQ0jQtXmv5Rbt1I9oY0=; b=SkWFkSoJZ1wQ9L/5C/Bxkzme9IHu3L8jbtyPLAexgnN50y/1SKWVcTu8Ye6LGf1bwLsN544hVkJRekLrcCacZFPaf1okzEPervCanYsBwCMdXUL4/+1rc0W0yWvpaMwND4c4g+aRCJKKZ5vaxn9TQ6Tvp4QyL8RUsABcwev7kG2LMLMZGJdcKOPE7+BeXkYhmSQyOk5z4S+luqfPzdqMRrDDNA/QayDthQPZHW1K57tODIyBY/fch64AEhdBLY9458t1df01HYfFIoycnTzaTCSruUNXQaSw1QH7iOX94LcarW93ZamaS80Mk03ofr5EvriifCUiJhCZ6O6laAIZig== 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=iOkPSnLpEY3RV6H3sW5ScnsoPQ0jQtXmv5Rbt1I9oY0=; b=Y78B8K7qLBxERzkx/HyPgyjhnKp6FKEf5unM/1d8GRVUjkDgy7d1x3adMgi7mV6aI+uIbgYsYUkoje/DSZ4a35sXPk4Oj+d1wAJM2Frh9D6G5A6bFtw+XUoymCo15xtR25wkSh0WD0w/I/rHbR80ljg4Cuv12dvm6pZWhwgzM90= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; Received: from VI1PR05MB3279.eurprd05.prod.outlook.com (2603:10a6:802:1c::24) by VI1PR05MB5373.eurprd05.prod.outlook.com (2603:10a6:803:b1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.20; Sun, 5 Apr 2020 19:22:59 +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.2878.018; Sun, 5 Apr 2020 19:22:58 +0000 From: Oleksandr Suvorov To: devicetree@vger.kernel.org Subject: [RFC PATCH v2 3/6] arm64: dts: pwm: replace flag 1 with PWM_POLARITY_INVERTED Date: Sun, 5 Apr 2020 22:22:43 +0300 Message-Id: <20200405192246.3741784-4-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200405192246.3741784-1-oleksandr.suvorov@toradex.com> References: <20200405192246.3741784-1-oleksandr.suvorov@toradex.com> X-ClientProxiedBy: GV0P278CA0046.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::15) 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 GV0P278CA0046.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15 via Frontend Transport; Sun, 5 Apr 2020 19:22:58 +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: 60734f8b-7b30-414f-1e4f-08d7d996c00f X-MS-TrafficTypeDiagnostic: VI1PR05MB5373:|VI1PR05MB5373: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-Forefront-PRVS: 03648EFF89 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:5; SRV:; IPV:NLI; SFV:SPM; H:VI1PR05MB3279.eurprd05.prod.outlook.com; PTR:; CAT:OSPM; SFTY:; SFS:(10019020)(4636009)(346002)(376002)(366004)(396003)(39840400004)(136003)(54906003)(6486002)(55236004)(81156014)(2906002)(8676002)(508600001)(86362001)(52116002)(6496006)(26005)(81166006)(316002)(8936002)(36756003)(6666004)(956004)(66946007)(2616005)(7416002)(1076003)(186003)(16526019)(66556008)(66476007)(44832011)(6916009)(5660300002)(4326008)(23200700001); DIR:OUT; SFP:1501; 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: ZrgeAKfj9VjdcQTH47lH95FtpIrF6naza8D4bQutKa1cLqsgqqN/zkl1WCP1sujELglaon3tyRSgjH6bdlZsO8iPNicw/UC55qzeAzD/DZ9lx44731RKDghOEUvygQrPIuh5uQK/28+y7bDIzHvl3Hdb30QQvT/NUj0MrLY4xiDxV0Nwrw5+PNhOztvcCrPTF9VU9kF9pFmlx9LzQ+6PPELB5Sdbv8Sge2heEDt5iVFPW4E3ToSgXB/OiA9I/cSlbBC825NBAfpb1HpaYBNtOD9ZRKhv8rboILoLgWl7eES0w5JETZEiGYZFuaq1mQBDGgmakQUhvBUJopmN3nKCphxQEatRnrUL28IopaQqfD2vBzHK+hijxdMn1HALCD64t5ozArDEXUJ8nJ+8ObbogJrhLWk2Tz4H0G2bnaIRQDCSGdyuLJ3rjGaQ/gT5qkyl5oeFS2/vbuIk5TyGy/9rcWT3HU0cPqS/jkfF6bcX+WWA7QwKf5CCpd/hxg40i4n/YBtdEIk20htlDtXFqQbwJiJyiC+c4ZZG7kjVy70P907c68042SZ35m7yZXY8AoTVBfxu4BQylsA9WusK1FCiBbTXejuw9SL382HOyYJCbhtaxazh1u6wLO8tDP3W95vbERjoiFxUMP5P3wTlb4OI9srYbtfGNQIc/3B/Q8lxdgLKkLH9MgIFyYtuNch5dzkOwPtLN5F86AL/GcIYPFzdeZjemQBGfzUXU+SxxfFT8Jl+Mn9ogxdXCbe3L+Ogh3PZ7hwmWpq8Xp+XnlbElzzfxQ== X-MS-Exchange-AntiSpam-MessageData: vNZVWWOoJybCB/djMZ4Tm1Ey+YYyNEj/eLDzZJjwqihfyQ9KtU4UI/NKyNMJo4fapF8uTs5Ixjrs0Fx2LxJpH238MHueIyixKo9pUCvbwsLJhKu3uDJSedvAQ0/75oxg4lURFsq48gfDbNBEGvcxDQ== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60734f8b-7b30-414f-1e4f-08d7d996c00f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2020 19:22:58.9341 (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: 6OzTja0fYmNiI/T3J1P0udUwhIjIgbNMUySXokrkPupkspV9jQQRKvKca4lPLVgbhggiFv1JBJfqiourdnkobanHMywnvsc7WnfSKmqxJ9o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5373 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200405_122313_079882_59E107D1 X-CRM114-Status: UNSURE ( 7.31 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [52.101.131.72 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [52.101.131.72 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexis Ballier , Marcel Ziswiler , Kever Yang , Oleksandr Suvorov , Soeren Moch , Laurent Pinchart , Hugh Cole-Baker , Heiko Stuebner , Tobias Schramm , Katsuhiro Suzuki , Markus Reichl , linux-rockchip@lists.infradead.org, Jagan Teki , Nick Xie , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Vicente Bergas , Philippe Schenker , Paul Barker , Rob Herring , Akash Gajjar , Johan Jonker , Ezequiel Garcia , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andrius_=C5=A0tikonas?= , Igor Opaniuk , linux-kernel@vger.kernel.org, "Matwey V. Kornilov" , Andy Yan , Robin Murphy , Vivek Unune Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Flag '1' in the 3rd cell of the "pwms" property means the inverted polarity. This patch converts '1' flag into macro PWM_POLARITY_INVERTED. Signed-off-by: Oleksandr Suvorov --- Changes in v2: None arch/arm64/boot/dts/rockchip/rk3308-evb.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3308-evb.dts b/arch/arm64/boot/dts/rockchip/rk3308-evb.dts index 9b4f855ea5d4..8a198676cef3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308-evb.dts +++ b/arch/arm64/boot/dts/rockchip/rk3308-evb.dts @@ -155,7 +155,7 @@ vcc5v0_host: vcc5v0-host { vdd_core: vdd-core { compatible = "pwm-regulator"; - pwms = <&pwm0 0 5000 1>; + pwms = <&pwm0 0 5000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_core"; regulator-min-microvolt = <827000>; regulator-max-microvolt = <1340000>; diff --git a/arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts b/arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts index aa256350b18f..6ef851e7e16a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dts @@ -96,7 +96,7 @@ vcc_sd: vcc-sd { vdd_core: vdd-core { compatible = "pwm-regulator"; - pwms = <&pwm0 0 5000 1>; + pwms = <&pwm0 0 5000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_core"; regulator-min-microvolt = <827000>; regulator-max-microvolt = <1340000>; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts index d63faf38cc81..5617a441e141 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts @@ -202,7 +202,7 @@ vcc_sys: vcc-sys { vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts b/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts index aee484a05181..5c590f99d80e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts @@ -115,7 +115,7 @@ vcc5v0_usb: vcc5v0-usb { vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; pwm-supply = <&vcc_sys>; regulator-name = "vdd_log"; regulator-min-microvolt = <800000>; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi index e87a04477440..47890757e866 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi @@ -73,7 +73,7 @@ vcc5v0_host: vcc5v0-host-regulator { vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts b/arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts index 73be38a53796..d6c069c6e195 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts @@ -95,7 +95,7 @@ vcc5v0_sys: vcc5v0-sys { vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts index f9f7246d4d2f..bf9976346c0b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts @@ -158,7 +158,7 @@ vcc_sys: vcc-sys { vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts index 5ea281b55fe2..5884968cd5b4 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts @@ -228,7 +228,7 @@ regulator-state-mem { /* RK3399 logic supply */ vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi index 9f225e9c3d54..d9dad0f45564 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi @@ -191,7 +191,7 @@ vcc_sys: vcc-sys { vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts index 3923ec01ef66..5e4f535ef607 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts @@ -122,7 +122,7 @@ regulator-state-mem { vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi index 9bca25801260..5eedeae21189 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi @@ -163,7 +163,7 @@ vcc5v0_usb: vcc5v0-usb { vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi index 1bc1579674e5..9391110b788f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi @@ -127,7 +127,7 @@ vcc_sys: vcc-sys { vdd_log: vdd-log { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; From patchwork Sun Apr 5 19:22:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 11474851 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 BBBB392C for ; Sun, 5 Apr 2020 19:24:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D06B20672 for ; Sun, 5 Apr 2020 19:24:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DMRgVQ6u"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="svJWsXNe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D06B20672 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=toradex.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=hF2lB7oBGnP4Oawvt4dwiYhwHEgzkcIiZV/U0y8CpuM=; b=DMRgVQ6uNuL/kO 0FkqSPq0aULw6+Qw3agqpiCuqsoe1JJSWv1ahqI2Bxe7h3DqUFw1BTqBorv2zohkK4YJrGWkKqIoN oo9ogPZOLGQ3vmT3M7UuQSRy+12jideFcVuE44dYXQKyQ+H0jeWwrS9ttd2OF00Pi6ANKOsdu0iti WUGA0o4VfanE0BmdRWkCuPRob5zZjGlm+P1yIxfPPCkXp3/OIhuSUEFKtwB0ieLz+PnrMi9Mob1Ii LleyNBPa1PF7BExZa6YHuRLCMftNzpj/D5Nk1iw2APJ6Ouo4NXwLzqP8CtsK3dmGpJyoJtqiP5aHc kAF2XCJTFKkb1N7lmq7w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLAsW-0001rh-A0; Sun, 05 Apr 2020 19:24:20 +0000 Received: from mail-bgr052101131072.outbound.protection.outlook.com ([52.101.131.72] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLArT-0000kb-85; Sun, 05 Apr 2020 19:23:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=akTP41vGgztHhcHTwU0FoM0e4CbC9A3RG4GcemjA+rFQsj/MsqXmw9RIToS+e1No2ZmdUtIb9j50+PV+ZbVCLiT/aslUksVarpje6UZ/2bIP2uivAzGQBhdoiqFB30vQEJ9D7pf4yo7uLZo+4M7iRA2aef4jDSiIezlVGwSw+HoANbIvciDXC96QUSH3xOUeiYrZW2DycpCwhYprRLn5DDTLiOVyYiPjc3A/2B7cOgpgUFKBvOt1C1lKRDk8lzG1IIejw7qNMEvSQhfJOe1CBexW3BpNtfQ9ICQ2LpP+IuXtrcr+95erOT7lmQSKkFJH+Q+n+r2QbSXPXVrK1pR3Lw== 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=vMDljc1XcMyeVZSix1Qwfrw8eyfZsNZ2IivkuKdCQGg=; b=gqvo587Wpxi2Q93WCSZy5AXV5NqpyIsUu8JIx9SRsV8VsXeOvO+Qeuc0zlDtJpa9oT4YotEPAjE+GuAzlAYUd6/CMox0rkoa4bw5otphI/OLYjv7DmykLsQSeyH8WF0jmgyVxxA/Oew35wxQ5NiqPanv4ZMjazrypkIpvyu5PvnuugA3Qb6308tW0HkxaXh+jM7aWoOrdSC8mh/BAc2xmLwyvVUzpAPxsIqgBWLzerzdJD/7LwydRE+aznDXHD/peWOmwp5D53QhW+uILKbMFt9JqH1FCSiVdDwUFE3kToKRVdF2sYMsSQXCfJbsQl/PQER51pRETI/Lyu9rIxeB6A== 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=vMDljc1XcMyeVZSix1Qwfrw8eyfZsNZ2IivkuKdCQGg=; b=svJWsXNeFSwvirv8ikb9GbFisc2hSoo+Ur15NT589ITlpF98Oh7J86ICvIXdP1DhPOt0u1LQetB1wAC8GCOey/Mv6d/G9EXfYXOejBHRAvH/3SCgPOEPyfe1+nV5Kw/kRUk2U+uxM//wRrNfzvBd4GIgsEyXihESDdhZv0uMGEs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; Received: from VI1PR05MB3279.eurprd05.prod.outlook.com (2603:10a6:802:1c::24) by VI1PR05MB5373.eurprd05.prod.outlook.com (2603:10a6:803:b1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.20; Sun, 5 Apr 2020 19:23:00 +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.2878.018; Sun, 5 Apr 2020 19:23:00 +0000 From: Oleksandr Suvorov To: devicetree@vger.kernel.org Subject: [RFC PATCH v2 4/6] arm64: dts: pwm: replace flag 0 with PWM_NOFLAGS Date: Sun, 5 Apr 2020 22:22:44 +0300 Message-Id: <20200405192246.3741784-5-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200405192246.3741784-1-oleksandr.suvorov@toradex.com> References: <20200405192246.3741784-1-oleksandr.suvorov@toradex.com> X-ClientProxiedBy: ZR0P278CA0009.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::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 ZR0P278CA0009.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.16 via Frontend Transport; Sun, 5 Apr 2020 19:23:00 +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: bad32437-5332-4985-1b5f-08d7d996c127 X-MS-TrafficTypeDiagnostic: VI1PR05MB5373:|VI1PR05MB5373: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-Forefront-PRVS: 03648EFF89 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:5; SRV:; IPV:NLI; SFV:SPM; H:VI1PR05MB3279.eurprd05.prod.outlook.com; PTR:; CAT:OSPM; SFTY:; SFS:(10019020)(4636009)(346002)(376002)(366004)(396003)(39840400004)(136003)(54906003)(6486002)(55236004)(81156014)(2906002)(8676002)(508600001)(86362001)(30864003)(52116002)(6496006)(26005)(81166006)(316002)(8936002)(36756003)(6666004)(956004)(66946007)(2616005)(7406005)(7416002)(1076003)(186003)(16526019)(66556008)(66476007)(44832011)(6916009)(5660300002)(4326008)(23200700001); DIR:OUT; SFP:1501; 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: 83u1VFu+AIcAcj4XFG1ALJnkd9BWI3LG42zZ2zou/SHj8tlC9KkWNPQAkui+jvlGdywuFeOAUGVFeKIM7YWLQV4SBZ849nWiiQYHT5lrFJ2J00w+FBGQ7DZfbeUJz48UYdZ8SCBN1stJ0TxePWbA4SAIavcLqpqqd7sx3jBlp1kNgpo2+Cu02dQ3GwosjA2E+pQo6AaKFtBYzL4/DWYa2dXFvuCmRXm6Ujww6Z9Fm7bcUlPYIlnAGo5y2yN837foDUiVkx/ui7XwmYusH930tA+vluCGabbnntauHGBSH1u9HTxM/UO0uGhdU71yhLunDb748tXjJWY3qCmLgvvAOYAVfoKytNjl7k/S0oarH2BYU37L1HzcgaA46lpspvgnu0U/8EoO//cU0g1Dn7G7fLrYNcn0D664CpB4UZplMTSRXJqUfiyGSv4RQ5K7rWySgwLjsP17H1GZPOd9BcNtmwSPETnx/142P5lkOxkEUIuLmNDUaOrI4aSrpSN4tF7y5kJYo+SJwW8XGNc9okA8DRgsOU4KlQFxH9dT6POWNVKeqHxkVWsgA+x9O0W62CngM1Cl/yxbGn5nPfjmiTKqepK2Q1dhUeFak9s9G+cTzs2VqILZ0/Pd6n7f9dBB2DWuhGhKi/eMCcpOul6Jnt1xreqQippC8E4NObbdIaByc7UWpaJ6ZOqQZz+suIq19wp+95C34p+/65nynWNxhUxbuwrPy0KMqyAojMMbSlG1jWtf110an2Dm0ixCuFX901PrkJfTlM4G4RvmdU6ihg6/Iw== X-MS-Exchange-AntiSpam-MessageData: WlZIyrxegFN7z9YeWT2MtNZyJUS/OnvjOrELxdcqtiGpDnMlasKyECT1XCFvVHWXb/AOiHtiABbvhRWq5e7GC2ZQjrzz+QHSN+4WKBjOASIZZTqATd4dwWEsnqKH6tKDr5OgpEumNBn1ZJ+4rAuM2Q== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: bad32437-5332-4985-1b5f-08d7d996c127 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2020 19:23:00.8170 (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: WvUp4LZMlrdaD/+1GD+jBhHJVcRl7vUFFnVE9AZ+fKHeYSyV/4xjlRP/dhDIPq/dAKLumDe4JeW738nv88P89gvbWS5sjf0NhPlzc6x4mvk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5373 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200405_122315_449209_B2E9471B X-CRM114-Status: GOOD ( 11.98 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [52.101.131.72 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [52.101.131.72 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , Marcel Ziswiler , Kever Yang , Oleksandr Suvorov , Soeren Moch , Laurent Pinchart , Miquel Raynal , Hugh Cole-Baker , linux-samsung-soc@vger.kernel.org, Katsuhiro Suzuki , Kevin Hilman , Daniel Lezcano , Krzysztof Kozlowski , Markus Reichl , linux-rockchip@lists.infradead.org, Chen-Yu Tsai , Kukjin Kim , Jagan Teki , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Nick Xie , Maxime Ripard , Philippe Schenker , Paul Barker , Rob Herring , linux-amlogic@lists.infradead.org, Johan Jonker , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andrius_=C5=A0tikonas?= , Igor Opaniuk , linux-kernel@vger.kernel.org, Enric Balletbo i Serra , Andy Yan , Robin Murphy Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The raw value '0' in the 3rd cell of the "pwms" property means there are no flags to be set. This patch converts '0' flag into PWM_NOFLAGS. Signed-off-by: Oleksandr Suvorov Acked-by: Krzysztof Kozlowski --- Changes in v2: - Use PWM_NOFLAGS instead of PWM_POLARITY_NORMAL to avoid possible conflict with enum pwm_polarity in . Also, this name reflects the sense of this value more precisely. 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..3aa0cc70eb9a 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_NOFLAGS>; 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..0c493c662e19 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_NOFLAGS>; 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..6cdac1daf580 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_NOFLAGS>; }; }; 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 0882ea215b88..45b96bca4398 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 b00d0468c753..7d85d4066397 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_NOFLAGS>; 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_NOFLAGS>; }; sound { diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts index a26bfe72550f..22f642664665 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_NOFLAGS>; 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 1b07c8c06eac..4857fee0b48e 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_NOFLAGS>; 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_NOFLAGS>; }; }; 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 c33e85fbdaba..3250d3e12d46 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi @@ -22,7 +22,7 @@ vddcpu_a: regulator-vddcpu-a { vin-supply = <&dc_in>; - pwms = <&pwm_ab 0 1250 0>; + pwms = <&pwm_ab 0 1250 PWM_NOFLAGS>; pwm-dutycycle-range = <100 0>; regulator-boot-on; @@ -41,7 +41,7 @@ vddcpu_b: regulator-vddcpu-b { vin-supply = <&vsys_3v3>; - pwms = <&pwm_AO_cd 1 1250 0>; + pwms = <&pwm_AO_cd 1 1250 PWM_NOFLAGS>; 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 169ea283d4ee..68a47428ec68 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_NOFLAGS>; 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_NOFLAGS>; 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 325e448eb09c..841974b6474d 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_NOFLAGS>; 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_NOFLAGS>; 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_NOFLAGS>; }; }; 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..9da6ad85aff0 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_NOFLAGS>; }; 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 03f79fe045b7..e00c045fb8a8 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 #include / { 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..a4058ce97d75 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_NOFLAGS>; }; 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..30c900cf1d12 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_NOFLAGS>; }; 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..f10a90eb39f6 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_NOFLAGS>; }; 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..ce91158d0aa9 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_NOFLAGS>; }; 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..281836e3e178 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_NOFLAGS>; }; 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..4711fd911205 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_NOFLAGS>; }; 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..71438f79e45f 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_NOFLAGS>; }; 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..c3cda2db21a1 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_NOFLAGS>; 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..78bef1154f81 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_NOFLAGS>; }; 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..a58d0cf277ad 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_NOFLAGS>; }; 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 27eeab71ec77..9b3eed29a5b5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts @@ -86,7 +86,7 @@ pwmleds { power { label = "vim:red:power"; - pwms = <&pwm_AO_ab 1 7812500 0>; + pwms = <&pwm_AO_ab 1 7812500 PWM_NOFLAGS>; max-brightness = <255>; linux,default-trigger = "default-on"; }; @@ -143,7 +143,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_NOFLAGS>; }; }; 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..8442468bb0bc 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_NOFLAGS>; }; 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 094ecf2222bb..68aedcbb2c93 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 / { aliases { @@ -165,7 +166,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_NOFLAGS>; }; }; 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..21219d63362e 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_NOFLAGS>; 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 dfb2438851c0..016c8914e833 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_NOFLAGS>; 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_NOFLAGS>; 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_NOFLAGS>; }; }; diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index 250fc01de78d..f8bd886a7c0e 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_NOFLAGS>; 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..e0257385105a 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_NOFLAGS>; power-supply = <&vcc3v3_lcd>; }; diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi index f809dd6d5dc3..c792b011d2c4 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 6ef851e7e16a..a33bd5b53840 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_NOFLAGS>; }; 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..e831a29ed842 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_NOFLAGS>; }; 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_NOFLAGS>; 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 5617a441e141..49164ad3093f 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_NOFLAGS>; 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..775bca13b5d5 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_NOFLAGS>; 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..e8b105171b86 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_NOFLAGS>; 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_NOFLAGS>; 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..317b1bc9a018 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_NOFLAGS>; 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_NOFLAGS>; 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_NOFLAGS>; 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 47890757e866..9f606a6c01c9 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_NOFLAGS>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts index e0d75617bb7e..f6f60274e5b8 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_NOFLAGS>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi index d9dad0f45564..e86932d9549a 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_NOFLAGS>; }; 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 5eedeae21189..e373277d39ca 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_NOFLAGS>; }; 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 73e269a8ae0c..fa3b70d219ba 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_NOFLAGS>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 74f2c3d49095..30943914bcfa 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 Sun Apr 5 19:22:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 11474841 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 8D793159A for ; Sun, 5 Apr 2020 19:23:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 49FA02075A for ; Sun, 5 Apr 2020 19:23:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RFKPKtYs"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="TNHqFK+c" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 49FA02075A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=toradex.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=SNWkJLnzvvfbId22xKS07eHaqLqsG0doN8kZxPovxmk=; b=RFKPKtYsxdg8uA x8Xxja2JChxryYKp/WIOlDNEMynbeK7as86/CuWDGDVnloX93F+/ollIM0J4ul2Rm0RlVR9upEZCm jFQYg+dRREfaKK1aDEU+hRSgKOBfnvju7NdAKY7eqQfzabuPWttFzV73+85jE151ABAtgXT7xIUYu Tt58OMsbwqIJQgM4KtNWmHI//ZiKtiBL8+Gw2SpGxxa1YUsc4szsy1g8qF4q54J35VdOKEiVbMBiu bZ2agNG0rAadXxWVoZ9bLoFfLkTAItJ5vjWDpX8fTWl49/89TMNIRfiLDsh71hXYwUAduPmnxNaKF /nhBfwo5Z0BClWAH3+GA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLArt-0001GF-Mo; Sun, 05 Apr 2020 19:23:41 +0000 Received: from mail-bgr052101131072.outbound.protection.outlook.com ([52.101.131.72] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLArP-0000kb-4e; Sun, 05 Apr 2020 19:23:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TVY09mXVoYfq6PTLNE/0CzrDCHXbTZmrQV4a1zQZGsEBPfHV2mmVJAZzSXMHyqY6redDG6vNQcpwSuS2LNZzKN7sufEg76JSbMAgZ9zFaxPqcPU9xR03L/6fAEm117QMDwHrM4TVW9L5UsTj9dAPzZCNDdB5apXCtF/7l8clf8uHQNDhLyVCcyqbW8TyACjebRhMDNNdX+KUgk/l7RvrRYnIZvO4j8K34w/Iajh1NJVXtX4pJBXwBZngkW+LCIEMCjgknVPWX64ImZV2rZg9RySukC3IeFJJEAZq3hImbEliktD2jk0ZGFqujxSuY8cJjOWK+ooKlPrtZinzgHj+qQ== 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=atQq7mb/0UUwoxGcHSMu2aS6Ta/RAcP2QPPhubEpy7I=; b=Jy53WsVib55zNTDiV6cLicyIDyOK/kG1A1FasBypzI2N3z5ZRhLnLBljdPGP4ApFgI5nbd7t8eMJlha7NmxbmEGyzPSS6eHJF1ZiwcmrxnARZ1dD1rnJtgOPfGrMYcusQ7MUuCKCsDLw3HiNT7VNeS7SXRaRvthldDZD/FAmq2wOLRupDFT408tUWygDdkn1/DLrVugQNhG/c0urfmG1zjz6q0k1UaDCpPCScKmn808FPkeqUO1hWegcPZARAcLGT+AL0O9cDR6xIxHPvz8qnQldFl3XoKzgb6MzkHURKzMIGHXYJd23ZhuWuasHFY8ffKGRRNeDWIUjnnQQxWs1xQ== 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=atQq7mb/0UUwoxGcHSMu2aS6Ta/RAcP2QPPhubEpy7I=; b=TNHqFK+cAYfGZEf9QuAXYd3zTe18JHyutMpSF2E0nUpI9Nwh1SlOfAohdHnzErOL2DEQu1wTEUUhMzyHeoIyTX64UFUsROWRg+PYVKTQcmfFxrTh57ufOrBcHz+Lr4ISJ7ZOVvhZw+yT+EiJJHnrB7XEKbe2MjCFqK056psXuIk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; Received: from VI1PR05MB3279.eurprd05.prod.outlook.com (2603:10a6:802:1c::24) by VI1PR05MB5373.eurprd05.prod.outlook.com (2603:10a6:803:b1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.20; Sun, 5 Apr 2020 19:23:03 +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.2878.018; Sun, 5 Apr 2020 19:23:03 +0000 From: Oleksandr Suvorov To: devicetree@vger.kernel.org Subject: [RFC PATCH v2 5/6] arm: dts: pwm: replace flag 1 with PWM_POLARITY_INVERTED Date: Sun, 5 Apr 2020 22:22:45 +0300 Message-Id: <20200405192246.3741784-6-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200405192246.3741784-1-oleksandr.suvorov@toradex.com> References: <20200405192246.3741784-1-oleksandr.suvorov@toradex.com> X-ClientProxiedBy: GV0P278CA0017.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:26::27) 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 GV0P278CA0017.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:26::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.16 via Frontend Transport; Sun, 5 Apr 2020 19:23:02 +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: d30ddb97-c874-43aa-a8f0-08d7d996c2a4 X-MS-TrafficTypeDiagnostic: VI1PR05MB5373:|VI1PR05MB5373: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-Forefront-PRVS: 03648EFF89 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:5; SRV:; IPV:NLI; SFV:SPM; H:VI1PR05MB3279.eurprd05.prod.outlook.com; PTR:; CAT:OSPM; SFTY:; SFS:(10019020)(4636009)(346002)(376002)(366004)(396003)(39840400004)(136003)(54906003)(6486002)(55236004)(81156014)(2906002)(8676002)(508600001)(86362001)(52116002)(6496006)(26005)(81166006)(316002)(8936002)(36756003)(6666004)(956004)(66946007)(2616005)(7416002)(1076003)(186003)(16526019)(66556008)(66476007)(44832011)(6916009)(5660300002)(4326008)(23200700001); DIR:OUT; SFP:1501; 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: e0KnAaOkBC/koNiAGxYf0yqSNXbayOeHQiip5ux5fwEpr/+siQOgxCWOzQL88j3zJI4T5oyqp2jqcdN3hKGLB0qS3cLZSg//cLbH+xGK5Oyk1A6MNz3NMAemceEUec1SulkSEJgXGKkQaqWXQ1kBcHxzpLyrd9/US4pJBw4UV/PD03LaZWHus7lrn2glTD4g//A/0HFKYS3/PXUd541rCOQNVSgckND8XfW+QqMMmzkUv1NjYNnlMi9b9/49slyx5qgOe6iVDAm/GHI5s10fgg9gKaHIsH0vCTm14i3JDjovz16ZkymPjKrJ/e27P9jT8BzeYDpSFMf96xGxHH6xTHF5P5XZFGr9SdsVU4HMNY7XIdpttABPIe/IQO1KnHClKi3fc27ltF8z0MrVB/QSUs3PsfY4S4m/C6hEQP82vXIFMJQ1Wf0vhDdxw7WjHsNqGus/Ns7RgFifnYFUmTEmzyFnhSQry/py9YaDFzS6c0+tafSn1zViWsgi5T5NLlP4Rs1G+3lLZJ8PC8vwWJY2tQ+byf6txJu37vBfzJxzrJuVF1KZ8tIbV9B9dh8g1GO+acgR6uJnBD4twT+7d2OgXDJMhafVZP1kDrdQ6LVnfpiTALQWLGs00MBNI5i2QjdA9e9HlakJt8W6pGmYZrKEkBeruFySCnGG/dstk683q3WbIqG0Q91T5pvdleRaAz5l3ghcIu8QbqOSoWh8O7V9PKhoeN+X/OFQ7LdeDUTZ0q+FjzqocUHGzB0tGRiDSo3dwC0/HtVpd2WPNIAktWQBOw== X-MS-Exchange-AntiSpam-MessageData: ey7oMs9HPihny1vD5lYvkn6skZujTaqcwXSWULkrNf4qv+0F9hk4Nw12DuU6BDdj7X83OblaR7k07ntymX483oZpH19EidGdXUFMnQd6ByHnpcLnQUi5khj9whSRTNg1isgpREZaXBjogigPXRi4dg== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: d30ddb97-c874-43aa-a8f0-08d7d996c2a4 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2020 19:23:03.1776 (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: YkA08l9m1tU2uEkx2Cxbvteo0BYcdTm5wfCJybE0Nhzd1kaA99Yj6APSGs7ExRUPwHPIgevAK2JzLsAWl4LnFuzBU++SsgAgSQHVXRGwnrY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5373 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200405_122311_198959_D880EAE9 X-CRM114-Status: UNSURE ( 7.42 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [52.101.131.72 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [52.101.131.72 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Igor Opaniuk , Heiko Stuebner , linux-rockchip@lists.infradead.org, Marcel Ziswiler , Shawn Guo , Sascha Hauer , linux-kernel@vger.kernel.org, Oleksandr Suvorov , Philippe Schenker , Paul Barker , Rob Herring , Laurent Pinchart , Pengutronix Kernel Team , =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Fabio Estevam , linux-arm-kernel@lists.infradead.org, NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The flag '1' in the 3rd cell of the "pwms" property means the inverted polarity. This patch converts '1' flag into PWM_POLARITY_INVERTED. Signed-off-by: Oleksandr Suvorov --- Changes in v2: None arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 4 +++- arch/arm/boot/dts/rk3229-evb.dts | 4 ++-- arch/arm/boot/dts/rk3229-xms6.dts | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi index a78849fd2afa..3707f13ffd83 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi @@ -3,6 +3,8 @@ * Copyright 2017 Toradex AG */ +#include + / { chosen { stdout-path = "serial0:115200n8"; @@ -75,7 +77,7 @@ &bl { brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <6>; power-supply = <®_3v3>; - pwms = <&pwm4 0 5000000 1>; + pwms = <&pwm4 0 5000000 PWM_POLARITY_INVERTED>; status = "okay"; }; diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index 350497a3ca86..68ea0c320ab4 100644 --- a/arch/arm/boot/dts/rk3229-evb.dts +++ b/arch/arm/boot/dts/rk3229-evb.dts @@ -83,7 +83,7 @@ vccio_3v3: vccio-3v3-regulator { vdd_arm: vdd-arm-regulator { compatible = "pwm-regulator"; - pwms = <&pwm1 0 25000 1>; + pwms = <&pwm1 0 25000 PWM_POLARITY_INVERTED>; pwm-supply = <&vcc_sys>; regulator-name = "vdd_arm"; regulator-min-microvolt = <950000>; @@ -94,7 +94,7 @@ vdd_arm: vdd-arm-regulator { vdd_log: vdd-log-regulator { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; pwm-supply = <&vcc_sys>; regulator-name = "vdd_log"; regulator-min-microvolt = <1000000>; diff --git a/arch/arm/boot/dts/rk3229-xms6.dts b/arch/arm/boot/dts/rk3229-xms6.dts index 679fc2b00e5a..f11088ae855b 100644 --- a/arch/arm/boot/dts/rk3229-xms6.dts +++ b/arch/arm/boot/dts/rk3229-xms6.dts @@ -92,7 +92,7 @@ vccio_3v3: vccio-3v3-regulator { vdd_arm: vdd-arm-regulator { compatible = "pwm-regulator"; - pwms = <&pwm1 0 25000 1>; + pwms = <&pwm1 0 25000 PWM_POLARITY_INVERTED>; pwm-supply = <&vcc_sys>; regulator-name = "vdd_arm"; regulator-min-microvolt = <950000>; @@ -103,7 +103,7 @@ vdd_arm: vdd-arm-regulator { vdd_log: vdd-log-regulator { compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 1>; + pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>; pwm-supply = <&vcc_sys>; regulator-name = "vdd_log"; regulator-min-microvolt = <1000000>; From patchwork Sun Apr 5 19:22:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 11474833 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 1476214B4 for ; Sun, 5 Apr 2020 19:23:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DF1FA20672 for ; Sun, 5 Apr 2020 19:23:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dCzHKCAE"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="Xlo/VK5C" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DF1FA20672 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=toradex.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=78LlgTnO99+6uzd2gD2PX9AV2gZvZdbihraptfEf8vM=; b=dCzHKCAEiF3oce /DyG47BtWzRqXg+5N7GjzN/ubEpSaoQckxHsYs1QLyvYH7XYDffGCwLdJrdzpjBoIyaQPTZnhoQlU 21091uNad2hwfAWHcRYrD9NtCDL7k+KMrtIgts340IJz5rtEJZnvxyVYBg06OXQWuxR03f49PmCzl VWbRgugsDztdC22tPJMmFRxWI3FQWy0jqx6xkiyuneyajb9/UPcCcQCc6Sr37R6BT6iS7vRT51k36 8wx8zAoj9JwOcwKr5LwBVcTBb+YHe2njlPJw4L9h7B8pvJMw5NBbuhX9AJdU23Tv2ayVhpZUYJow4 JRD8DFWHRPmo4VgSabiw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLArS-0000oj-DT; Sun, 05 Apr 2020 19:23:14 +0000 Received: from mail-eopbgr00133.outbound.protection.outlook.com ([40.107.0.133] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLArK-0000fY-OD; Sun, 05 Apr 2020 19:23:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N1esRMlsyD1GdIZNgfMBukqR4sRcl7nwQLoX9uMkINxU6UbGDO+vICe0Ufo7Pj4wUrQ9kvHzDunQy+s1MvnTW3fjvqCyxlbnprvgYh3ExbD9hQwAyHyWxOtKtMnd0CMDoUuXDbetJPIKH+fR2zSi51N05uEP9b4EsrwOy33dQevD0fzZ7lDneQTgmaLz1yKww5L3AKBJ66b0KUZIh5ViqHLZMh0qwfUJE0/IpM4GMmQCs9SIlJF90n1nKmjBpmnnXHCYsCVg2tI9KL7Ijx9y7GXJZekOdy+pn6OUkgRvU1Gymn4MR/m5bbvmzPUETxxGv/aVVcbzHxMwbZ04I4T3zA== 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=rZ/9we2MRoUwuFBL1eK4ydBrJ2isvU5LTtqDXwherRo=; b=lk5dpA3RJJ3encmU4ktTvLw9iqtCskltO2G9WWlhGuxY5Ko9vHyc98pHjHlMk3aOCHzHFzewScI/j3daxN2IlxOI/I3kSQ+QPjymZWJe0qwLW6wSWr/ku4r5U9m7RYuuT7k8jlb3Lviwg5cHgyUG2uQZYwxOMxNSy1b+JBQabCnf26mrJky61W+acKMMEAX5gjW60iV//oZRdOnGm5YipbLv0ZurqFjrR9z1bsw+SuWAgk7O2HiJaDT52NYDMHwGi4X6iY4+s/yoEMsQIrs0TlJ79ZP+xTDCj6LcA8bS9j2cVZQPQf13vvmwS0AX5Tr7aescPI5z56q/qnPHsK9leQ== 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=rZ/9we2MRoUwuFBL1eK4ydBrJ2isvU5LTtqDXwherRo=; b=Xlo/VK5Clp9ku/UOIRvsgIEizXggN7F++dFYB8VOVVQcvCpCuvoGxKwYL5zPfu0SacHkgPeKe4mgt4bFcJxTITcbEIAsiZpHUMkKjGjhtJ2yr9rFTUgt7grVD0JzX8rrx/p+wlxkisnqNVzpm1ImZzUuJlz7oH2Tx97KOSvXzS4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; Received: from VI1PR05MB3279.eurprd05.prod.outlook.com (2603:10a6:802:1c::24) by VI1PR05MB5373.eurprd05.prod.outlook.com (2603:10a6:803:b1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.20; Sun, 5 Apr 2020 19:23:05 +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.2878.018; Sun, 5 Apr 2020 19:23:05 +0000 From: Oleksandr Suvorov To: devicetree@vger.kernel.org Subject: [RFC PATCH v2 6/6] arm: dts: pwm: replace flag 0 with PWM_NOFLAGS Date: Sun, 5 Apr 2020 22:22:46 +0300 Message-Id: <20200405192246.3741784-7-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200405192246.3741784-1-oleksandr.suvorov@toradex.com> References: <20200405192246.3741784-1-oleksandr.suvorov@toradex.com> X-ClientProxiedBy: ZR0P278CA0047.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::16) 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 ZR0P278CA0047.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15 via Frontend Transport; Sun, 5 Apr 2020 19:23:04 +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: 3835125f-9d47-49f2-b4be-08d7d996c3a4 X-MS-TrafficTypeDiagnostic: VI1PR05MB5373: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-Forefront-PRVS: 03648EFF89 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR05MB3279.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10019020)(4636009)(346002)(376002)(366004)(396003)(39840400004)(136003)(54906003)(6486002)(55236004)(81156014)(2906002)(8676002)(508600001)(86362001)(30864003)(52116002)(6496006)(26005)(81166006)(316002)(8936002)(36756003)(6666004)(956004)(66946007)(2616005)(7406005)(7416002)(1076003)(186003)(16526019)(66556008)(66476007)(44832011)(6916009)(5660300002)(4326008)(95444002); DIR:OUT; SFP:1102; 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: yaXeIqIo+peHV70+PBLL4ETvAqGOY3GK9P3gLZ9Ra/VifriQsOPlb8Cbf3ssiJOA9iWfiQdPQk9V3vhd5alejxMMTv78S8lrWNpzRVABuxZv1a+NASg+b8PcQbugGZp0utYC3iSshGjmmdHHmuO48YtYR38D9tlPFWAMr6k50wHiWqUDw8NyN/OvpG/fB1zC+6AmKcLeeB0EJFdFjGiOYuXInXQRE1NjZkvq4Ga4245T+/1apAtVYWa67yHtccCu47kq7wVH+RCYeeGVcYjGKJVGi7dv94wAvkvTYC8nIrlypdM2Ia/V0D4+vfWCNYyyzrl9KbCZZBK+HOF8LQeaGIONZTOWxol4Syju4jQ7Y15L85Sm39LPv/Y/mCBVF4CG6kiu1//LaffuInk8qkqNl52Nah4w+/YJkNP0IcWmx6eoiNaAW/BYSEiIEhA/JzZ9AYEGddaCfnexFO3BMi0ajZj8PmZkAugjgR6Jd+8tYchvTBSolsAkh8i/eFxlEOzG X-MS-Exchange-AntiSpam-MessageData: urnWWzyqAYY0GGn31gnnV6uRaRGk+mTGeV8ItnUQM1+zlRoofguUG0FiMEHKbkhhBvQZhy0k5xNTDC8Iu+5EiHN84unlXeFZ3pNoRo2osiyJNn8eU0uz9Mkx2rsDAvufaW8I0+0Ght2cnEzclBpbmw== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3835125f-9d47-49f2-b4be-08d7d996c3a4 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2020 19:23:04.9905 (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: GPN3xPCtFKSkigYh5Cl6FrNH+ZlEifHhnKp7XfkqRYEW8TorYg0WojQwnFY5mUqP3ynXOREqkJ5y65hE3Au+yBioQXTa6JajkAN2627j3P8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5373 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200405_122306_951985_2A611EDF X-CRM114-Status: GOOD ( 13.09 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.0.133 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Heiko Stuebner , Geert Uytterhoeven , Marcel Ziswiler , Sekhar Nori , Stefan Agner , linux-kernel@vger.kernel.org, Oleksandr Suvorov , Laurent Pinchart , Fabio Estevam , linux-samsung-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, Kevin Hilman , Magnus Damm , Chen-Yu Tsai , Krzysztof Kozlowski , Bartosz Golaszewski , Ludovic Desroches , Kukjin Kim , NXP Linux Team , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Sebastian Hesselbarth , David Lechner , Sascha Hauer , Maxime Ripard , Philippe Schenker , Paul Barker , Rob Herring , Tony Lindgren , linux-amlogic@lists.infradead.org, linux-omap@vger.kernel.org, Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, Igor Opaniuk , linux-renesas-soc@vger.kernel.org, Jisheng Zhang , =?utf-8?q?Beno=C3=AEt_Cousson?= , Shawn Guo , Peter Rosin Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The raw value '0' in the 3rd cell of the "pwms" property means there are no flags to be set. This patch converts '0' value into PWM_NOFLAGS. Signed-off-by: Oleksandr Suvorov Acked-by: Krzysztof Kozlowski --- Changes in v2: - remove the driver part of patchset as dangerous and senseless. - use PWM_NOFLAGS instead of PWM_POLARITY_NORMAL to avoid possible conflict with enum pwm_polarity in . Also, this name reflects the sense of this value more precisely. 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..5ccca3c3e243 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_NOFLAGS>; 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..c9f351e27c2d 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_NOFLAGS>; 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..02fa18ae499b 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_NOFLAGS>; 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..e20ba0f6f759 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_NOFLAGS>; 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..12c78f47e56a 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_NOFLAGS>; max-brightness = <255>; linux,default-trigger = "none"; }; green { label = "pwm:green:user"; - pwms = <&pwm0 1 10000000 0>; + pwms = <&pwm0 1 10000000 PWM_NOFLAGS>; max-brightness = <255>; linux,default-trigger = "default-on"; }; red { label = "pwm:red:user"; - pwms = <&pwm0 0 10000000 0>; + pwms = <&pwm0 0 10000000 PWM_NOFLAGS>; 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..ca3121c5a80b 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_NOFLAGS>; 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_NOFLAGS>; 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_NOFLAGS>; max-brightness = <255>; status = "disabled"; }; white { label = "pwm:white:user"; - pwms = <&pwm0 3 10000000 0>; + pwms = <&pwm0 3 10000000 PWM_NOFLAGS>; 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..09a8f3dc378e 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_NOFLAGS>; 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_NOFLAGS>; 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_NOFLAGS>; 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..ac6465117ee2 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_NOFLAGS>; 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..b7928c738f9a 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_NOFLAGS>; 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..d317e9178036 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_NOFLAGS>; 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..e4e124025f76 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_NOFLAGS>; 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..2ad7b60c73f1 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_NOFLAGS>; max-brightness = <255>; linux,default-trigger = "default-on"; }; red { label = "red"; - pwms = <&pwm 1 600000 0>; + pwms = <&pwm 1 600000 PWM_NOFLAGS>; max-brightness = <255>; }; }; diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index f2e7609e5346..50c7d79da6b9 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_NOFLAGS>; 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..407ea61615e2 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_NOFLAGS>; 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_NOFLAGS>; }; /* ARM local RAM */ diff --git a/arch/arm/boot/dts/exynos4412-midas.dtsi b/arch/arm/boot/dts/exynos4412-midas.dtsi index 2c8111c6b065..aaf26b7e8b7b 100644 --- a/arch/arm/boot/dts/exynos4412-midas.dtsi +++ b/arch/arm/boot/dts/exynos4412-midas.dtsi @@ -172,7 +172,7 @@ charger_reg: CHARGER { max77693_haptic { compatible = "maxim,max77693-haptic"; haptic-supply = <&ldo26_reg>; - pwms = <&pwm 0 38022 0>; + pwms = <&pwm 0 38022 PWM_NOFLAGS>; }; charger { diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts index 8ff243ba4542..7b9799f814ee 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_NOFLAGS>; #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..801c56e7cc8b 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_NOFLAGS>; 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..201281b56ef2 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_NOFLAGS>; #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..0d832df21959 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_NOFLAGS>; 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..0b7a6b4a2fd0 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_NOFLAGS>; 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..548b5e95e51e 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_NOFLAGS>; #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..e55534158ddf 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_NOFLAGS>; 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..a26e864262cb 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_NOFLAGS>; 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_NOFLAGS>; 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..8590b2c21332 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_NOFLAGS>; 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..3e7374d1f092 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_NOFLAGS>; 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_NOFLAGS>; 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..ee5199c6b231 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_NOFLAGS>; /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..661b40cf68ec 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_NOFLAGS>; 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..94cf7d99fc88 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_NOFLAGS>; /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..30c0858758c9 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_NOFLAGS>; /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..e4662990d3a3 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_NOFLAGS>; 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_NOFLAGS>; 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 e18e89dec879..446a8b5d69bd 100644 --- a/arch/arm/boot/dts/imx7-colibri.dtsi +++ b/arch/arm/boot/dts/imx7-colibri.dtsi @@ -3,12 +3,14 @@ * Copyright 2016-2020 Toradex */ +#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_NOFLAGS>; 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..2f4d506bb2a4 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_NOFLAGS>; 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..e9239cdd47a6 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_NOFLAGS>; 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..214d3a2165a9 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_NOFLAGS>; 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..3a0674134553 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_NOFLAGS>; 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..f88deeb54e04 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_NOFLAGS>; 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..7addd3f1fff5 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_NOFLAGS>; 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..3a9f96553cea 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_NOFLAGS>; 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_NOFLAGS>; 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..45dc14783716 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_NOFLAGS>; 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_NOFLAGS>; 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..b08ca542b1b7 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_NOFLAGS>; 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_NOFLAGS>; 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 9067e0ef4240..7ac4c63f2d6a 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_NOFLAGS>, + <&pwm8 0 10000000 PWM_NOFLAGS>; 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..aa7f23c7c8a1 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_NOFLAGS>; 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..0a99ea066799 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_NOFLAGS>; /* 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..296b9858762c 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_NOFLAGS>; 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..17cf002f428b 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_NOFLAGS>; 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..04c27ed32b72 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_NOFLAGS>; }; vcc_sys: vsys-regulator { diff --git a/arch/arm/boot/dts/s3c6410-mini6410.dts b/arch/arm/boot/dts/s3c6410-mini6410.dts index 1aeac33b0d34..71b5d31e6ad3 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_NOFLAGS>; 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..6b01e18385e1 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_NOFLAGS>; 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..065770003dca 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_NOFLAGS>; 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..4f7f143140d2 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_NOFLAGS>; 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 cc1e069c44e6..7300299e90f4 100644 --- a/arch/arm/boot/dts/vf-colibri.dtsi +++ b/arch/arm/boot/dts/vf-colibri.dtsi @@ -4,6 +4,8 @@ * */ +#include + / { aliases { ethernet0 = &fec1; @@ -14,7 +16,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_NOFLAGS>; enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; status = "disabled"; };