From nobody Fri Apr 3 03:15:14 2026 Received: from smtp-out3.simply.com (smtp-out3.simply.com [94.231.106.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67ADC3E95B5; Fri, 6 Mar 2026 16:29:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.231.106.210 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772814600; cv=none; b=VYTyRpd8f1A0AZtqtwDj5wfRTyr/fjaXn0SiJPGkmJglbyzNxrorSx6vTJghX+8ln7zgelTzCXUegu7+YFXxckd8ZphNd07sScyzUbqp+pSd2gYg3hFc1KSIR+kl1jqii/9WNymA/nKRJwkfOyyJ0uY9iDyeiRbLHkwkY4AzU1c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772814600; c=relaxed/simple; bh=bgxiL2CenjSgTX8ZyWNi0qXCIeEd1o7ChPjVwhCLiCc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=makn+YagzMQ7DZ5sTI8RsDSi231/C+2GyVMAJZmZ0sz58Zrugvtu0My2fQom936Kkjf8+bzznMXUp2H/48AXyFvAX2fCi2RFyfiSh6NAtbnCfyIfWmyjdLQJYBC/pCvy2o4F9m7MMXuAQO4vOFXiyskSk1Ttr4Hz96rLC4vObLE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gaisler.com; spf=pass smtp.mailfrom=gaisler.com; dkim=fail (0-bit key) header.d=gaisler.com header.i=@gaisler.com header.b=XEL0VFob reason="key not found in DNS"; arc=none smtp.client-ip=94.231.106.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gaisler.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gaisler.com Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=gaisler.com header.i=@gaisler.com header.b="XEL0VFob" Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4fSBh922pDz1FlZ2; Fri, 6 Mar 2026 17:29:45 +0100 (CET) Received: from d-5xj5g74.got.gaisler.com.com (h-98-128-223-123.NA.cust.bahnhof.se [98.128.223.123]) by smtp.simply.com (Simply.com) with ESMTPA id 4fSBh90Hk1z1DDgW; Fri, 6 Mar 2026 17:29:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaisler.com; s=simplycom2; t=1772814585; bh=sKdKbsysS8VkeCXJuVcT399Xxcd+y14MQjnvsfRAtQA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XEL0VFobqiWfVEYUoDUAKi3ssn1+8xxpeo8sRdFi7dcwlmyGC9ynpEX2nHrHtqqjY LdKVhYg58qQ1zKS234V9kez2UVyw7GFnuf9zLNXIDJTx/CdUKYmTPhBRo7JsOafIFY vV4A686CBlWDsBWgGkfw0V/bIGkZxXMQu0Y4zz7tqzvIV/szHrfLYtnAzw0CNrJYPe CVKyo8Z9QnCcnVpp4m4L/DnuEiHquXHV60tC2dXfTlRnluzPkoNptk9BD5beDXI6UF /jFLZfdHm9H8+yyz6OjhON8zu1j8A71JuZBrJE4d8eFSfYsKU358wTPkdo8gx2/J/H yATPxRfmsXW9w== From: Arun Muthusamy To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mkl@pengutronix.de, mailhol@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-can@vger.kernel.org, Arun Muthusamy Subject: [PATCH v6 02/15] dt-bindings: net: can: gaisler,grcan: Convert to DT schema Date: Fri, 6 Mar 2026 17:29:21 +0100 Message-ID: <20260306162934.22955-3-arun.muthusamy@gaisler.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260306162934.22955-1-arun.muthusamy@gaisler.com> References: <20260306162934.22955-1-arun.muthusamy@gaisler.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Migrate device tree bindings for Gaisler GRCAN, GRHCAN and GRCANFD CAN controllers from a text format to YAML format. Additional changes: - Remove stale systemid property removed in commit 1e93ed26acf0 ("can: grcan: grcan_probe(): fix broken system id check for errata workaround needs") - Make freq optional - Add clocks - Add compatible - Add example Reviewed-by: Rob Herring Signed-off-by: Arun Muthusamy --- .../bindings/net/can/gaisler,grcan.yaml | 62 +++++++++++++++++++ .../devicetree/bindings/net/can/grcan.txt | 28 --------- 2 files changed, 62 insertions(+), 28 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/can/gaisler,grcan= .yaml delete mode 100644 Documentation/devicetree/bindings/net/can/grcan.txt diff --git a/Documentation/devicetree/bindings/net/can/gaisler,grcan.yaml b= /Documentation/devicetree/bindings/net/can/gaisler,grcan.yaml new file mode 100644 index 000000000000..8fea97c7319a --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/gaisler,grcan.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/can/gaisler,grcan.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aeroflex Gaisler GRCAN, GRHCAN and GRCANFD CAN controllers. + +description: | + GRCAN, GRCANFD, GRHCAN controllers are available in the GRLIB VHDL + IP core library. + For further information look in the documentation for the GRLIB IP libra= ry: + https://download.gaisler.com/products/GRLIB/doc/grip.pdf + +maintainers: + - Arun Muthusamy + - Andreas Larsson + +allOf: + - $ref: can-controller.yaml# + +properties: + compatible: + enum: + - gaisler,grcan + - gaisler,grcanfd + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + freq: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Frequency of the external oscillator clock in Hz (the frequency of t= he + AMBA bus in the ordinary case). + This property should be used by systems where the common clock + framework is not supported. + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + + can@ff400000 { + compatible =3D "gaisler,grcanfd"; + clocks =3D <&sysclock>; + reg =3D <0xff400000 0x400>; + interrupt-parent =3D <&plic0>; + interrupts =3D <6>; + }; diff --git a/Documentation/devicetree/bindings/net/can/grcan.txt b/Document= ation/devicetree/bindings/net/can/grcan.txt deleted file mode 100644 index 34ef3498f887..000000000000 --- a/Documentation/devicetree/bindings/net/can/grcan.txt +++ /dev/null @@ -1,28 +0,0 @@ -Aeroflex Gaisler GRCAN and GRHCAN CAN controllers. - -The GRCAN and CRHCAN CAN controllers are available in the GRLIB VHDL IP co= re -library. - -Note: These properties are built from the AMBA plug&play in a Leon SPARC s= ystem -(the ordinary environment for GRCAN and GRHCAN). There are no dts files for -sparc. - -Required properties: - -- name : Should be "GAISLER_GRCAN", "01_03d", "GAISLER_GRHCAN" or "01_034" - -- reg : Address and length of the register set for the device - -- freq : Frequency of the external oscillator clock in Hz (the frequency of - the amba bus in the ordinary case) - -- interrupts : Interrupt number for this device - -Optional properties: - -- systemid : If not present or if the value of the least significant 16 bi= ts - of this 32-bit property is smaller than GRCAN_TXBUG_SAFE_GRLIB_VERSION - a bug workaround is activated. - -For further information look in the documentation for the GLIB IP core lib= rary: -http://www.gaisler.com/products/grlib/grip.pdf --=20 2.51.0