🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15630

[PATCH net-next 3/7] dt-bindings: net: can: holt,hi311x: Convert to DT schema

#15630
From: Marc Kleine-Budde
Date: Fri, 13 Nov 2026 07:08
134 lines
15013 bytes
From: Quchaosheng <quchaosheng000406@163.com>

Convert the Holt HI-311X binding from free-form text to DT schema.

Reference can-controller.yaml and spi/spi-peripheral-props.yaml. The
HI-3110 sits on an SPI bus, so its node carries the standard SPI
properties, spi-max-frequency among them. With unevaluatedProperties:
false and no reference to spi-peripheral-props.yaml, dtbs_check rejects
those properties:

  can@1 (holt,hi3110): Unevaluated properties are not allowed
    ('spi-max-frequency' was unexpected)

Keep the properties and the example as the original text describes them,
including clocks as a required property.

Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20260922084542.104788-1-quchaosheng000406@163.com?part=2
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Quchaosheng <quchaosheng000406@163.com>
Link: https://patch.msgid.link/20260922102258.138753-3-quchaosheng000406@163.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 .../bindings/net/can/holt,hi311x.yaml         | 67 +++++++++++++++++++
 .../bindings/net/can/holt_hi311x.txt          | 23 -------
 2 files changed, 67 insertions(+), 23 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/can/holt,hi311x.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/can/holt_hi311x.txt

