Browse Source

dts: i3c: npcx: add target mode property and port configuration

As title.

Signed-off-by: Alvis Sun <yfsun@nuvoton.com>
pull/81899/head
Alvis Sun 8 months ago committed by Benjamin Cabé
parent
commit
9976f8a8a9
  1. 3
      dts/arm/nuvoton/npcx/npcx4.dtsi
  2. 53
      dts/bindings/i3c/nuvoton,npcx-i3c.yaml

3
dts/arm/nuvoton/npcx/npcx4.dtsi

@ -388,6 +388,7 @@ @@ -388,6 +388,7 @@
status = "disabled";
#address-cells = <3>;
#size-cells = <0>;
instance-id = <0x00>;
};
i3c1: i3c@400f2000 {
@ -413,6 +414,7 @@ @@ -413,6 +414,7 @@
status = "disabled";
#address-cells = <3>;
#size-cells = <0>;
instance-id = <0x10>;
};
i3c2: i3c@400f4000 {
@ -438,6 +440,7 @@ @@ -438,6 +440,7 @@
status = "disabled";
#address-cells = <3>;
#size-cells = <0>;
instance-id = <0x20>;
};
};

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

@ -29,6 +29,8 @@ description: | @@ -29,6 +29,8 @@ description: |
*/
i3c-scl-hz = <12500000>;
i3c-od-scl-hz = <4170000>;
bcr = <0x67>; /* Set for controller mode */
};
compatible: "nuvoton,npcx-i3c"
@ -50,3 +52,54 @@ properties: @@ -50,3 +52,54 @@ properties:
description: |
Open Drain Frequency for the I3C controller. When undefined, use
the controller default or as specified by the I3C specification.
instance-id:
required: true
type: int
description: |
Instance ID of the device, used to specify port number.
Bit[7:4] module id.
Bit[3:0] port id.
secondary:
type: boolean
description: Initialized as a secondary controller.
static-address:
type: int
description: |
Target static address.
tgt-pid:
type: array
description: |
Target 48-bit Provisioned ID.
array[0]: PID[47:33] MIPI manufacturer ID.
PID[32] ID type selector (i'b1 ramdom value, 1'b0 vendor fixed).
array[1]: PID[31:0] Random value or vendor fixed value.
bcr:
required: true
type: int
description: |
Bus Characteristics Register, used for bus enumeration with ENTDAA and
determine device role and capabilities of the device on the bus.
dcr:
type: int
description: |
Device Characteristics Register, used for bus enumeration with ENTDAA.
maximum-write:
type: int
default: 4095
description: |
Maximum number of bytes that I3C controller may write to I3C target per message.
Range: 8 to 4095.
maximum-read:
type: int
default: 4095
description: |
Maximum number of bytes that I3C controller may read from to I3C target per message.
Range: 8 to 4095.

Loading…
Cancel
Save