From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1E80606A327 for ; Mon, 30 Nov 2026 05:34:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Ok6Q75JC; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=TpkKJ8l6 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=ja1oKCW2M7BdOC1KZdob66T9vtVGlXxjS3TraI/XssY=; b=Ok6Q75JCgqLGfQeEhRRPE1Jwbf /nLRTA0uYDpMuYZ5nS2xUSboQD5y57OZXMQCDodgaONSTk9cG+mE+klQLCsmozgGhjxvRbu/R62BZ G1fGTgXuxz/oOoL6GDukyX/ridniU0XjLKmRgf64ykwCHY+ljTw8tboQZS4TAwp0S8nlFL4qJyJ1J EVRJ4aHuTCUq9mpcfnm5hxoq+Zg/po0Q5xrC9n38aizyxpdT8XGzkAo0DeWFn73twkIrkMn+TxZ1p yYREIQxICxPf4bvYjMdLSeRkuv6U5IHZ1yqIICnnIhXt7nwsQf7rvALpK7SRkK3eCdOP6G0QYnMqd 9TOLvKIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXu27-00000003INz-01wl; Mon, 30 Nov 2026 05:34:35 +0000 Received: from out-105.mta0.migadu.com ([2001:41d0:1004:224b::69] helo=mta0.migadu.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXu24-00000003INL-2aBB for linux-riscv@lists.infradead.org; Mon, 30 Nov 2026 05:34:34 +0000 X-Envelope-To: linux-riscv@lists.infradead.org DKIM-Signature: a=rsa-sha256; bh=2mNmmW7oRbGkw0yU1tyRuvBhEzL9OK41WrYc7cVw/YU=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796016869; v=1; x=1796621669; b=TpkKJ8l608rbyY4cnLKI3yhd08/yw6bRdZi9y7h5MCY+iqZhavTkdAKjMZ4Mt0HWxSdwwLSo QXn5zKK5LAlwBDX8GKwMRPtKEsAE1qVqirhFoNcSHP/Zji7Z0hWSy9zIKPhjOtd5wlvQoeGbW+D YXq/CC3Q6MY61h6hH+mAZ+ls= X-Envelope-To: linux-riscv@lists.infradead.org Received: by smtp.migadu.com with ESMTPS id f6d71fb33cae87ca; Mon, 30 Nov 2026 05:34:29 +0000 X-Mizu-Trace-ID: f6d71fb33cae87ca X-Migadu-Flow: FLOW_OUT Message-ID: Date: Mon, 30 Nov 2026 13:34:26 +0800 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] riscv: dts: sophgo: cv180x: add PWM controller nodes To: Hiago De Franco , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: Chen Wang , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, sophgo@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: <20261117-milkv-duo-pwm-v1-0-3f1786ea57b7@baylibre.com> <20261117-milkv-duo-pwm-v1-3-3f1786ea57b7@baylibre.com> From: Chen Wang In-Reply-To: <20261117-milkv-duo-pwm-v1-3-3f1786ea57b7@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_213432_803873_BEF64E02 X-CRM114-Status: GOOD ( 12.88 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-riscv" X-Spam-Status: No, score=-15.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 11/17/2026 8:57 PM, Hiago De Franco wrote: > The CV180x/CV181x/SG200x SoCs provide four PWM controller instances at > 0x03060000, 0x03061000, 0x03062000 and 0x03063000. > > Add the corresponding nodes to the shared cv180x.dtsi, so that they are > available to every SoC including it, and keep them disabled by default > since the boards still need to describe how the outputs are wired. > > Signed-off-by: Hiago De Franco Reviewed-by: Chen Wang Thanks, Chen > --- > arch/riscv/boot/dts/sophgo/cv180x.dtsi | 40 ++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/arch/riscv/boot/dts/sophgo/cv180x.dtsi b/arch/riscv/boot/dts/sophgo/cv180x.dtsi > index d2ec70fd515e..c478e7eb549f 100644 > --- a/arch/riscv/boot/dts/sophgo/cv180x.dtsi > +++ b/arch/riscv/boot/dts/sophgo/cv180x.dtsi > @@ -160,6 +160,46 @@ portd: gpio-controller@0 { > }; > }; > > + pwm0: pwm@3060000 { > + compatible = "sophgo,cv1800b-pwm"; > + reg = <0x3060000 0x1000>; > + #pwm-cells = <3>; > + clocks = <&clk CLK_PWM>; > + clock-names = "apb"; > + resets = <&rst RST_PWM0>; > + status = "disabled"; > + }; > + > + pwm1: pwm@3061000 { > + compatible = "sophgo,cv1800b-pwm"; > + reg = <0x3061000 0x1000>; > + #pwm-cells = <3>; > + clocks = <&clk CLK_PWM>; > + clock-names = "apb"; > + resets = <&rst RST_PWM1>; > + status = "disabled"; > + }; > + > + pwm2: pwm@3062000 { > + compatible = "sophgo,cv1800b-pwm"; > + reg = <0x3062000 0x1000>; > + #pwm-cells = <3>; > + clocks = <&clk CLK_PWM>; > + clock-names = "apb"; > + resets = <&rst RST_PWM2>; > + status = "disabled"; > + }; > + > + pwm3: pwm@3063000 { > + compatible = "sophgo,cv1800b-pwm"; > + reg = <0x3063000 0x1000>; > + #pwm-cells = <3>; > + clocks = <&clk CLK_PWM>; > + clock-names = "apb"; > + resets = <&rst RST_PWM3>; > + status = "disabled"; > + }; > + > saradc: adc@30f0000 { > compatible = "sophgo,cv1800b-saradc"; > reg = <0x030f0000 0x1000>; > _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv