[PATCH can-next v1 1/3] dt-bindings: can: flexcan: document the SpacemiT K1 controller

From: Liu Changjie

Date: Sun Nov 29 2026 - 08:56:01 EST


The APB clock controller on K1 gates the CAN0 register and protocol clocks
independently. A nonzero clock-frequency makes flexcan_probe() skip both
clock lookups, leaving the driver unable to enable either clock.

Require both clocks and the reset line for the K1 controller.

Signed-off-by: Liu Changjie <liucj1228@xxxxxxxxxxx>
---
.../bindings/net/can/fsl,flexcan.yaml | 21 ++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml b/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml
index f81d56f7c..081237128 100644
--- a/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml
+++ b/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml
@@ -5,7 +5,7 @@ $id: http://devicetree.org/schemas/net/can/fsl,flexcan.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title:
- Flexcan CAN controller on Freescale's ARM and PowerPC system-on-a-chip (SOC).
+ FlexCAN CAN controller

maintainers:
- Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
@@ -26,6 +26,7 @@ properties:
- fsl,ls1021ar2-flexcan
- fsl,lx2160ar1-flexcan
- nxp,s32g2-flexcan
+ - spacemit,k1-flexcan
- items:
- enum:
- fsl,imx53-flexcan
@@ -75,6 +76,9 @@ properties:
boot loader. This property should only be used the used operating system
doesn't support the clocks and clock-names property.

+ resets:
+ maxItems: 1
+
power-domains:
maxItems: 1

@@ -152,6 +156,21 @@ required:

allOf:
- $ref: can-controller.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: spacemit,k1-flexcan
+ then:
+ properties:
+ clock-frequency: false
+ required:
+ - resets
+ - clocks
+ - clock-names
+ else:
+ properties:
+ resets: false
- if:
properties:
compatible: