Received: by 10.213.65.68 with SMTP id h4csp210832imn; Tue, 13 Mar 2018 01:30:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELtaZIcvHjNJ0RS2A98TZHamjr0j0VhS9D6XNdvVFQcSbrd63VbL0KNSqx+fCA+UnRZ5GT4y X-Received: by 2002:a17:902:12e:: with SMTP id 43-v6mr10801130plb.77.1520929833242; Tue, 13 Mar 2018 01:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520929833; cv=none; d=google.com; s=arc-20160816; b=YgHjEyecyfCAI9lrtP/Wn21bICMnM/bDqyuIeAlXfwp72LWecgU4OE7GrmF/W6K8bC IfSJhTr37G81+0wrYZ/6mm05BBfqjGZpXCyeHGL7NgJcg2VomkC5H/hdF8XHtKmTyKdA KOaN6w3CnOgooJgG580cFlDxRVuD+YfnvUQvVBu65EFacHtN4ZSkDUDOrRpEbsyei2vx qm+yBefO2ko2YkYqfzIOWEwLEaILkwxz9YxXmQWohW8IVKPlve78xGKjbRlluyqAb26u 6c0hNaWKeazN2I+CnmU0X/GbtMxvbtE5q1VOlwiPbI171gO/fOf48b1/r9zaINzDrmXZ ar8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=YAkvQOgbzsWVwNgod2TT30Gey5YFuoNAMufzB1NGpTM=; b=p71MG23hiu3w8UUAD+N0+CDYqg/0o5qqUjGAtvDOpoA6i8w7UOgKh0IAAzhQKjYtMN rBWtOaqm7b6iB7SWO5RvMsRkbXyfxpGZ5u+KmdTjdRNaCV5aEsZeFsI/gZoT5RBS7kzj KBVaQ0Nj1DbtZNgYuC2HKvqx+avyxOg2zaAE9sup2A2F4esVlm9KphQgo66lr/jodgU6 lvlx/DvKkfnUhYBkGvMi7xF7Jk/4fgRdsMErKvlWgpWTkC+CJR+J/uozvf6rA8lZPBd1 A0wZJnslQIpk4IyyAbIRemwZeYU2x7vbKFLkJ1gXNGzuBVIFxgmZUAB0dJNKFRfrCCsP mxwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si7140945plq.460.2018.03.13.01.30.18; Tue, 13 Mar 2018 01:30:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752405AbeCMI3N (ORCPT + 99 others); Tue, 13 Mar 2018 04:29:13 -0400 Received: from mail.bootlin.com ([62.4.15.54]:36946 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752023AbeCMI3L (ORCPT ); Tue, 13 Mar 2018 04:29:11 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 413F920722; Tue, 13 Mar 2018 09:29:09 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id DEDB6203A0; Tue, 13 Mar 2018 09:29:08 +0100 (CET) Date: Tue, 13 Mar 2018 09:29:09 +0100 From: Maxime Ripard To: Harald Geyer Cc: Chen-Yu Tsai , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andre Przywara , Icenowy Zheng , info@olimex.com Subject: Re: [PATCH 4/5] arm64: dts: allwinner: a64: Add pwm device Message-ID: <20180313082909.236etgyrtkr3o432@flea> References: <20180312161050.7647-1-harald@ccbib.org> <20180312161050.7647-5-harald@ccbib.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5nittou4ns7ssr2s" Content-Disposition: inline In-Reply-To: <20180312161050.7647-5-harald@ccbib.org> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5nittou4ns7ssr2s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 12, 2018 at 04:10:49PM +0000, Harald Geyer wrote: > This device is compatible with A13, so no new driver is needed. >=20 > Signed-off-by: Harald Geyer > --- > I saw that Andre Przywara has been working on A64 pwm too and has > submitted some patches a few days ago. I think his patches are functional= ly > equivalent to this one here, but clean up things a bit and thus are > preferable. See: >=20 > https://groups.google.com/forum/#!topic/linux-sunxi/hQFeteP591k >=20 > I'm including my patch here mostly to have a consistent series for others > to test. OTOH you might merge the device tree changes here and pick up > the cleanup patches from him. Either way should work fine. >=20 > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 13 +++++++++++++ > 1 file changed, 13 insertions(+) >=20 > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/b= oot/dts/allwinner/sun50i-a64.dtsi > index 05d5e8def68a..95d52f6aa07f 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > @@ -364,6 +364,11 @@ > bias-pull-up; > }; > =20 > + pwm_pin: pwm_pin { > + pins =3D "PD22"; > + function =3D "pwm"; > + }; > + > rmii_pins: rmii_pins { > pins =3D "PD10", "PD11", "PD13", "PD14", "PD17", > "PD18", "PD19", "PD20", "PD22", "PD23"; > @@ -629,6 +634,14 @@ > #interrupt-cells =3D <3>; > }; > =20 > + pwm: pwm@1c21400 { > + compatible =3D "allwinner,sun5i-a13-pwm"; Just like for the watchdog, you should have an A64 compatible there. > + reg =3D <0x01c21400 0x8>; And you should use the full memory range here. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --5nittou4ns7ssr2s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlqni9QACgkQ0rTAlCFN r3TaOA/+NMl2EJf1U/fQit6/vBRkc5av7js2OXfOliGiIiRvewBM7GySnhatF/Cm kF6OQG8xN9JxYv1RorMkpyuSz4V+bNK+c5aW89ibkIjtWNJYiNhnwCQCTCUGdsVg 2wg3OydNf3rMUb4BMTM6R9EGYvguULh6D1/YaJEqrzkkKLnq7bk6Bav8BEanDRle KAfq9HeSfSGoAn11YUHeDc5CDCCUQb7wQqxknw73wch4LTkNNmLzXaU3fqMSjFZm ZNlPaOdGU7MWIsfkZKN36MMmuiRdmjkYPWbLcjVSFYbB5sUFrohzqgDsLvOviwVN 7ddY0hJK9NNKlgZddubKdIE9+uxg4Z/n19l2OYxWbrFjjKh4Uhg7f8/cFvuyLam9 AzMeqztYo8/3xlqFFPw6rB0a6lEWZxf0YqeSGkeyxeGzDAgcUzzY/oDyIf7VX8jt seMWrt5NtW9poKFB6e/NVYVjT8YqpwceYYd+PH0df78TpOYgV4GS2DHpGMnTlZ4O QxjPUy5jccazi3nmJyfCNm3rzfZSsyE42BD69cE0uUl+8IMZGu/Pt53//m+wPSgl krk946KenJnGLVpo6q/tUK2249nMNaVuseyZ9szUJOsjns0g4KnK4Obgv2W/4ass NokXA0sgXZWGlHrTs/mNx8Y5FyUlj0lNX5wEfSbhFFigaFAJnsQ= =/sjq -----END PGP SIGNATURE----- --5nittou4ns7ssr2s--