From patchwork Mon Mar 7 15:36:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12772023 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 29D84C433F5 for ; Mon, 7 Mar 2022 15:42:30 +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=xtL8QgVPAC8oYe+9oH0Yxwb03EyNnp9NVgXO81lQLKY=; b=UZhCET+JPVjE3/ hz+LFTYXNDXahvyY/+cenG6KAJWtLH/OD1cQZewmPdMHXQ7LXGPpFAbimG2byg1qu8g91P3Qgelsa vCYRvLGrzgabXoltZEwkXhETXNmeGFD8SnmRitXDqIcOtAtQPR70NElZRNnj1mpAiOpXCTYzzURLa a3hrlx4uzWXkMSPnk9juWbsP+kretbsb8R7HlSXpxGf5GO1z0Kg7cMaedTxz8XQPSJADMPqTvm8Ok l6MsKlWg/gp7aXxu+J2J17F+IjNStD3anCbblp5ddTnUcs0LDEVs2NVHAppxMIxCxM+I9Ic9XllTR ocK7rPhD11RGCFp0eRWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRFUC-000ebP-Ta; Mon, 07 Mar 2022 15:41:25 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRFU6-000eZo-Dn for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 15:41:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646667679; x=1678203679; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mioa+0AcFi7RUiE1sd9S3b86lyFH/hkp4oUFZCdql78=; b=Y3lBRMvknMqqqT1XSaTLZ8r2mPiWoNMhv/0NQUUdq5d/u1UPmccU15OU 1/lqyAhLOqbWfifxWv3KszH0/2ZbhCo0O8CiYgSgH6Fh6yuJJLGhSeCCv QgUBGGp/cYsk+whdcsEGkR6KDDQhq2rP7mnK2d95Kl8HObeSnem0FPb1f x+axzbDNek4LyK7H+1qlau2lPGLmhzBAidYOg6AICbQBjOTS1yOE6MO1u tubWagbZzes5QpNqll9xvAt/DkhR6NiEmFxoB2gaZBHc26fPlsW2H3hoZ 8VDsTnSg8BwZyFBpsFaYCiYpCyqgdzcM0CfBxWd8rWmpZzaQxJkUXDe8X g==; X-IronPort-AV: E=Sophos;i="5.90,162,1643698800"; d="scan'208";a="155514428" 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 08:41:19 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) 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 08:41:17 -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 08:41:12 -0700 From: Sergiu Moga To: , , , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v3 1/2] dt-bindings: pwm: convert atmel pwm to json-schema Date: Mon, 7 Mar 2022 17:36:55 +0200 Message-ID: <20220307153656.177589-2-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220307153656.177589-1-sergiu.moga@microchip.com> References: <20220307153656.177589-1-sergiu.moga@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_074118_535081_B0369B63 X-CRM114-Status: GOOD ( 14.83 ) 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 PWM binding for Atmel/Microchip SoCs to Device Tree Schema format. Signed-off-by: Sergiu Moga Reviewed-by: Krzysztof Kozlowski --- .../bindings/pwm/atmel,at91sam-pwm.yaml | 42 +++++++++++++++++++ .../devicetree/bindings/pwm/atmel-pwm.txt | 35 ---------------- MAINTAINERS | 2 +- 3 files changed, 43 insertions(+), 36 deletions(-) create mode 100644 Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml delete mode 100644 Documentation/devicetree/bindings/pwm/atmel-pwm.txt diff --git a/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml b/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml new file mode 100644 index 000000000000..5e8bb5a8095d --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml @@ -0,0 +1,42 @@ +# 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,at91sam-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel/Microchip PWM controller + +maintainers: + - Claudiu Beznea + +allOf: + - $ref: "pwm.yaml#" + +properties: + compatible: + enum: + - atmel,at91sam9rl-pwm + - atmel,sama5d3-pwm + - atmel,sama5d2-pwm + - microchip,sam9x60-pwm + + reg: + maxItems: 1 + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + pwm0: pwm@f8034000 { + compatible = "atmel,at91sam9rl-pwm"; + reg = <0xf8034000 0x400>; + #pwm-cells = <3>; + }; diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt b/Documentation/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 = "atmel,at91sam9rl-pwm"; - reg = <0xf8034000 0x400>; - #pwm-cells = <3>; - }; - - pwmleds { - compatible = "pwm-leds"; - - d1 { - label = "d1"; - pwms = <&pwm0 3 5000 0> - max-brightness = <255>; - }; - - d2 { - label = "d2"; - pwms = <&pwm0 1 5000 1> - max-brightness = <255>; - }; - }; diff --git a/MAINTAINERS b/MAINTAINERS index a35eef379db0..f8b27ac0572d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12903,7 +12903,7 @@ M: Claudiu Beznea L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) L: linux-pwm@vger.kernel.org S: Supported -F: Documentation/devicetree/bindings/pwm/atmel-pwm.txt +F: Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml F: drivers/pwm/pwm-atmel.c MICROCHIP SAMA5D2-COMPATIBLE ADC DRIVER From patchwork Mon Mar 7 15:36:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12772024 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 A7C8BC433FE for ; Mon, 7 Mar 2022 15:42:42 +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=GICWI2jEe2vn3qxadfPBPnCu8WEhAn0qWi25M/Vaz5I=; b=n15Fh1GixB49rn OngdUcpnZ40kaZyuFZnk2+hSerTIYGgtLXLgyZlYIYti8OQ1nw0POfP+35gKyrOewDdPMZgtfqMWf 6AMUmYQ2reK5xXCr5a30xSW0fRI2vGQevxxK+Ctnp1YzgAiwIY9OvJOxqNMypwzLLCeE4MBrK69cG h/sOY4A+0g64d9b3bm7K7qAmBjbNDmqKjwimlMk9I0GlF/+fQPKjR8DxKEizUAkeUhbjdBZa/lRTO awEFof+NwrrUV53K2fIP9iUIUIQTNefdgnmpiZ4TgkqKJx+jil2hS+uxD09ub6mStTkIM3DB9shuZ u7SUVoJRnKl8QfBuS4LA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRFUM-000edi-Fp; Mon, 07 Mar 2022 15:41:34 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRFUC-000eZo-Qc for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 15:41:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646667686; x=1678203686; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XlQwsZSDIaDfWV/087cdbqswb5XX5+Ou9ZV0yaZmxrE=; b=UGBYK5svF3juTh1kCxlXM2GkpmbRt4hnsFKtsk3Y3k5OD3JdhPKO1yA0 Ywn+QKRAlU475INVtJAD4ZNU0LasuvFsJZNbCgmUHsdwPuUe0mDtkbdQA uvkQ/hfFFOej12EY3qAxI8FS+yJQnGpltBJaW89zItrmzQM4flP4QpoR6 rC0gKhE6Ihcf0hqv1vPjyVq+8+YyzUEh6V2NI5TfsEB5euCa5SLQh/NT8 VaXgULSMuh2o/a3il/6nlzT9Gg1LHP1TNBjHk45NN9NVJ3YDViMSF7TqR 0rNb63r0YZDyeq6IwSRmt+QDOglIwClIolI2Hq68mGdUiROw6kfwr2xfk A==; X-IronPort-AV: E=Sophos;i="5.90,162,1643698800"; d="scan'208";a="155514444" 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 08:41:25 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) 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 08:41:23 -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 08:41:19 -0700 From: Sergiu Moga To: , , , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v3 2/2] dt-bindings: pwm: at91: Add SAMA7G5 compatible strings list Date: Mon, 7 Mar 2022 17:36:56 +0200 Message-ID: <20220307153656.177589-3-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220307153656.177589-1-sergiu.moga@microchip.com> References: <20220307153656.177589-1-sergiu.moga@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_074124_893515_B47B329C X-CRM114-Status: UNSURE ( 7.88 ) X-CRM114-Notice: Please train this message. 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 Add compatible strings list for SAMA7G5. Signed-off-by: Sergiu Moga Reviewed-by: Krzysztof Kozlowski --- .../bindings/pwm/atmel,at91sam-pwm.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml b/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml index 5e8bb5a8095d..ab45df80345d 100644 --- a/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml @@ -15,11 +15,16 @@ allOf: 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 reg: maxItems: 1