From patchwork Thu Oct 3 05:07:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charan Pedumuru X-Patchwork-Id: 13820668 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 39F60CF3191 for ; Thu, 3 Oct 2024 05:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To:Message-ID: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=oKN74MyXof5kOaoWGrIg45NUrxg+u//568+PaHNETwo=; b=HRUFyMZI/Ie9Jaz4rx2r0/ESpE KGGDdUZPRZcQZjxp/CStvrJvRM+USl3R4m3HgZDoY8REZ654efifB8bVxT3M5Cqg0/6U0qn0U6RAE VHrGhbFODhZnoIBFjoAFUZ/YnV8ds9TATD6god+cOFDTlFHSJSgzyZP1XNguHNxxSpx0cNZqCBeq6 FKsUCH40akdxEzfsTKmXAZ7wG7s22hns0OLwTHN2B09PDjVR7OpEYCwOcf8/KsrNpam64NVCLZyfh VdmwjvnW2YH2H1aA1Wohz/5Da9hxVteM0SVRQPyfB4SafzYMb4V4U4TE3RtBNGva35yByzJbtnoic p1xBrQTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swE5B-00000008Bad-3KPz; Thu, 03 Oct 2024 05:08:57 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swE3u-00000008BQb-25nf for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 05:07:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1727932058; x=1759468058; h=from:date:subject:mime-version:content-transfer-encoding: message-id:to:cc; bh=dhA9dUnTQrlbjUojmNt+lPn+T0Gcazf90rUxsux0e4c=; b=MXuTlhLIkkICwxGyQxmWP1hgyg9DWGE+wKNrHGN7R27lhirUKoaZ3GXJ X18KsFvgIV0/LwJHwpUZ1zUakfyQ8tPtT0tkOW+O89g34LVPeL5ISjzK5 dLq6/mlE0ViP73bWBYgfxL0Rf/dB0Cy/s/pAeGhIOp+/ZdbJVvekPCcz4 C7XTMLkmO3IXlVeeke4KKvuq0vDtHScsF3v/s9e7ruFoEciyM4Mx2jP9c slKGGHfiMGaN7JmehJABDd193+TJ8t3y6FRJU7Ddo9NZj+My7ZR0xpuoJ NYfyf5GmEJ42iadEYsPXzEAgnPQq+uyiOGnbcmJlcz3mOR5yjLbapsCs3 w==; X-CSE-ConnectionGUID: tSbnCTCURiuQebcaCydRvg== X-CSE-MsgGUID: zdLMqo2iR/Szk5Hu91pizQ== X-IronPort-AV: E=Sophos;i="6.11,173,1725346800"; d="scan'208";a="33144171" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Oct 2024 22:07:34 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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.2507.35; Wed, 2 Oct 2024 22:07:18 -0700 Received: from [127.0.0.1] (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 2 Oct 2024 22:07:12 -0700 From: Charan Pedumuru Date: Thu, 3 Oct 2024 10:37:03 +0530 Subject: [PATCH v2] dt-bindings: net: can: atmel: Convert to json schema MIME-Version: 1.0 Message-ID: <20241003-can-v2-1-85701d3296dd@microchip.com> X-B4-Tracking: v=1; b=H4sIAHYm/mYC/1WMwQ7CIBAFf6XZsxggQqmn/ofpodCt7KHQgCGah n8Xe/M4L2/mgIyJMMO9OyBhoUwxNJCXDpyfwxMZLY1Bcnnjg5DMzYEZtP1qsFdaL9Cee8KV3mf lMTX2lF8xfc5oEb/13y+CCeaUVsIKwwdrx41cis7TfnVxg6nW+gVC6gWTmgAAAA== To: Marc Kleine-Budde , Vincent Mailhol , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea CC: , , , , , Charan Pedumuru X-Mailer: b4 0.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_220738_670274_4D0A19D5 X-CRM114-Status: GOOD ( 14.25 ) 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 atmel-can documentation to yaml format Signed-off-by: Charan Pedumuru --- Changes in v2: - Renamed the title to "Microchip AT91 CAN controller" - Removed the unnecessary labels and add clock properties to examples - Removed if condition statements and made clock properties as default required properties - Link to v1: https://lore.kernel.org/r/20240912-can-v1-1-c5651b1809bb@microchip.com --- .../bindings/net/can/atmel,at91sam9263-can.yaml | 58 ++++++++++++++++++++++ .../devicetree/bindings/net/can/atmel-can.txt | 15 ------ 2 files changed, 58 insertions(+), 15 deletions(-) --- base-commit: 62f92d634458a1e308bb699986b9147a6d670457 change-id: 20240912-can-8eb7f8e7566d Best regards, diff --git a/Documentation/devicetree/bindings/net/can/atmel,at91sam9263-can.yaml b/Documentation/devicetree/bindings/net/can/atmel,at91sam9263-can.yaml new file mode 100644 index 000000000000..c818c01a718b --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/atmel,at91sam9263-can.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/can/atmel,at91sam9263-can.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip AT91 CAN Controller + +maintainers: + - Nicolas Ferre + +allOf: + - $ref: can-controller.yaml# + +properties: + compatible: + oneOf: + - enum: + - atmel,at91sam9263-can + - atmel,at91sam9x5-can + - items: + - enum: + - microchip,sam9x60-can + - const: atmel,at91sam9x5-can + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: can_clk + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + can@f000c000 { + compatible = "atmel,at91sam9263-can"; + reg = <0xf000c000 0x300>; + interrupts = <30 IRQ_TYPE_LEVEL_HIGH 3>; + clocks = <&pmc PMC_TYPE_PERIPHERAL 12>; + clock-names = "can_clk"; + }; diff --git a/Documentation/devicetree/bindings/net/can/atmel-can.txt b/Documentation/devicetree/bindings/net/can/atmel-can.txt deleted file mode 100644 index 218a3b3eb27e..000000000000 --- a/Documentation/devicetree/bindings/net/can/atmel-can.txt +++ /dev/null @@ -1,15 +0,0 @@ -* AT91 CAN * - -Required properties: - - compatible: Should be "atmel,at91sam9263-can", "atmel,at91sam9x5-can" or - "microchip,sam9x60-can" - - reg: Should contain CAN controller registers location and length - - interrupts: Should contain IRQ line for the CAN controller - -Example: - - can0: can@f000c000 { - compatible = "atmel,at91sam9x5-can"; - reg = <0xf000c000 0x300>; - interrupts = <40 4 5> - };