From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F24902DCC16 for ; Tue, 10 Jun 2025 12:53:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749560026; cv=none; b=AoiZvAdGISHnXbxkA7fkHvHbSV7j7ZABB4bzT5h7MaoPkwF/ZkNk3Z3Jfttiw0d34s60LPn9Zs1Eg4XGiz4BAlz5C6OzS55qP5z+lG/052zuPflnjBfLlB30aRqQh8XoBV8GUeaaz0eWd8jVqdfXZVC7Lst2jFBMm9bHJAgGR0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749560026; c=relaxed/simple; bh=G3Rcxmg/8RGJT9WdkJVO9/yG6cY6SHgkWJ+0LoMKMUY=; h=From:Date:Subject:MIME-Version:Message-Id:In-Reply-To:To:Cc: Content-Type:References; b=GQV3dMDe5YAAI7QltL8ylXfcAHygVEHm3k6FyHny4xmoznmWda4DF+LOYrsGHDX99Jo3cfaIWX3nMWbe6RJrT9kgNS6S63umqLRZCpRR8AsDzZbAICXMHJgIElBX1MIslQrg5OhQcCmlLsJhpLs+Bnz2gO60muD9OmLoS+mBoH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=clUIV76d; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="clUIV76d" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20250610125338euoutp028d305bf14c90746589bcc9543d197589~Hr5FQNl3a2423224232euoutp02h for ; Tue, 10 Jun 2025 12:53:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20250610125338euoutp028d305bf14c90746589bcc9543d197589~Hr5FQNl3a2423224232euoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1749560018; bh=tb9Nm7oCBfF8pKU9GqtVQRGVuCwKCYbxFHqowy9m/jM=; h=From:Date:Subject:In-Reply-To:To:Cc:References:From; b=clUIV76dl5UfTlFGzMX5zmGymOdPybEfb/LDHZ3K9+6hAx750wCnORyDENGxvi1VR VUiqO2k2VPrHM/Ag3M8ek9z03opG/6HDn48M0L9H4mjX0r8pwkfAAheE+iXdL8Jd+l 6hV2p1fO6gH+gbaWW08pe1i73IiLcfNsgxBNIHQ4= Received: from eusmtip1.samsung.com (unknown [203.254.199.221]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20250610125337eucas1p199f9e3199e73f1a92462f39e611f07fe~Hr5EApVaM0876108761eucas1p16; Tue, 10 Jun 2025 12:53:37 +0000 (GMT) Received: from AMDC4942.eu.corp.samsungelectronics.net (unknown [106.210.136.40]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20250610125336eusmtip1090c51bf4f6eb899745cb3e8c08a627d~Hr5Cy3fPm0193101931eusmtip1B; Tue, 10 Jun 2025 12:53:36 +0000 (GMT) From: Michal Wilczynski Date: Tue, 10 Jun 2025 14:52:53 +0200 Subject: [PATCH v2 5/7] riscv: dts: thead: Add PWM controller node Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-Id: <20250610-rust-next-pwm-working-fan-for-sending-v2-5-753e2955f110@samsung.com> In-Reply-To: <20250610-rust-next-pwm-working-fan-for-sending-v2-0-753e2955f110@samsung.com> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Michal Wilczynski , Drew Fustini , Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Marek Szyprowski , Benno Lossin , Michael Turquette , Stephen Boyd , Benno Lossin Cc: linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org X-Mailer: b4 0.15-dev X-CMS-MailID: 20250610125337eucas1p199f9e3199e73f1a92462f39e611f07fe X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20250610125337eucas1p199f9e3199e73f1a92462f39e611f07fe X-EPHeader: CA X-CMS-RootMailID: 20250610125337eucas1p199f9e3199e73f1a92462f39e611f07fe References: <20250610-rust-next-pwm-working-fan-for-sending-v2-0-753e2955f110@samsung.com> Add the Device Tree node for the T-HEAD TH1520 SoC's PWM controller. Signed-off-by: Michal Wilczynski --- arch/riscv/boot/dts/thead/th1520.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index 1db0054c4e093400e9dbebcee5fcfa5b5cae6e32..26996422e1efe5d2dde68819c2cec1c3fa782a23 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -490,6 +490,13 @@ uart2: serial@ffec010000 { status = "disabled"; }; + pwm: pwm@ffec01c000 { + compatible = "thead,th1520-pwm"; + reg = <0xff 0xec01c000 0x0 0x4000>; + clocks = <&clk CLK_PWM>; + #pwm-cells = <3>; + }; + clk: clock-controller@ffef010000 { compatible = "thead,th1520-clk-ap"; reg = <0xff 0xef010000 0x0 0x1000>; -- 2.34.1