From patchwork Mon Feb 14 14:01:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?WGlubGVpIExlZSAo5p2O5piV56OKKQ==?= X-Patchwork-Id: 12745660 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D2A0C433F5 for ; Mon, 14 Feb 2022 14:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W1LBfTd4Oxkf1iVhnFfwnHYYu6RUp9TT7QUxsgEJR9s=; b=eSqySFW2k+LLhH qmN5b3k9GPE3ryIJrYVvHiw56y9o8rEJMuYPvfC8DNDvNZD5d2JmOv9kTdR70kqZg4jfTHywNIwKQ ZDNSHfqVNBf4exIl6Y3/exeJyw0GS8IcomAyDBF4B+oRhJRUmMy8XwwM8C3Cdh11CpSmmB7tHVD6D y9L02hf34j49Ci4/AmUxSXXjXxQc/NZheUK1/kyfC3OBI+Am4YKESszTSJFRzOJtvQoADZA/oZhB0 9/KC9QTZww2bHWaHCgJ3ckd2jb9DBKoQhC+IFvDf3ZyCrd/lrpNRje+Zh6NoeE3LVCDeDIFLqv7T1 lgP3j2HaFi5JSwo4EGLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJc3e-00Fbad-5w; Mon, 14 Feb 2022 14:10:26 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJc3W-00FbX7-70; Mon, 14 Feb 2022 14:10:20 +0000 X-UUID: b9b06c046ccd49d18626a1a516383ab3-20220214 X-UUID: b9b06c046ccd49d18626a1a516383ab3-20220214 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1384709419; Mon, 14 Feb 2022 07:10:12 -0700 Received: from MTKMBS34N1.mediatek.inc (172.27.4.172) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 14 Feb 2022 06:01:25 -0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS34N1.mediatek.inc (172.27.4.172) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 14 Feb 2022 22:01:23 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 14 Feb 2022 22:01:22 +0800 From: To: , , , , CC: , , , , , , xinlei lee Subject: [1/1] dt-bindings: pwm:Convert pwm-mtk-disp.txt format file to pwm-mtk-disp.yaml format file Date: Mon, 14 Feb 2022 22:01:16 +0800 Message-ID: <1644847276-27622-2-git-send-email-xinlei.lee@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1644847276-27622-1-git-send-email-xinlei.lee@mediatek.com> References: <1644847276-27622-1-git-send-email-xinlei.lee@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220214_061018_267884_18D7861A X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: xinlei lee Signed-off-by: xinlei lee --- .../devicetree/bindings/pwm/pwm-mtk-disp.yaml | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-mtk-disp.yaml diff --git a/Documentation/devicetree/bindings/pwm/pwm-mtk-disp.yaml b/Documentation/devicetree/bindings/pwm/pwm-mtk-disp.yaml new file mode 100644 index 0000000..2f1183e --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-mtk-disp.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/pwm-mtk-disp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: mediatek PWM Controller Device Tree Bindings + +maintainers: + - Thierry Reding + - Uwe Kleine-König + - Lee Jones + - Rob Herring + +properties: + compatible: + enum: + - mediatek,mt2701-disp-pwm + - mediatek,mt6595-disp-pwm + - mediatek,mt8173-disp-pwm + - mediatek,mt8183-disp-pwm + - mediatek,mt8186-disp-pwm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Main Clock + - description: Mm Clock + + clock-names: + items: + - const: main + - const: mm +required: + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + disp_pwm: disp_pwm0@1100e000 { + compatible = "mediatek,mt8183-disp-pwm"; + reg = <0x1100e000 0x1000>; + interrupts = ; + clocks = <&topckgen CLK_TOP_DISP_PWM>, + <&infracfg_ao CLK_INFRA_AO_DISP_PWM>; + clock-names = "main", "mm"; + status = "okay"; + }; \ No newline at end of file