Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2632735ybb; Sun, 5 Apr 2020 12:25:07 -0700 (PDT) X-Google-Smtp-Source: APiQypKfuZPW4x/RxMFxNwuCeGZF0iy4gsqm/s+/VkZm+xDlKC/2aq6rzZrt92ykq0ySCvnGvu9T X-Received: by 2002:aca:de42:: with SMTP id v63mr9878770oig.99.1586114707151; Sun, 05 Apr 2020 12:25:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586114707; cv=pass; d=google.com; s=arc-20160816; b=zC/+lRJ8xQKshIjsFo1ih2NtT10ziCN8qzEw9WtvmmlblNBHDfZc1DKEnxBbTIiVjO xRFHxLO9eOdHgGRwAgm6yN9U6V3EZLjIkpNPt29mo0YQKXW+NmmQD+DB0APXmqlBIrnN 6qLNc2b+2gmKGT5rzLDgqhaVm/h6smzmNL9gKHV+9ZHciUdSgj6udIKUAhMSP/BycKdy cbcscDai9nsmLxtEFXUPMo4fb5rnE3uGZiNF5duGMeyhe7VZLFWlUUEw8iC3I8PwvV6k 2gBPupkBm3BVK4X85hi2Bk3nVyX67cSsBp/avlRKYcvqDqrA30s5PUol5So6d/UMW7DS G55A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iOkPSnLpEY3RV6H3sW5ScnsoPQ0jQtXmv5Rbt1I9oY0=; b=wGiVSbethBbUGlll06NVKH4RML6/fYmZwqJqWhw8uAsxdhAPszI+t+hicUchHYs6lX 5VoxVc9IB7of0B6rbpdMbwm46RG1rtRdJ1z9K/YuzfkoyP55G8MH6R0oZkwkR3uCYNbZ HDe5ZxBtQpPEr09eGRWky2+MG9mNKT8uH6TuP4NMg4fii4kYtx/hm7GxDMPK3K3dD6j2 eaFK/KiXmk81/wjmw3ido6se0fER+Qx8tQG9p1JZsiONlXaCF9pOS7p4dJOIPNxBgdcp lnaCGocP9hlMv7uTAm9BT0bQhn7fp/IJlqGRcNdE25zACYUcuGkv//Zb6EgN089pn1lb h4Zw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=Y78B8K7q; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l75si6143999oig.59.2020.04.05.12.24.55; Sun, 05 Apr 2020 12:25:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=Y78B8K7q; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727831AbgDETXQ (ORCPT + 99 others); Sun, 5 Apr 2020 15:23:16 -0400 Received: from mail-bgr052101131056.outbound.protection.outlook.com ([52.101.131.56]:60219 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727612AbgDETXO (ORCPT ); Sun, 5 Apr 2020 15:23:14 -0400 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 Cc: Paul Barker , Marcel Ziswiler , Igor Opaniuk , Philippe Schenker , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Laurent Pinchart , Oleksandr Suvorov , Akash Gajjar , Alexis Ballier , =?UTF-8?q?Andrius=20=C5=A0tikonas?= , Andy Yan , Ezequiel Garcia , Heiko Stuebner , Hugh Cole-Baker , Jagan Teki , Johan Jonker , Katsuhiro Suzuki , Kever Yang , Markus Reichl , "Matwey V. Kornilov" , Nick Xie , Rob Herring , Robin Murphy , Soeren Moch , Tobias Schramm , Vicente Bergas , Vivek Unune , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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; -- 2.24.1