diff --git a/Documentation/devicetree/bindings/net/can/holt,hi311x.yaml b/Documentation/devicetree/bindings/net/can/holt,hi311x.yaml
new file mode 100644
index 000000000000..9ec6abb1279a
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/can/holt,hi311x.yaml
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/can/holt,hi311x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Holt HI-311X stand-alone CAN controller
+
+maintainers:
+  - Marc Kleine-Budde <mkl@pengutronix.de>
+
+description:
+  The Holt HI-3110 is a stand-alone CAN controller with an SPI interface.
+
+allOf:
+  - $ref: can-controller.yaml#
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+properties:
+  compatible:
+    const: holt,hi3110
+
+  reg:
+    description: SPI chip select.
+    maxItems: 1
+
+  clocks:
+    description: The clock feeding the CAN controller.
+    maxItems: 1
+
+  interrupts:
+    description: IRQ line for the CAN controller.
+    maxItems: 1
+
+  vdd-supply:
+    description: Regulator that powers the CAN controller.
+
+  xceiver-supply:
+    description: Regulator that powers the CAN transceiver.
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - interrupts
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        can@1 {
+            compatible = "holt,hi3110";
+            reg = <1>;
+            clocks = <&clk32m>;
+            interrupt-parent = <&gpio4>;
+            interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
+            vdd-supply = <&reg5v0>;
+            xceiver-supply = <&reg5v0>;
+        };
+    };
+...
diff --git a/Documentation/devicetree/bindings/net/can/holt_hi311x.txt b/Documentation/devicetree/bindings/net/can/holt_hi311x.txt
deleted file mode 100644
index 3a9926f99937..000000000000
--- a/Documentation/devicetree/bindings/net/can/holt_hi311x.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-* Holt HI-311X stand-alone CAN controller device tree bindings
-
-Required properties:
- - compatible: Should be one of the following:
-   - "holt,hi3110" for HI-3110
- - reg: SPI chip select.
- - clocks: The clock feeding the CAN controller.
- - interrupts: Should contain IRQ line for the CAN controller.
-
-Optional properties:
- - vdd-supply: Regulator that powers the CAN controller.
- - xceiver-supply: Regulator that powers the CAN transceiver.
-
-Example:
-	can0: can@1 {
-		compatible = "holt,hi3110";
-		reg = <1>;
-		clocks = <&clk32m>;
-		interrupt-parent = <&gpio4>;
-		interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
-		vdd-supply = <&reg5v0>;
-		xceiver-supply = <&reg5v0>;
-	};
-- 
2.53.0
Technical Details
Message-ID: <20261113071325.4092169-4-mkl@pengutronix.de>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362471-linux-kernel-netdev=dewy.ru
References: <20261113071325.4092169-1-mkl@pengutronix.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362471-linux-kernel-netdev=dewy.ru
From: mkl@pengutronix.de (Marc Kleine-Budde)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 3/7] dt-bindings: net: can: holt,hi311x: Convert to DT schema
Date: Fri, 13 Nov 2026 08:08:51 +0100
Organization: Usenet Network
Message-ID: <20261113071325.4092169-4-mkl@pengutronix.de>
References: <20261113071325.4092169-1-mkl@pengutronix.de>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1294066"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jJrpy8NWkb+kIHA7dVdILHlljpU= sha256:eyEimMXy8Ov2xa6jUju5u7h9JSDFEhqpRklPFgEyeUY=
	sha1:2tio9uvX9T8ca73znVwMMrp4+PE= sha256:LcPlxIg4N3WmJ/TvxoLoUh/1jHHqUDGAuekhzYez1bw=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 0CF241144BC; Fri, 13 Nov 2026 11:10:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=pengutronix.de
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id XRoEu_TIwnkh;
	Fri, 13 Nov 2026 11:10:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-362471-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=pengutronix.de
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id D1193114418; Fri, 13 Nov 2026 11:10:00 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id CF2F1CA163; Fri, 13 Nov 2026 07:14:47 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794554012;
	b=ca6UjbGwL9Zkto+14i13Nglmn0RBZcP0xpK3sK5PXlcy8ktPItDhDZrLx8VdCoOoREM7
	 EgBSmY1VJKZCkIFbtV6FYa7JdlKbu5SoIixlQYUPdShEtMMC7pjtKPlUdntn6l3BPBZv8
	 1LkSw481MEJVNtXsxrf/UYx7w+vZImM04t1QJoBSMHtEbPUf5Q3zg+/7potv2pV0R2JQf
	 r2e/X+B/Sm7YH3DXkErG8q2WDq5R0N6rgDvidMJjbEmQIXnMLE05Zm/o9a33a7c/wMFBV
	 3w1nLHVoZdXiB4lo246OtLQhX5oakJtiK+VGQnVSznGfWXVs61rb6BM9xXrkCpGmVgw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794554012;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received:
	 Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
	 References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=/+VRHS43plOjIRbhGsfOqQ1nmhZowYRYK29KqoxHYMk=;
	b=5N1iHfiK2XFqA6Wu5KZtoo5zJ2WGmCctEzJy4zqliw79fNU3bP0oKyL32BWot83j2H1T
	 mNoH25qXZak29tOSFZEqopX+ow76DGBm31CuoUh/T08sQg9uiHqlJetEtGWFhNvQ7qI+t
	 UZpyJO7JzFWOqcJIHsGlFpq9qTUIe5RDMNarZsLj93Ms69lt6qv6wQBKTvYbDfEYxNWPw
	 ZvyG1mSAe0ksDox0ypHRaOkyvs9ewPAhjyX7uDR//r45i0jHmW1RQ1q4yo11JBv/FTr9H
	 j6p2beJXqC1JZeXbouDiI9IXajBMcvqQtbhJvLodu2FntuTcZiZ6Y6XefxmFlFx4COg==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b="aLyOpFE/";
	dmarc=none header.from=pengutronix.de;
	spf=pass smtp.mailfrom=pengutronix.de;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BFA060A382A;
	Fri, 13 Nov 2026 07:13:32 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=aLyOpFE/
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794554011;
	b=snjE67+BLEzSzG71gKuWgCXwv4NcCigVhws04c1lyh+Sigz5aaZnLDnGalj0zVYbzSp4
	 TS2u2wYz26AZauYpuqD9CGHsZbsCXNYrCUmVAdUc1Ou5deNhlnfv7zBqqraT5bZqeCBMp
	 lz5wD7enIgEPdNuNnqupkT/5NdCCNlttxdf27T3PxAsZ7De9vf00/WOTYrEo64j6bjLL2
	 UxLorn7UfxrV9rlX6iE6xOu70tO3GIuvjb5vX0MqSJ7q03WHGQ39xKc2ZAMjn6aFhcWXS
	 gacmZrYCstAOmCI2RKj7pdyD0xuWgCQj+21q2UcohhE3cxiiIbuwMWiTMkNBI4+V3Jw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794554011;
	h=DMARC-Filter:Received:DKIM-Signature:Received:Received:From:To:Cc:
	 Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding;
	bh=/+VRHS43plOjIRbhGsfOqQ1nmhZowYRYK29KqoxHYMk=;
	b=Np3PpOZbJQzt2Sg+DvhCzphYscn75ju0yfdDvC2iVDCol7RHt8jwQOVCeXmBHa/s9M2D
	 hZMT9TSsLod2uWRbo0oTWiG08f8xphLl1vc58d1zb3ZyrRp74A/bkoK71UM24DGG0y2wC
	 L50h03SuML5T8EtDAbcXNHZjDITbbU6FcZvKkaKa8E50n4jQc8uo8N4s3JQYO/Rh0AbY1
	 rqElOVzZQoECI0lhn3EymI3NNKS4o25xixbXTsWs7MJq+HM2nWc7uvvxxoVyhBE4hrVBw
	 K5qbE1jARpazF1HCWGMEHS86rvbsRGu8qadxgT840PTBJoRIQ1J9RxuXXUh0tL1sesQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=pengutronix.de;
	spf=pass smtp.mailfrom=pengutronix.de;
	dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b="aLyOpFE/";
	arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13
