From patchwork Mon May 8 08:57:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 91035 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2020742vqo; Mon, 8 May 2023 02:28:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5AbxMYBj3mTYyucpbFJdJ+PKMbOEWN/INgF4U3i+KefDbGOwdsjNA18D9JXnAfrEDTa365 X-Received: by 2002:a17:903:1d1:b0:19a:bbd0:c5cc with SMTP id e17-20020a17090301d100b0019abbd0c5ccmr10909526plh.60.1683538115166; Mon, 08 May 2023 02:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683538115; cv=none; d=google.com; s=arc-20160816; b=VBdllT95UEAnkGq8iNXrvYPrHKS5MNkkefu7R2TBu21vd0xJbIT4OCzeX4n2r42XCU 4QtmogPRz07/TPmjSWAU9B3UtS/Gy7LBzi+XPdZVaxpH9NO0cEY3UZXJk+yN1csCBbeA rtb4Dpgz6XC9U49kvzllynER39j77EHoom1Jwh6+h03aRyOc9XbcH8uO4MrwfzjDF7Q+ 3iACrdNRGnHN3mg/2UrGJ8Szr+agAwDcSdmlz0P/erj4h9qR86syof3cKCwgkwfG7U4i +oSCIXss8C5xGxlQCfoZJ9/nSH6889PE4ag2NkAp6gwojZpdDAsQk0AGDO4xrR0hUNhl VKMA== 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:dkim-signature; bh=ZPLvkIvtLC6+B7znIWatvSXfTI7f9KmVz7fncKddhqI=; b=gBr4S7yOpBtKVDr+yGanYIyTERKSpPo+SWpQIXxrJ+Sc9aoQuDOTd9uM+IskxMZ5L+ wXNrSKmwo3Tw5I00xa8LolhjpvFVE62FrZbm3ILDJwUrg9NfMktOWGzpb10T2tWKpFPD 8kENFz98H3DhnuTYspRUVhRmxJcumTwSxVwaGsGOScN3TjvD0FcBRoWzJ4Hmp6lymRsK otKTuIQWmXdKSrETfUua+HUScW4nNAs0KWcS6Yeaah+pVVx+cJhTPVprNRViRHbdzwwr VZxmKsPhGdpEhaNeY+ui/mZjaENpASX9dyuDI62oykkNcMKMgD8k+aJopw/apWPMBcri r4yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NOEQsRNj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020a170902aa9500b001a55571febesi7322234plr.277.2023.05.08.02.28.19; Mon, 08 May 2023 02:28:35 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NOEQsRNj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233385AbjEHI5l (ORCPT + 99 others); Mon, 8 May 2023 04:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233386AbjEHI5g (ORCPT ); Mon, 8 May 2023 04:57:36 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5894821573; Mon, 8 May 2023 01:57:31 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f315712406so161980415e9.0; Mon, 08 May 2023 01:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683536250; x=1686128250; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=ZPLvkIvtLC6+B7znIWatvSXfTI7f9KmVz7fncKddhqI=; b=NOEQsRNjTZ34Mz97BXBCCVqgGl5hxzsvyCQjQnlgSOPoAcjn9ocfvJVVI3fPEQE5Rm 73L8nnPYHfB8cV5rojUcjfRSMl6/iYOfr8hnUWVHAO51v8F16ib49cOqFoTUtaAVhIe2 e/ZTThTcUoMS45GuWV6llj7BcIpwRS6Tx5XijCbhW6cunt5JSv6pVRS6kJ6e1T03T1A9 fN0NwJzqC8BO+fVJEsDTQat7BsuMr2gCQEZ5Glfw4O9XZmasaJRJPFgyn/JyPnXEgfAA GEEhvAoyBYMSL0FU195P/+yFbOJ9CX4dIqG4Wc3Q8u6HN8UhR6k6PWW/QLv010aPDTAF WCSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683536250; x=1686128250; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZPLvkIvtLC6+B7znIWatvSXfTI7f9KmVz7fncKddhqI=; b=jgPpjDokjW5e5oF9fMrwqhyXg10n5oO21CaSTQ6AYWtJNIC/I6/KVJCmWxdsOsbIcq +cuuf0aA0jRH0vnnyC/gtQtnoN2YS97DSDg+nEWwjeaxEv3TohUGzun4sYfBDocZRGGb SNCUfLnFlHTtzq/9JPBPb2fycnyCp4CvUPmu/q5rLIAq6rANF90P8zIlbhVaBQd/Eq65 cpIKeE7Hmszbz/nTI1UkpeTRo8/8gukdd3plYW7mxs5BlqHjcV3aZ74tG/fW72hxzMrz FnPK7gHV63bAnw57VwPFFRyZ4ObKkjJk6Q6rNMsg5KFyspx7HBoHwfOIGyfQ5Lu1TsEk Xx2w== X-Gm-Message-State: AC+VfDw50YT8fiyYLxwM3Xod7BXCH8wkb1YPkuG3igHpELJadTOYbvBg 6j3qF2QoeFbtUlKLDzL4fMYaPmE9mE13Iw== X-Received: by 2002:adf:dd83:0:b0:307:7d1a:20fd with SMTP id x3-20020adfdd83000000b003077d1a20fdmr5715126wrl.12.1683536249976; Mon, 08 May 2023 01:57:29 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id z6-20020adff746000000b002f103ca90cdsm10656624wrp.101.2023.05.08.01.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 01:57:29 -0700 (PDT) Date: Mon, 8 May 2023 10:57:27 +0200 From: Stanislav Jakubek To: Thierry Reding , Uwe =?iso-8859-1?q?Kleine-K?= =?iso-8859-1?q?=F6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: pwm: brcm,kona-pwm: convert to YAML Message-ID: <20230508085727.GA7252@standask-GA-A55M-S2HP> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1765317662632984469?= X-GMAIL-MSGID: =?utf-8?q?1765317662632984469?= Convert Broadcom Kona family PWM controller bindings to DT schema. Signed-off-by: Stanislav Jakubek --- .../devicetree/bindings/pwm/brcm,kona-pwm.txt | 21 -------- .../bindings/pwm/brcm,kona-pwm.yaml | 51 +++++++++++++++++++ 2 files changed, 51 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt create mode 100644 Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt b/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt deleted file mode 100644 index c42eecfc81ed..000000000000 --- a/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt +++ /dev/null @@ -1,21 +0,0 @@ -Broadcom Kona PWM controller device tree bindings - -This controller has 6 channels. - -Required Properties : -- compatible: should contain "brcm,kona-pwm" -- reg: physical base address and length of the controller's registers -- clocks: phandle + clock specifier pair for the external clock -- #pwm-cells: Should be 3. See pwm.yaml in this directory for a - description of the cells format. - -Refer to clocks/clock-bindings.txt for generic clock consumer properties. - -Example: - -pwm: pwm@3e01a000 { - compatible = "brcm,bcm11351-pwm", "brcm,kona-pwm"; - reg = <0x3e01a000 0xc4>; - clocks = <&pwm_clk>; - #pwm-cells = <3>; -}; diff --git a/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml b/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml new file mode 100644 index 000000000000..d1a58d130708 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/brcm,kona-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Kona family PWM controller + +description: + This controller has 6 channels. + +maintainers: + - Florian Fainelli + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + items: + - enum: + - brcm,bcm11351-pwm + - const: brcm,kona-pwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + '#pwm-cells': + const: 3 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + #include "dt-bindings/clock/bcm281xx.h" + + pwm@3e01a000 { + compatible = "brcm,bcm11351-pwm", "brcm,kona-pwm"; + reg = <0x3e01a000 0xcc>; + clocks = <&slave_ccu BCM281XX_SLAVE_CCU_PWM>; + #pwm-cells = <3>; + }; +...