From 9976f8a8a95c88e88adf97d2e224373516c9f29c Mon Sep 17 00:00:00 2001 From: Alvis Sun Date: Mon, 11 Nov 2024 10:47:51 +0800 Subject: [PATCH] dts: i3c: npcx: add target mode property and port configuration As title. Signed-off-by: Alvis Sun --- dts/arm/nuvoton/npcx/npcx4.dtsi | 3 ++ dts/bindings/i3c/nuvoton,npcx-i3c.yaml | 53 ++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/dts/arm/nuvoton/npcx/npcx4.dtsi b/dts/arm/nuvoton/npcx/npcx4.dtsi index 3c976cf28b9..6bc44daae1d 100644 --- a/dts/arm/nuvoton/npcx/npcx4.dtsi +++ b/dts/arm/nuvoton/npcx/npcx4.dtsi @@ -388,6 +388,7 @@ status = "disabled"; #address-cells = <3>; #size-cells = <0>; + instance-id = <0x00>; }; i3c1: i3c@400f2000 { @@ -413,6 +414,7 @@ status = "disabled"; #address-cells = <3>; #size-cells = <0>; + instance-id = <0x10>; }; i3c2: i3c@400f4000 { @@ -438,6 +440,7 @@ status = "disabled"; #address-cells = <3>; #size-cells = <0>; + instance-id = <0x20>; }; }; diff --git a/dts/bindings/i3c/nuvoton,npcx-i3c.yaml b/dts/bindings/i3c/nuvoton,npcx-i3c.yaml index 0633da8e92a..158ebb37c0d 100644 --- a/dts/bindings/i3c/nuvoton,npcx-i3c.yaml +++ b/dts/bindings/i3c/nuvoton,npcx-i3c.yaml @@ -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: 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.