From patchwork Thu Nov 24 11:03:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 25452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3331908wrr; Thu, 24 Nov 2022 03:19:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iIINF2hyJI2tPLVqEV9RDGeUP5u74pFwoMs6kL5pbjnzEqDzBHKnWDmbIFLz/VqCT+f3o X-Received: by 2002:aa7:9045:0:b0:56c:a321:eecb with SMTP id n5-20020aa79045000000b0056ca321eecbmr34626594pfo.19.1669288754318; Thu, 24 Nov 2022 03:19:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669288754; cv=none; d=google.com; s=arc-20160816; b=S/DHquAPPrRT5z/eMWOJ0Y/TwgqE0QH9FcNFhOGECwKn7fKJbreLygArlxhQ/970TM BuinYfH6RvdulMmmKtL24KvaslyCig+6D3lAAXpvIhx1plVyQOTbxbepilsTSxSYuU1l nYK/bCo3dyTERkyZj8F3WQC5u/N3BLChjtr0M9JVtsogHvtxcNSOfQ/wQkBgYCsi9Vu2 0hLCfG3Ami5b8oKB744na9uTmLcXYmJNYh35/+hkHwHZhcMoIa15UAjvYUJa0PP2e3wx hMbe/RRP2iP7YdB8PlhknTUDFg5gPzXpvvhdssR5unBcQ0/dndyG2sQkB5CCrpT4RgNF PjvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=khZAAv4ACFRudG/es4r2t/rZaMOmYXAS+vKKWsdf7IA=; b=coftlW1TL8ywqZACqzKYca9eN7ajwPr/QSGkEy80cKwkmcQOUSNr9D11+Kdth7fovu 980jYpayPKFTG/PLeGOWwfCORWlgLpjxisgyRAHak19VgzyYsQlGgzkjv0jE3VAcL2V5 qjABJc6T+YYwws89lHHYNj+fzANw6+MxEOPKD6fKwOvSNEV4BbxuAvMY2BN+4HiFI14G gRIUMvc4D1kNnwmfHZFAGqyqo8lD3CksLw1S2nVQeVNRZGZveJAdEw4lxS9VuYJuQLc4 TPKfcPdXIBfXabe0FTVMupmwEnlfeMHQdOMcMJkZw41sDdkJVq6GAQ2KuUDyudni1Vkn LyhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my12-20020a17090b4c8c00b00212a866de99si467518pjb.157.2022.11.24.03.19.01; Thu, 24 Nov 2022 03:19:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbiKXLD6 (ORCPT + 99 others); Thu, 24 Nov 2022 06:03:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiKXLDz (ORCPT ); Thu, 24 Nov 2022 06:03:55 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36420881A2; Thu, 24 Nov 2022 03:03:54 -0800 (PST) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.94.2) (envelope-from ) id 1oyA1F-0000L5-44; Thu, 24 Nov 2022 12:03:49 +0100 Date: Thu, 24 Nov 2022 11:03:41 +0000 From: Daniel Golle To: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.or, Matthias Brugger , Krzysztof Kozlowski , Rob Herring , Uwe =?iso-8859-1?q?Kleine-K=F6nig?= , Thierry Reding Cc: Fabien Parent , Zhi Mao , Sam Shih Subject: [PATCH RESEND v2] dt-bindings: pwm: mediatek: Add compatible for MT7986 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750376124839955123?= X-GMAIL-MSGID: =?utf-8?q?1750376124839955123?= Add new compatible string for MT7986 PWM and list compatible units for existing entries. Also make sure the number of pwm1-X clocks is listed for all supported units. Signed-off-by: Daniel Golle --- Changes since v1: list compatibles, fix pwm1-n clocks for all SoCs Rebased on linux-next and re-run scripts/get_maintainers.pl on patch to makes sure dt maintainers are included. This has been requested by Krzysztof Kozlowski. .../devicetree/bindings/pwm/pwm-mediatek.txt | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt index 554c96b6d0c3..952a338e06e7 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt @@ -2,14 +2,15 @@ MediaTek PWM controller Required properties: - compatible: should be "mediatek,-pwm": - - "mediatek,mt2712-pwm": found on mt2712 SoC. + - "mediatek,mt2712-pwm", "mediatek,mt6795-pwm": found on mt2712 SoC. - "mediatek,mt6795-pwm": found on mt6795 SoC. - - "mediatek,mt7622-pwm": found on mt7622 SoC. - - "mediatek,mt7623-pwm": found on mt7623 SoC. + - "mediatek,mt7622-pwm", "mediatek,mt8195-pwm", "mediatek,mt8183-pwm", "mediatek,mt7986-pwm": found on mt7622 SoC. + - "mediatek,mt7623-pwm", "mediatek,mt7628-pwm": found on mt7623 SoC. - "mediatek,mt7628-pwm": found on mt7628 SoC. - "mediatek,mt7629-pwm": found on mt7629 SoC. - - "mediatek,mt8183-pwm": found on mt8183 SoC. - - "mediatek,mt8195-pwm", "mediatek,mt8183-pwm": found on mt8195 SoC. + - "mediatek,mt7986-pwm": found on mt7986 SoC. + - "mediatek,mt8183-pwm", "mediatek,mt7986-pwm": found on mt8183 SoC. + - "mediatek,mt8195-pwm", "mediatek,mt8183-pwm", "mediatek,mt7986-pwm": found on mt8195 SoC. - "mediatek,mt8365-pwm": found on mt8365 SoC. - "mediatek,mt8516-pwm": found on mt8516 SoC. - reg: physical base address and length of the controller's registers. @@ -20,11 +21,14 @@ Required properties: has no clocks - "top": the top clock generator - "main": clock used by the PWM core + - "pwm1" : the PWM1 clock for mt7629 + - "pwm1-2": the two per PWM clocks for mt7986 - "pwm1-3": the three per PWM clocks for mt8365 - - "pwm1-8": the eight per PWM clocks for mt2712 + - "pwm1-4": the four per PWM clocks for mt7628 or mt8183 + - "pwm1-5": the five per PWM clocks for mt7623 or mt8516 - "pwm1-6": the six per PWM clocks for mt7622 - - "pwm1-5": the five per PWM clocks for mt7623 - - "pwm1" : the PWM1 clock for mt7629 + - "pwm1-7": the seven per PWM clocks for mt6795 + - "pwm1-8": the eight per PWM clocks for mt2712 - pinctrl-names: Must contain a "default" entry. - pinctrl-0: One property must exist for each entry in pinctrl-names. See pinctrl/pinctrl-bindings.txt for details of the property values.