Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6720569ybn; Mon, 30 Sep 2019 02:40:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5IcZOo7Sw6o4IwobefwerqF6CsTZWMiYzk/mm3m7MKmEH3fZdqjTOg3zMNrlD3rbzGLt1 X-Received: by 2002:a50:cfc7:: with SMTP id i7mr18059038edk.89.1569836414397; Mon, 30 Sep 2019 02:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569836414; cv=none; d=google.com; s=arc-20160816; b=EO8fQNWKYwlV/6XXmdjB321hI1TQPNs8PNqKWrvWYScY7LFlW6GOP4cKRbhJiqF0vn G8sMuRIXlXnFdZWl9/g6Yk6ZtRj7uzeJPXnCVEtyQE0lzSb7mwS9cpAWSsjxDMlm0FRY +gBJkzUXZF3tWR5GsH5mh+yaKoGyyzXyzyuIt+FidSk4g8zwBb4wdik5/Po1Aym5Az53 jGKSESmQ8t7rEpJSDpqVWSCLulCNW6vi6JEehf0YOyLYIAzXGvmavjUBzNZBNQEoecka K3rEpj6dRGXJvaf+jBUocPFLrLf0fXMkrsA6rcyQycnCsxOm+NxA8uts+rLSoig0ww/s pETg== 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:dkim-signature; bh=T1LYv7Cw2G9QMJi0g/N3eFnKbwYc0qhwvJT0FvyrfHg=; b=jqjIVgWmx/EiJX/4QjODGgmcwj+l1zxrB4gf3Z9erIHi9sVOpmV2XDrh8tfQxRzbnx JzY3q8KWBsGd80gk5z/xZtzb17rb5TrCxC/31q+/rBwKGKG5tx5mC9CibjvwxPBWrJLz 9aOw9bpoAATcO+52ks5nkrWdNA1NN3Odn9tImYWO8W3IqfaJer+AQEWEyQDpmXFgm6VB 41ICndg4j9uIQCTW1QtDNu3V9kTB7ox+4Bp0UGfluqm5M9J0VTlQ8sBW98JE6WoOfNiY +DmMXeRA0jlIJOPJ9WlCOal5LfObQ1L6mPMtuDX1ETchoamLMjD45SuF/tsVbqTIhTow p2Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QRUCa4g9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si6742334ejp.157.2019.09.30.02.39.49; Mon, 30 Sep 2019 02:40:14 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QRUCa4g9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730522AbfI3Jgg (ORCPT + 99 others); Mon, 30 Sep 2019 05:36:36 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53103 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730033AbfI3Jgf (ORCPT ); Mon, 30 Sep 2019 05:36:35 -0400 Received: by mail-wm1-f67.google.com with SMTP id r19so12553380wmh.2; Mon, 30 Sep 2019 02:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=T1LYv7Cw2G9QMJi0g/N3eFnKbwYc0qhwvJT0FvyrfHg=; b=QRUCa4g9ZDyX2Sp+/YdFZIMvgXARoceU/ZNW50SsfjmV8SPXRu6voyl1umzlnJvMSk ZkS5Uu8ncytxwNFkvEPCdA/Vj47mzal1E/Wx7pPcbYMqU+s2u3kZwO6Cbq0g0XPjXbUE yOPy0vtloDydAGrWaIMkDBgQG2YDISDDwCKFzW2mt2wIxJiVid9mJkppKaWrh8lSmlal EBj1oO+QFN64p35PkiSe/YDqRKnxQATvtKdhz1z8qFFhZtEl2fzpAmL1nvrXNYz4gRUf iD2ypPuSmwMqVFf3fnphQwwccAfvH7WfkKI3UIldqNCO9NAXGIdg9U9wyua9yRQmbHaH 34Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=T1LYv7Cw2G9QMJi0g/N3eFnKbwYc0qhwvJT0FvyrfHg=; b=TkzrBl6+DUnDVks9GKMykWbDL7ngCZUbKX0lqPTBQN+WFxn5rv8ERO8wF8djiuNTO7 4Wbt04nN+vDsxm1WsvK2Y3XFMa7Qk5qcuhysH82JfbsLVxJAngF5X+EfRi7hJ3gi1BqP ayJIj/4eD8ZHr0W+RyEqLny20NZVS34dTnCn9GnVRefwuRRMIuhGS7jsaz2+y4gmtYJL By/mg62P3jA24ynKRnzl8Gg5L8oME21pGrTkrmi5fwyDTFvuivNjw47UMZ9REZCujcGo m3FhigA+tApemopvD5rO/Duo0GE5hAQFG2bYL1IGG7NX1J+qV4/R0x8itOMVJfDC+snc CNKA== X-Gm-Message-State: APjAAAWBUOQADR5eM88i6hSkw6wJj543qbLUJWQkoJ/yG4lc1x3bTzQU TbGjwNnQVCh2+rdE5PHndZk= X-Received: by 2002:a05:600c:2311:: with SMTP id 17mr15980556wmo.39.1569836192580; Mon, 30 Sep 2019 02:36:32 -0700 (PDT) Received: from localhost (p2E5BE2CE.dip0.t-ipconnect.de. [46.91.226.206]) by smtp.gmail.com with ESMTPSA id d78sm15306624wmd.47.2019.09.30.02.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2019 02:36:31 -0700 (PDT) Date: Mon, 30 Sep 2019 11:36:29 +0200 From: Thierry Reding To: Sam Shih Cc: Rob Herring , Mark Rutland , Matthias Brugger , Ryder Lee , John Crispin , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v10 08/12] pwm: mediatek: Add MT7629 compatible string Message-ID: <20190930093629.GH1518582@ulmo> References: <1569421957-20765-1-git-send-email-sam.shih@mediatek.com> <1569421957-20765-9-git-send-email-sam.shih@mediatek.com> <20190927112831.GA1171568@ulmo> <1569833468.32131.4.camel@mtksdccf07> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9jHkwA2TBA/ec6v+" Content-Disposition: inline In-Reply-To: <1569833468.32131.4.camel@mtksdccf07> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9jHkwA2TBA/ec6v+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 30, 2019 at 04:51:08PM +0800, Sam Shih wrote: > Hi, >=20 > On Fri, 2019-09-27 at 13:28 +0200, Thierry Reding wrote: > > On Wed, Sep 25, 2019 at 10:32:33PM +0800, Sam Shih wrote: > > > This adds pwm support for MT7629, and separate mt7629 compatible stri= ng > > > from mt7622 > > >=20 > > > Signed-off-by: Sam Shih > > > --- > > > drivers/pwm/pwm-mediatek.c | 6 ++++++ > > > 1 file changed, 6 insertions(+) > >=20 > > I picked this patch up and made some minor adjustments to make it build > > without the num_pwms patches. With that I don't think there's anything > > left from this series that you need. >=20 > Yes, I think the driver should work once dtsi updated. > ("[v10,12/12] arm: dts: mediatek: add mt7629 pwm support") >=20 > But, due to we use comaptible string separately for every SoC now, > The comaptible string in dt-bindings should be "mediatek,mt7629-pwm". > I think we should use "[v10,11/12] dt-bindings: pwm: update bindings=20 > for MT7629" to replace commit 1c00ad6ebf36aa3b0fa598a48b8ae59782be4121, > Or maybe we need a little modification like this ? > diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt ... > - - "mediatek,mt7629-pwm", "mediatek,mt7622-pwm": found on mt7629 SoC. > + - "mediatek,mt7629-pwm": found on mt7629 SoC. Good catch, I must've taken this from the wrong version of the patch. How about the attached patch? Thanks, Thierry --- >8 --- =46rom 641b0ee176b139f9edd137ba636ca0cb9c63289a Mon Sep 17 00:00:00 2001 =46rom: Thierry Reding Date: Mon, 30 Sep 2019 11:33:31 +0200 Subject: [PATCH] dt-bindings: pwm: mediatek: Remove gratuitous compatible string for MT7629 The MT7629 is, in fact, not compatible with the MT7622 because the former has a single PWM channel while the former has 6. Remove the gratuitous compatible string for MT7629. Reported-by: Sam Shih Signed-off-by: Thierry Reding --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Docum= entation/devicetree/bindings/pwm/pwm-mediatek.txt index c8501530173c..053e9b5880f1 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt @@ -6,7 +6,7 @@ Required properties: - "mediatek,mt7622-pwm": found on mt7622 SoC. - "mediatek,mt7623-pwm": found on mt7623 SoC. - "mediatek,mt7628-pwm": found on mt7628 SoC. - - "mediatek,mt7629-pwm", "mediatek,mt7622-pwm": found on mt7629 SoC. + - "mediatek,mt7629-pwm": found on mt7629 SoC. - "mediatek,mt8516-pwm": found on mt8516 SoC. - reg: physical base address and length of the controller's registers. - #pwm-cells: must be 2. See pwm.txt in this directory for a description = of --=20 2.23.0 --9jHkwA2TBA/ec6v+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl2RzJoACgkQ3SOs138+ s6Fu6BAAuRcu3USNLrzJfAKIB1Wgkn0/BdRRi5vnFfGVSQ/CTCPsHwPve+B4ggdD KO/QA24iY4G/Jejm6tj2wFt5vw4j12jXaA1oo9Nk2CsfY7JsxhWYLwyB9dn41bxE Psooim1/HcwlwzWk2KX3h8kEiBV/xdeppMXog5ab1gXxMMs1j4cxSqEl8Flmal9b CwwxZMK21DNl4fZC6R+BUJ/94p7cJ0sOE198wr0Dm87u+faAlPw/VcVeslCOgVLQ 7G9/NxusfiTjUPSSWrfvJ0vVqXm+bCEAeeONJjr2XqonMr8W2Ch+muv8xB+bsnUY 8Y2U2nO8TrE9WGRq2WLG8+VOMykfJ2pFSb90rtt7IiGIas6EeEzLEaBrO4KAQeC7 OzjEA8Q/JywpyKL9IwNCwvDrvbeT4NC5AM7IJmzZ/bZeQwTLi0Zvoju/SqkYb100 DHZYjV2PcYS6jXQAdo/hMCsQj3MqSzPbNn7j9apiFE/n/Y4SQJiank7jlHleRUmx JE58Se7Ge8biW5p2OQzqFk9/4j/4V0aEwdezZFjoS58hIWla+4oGLAU4M4meDnTU xPHQZZM2tEg1mrkKhmkd6s+nGSD47bFZP49/+wjRdn1llDxJG9beNUpFiII5HKR9 3G1y3FsgjCMRWuELFVBXF8hqPC4P/MDk+bUQaSCRzaPwAT7NnwQ= =DGcd -----END PGP SIGNATURE----- --9jHkwA2TBA/ec6v+--