Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1708201rdb; Wed, 31 Jan 2024 06:59:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsNRM2raGO8aVicBWRSO3xBTuSiqDY8LIX8trU/9Q6/U16uynwKZGKxQaqzvJs7DHFw1O8 X-Received: by 2002:a17:90b:e8a:b0:293:f625:1b0b with SMTP id fv10-20020a17090b0e8a00b00293f6251b0bmr1718276pjb.5.1706713162722; Wed, 31 Jan 2024 06:59:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706713162; cv=pass; d=google.com; s=arc-20160816; b=Br+byo5nispEk4K5SbpWRAFLMgn/9ycDru1sglnzIeQyLWzliR1yxZGNOkadaKQMXf HZJhI8xuHfav/jv2uEj7sy0OSh/k11wDNP2+rxo6AZDNebSQA8eE8TTs584xIqgkPS5B 74gpesbkxuIEE+E2spde4Np8QkVFgMWzaEwZXIFDtZgpN7J2RuhwC8R6YmFU76Ut9Tn1 LKtuOBPAG3an6giUAwqJLxBQ5ZPlBpv3BFr46mmbY/XvQTgcR7Ym5mx81HC7AIASKNgY RpxrNGwDNz4m4r94am+7j1/enOYbSHN2OC7xhMPypq071Dxj8rVEy1+MHaC1E87H+3Mw kzDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=4Mas4eXKJW7F29tyT8aqLHYLKKQqo6LTu0uwzQPEeRQ=; fh=7vmo9f/3peizYGC6yMUnDdJP1zmZ4nX2xkFcw6/MXks=; b=weE4G7wutfA8ypY0cbQj0R6Qls4l0WVsuC+iccCddiBJ21D5f1UigdK2T12VssctKu pmoI4FyigbvrGa8jYccnveIgsxhmc/+EazJhdPqWyvxzyqt6DAbTasVVCMEUo7Ve0VN6 thoMJWX60RFeQbj3eVJmEed7hLZS+UmLe0DU+OeDpp68wApOxt+B0yjKLG6srJMqdMh2 TM6RW8ajhc4TIKUZYQ/3g3j7NRv//q3xKsfCGquB97bEdR1mioLmtBkO7cee0OrVupvm C6jd7vrqDyO0Mc9fP5ah+7YZMM0/HFgPezDmn5F79otgYoqt+ZKv3lVhYST2jeL4iULt wUAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-46658-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com X-Forwarded-Encrypted: i=1; AJvYcCXhcPFL37cEycI1cH4yEP49MGlBlT8hJ0/hpLlcfBks41Q70c3WDrwRM+rpq4bPlWPCn/9KyOs/hlEvoliXUaG41XpzY8fsVVzeO18fJA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w3-20020a170902d10300b001d8da5e2670si5936700plw.458.2024.01.31.06.59.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 06:59:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46658-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-46658-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9DDCD2943C9 for ; Wed, 31 Jan 2024 14:56:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F71113AA4D; Wed, 31 Jan 2024 14:50:58 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCCE212F5A1; Wed, 31 Jan 2024 14:50:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706712646; cv=none; b=AMukgAwjQ/XCVjkQ+DVUopbToqn07ya4T1iSn0TrL761eYXwj7IKTEIKeqkszpZtMx6bqhlrTsAkBv6E+va6IK5BOIBIBwP+v7OyOe/QPaZm+nThyxDQ3viybp7S6knXi+AgGGiTKdQ69hCoINjrQXdzNYCW5zkYHd/QxFqiGw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706712646; c=relaxed/simple; bh=iavdwSoa/91DZNj9sYAc+ToYnDtfSzIXsRuwYSklzyM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=goRAvAbhshx9zKefXZhJmBirU6CJt5W0Do6SvomiJML2H3GAxl8QcF+cqNbg8tU0hiz2dE8XH/GmZ3y2LFC1hgb+BY590wJ7nk7f74KRyI54j4stu9Qi9xTr/+Vhh1Boi8yvjn8NIswlOJdjFTLXmQDVt+5vf4VCtUFm/zGGuXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1D28ADA7; Wed, 31 Jan 2024 06:51:22 -0800 (PST) Received: from donnerap.manchester.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 14BD43F762; Wed, 31 Jan 2024 06:50:35 -0800 (PST) Date: Wed, 31 Jan 2024 14:50:33 +0000 From: Andre Przywara To: Aleksandr Shubin Cc: linux-kernel@vger.kernel.org, Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Maksim Kiselev , Cristian Ciocaltea , Marc Kleine-Budde , John Watts , Cheo Fusi , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org Subject: Re: [PATCH v8 3/3] riscv: dts: allwinner: d1: Add pwm node Message-ID: <20240131145033.0b05f4c6@donnerap.manchester.arm.com> In-Reply-To: <20240131125920.2879433-4-privatesub2@gmail.com> References: <20240131125920.2879433-1-privatesub2@gmail.com> <20240131125920.2879433-4-privatesub2@gmail.com> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 31 Jan 2024 15:59:16 +0300 Aleksandr Shubin wrote: Hi, > D1 and T113s contain a pwm controller with 8 channels. > This controller is supported by the sun20i-pwm driver. > > Add a device tree node for it. > > Signed-off-by: Aleksandr Shubin Compared against the manual: Reviewed-by: Andre Przywara Cheers, Andre > --- > arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > index 5a9d7f5a75b4..435a1e66aa6a 100644 > --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > @@ -145,6 +145,18 @@ uart3_pb_pins: uart3-pb-pins { > }; > }; > > + pwm: pwm@2000c00 { > + compatible = "allwinner,sun20i-d1-pwm"; > + reg = <0x02000c00 0x400>; > + clocks = <&ccu CLK_BUS_PWM>, > + <&dcxo>, > + <&ccu CLK_APB0>; > + clock-names = "bus", "hosc", "apb0"; > + resets = <&ccu RST_BUS_PWM>; > + status = "disabled"; > + #pwm-cells = <0x3>; > + }; > + > ccu: clock-controller@2001000 { > compatible = "allwinner,sun20i-d1-ccu"; > reg = <0x2001000 0x1000>;