From patchwork Mon Jan 30 20:34:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13121806 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 8DA89C636CD for ; Mon, 30 Jan 2023 20:36:04 +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:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dyvg2fGX3km+P/M9Q4i7j/VagkKbfSLEzaROD9wHxj8=; b=LAKB78K28NbC42 5kDg3wkoH0mzECd2GxF0KzLJFO3MJV7Hfjpj42Ft0+YfYs7mew+3Fs13IqYO4+NcYD1abZSd8Bu42 sOfKRejENHIFvgLyHJEoaDdx4Zl0H+TnBEsYQzckews1uxugIeLw6H01nTFfmLEjvcgkGyVilF2/N J/ddvCDbTCeHZPQ0Eph85jIQgv1RfsdqInX+Nw7oN6EA7y3YQq7WL12HNVJGOXYBv8KEgH+jnSPlb HISTo0XDbPNx54JRCfwT9bGfEr2Fk9O6/saGaNCkAumJRRu7gvfYZgXcGYhtmHwU2fhTja9GNvcuf 3zdGxxSC9gzF3hJc0pGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMaru-005NA9-3L; Mon, 30 Jan 2023 20:35:10 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMarr-005N8A-3K; Mon, 30 Jan 2023 20:35:08 +0000 Received: by mail-ej1-x635.google.com with SMTP id m2so35002584ejb.8; Mon, 30 Jan 2023 12:35:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=Izia26EYeDM525t5D9ySWrr0/qUJNtoiKMM2Ve6HW1s=; b=S1STwkdg3cc0FiYh0eElBnjlY2I5wlJAcJ7cLhnykVBTRhO1ZflIyohVPX1/Re81GN k1zE/NMi1q5NmHqETza9d9ciC2SWJJglkJ6HxmZSLIHhX0QW5pr1YSxGuiAp275CRvF/ hNnJkbO/nFBfp7cIhq1Gxsg1iZ8xDLmg2LMhw4growD3Dbi9TGfafKrV+RH9HDCCczIB eL2QB1jMKSeyjBMDgMbcd7M7juZOvd+aRfo8qAV342Zf1Av//8xnxeUY6eHa6Gdazcau Y+muOLRChlq3CWe4dxNCnHBO5nNHpKfOhtHGlsWp0+BXUvOazly/6O/8Kgy2RLH3+DlA /8wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Izia26EYeDM525t5D9ySWrr0/qUJNtoiKMM2Ve6HW1s=; b=yBhVyPQwB9oXwjWGa3/kPPGXqh6nHY8pCIfYQN2YWn3Nz4KwZfz/YUc0l/eUY8ug11 Ve924fUvKwzXERLSp9J3ZNu5zUTN/LaUwqz6HoY48xeP2D3pIwMJxmeTHq8sa0KxBthw sbB/3bs36r+gCkHSkK7N7RA1Q2rI9OwCpMxDYN/67j8YbD6493ZlanDny1D9vm+KEK4I uKNv0ve0SzC8w7MSuZJEZA3qV+WGqA7LPORlWXBmWF3x0r3lRwVxskvzT3FVeh/s//6z RlI1be4hYwKFYiAPKPWqsscyLAAHbWFSuwleYpVyptNBwjjEfgzer1kpsTYUVwjae7Ez bFIQ== X-Gm-Message-State: AO0yUKXKmMsKOryP2UPix2A/BxlaBQOrRxIBIR+Eu7EL0oWVao0yPLEu IfVlHINn0ULdXfGWEDgJ7NE= X-Google-Smtp-Source: AK7set/ZOwIiKJv5E0C3RIcESZk+4wxKOF7QbdrEh7hIpzXZ4AZm671atxgFxLQvTV4ttVjuqOTJFw== X-Received: by 2002:a17:906:bcf5:b0:884:ab29:bd0b with SMTP id op21-20020a170906bcf500b00884ab29bd0bmr9190603ejb.69.1675110902831; Mon, 30 Jan 2023 12:35:02 -0800 (PST) Received: from ?IPV6:2a01:c23:c074:7400:d941:3cb5:fa86:8ec8? (dynamic-2a01-0c23-c074-7400-d941-3cb5-fa86-8ec8.c23.pool.telefonica.de. [2a01:c23:c074:7400:d941:3cb5:fa86:8ec8]) by smtp.googlemail.com with ESMTPSA id kl13-20020a170907994d00b00882f9130eafsm4270220ejc.26.2023.01.30.12.35.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 12:35:02 -0800 (PST) Message-ID: Date: Mon, 30 Jan 2023 21:34:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 From: Heiner Kallweit Subject: [PATCH v3] dt-bindings: pwm: Convert Amlogic Meson PWM binding To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "open list:ARM/Amlogic Meson..." , linux-pwm@vger.kernel.org References: Content-Language: en-US In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230130_123507_177882_D8F8EF4F X-CRM114-Status: GOOD ( 12.44 ) 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 Convert Amlogic Meson PWM binding to yaml. Signed-off-by: Heiner Kallweit Reviewed-by: Rob Herring --- v2: - fix clocks and clock-names - consider that more than one compatible may be set v3: - remove minItem/maxItem properties for compatible --- .../devicetree/bindings/pwm/pwm-amlogic.yaml | 71 +++++++++++++++++++ .../devicetree/bindings/pwm/pwm-meson.txt | 29 -------- 2 files changed, 71 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-meson.txt diff --git a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml new file mode 100644 index 000000000..750642e76 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/pwm-amlogic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic PWM + +maintainers: + - Heiner Kallweit + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - amlogic,meson8b-pwm + - amlogic,meson-gxbb-pwm + - amlogic,meson-gxbb-ao-pwm + - amlogic,meson-axg-ee-pwm + - amlogic,meson-axg-ao-pwm + - amlogic,meson-g12a-ee-pwm + - amlogic,meson-g12a-ao-pwm-ab + - amlogic,meson-g12a-ao-pwm-cd + - amlogic,meson-s4-pwm + - items: + - const: amlogic,meson-gx-pwm + - const: amlogic,meson-gxbb-pwm + - items: + - const: amlogic,meson-gx-ao-pwm + - const: amlogic,meson-gxbb-ao-pwm + - items: + - const: amlogic,meson8-pwm + - const: amlogic,meson8b-pwm + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + oneOf: + - items: + - enum: [clkin0, clkin1] + - items: + - const: clkin0 + - const: clkin1 + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pwm@8550 { + compatible = "amlogic,meson-gxbb-pwm"; + reg = <0x08550 0x10>; + clocks = <&xtal>, <&xtal>; + clock-names = "clkin0", "clkin1"; + #pwm-cells = <3>; + }; diff --git a/Documentation/devicetree/bindings/pwm/pwm-meson.txt b/Documentation/devicetree/bindings/pwm/pwm-meson.txt deleted file mode 100644 index bd02b0a14..000000000 --- a/Documentation/devicetree/bindings/pwm/pwm-meson.txt +++ /dev/null @@ -1,29 +0,0 @@ -Amlogic Meson PWM Controller -============================ - -Required properties: -- compatible: Shall contain "amlogic,meson8b-pwm" - or "amlogic,meson-gxbb-pwm" - or "amlogic,meson-gxbb-ao-pwm" - or "amlogic,meson-axg-ee-pwm" - or "amlogic,meson-axg-ao-pwm" - or "amlogic,meson-g12a-ee-pwm" - or "amlogic,meson-g12a-ao-pwm-ab" - or "amlogic,meson-g12a-ao-pwm-cd" -- #pwm-cells: Should be 3. See pwm.yaml in this directory for a description of - the cells format. - -Optional properties: -- clocks: Could contain one or two parents clocks phandle for each of the two - PWM channels. -- clock-names: Could contain at least the "clkin0" and/or "clkin1" names. - -Example: - - pwm_ab: pwm@8550 { - compatible = "amlogic,meson-gxbb-pwm"; - reg = <0x0 0x08550 0x0 0x10>; - #pwm-cells = <3>; - clocks = <&xtal>, <&xtal>; - clock-names = "clkin0", "clkin1"; - }