Skip to content

Commit 05ace63

Browse files
MrVanvinodkoul
authored andcommitted
dt-bindings: phy: ti,tcan104x-can: Document NXP TJA105X/1048
The TJA1048 is a dual high-speed CAN transceiver with sleep mode supported and no EN pin. The TJA1051 is a high-speed CAN transceiver with slient mode supported, but only TJA1051T/E has EN pin. To make it simple, make enable-gpios as optional for TJA1051. The TJA1057 is a high-speed CAN transceiver with slient mode supported and no EN pin. Reviewed-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Peng Fan <peng.fan@nxp.com> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Link: https://patch.msgid.link/20251001-can-v7-1-fad29efc3884@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 0f75caf commit 05ace63

1 file changed

Lines changed: 66 additions & 3 deletions

File tree

Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,26 @@ properties:
2222
- enum:
2323
- ti,tcan1042
2424
- ti,tcan1043
25+
- nxp,tja1048
26+
- nxp,tja1051
27+
- nxp,tja1057
2528
- nxp,tjr1443
2629

2730
'#phy-cells':
28-
const: 0
31+
enum: [0, 1]
2932

30-
standby-gpios:
33+
silent-gpios:
3134
description:
32-
gpio node to toggle standby signal on transceiver
35+
gpio node to toggle silent signal on transceiver
3336
maxItems: 1
3437

38+
standby-gpios:
39+
description:
40+
gpio node to toggle standby signal on transceiver. For two Items, item 1
41+
is for stbn1, item 2 is for stbn2.
42+
minItems: 1
43+
maxItems: 2
44+
3545
enable-gpios:
3646
description:
3747
gpio node to toggle enable signal on transceiver
@@ -53,6 +63,59 @@ required:
5363
- compatible
5464
- '#phy-cells'
5565

66+
allOf:
67+
- if:
68+
properties:
69+
compatible:
70+
enum:
71+
- nxp,tjr1443
72+
- ti,tcan1042
73+
- ti,tcan1043
74+
then:
75+
properties:
76+
'#phy-cells':
77+
const: 0
78+
silent-gpios: false
79+
standby-gpios:
80+
maxItems: 1
81+
82+
- if:
83+
properties:
84+
compatible:
85+
contains:
86+
const: nxp,tja1048
87+
then:
88+
properties:
89+
'#phy-cells':
90+
const: 1
91+
enable-gpios: false
92+
silent-gpios: false
93+
standby-gpios:
94+
minItems: 2
95+
96+
- if:
97+
properties:
98+
compatible:
99+
contains:
100+
const: nxp,tja1051
101+
then:
102+
properties:
103+
'#phy-cells':
104+
const: 0
105+
standby-gpios: false
106+
107+
- if:
108+
properties:
109+
compatible:
110+
contains:
111+
const: nxp,tja1057
112+
then:
113+
properties:
114+
'#phy-cells':
115+
const: 0
116+
enable-gpios: false
117+
standby-gpios: false
118+
56119
additionalProperties: false
57120

58121
examples:

0 commit comments

Comments
 (0)