forked from openbmc/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
I3c mrl mwl #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mahkurap
wants to merge
10
commits into
dev-a1
Choose a base branch
from
i3c_mrl_mwl
base: dev-a1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
I3c mrl mwl #169
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add device tree tags to configure device specific max read lenth and max write lengths. Example usage in Device Tree: scoob_p0: scoob@5c,22400002118 { reg = <0x5c 0x224 0x00002118>; assigned-address = <0x5c>; mrl = <69>; mwl = <69>; }; tested: verified on Morocco Signed-off-by: Mahesh Kurapati <[email protected]>
Add support for two new Device Tree properties, `mrl` (Maximum Read Length) and `mwl` (Maximum Write Length), for I3C target devices. These properties allow firmware to specify the maximum read and write transfer lengths supported by a target, as defined in the I3C specification. The values are used by the BMC/I3C master to send SETMRL and SETMWL CCC commands the target initialization/probe. BMC retrieves the effective values using GETMRL and GETMWL CCC commands. These values are then used to during the private transfers. Example usage in Device Tree: scoob_p0: scoob@5c,22400002118 { reg = <0x5c 0x224 0x00002118>; assigned-address = <0x5c>; mrl = <69>; mwl = <69>; }; tested: verified on Morocco Signed-off-by: Mahesh Kurapati <[email protected]>
Add `mrl` (Maximum Read Length) and `mwl` (Maximum Write Length) properties to the Congo I3C device node in the Aspeed device tree. These properties are defined by the I3C specification and indicate the maximum read and write transfer lengths supported by the target device. Setting both values to 69 bytes allows the I3C master to optimize private data transfers accordingly. tested: verified on Congo Signed-off-by: Mahesh Kurapati <[email protected]>
Add `mrl` (Maximum Read Length) and `mwl` (Maximum Write Length) properties to the Ghana I3C device node in the Aspeed device tree. These properties are defined by the I3C specification and indicate the maximum read and write transfer lengths supported by the target device. tested: build verified for Ghana Signed-off-by: Mahesh Kurapati <[email protected]>
Add `mrl` (Maximum Read Length) and `mwl` (Maximum Write Length) properties to the Kenya I3C device node in the Aspeed device tree. These properties are defined by the I3C specification and indicate the maximum read and write transfer lengths supported by the target device. tested: verified on Kenya Signed-off-by: Mahesh Kurapati <[email protected]>
Add `mrl` (Maximum Read Length) and `mwl` (Maximum Write Length) properties to the Morocco I3C device node in the Aspeed device tree. These properties are defined by the I3C specification and indicate the maximum read and write transfer lengths supported by the target device. tested: verified on Morocco Signed-off-by: Mahesh Kurapati <[email protected]>
Add `mrl` (Maximum Read Length) and `mwl` (Maximum Write Length) properties to the Nigeria I3C device node in the Aspeed device tree. These properties are defined by the I3C specification and indicate the maximum read and write transfer lengths supported by the target device. tested: verified on Nigeria Signed-off-by: Mahesh Kurapati <[email protected]>
correct the static address of the SCOOB device in Socket-1/iod0. tested: verified on Morocco Signed-off-by: Mahesh Kurapati <[email protected]>
correct the static address of the SCOOB device in Socket-1/iod0. tested: verified on Nigeria Signed-off-by: Mahesh Kurapati <[email protected]>
correct the static address of the SCOOB device in Socket-1/iod0. tested: verified on Ghana Signed-off-by: Mahesh Kurapati <[email protected]>
modolaty
reviewed
Aug 25, 2025
|
||
if (!of_property_read_u32(node, "mwl", &mwl)) | ||
boardinfo->mwl = (u16)mwl; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have a default value for mwl? and set it in else statement
modolaty
reviewed
Aug 25, 2025
@@ -2658,6 +2667,12 @@ of_i3c_master_add_i3c_boardinfo(struct i3c_master_controller *master, | |||
if (!of_property_read_u8(node, "bcr", &bcr)) | |||
boardinfo->bcr = bcr; | |||
|
|||
if (!of_property_read_u32(node, "mrl", &mrl)) | |||
boardinfo->mrl = (u16)mrl; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have a default value for mrl? and set it in else statement
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support to configure the Max Read Length and Max Write Length for each i3c device using device tree tags.