From nobody Tue Jun 23 11:14:35 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D564FC433EF for ; Mon, 7 Mar 2022 13:04:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242738AbiCGNFD (ORCPT ); Mon, 7 Mar 2022 08:05:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242723AbiCGNE7 (ORCPT ); Mon, 7 Mar 2022 08:04:59 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E6108AE66; Mon, 7 Mar 2022 05:04:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646658245; x=1678194245; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mE/f5w6hI3/UFX9x5xjoLAnGuFnfdoILziLi45/dW+s=; b=Eh9i8vg9O5w4fMnQgcsdwwrPWM8t6iyOULCfRoUQyJLtU05h7df4zDgX +b71xqsyQaSO1N8k6dLQQzPLb/dKp+j11kvBYajFlxjXKb9h+aak2Ck9e FpXCWR22lBH30GWHkPXAvCn+6S02KbSn/8Q3X0ugHeniByC9j1ZEU/jfu axitgSdlEN62EyCN7qomk2PETlRx9MH/LbGNrmHfjEpGgs3Qiamia7GeU R8bGf0b/WTVnxMa/a7brTcR3rnv0GT41Ib8b7OrMW9mVT9AUt8BrMlKx9 zJ2QmbfNjosdpFPiUTrIiG6NZlby/r7oSxoLu2M1yexKW/E3hqAG/8mMu A==; X-IronPort-AV: E=Sophos;i="5.90,162,1643698800"; d="scan'208";a="155492401" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Mar 2022 06:04:04 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 7 Mar 2022 06:04:03 -0700 Received: from ROB-ULT-M68701.amer.actel.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 7 Mar 2022 06:03:56 -0700 From: Sergiu Moga To: , , , , , , , CC: , , , , Sergiu Moga Subject: [PATCH 1/2] dt-bindings: pwm: convert atmel pwm to json-schema Date: Mon, 7 Mar 2022 15:03:06 +0200 Message-ID: <20220307130307.106102-2-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220307130307.106102-1-sergiu.moga@microchip.com> References: <20220307130307.106102-1-sergiu.moga@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Convert PWM binding for Atmel/Microchip SoCs to Device Tree Schema format. Signed-off-by: Sergiu Moga --- .../devicetree/bindings/pwm/atmel-pwm.txt | 35 ----------- .../devicetree/bindings/pwm/atmel-pwm.yaml | 62 +++++++++++++++++++ 2 files changed, 62 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/atmel-pwm.txt create mode 100644 Documentation/devicetree/bindings/pwm/atmel-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt b/Document= ation/devicetree/bindings/pwm/atmel-pwm.txt deleted file mode 100644 index fbb5325be1f0..000000000000 --- a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt +++ /dev/null @@ -1,35 +0,0 @@ -Atmel PWM controller - -Required properties: - - compatible: should be one of: - - "atmel,at91sam9rl-pwm" - - "atmel,sama5d3-pwm" - - "atmel,sama5d2-pwm" - - "microchip,sam9x60-pwm" - - reg: physical base address and length of the controller's registers - - #pwm-cells: Should be 3. See pwm.yaml in this directory for a - description of the cells format. - -Example: - - pwm0: pwm@f8034000 { - compatible =3D "atmel,at91sam9rl-pwm"; - reg =3D <0xf8034000 0x400>; - #pwm-cells =3D <3>; - }; - - pwmleds { - compatible =3D "pwm-leds"; - - d1 { - label =3D "d1"; - pwms =3D <&pwm0 3 5000 0> - max-brightness =3D <255>; - }; - - d2 { - label =3D "d2"; - pwms =3D <&pwm0 1 5000 1> - max-brightness =3D <255>; - }; - }; diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.yaml b/Documen= tation/devicetree/bindings/pwm/atmel-pwm.yaml new file mode 100644 index 000000000000..f5378a2226bd --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/atmel-pwm.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/atmel-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel PWM controller + +maintainers: + - Claudiu Beznea + +properties: + compatible: + enum: + - atmel,at91sam9rl-pwm + - atmel,sama5d3-pwm + - atmel,sama5d2-pwm + - microchip,sam9x60-pwm + + reg: + description: | + Physical base address and length of the controller's + registers + maxItems: 1 + + "#pwm-cells": + description: | + Should be 3. See pwm.yaml in this directory for a + description of the cells format. + const: 3 + +required: + - compatible + - reg + - "#pwm-cells" + +additionalProperties: true + +examples: + - | + pwm0: pwm@f8034000 { + compatible =3D "atmel,at91sam9rl-pwm"; + reg =3D <0xf8034000 0x400>; + #pwm-cells =3D <3>; + }; + + pwmleds { + compatible =3D "pwm-leds"; + + led-1 { + label =3D "led-1"; + pwms =3D <&pwm0 3 5000 0>; + max-brightness =3D <255>; + }; + + led-2 { + label =3D "led-2"; + pwms =3D <&pwm0 1 5000 1>; + max-brightness =3D <255>; + }; + }; --=20 2.25.1 From nobody Tue Jun 23 11:14:35 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FE12C433F5 for ; Mon, 7 Mar 2022 13:04:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242728AbiCGNFR (ORCPT ); Mon, 7 Mar 2022 08:05:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242740AbiCGNFK (ORCPT ); Mon, 7 Mar 2022 08:05:10 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 033298AE4E; Mon, 7 Mar 2022 05:04:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646658256; x=1678194256; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0le0xn3d1vkwFX3wOCoHwX5VTqLPR6D4Yyf2PZhCSDY=; b=jMnPjU/VMZgIDHoUZlmh1pGcqpyy5DfBDfodEQECIV3VNtWUy6SaDM21 5I1bXAxAdKxqRcFbDOAqTvOzQNMpnVxxKGGc2sg3IJ/m0gZHiQS60hTP+ Sd0roowj/Be9lniCwOJ1A+dUIoCMDtS5wFq4G/L0GQhpLYuy/OeGj3PYb 7pj3YnVWr3hxNVaIwMe1B9BsYYU3z17gCCKMmFJjPxXCAJJpF2t8r5foz 8dON5Cw5ketct5v3AIQaAfdGaH1gO4A3zMi0jkHHrfjILPfDgoOrGefpg NJV80j26MFEOnqdTW7hPBR1yXBLqZmThewNs8FA7A21RmhvJG5EN2/fjC A==; X-IronPort-AV: E=Sophos;i="5.90,162,1643698800"; d="scan'208";a="148323686" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Mar 2022 06:04:15 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 7 Mar 2022 06:04:14 -0700 Received: from ROB-ULT-M68701.amer.actel.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 7 Mar 2022 06:04:07 -0700 From: Sergiu Moga To: , , , , , , , CC: , , , , Sergiu Moga Subject: [PATCH 2/2] dt-bindings: pwm: at91: Add SAMA7G5 compatible strings list Date: Mon, 7 Mar 2022 15:03:07 +0200 Message-ID: <20220307130307.106102-3-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220307130307.106102-1-sergiu.moga@microchip.com> References: <20220307130307.106102-1-sergiu.moga@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add compatible strings list for SAMA7G5. Signed-off-by: Sergiu Moga Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/pwm/atmel-pwm.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.yaml b/Documen= tation/devicetree/bindings/pwm/atmel-pwm.yaml index f5378a2226bd..55d40973e6a9 100644 --- a/Documentation/devicetree/bindings/pwm/atmel-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/atmel-pwm.yaml @@ -12,11 +12,16 @@ maintainers: =20 properties: compatible: - enum: - - atmel,at91sam9rl-pwm - - atmel,sama5d3-pwm - - atmel,sama5d2-pwm - - microchip,sam9x60-pwm + oneOf: + - items: + - enum: + - atmel,at91sam9rl-pwm + - atmel,sama5d3-pwm + - atmel,sama5d2-pwm + - microchip,sam9x60-pwm + - items: + - const: microchip,sama7g5-pwm + - const: atmel,sama5d2-pwm =20 reg: description: | --=20 2.25.1