X-Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4693760A3811;
	Fri, 13 Nov 2026 07:13:29 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4693760A3811
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de
X-Received: from drehscheibe.grey.stw.pengutronix.de (drehscheibe.grey.stw.pengutronix.de [IPv6:2a0a:edc0:0:c01:1d::a2])
	(Authenticated sender: relay-from-drehscheibe.grey.stw.pengutronix.de)
	by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 14081202C91;
	Fri, 13 Nov 2026 08:13:28 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1794554008;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=/+VRHS43plOjIRbhGsfOqQ1nmhZowYRYK29KqoxHYMk=;
	b=aLyOpFE/2IJMm7cn+U8nSDPSkDdDU+nFF2MzxzB3AyGoqmTAv/YN+BH35BZ1KLGvBk01l9
	skbsNgT9TsdL4FFXmllyR5NOLIysnIyINMDGJ0WMlppTgDcNTUBC5xOTFAlPDlDcH+ir4c
	CK33Oo2XtWUv4sPhiwzRzvuFk6pgpeR1t7hr6LJfvddYRWDCwP7ZCtzMr614pC2q4qqXZr
	G1A7ZjIAl/SuN3yBGue7WpkLjmfYI6SpHNB3GkZ2GfrjpQIW0wAGFSA1X0+mDacOLdlILL
	daM4ffGlRf6NMKKvOYI/HUIfMuI1TwqJUUDR2hNZHe2u4bGmmc9seGRUbQDKPw==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1794554008;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=/+VRHS43plOjIRbhGsfOqQ1nmhZowYRYK29KqoxHYMk=;
	b=QKXmui41IM0LOQ/moQGdx8pszNMj5dXRJkJOGDIXYc57jg1HBdsXTYbe6lKgJNIkIDrNz0
	TmO00dSD/SzbyIA8+ToMKs2xpB6rwUnudFaW2JCAw0e6pYPKw1X0KYkJIlEDLvMhbMNjqT
	5WSGmuThrzCvTIb2D0w08vYdJzsVrBXyjoTIE7kB3T1ztPvR0As41L/Po6pLcA6kUw1t2i
	uVoLe050axh680S1E6INiijBXcWuOMS0d9+IeF19iOWVu4GucvlG7vEakCN/0EPn+LIWg5
	W4zzovPM8DKZg3U3J75BxiTa8IOCrjtWWV2csOCH6Pd3AtwEgKHCDX+QH3K8kw==
X-ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1794554008; a=rsa-sha256;
	cv=none;
	b=b7gqODv4iMgJToZdiKTwfDM2C8LzuN+HRbS4ID0yK4EyxAJ+YN3nUzu36oTz6k/kkjrumy
	yLDCiw6MWHy8Q5PJVzmrcCDzC0BVqcBP0/9OO+UqaUY6P3GPJuH2uMX0KjjuhMu8iQhPzS
	IDuLQW+AH9Z4Bb+1P+F0o+BYjbRX7D3wdIXtkmGYPdCBHtotxMsIor0t4Arjuz8mLwXXaZ
	0ognug9XFhm/Kt2+tKvxIyLEgPFW+F1P3QiEYYuGRswk45/D1yUWj6rv83ffZtwzkC+0Bh
	VgTe1e9qE58gm9xj0LGNAJq2JUT9q69poWOAWJvq+S32FD9NbVKMQkGg1HU+YA==
X-ARC-Authentication-Results: i=1;
	ORIGINATING;
	auth=pass smtp.auth=relay-from-drehscheibe.grey.stw.pengutronix.de smtp.mailfrom=mkl@pengutronix.de
X-Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org)
	by drehscheibe.grey.stw.pengutronix.de with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.96)
	(envelope-from <mkl@pengutronix.de>)
	id 1xRlTT-003xHq-3B;
	Fri, 13 Nov 2026 08:13:28 +0100
X-Received: from blackshift.org (p4ffb23c7.dip0.t-ipconnect.de [79.251.35.199])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	(Authenticated sender: mkl-all@blackshift.org)
	by smtp.blackshift.org (Postfix) with ESMTPSA id AAE365EA578;
	Fri, 13 Nov 2026 07:13:27 +0000 (UTC)
X-Cc: davem@davemloft.net,
	kuba@kernel.org,
	linux-can@vger.kernel.org,
	kernel@pengutronix.de,
	Quchaosheng <quchaosheng000406@163.com>,
	Sashiko <sashiko-bot@kernel.org>,
	"Rob Herring (Arm)" <robh@kernel.org>,
	Marc Kleine-Budde <mkl@pengutronix.de>
X-Mailer: git-send-email 2.53.0
X-In-Reply-To: <20261113071325.4092169-1-mkl@pengutronix.de>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list