Skip to content

Commit 9976f8a

Browse files
alvsunkartben
authored andcommitted
dts: i3c: npcx: add target mode property and port configuration
As title. Signed-off-by: Alvis Sun <[email protected]>
1 parent f517929 commit 9976f8a

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

dts/arm/nuvoton/npcx/npcx4.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@
388388
status = "disabled";
389389
#address-cells = <3>;
390390
#size-cells = <0>;
391+
instance-id = <0x00>;
391392
};
392393

393394
i3c1: i3c@400f2000 {
@@ -413,6 +414,7 @@
413414
status = "disabled";
414415
#address-cells = <3>;
415416
#size-cells = <0>;
417+
instance-id = <0x10>;
416418
};
417419

418420
i3c2: i3c@400f4000 {
@@ -438,6 +440,7 @@
438440
status = "disabled";
439441
#address-cells = <3>;
440442
#size-cells = <0>;
443+
instance-id = <0x20>;
441444
};
442445
};
443446

dts/bindings/i3c/nuvoton,npcx-i3c.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ description: |
2929
*/
3030
i3c-scl-hz = <12500000>;
3131
i3c-od-scl-hz = <4170000>;
32+
33+
bcr = <0x67>; /* Set for controller mode */
3234
};
3335
3436
compatible: "nuvoton,npcx-i3c"
@@ -50,3 +52,54 @@ properties:
5052
description: |
5153
Open Drain Frequency for the I3C controller. When undefined, use
5254
the controller default or as specified by the I3C specification.
55+
56+
instance-id:
57+
required: true
58+
type: int
59+
description: |
60+
Instance ID of the device, used to specify port number.
61+
Bit[7:4] module id.
62+
Bit[3:0] port id.
63+
64+
secondary:
65+
type: boolean
66+
description: Initialized as a secondary controller.
67+
68+
static-address:
69+
type: int
70+
description: |
71+
Target static address.
72+
73+
tgt-pid:
74+
type: array
75+
description: |
76+
Target 48-bit Provisioned ID.
77+
array[0]: PID[47:33] MIPI manufacturer ID.
78+
PID[32] ID type selector (i'b1 ramdom value, 1'b0 vendor fixed).
79+
array[1]: PID[31:0] Random value or vendor fixed value.
80+
81+
bcr:
82+
required: true
83+
type: int
84+
description: |
85+
Bus Characteristics Register, used for bus enumeration with ENTDAA and
86+
determine device role and capabilities of the device on the bus.
87+
88+
dcr:
89+
type: int
90+
description: |
91+
Device Characteristics Register, used for bus enumeration with ENTDAA.
92+
93+
maximum-write:
94+
type: int
95+
default: 4095
96+
description: |
97+
Maximum number of bytes that I3C controller may write to I3C target per message.
98+
Range: 8 to 4095.
99+
100+
maximum-read:
101+
type: int
102+
default: 4095
103+
description: |
104+
Maximum number of bytes that I3C controller may read from to I3C target per message.
105+
Range: 8 to 4095.

0 commit comments

Comments
 (0)