From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3ECBEC4361B for ; Thu, 17 Dec 2020 16:32:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EEF93239ED for ; Thu, 17 Dec 2020 16:32:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EEF93239ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PvJcyLQfT4kqoUiAOeZSLQniyucT8Ijnr9z1XA4JLSE=; b=aKXk4mX7O9Ug1gIbM/gSfsdUZ iMs8rWcUUScNdGdoIKfIjk0WozkIxNgR8iZsqPvJ3cjFfBNLVQ46HAZvtAghCitEH63lnKDjA75cp zG5oBRl875v3hkpwzjefIFi9CnV0OkaYgBUSATp53XGo883X5UzlVTn15m3g1q1YTRjyZjOVjP+GA y6fwxjGOr2773zRPO8uzVEFzh3h3Wf9wfVQjTWq2PSDDeC0cQQoX0P+oWNTQ6dIwP3gktZpc553vE Ost4dXmiqmxU4B6CsPq2qmiIUjvM5j5jrGpYy7gO04FFh0c22mnBiuNqQ2En3kMGmgzfA9acZBOy+ nzherA+LQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpwB4-0002JH-Sn; Thu, 17 Dec 2020 16:30:54 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpwB2-0002IT-8J for linux-arm-kernel@lists.infradead.org; Thu, 17 Dec 2020 16:30:53 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id A0340C8B; Thu, 17 Dec 2020 11:30:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 17 Dec 2020 11:30:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm1; bh=R wyjTIzzAC7fG3iGATSvz2APR89Rfjp6vFhip3R2HAQ=; b=J4gbKnhJ3qSlXon0p +auxGXnffCdAwB2fr1UXm1Y4fJIWmt81pu3hYOjaNoF3Zof9HYV+JCvd3WgIfBeN Kp4LIY22vlIgzWGATWJaZ50WLP1OT2dOKwDNYIWMMHzk+ZPsBy3r0A1YRDV+5DJG B6uTr8cDyLZevcvYE7j1HdlUbK5U7NKpSBu+XXPSNqBTLEKRftMkSPovk3KlHk5e 5w03p9qg5PIHN+zM6MwXehxijq+e+2e4nt6L7TJZAUl/IbtdtXCemANdSGbW4I3x LCF+XIx4BA+Cmb+b5VK+o3yHDzcrLIOEmEZO7QiYFrn734Y/rRJqN85/XOfktO/5 DjgKw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=RwyjTIzzAC7fG3iGATSvz2APR89Rfjp6vFhip3R2H AQ=; b=hz7WYXjD5hNRV7M3A4Zsh2V0+qQwqtF2cfl2THISTB7fM4E2XijiSqR2J hiCch84xHZ+RDetoaQMNzRJzpxRGA9JA1/BG+mhn2QhV3yVep50Uiw6NAs5gBy3v eck6OLzuv55WZrmwWm9f94ASWITBZDlXQtxZq53nhzlAWJzkFJgiGHKr6PqmzrEb grJLCjcIh8sJBjfG5d998IIoBrE9wqgfGmZMpeqIfU6lL/ExhV8etiFD4Ko+4ZLM AjG0NAa8twwFZe3zOHwBkec2BtUpwpyR6tA4+JYME19BnLRsEHuLXn5TRqi2nF3Z Nj0JvmMf1oCgDMq++PhXeOK9bGRBw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudelgedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjgesthhqredttddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpefgjeettdejgffgffdvteeutdehtdehgeehueetkeefgefhtdetjeekledu gedvudenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 2F1631080057; Thu, 17 Dec 2020 11:30:46 -0500 (EST) Date: Thu, 17 Dec 2020 17:30:45 +0100 From: Maxime Ripard To: Paul Kocialkowski Subject: Re: [PATCH] ARM: dts: sun8i-v3s: Add PWM controller and pins definitions Message-ID: <20201217163045.i5o5sb4pls4gn52g@gilmour> References: <20201217112031.2243683-1-contact@paulk.fr> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201217112031.2243683-1-contact@paulk.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201217_113052_563213_A00793AF X-CRM114-Status: GOOD ( 14.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Chen-Yu Tsai , Jernej Skrabec , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On Thu, Dec 17, 2020 at 12:20:31PM +0100, Paul Kocialkowski wrote: > This introduces definitions for the PWM controller found in the V3s, > as well as associated pins. This fashion of the controller has two PWM > outputs and is register-compatible with the A20. > > Both PWM outputs were tested on a Lichee Pi Zero with a simple > transistor-LED setup. > > Signed-off-by: Paul Kocialkowski > --- > arch/arm/boot/dts/sun8i-v3s.dtsi | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi > index a9f5795d4e57..34a4e638c762 100644 > --- a/arch/arm/boot/dts/sun8i-v3s.dtsi > +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi > @@ -398,6 +398,16 @@ spi0_pins: spi0-pins { > pins = "PC0", "PC1", "PC2", "PC3"; > function = "spi0"; > }; > + > + pwm0_pin: pwm0-pin { > + pins = "PB4"; > + function = "pwm0"; > + }; > + > + pwm1_pin: pwm1-pin { > + pins = "PB5"; > + function = "pwm1"; > + }; > }; > > timer@1c20c00 { > @@ -416,6 +426,14 @@ wdt0: watchdog@1c20ca0 { > clocks = <&osc24M>; > }; > > + pwm: pwm@1c21400 { > + compatible = "allwinner,sun7i-a20-pwm"; We should have a (documented) v3s compatible there along with the A20 Thanks! Maxime _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel