From patchwork Tue Apr 1 12:00:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 14034737 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D92EEC36018 for ; Tue, 1 Apr 2025 12:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=VrVGsP40ZSsHYPo0QMmJMdgp9+B8S6uz1UNFCItbv6k=; b=bhYxLnILKpFpBS5CLbiMCL1tBD a8+ImDk2ZFPZ6neKgLntarFdMQ2KbF+L8hqrp3xF7L5M4oOPVk9xG6l4gJ2y9g61QdphCIKXURxab eTzHU+C88ghAe6cI2sFwWXeI644w6zAql5LD8HYnfUiMnA3uTf4iWuLW15mPcCv8wXPFrZppJurQW c29lKgFZYFOUY+6y064d3ELlg9btQ9ZymeQH2rhc+BePMLAjuGRSt33pQkmOEQUtFAcc7w+UDBE/s OM5JjaDbETky6esNilDgYUF93m1SiFZncLgRePWizgq5mXvYPyo8l/g71S+wV/8u4Z+G2JRlDBxCm kz+I+61g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1tzaM4-00000002tu1-3n6Z; Tue, 01 Apr 2025 12:04:33 +0000 Received: from mail-m155101.qiye.163.com ([101.71.155.101]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1tzaI8-00000002sQ6-1zg3; Tue, 01 Apr 2025 12:00:30 +0000 Received: from amadeus-Vostro-3710.lan (unknown [IPV6:240e:3b3:2c00:430:ae31:3177:4f09:da96]) by smtp.qiye.163.com (Hmail) with ESMTP id 1053fa3ed; Tue, 1 Apr 2025 20:00:23 +0800 (GMT+08:00) From: Chukun Pan To: Heiko Stuebner Cc: Yao Zi , Rob Herring , Chukun Pan , Jonas Karlman , Conor Dooley , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 0/2] arm64: dts: rockchip: Add pwm nodes for RK3528 Date: Tue, 1 Apr 2025 20:00:18 +0800 Message-Id: <20250401120020.976343-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDTENMVh5NSR5PHU4aSRhCGlYeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlJT0seQUgZSEFJGEtLQU9IS0EaHkhKQUhKTExBTx1LQkEfGkJNWVdZFhoPEh UdFFlBWU9LSFVKS0hKTkxOVUpLS1VKQktLWQY+ X-HM-Tid: 0a95f1395ecd03a2kunm1053fa3ed X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6KzI6NRw*EDJIHwoiTDM5MA02 CTlPCilVSlVKTE9ITktDQ0lPT0xLVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUlP Sx5BSBlIQUkYS0tBT0hLQRoeSEpBSEpMTEFPHUtCQR8aQk1ZV1kIAVlBSkxJSTcG X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250401_050028_723749_8E70B9E0 X-CRM114-Status: UNSURE ( 7.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add pwm nodes for RK3528. Most rk3528 boards use pwm-regulator to supply to CPU, add node to enable them. The PWM core on RK3528 is the same as RK3328, but the driver doesn't support interrupts yet. Note that pwm regulator needs to be initialized in U-Boot: ``` &vdd_arm { regulator-init-microvolt = <953000>; }; &vdd_logic { regulator-init-microvolt = <900000>; }; ``` Changes in v3: Adjust regulators order of E20C dts nodes Use PWM_POLARITY_INVERTED in pwm-regulator Changes in v2: Remove merged bindings patch Remove pwm pinctrl in rk3528.dtsi Enable pwm regulator for Radxa E20C Chukun Pan (2): arm64: dts: rockchip: Add pwm nodes for RK3528 arm64: dts: rockchip: Enable regulators for Radxa E20C .../boot/dts/rockchip/rk3528-radxa-e20c.dts | 73 +++++++++++++++++ arch/arm64/boot/dts/rockchip/rk3528.dtsi | 80 +++++++++++++++++++ 2 files changed, 153 insertions(+)