-
Notifications
You must be signed in to change notification settings - Fork 105
i3c: Add Phytium i3c controller support #298
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
Merged
Merged
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 "phytium,cdns-i3c-master" to be used for Phytium SoC Family. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
When reading the slave registers, two consecutive slave returns bytes larger than the set PL len will trigger halt on the host, so halt_en is disabled by default for phytium Soc. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
This patch adds GETMXDS format 1 retransmission to fix GETMXDS format 2 command failure. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
This patch keeps the CTRL.hj_ack bit disabled until i3c_master_register() is completed in order to prevent slaves from indirect DAA, which causes the driver to fail DAA. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
This patch documents the DT binding for the Phytium I3C controller. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
This patch provides support for Phytium i3c master controller. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
This patch used to support i3c driver in ACPI mode, this modification is in accordance with standard specifications of MIPI and add special keys to support for PHYTIUM platform. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang yinfeng <wangyinfeng@phytium.com.cn>
This patch adds support for S3/S4 mode.When resume from S4 state,the reg value will be overwrite to solve read problems. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
drivers/i3c/i3c_master_acpi.c
Outdated
| if (!strcmp(acpi_elements[0].string.pointer, method)) { | ||
| *value = acpi_elements[1].integer.value; | ||
| ret = 0; | ||
| break; |
Member
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.
need to improve code logic
Author
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.
已修改
…orms. This patch uses the marco definition of CONFIG_ARCH_PHYTIUM to restrict the use of certain code segments on the phytium platforms, and does not compile this code for other platform. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
Add "phytium,cdns-i3c-master" to be used for Phytium SoC Family. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 80f143d) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: Documentation/devicetree/bindings/i3c/cdns,i3c-master.yaml
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
When reading the slave registers, two consecutive slave returns bytes larger than the set PL len will trigger halt on the host, so halt_en is disabled by default for phytium Soc. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit a355204) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch adds GETMXDS format 1 retransmission to fix GETMXDS format 2 command failure. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit e5b9750) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch keeps the CTRL.hj_ack bit disabled until i3c_master_register() is completed in order to prevent slaves from indirect DAA, which causes the driver to fail DAA. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 3b15ce6) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/i3c/master/i3c-master-cdns.c
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch documents the DT binding for the Phytium I3C controller. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 4fa47c3) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch provides support for Phytium i3c master controller. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 0e0f9b5) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/i3c/master/Kconfig drivers/i3c/master/Makefile
opsiff
added a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
Log:
drivers/i3c/master/i3c-master-phytium.c:1548:15: error: incompatible function pointer types initializing 'int (*)(struct i2c_dev_desc *, struct i2c_msg *, int)' with an expression of type 'int (struct i2c_dev_desc *, const struct i2c_msg *, int)' [-Wincompatible-function-pointer-types]
1548 | .i2c_xfers = phytium_i3c_master_i2c_xfers,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/i3c/master/i3c-master-phytium.c:1689:12: error: incompatible function pointer types initializing 'void (*)(struct platform_device *)' with an expression of type 'int (struct platform_device *)' [-Wincompatible-function-pointer-types]
1689 | .remove = phytium_i3c_master_remove,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Link: deepin-community#298
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch used to support i3c driver in ACPI mode, this modification is in accordance with standard specifications of MIPI and add special keys to support for PHYTIUM platform. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 1cf7076) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/i3c/master.c
opsiff
added a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
Log:
drivers/i3c/master/i3c-master-phytium.c:1649:35: error: use of undeclared identifier 'I3C_BUS_MAX_I3C_SCL_RATE'
1649 | master->base.bus.scl_rate.i3c = I3C_BUS_MAX_I3C_SCL_RATE;
| ^
1 error generated.
Link: deepin-community#298
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch adds support for S3/S4 mode.When resume from S4 state,the reg value will be overwrite to solve read problems. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit d067eb8) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
…orms. This patch uses the marco definition of CONFIG_ARCH_PHYTIUM to restrict the use of certain code segments on the phytium platforms, and does not compile this code for other platform. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 1371a68) [ Format fix ] Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
Add "phytium,cdns-i3c-master" to be used for Phytium SoC Family. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 80f143d) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: Documentation/devicetree/bindings/i3c/cdns,i3c-master.yaml
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
When reading the slave registers, two consecutive slave returns bytes larger than the set PL len will trigger halt on the host, so halt_en is disabled by default for phytium Soc. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit a355204) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch adds GETMXDS format 1 retransmission to fix GETMXDS format 2 command failure. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit e5b9750) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch keeps the CTRL.hj_ack bit disabled until i3c_master_register() is completed in order to prevent slaves from indirect DAA, which causes the driver to fail DAA. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 3b15ce6) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/i3c/master/i3c-master-cdns.c
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch documents the DT binding for the Phytium I3C controller. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 4fa47c3) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch provides support for Phytium i3c master controller. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 0e0f9b5) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/i3c/master/Kconfig drivers/i3c/master/Makefile
opsiff
added a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
Log:
drivers/i3c/master/i3c-master-phytium.c:1548:15: error: incompatible function pointer types initializing 'int (*)(struct i2c_dev_desc *, struct i2c_msg *, int)' with an expression of type 'int (struct i2c_dev_desc *, const struct i2c_msg *, int)' [-Wincompatible-function-pointer-types]
1548 | .i2c_xfers = phytium_i3c_master_i2c_xfers,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/i3c/master/i3c-master-phytium.c:1689:12: error: incompatible function pointer types initializing 'void (*)(struct platform_device *)' with an expression of type 'int (struct platform_device *)' [-Wincompatible-function-pointer-types]
1689 | .remove = phytium_i3c_master_remove,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Link: deepin-community#298
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch used to support i3c driver in ACPI mode, this modification is in accordance with standard specifications of MIPI and add special keys to support for PHYTIUM platform. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 1cf7076) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/i3c/master.c
opsiff
added a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
Log:
drivers/i3c/master/i3c-master-phytium.c:1649:35: error: use of undeclared identifier 'I3C_BUS_MAX_I3C_SCL_RATE'
1649 | master->base.bus.scl_rate.i3c = I3C_BUS_MAX_I3C_SCL_RATE;
| ^
1 error generated.
Link: deepin-community#298
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
This patch adds support for S3/S4 mode.When resume from S4 state,the reg value will be overwrite to solve read problems. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit d067eb8) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
Dec 29, 2025
…orms. This patch uses the marco definition of CONFIG_ARCH_PHYTIUM to restrict the use of certain code segments on the phytium platforms, and does not compile this code for other platform. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Link: deepin-community#298 (cherry picked from commit 1371a68) [ Format fix ] Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
Add "phytium,cdns-i3c-master" to be used for Phytium SoC Family. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: #298 (cherry picked from commit 80f143d) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: Documentation/devicetree/bindings/i3c/cdns,i3c-master.yaml
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
When reading the slave registers, two consecutive slave returns bytes larger than the set PL len will trigger halt on the host, so halt_en is disabled by default for phytium Soc. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: #298 (cherry picked from commit a355204) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
This patch adds GETMXDS format 1 retransmission to fix GETMXDS format 2 command failure. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: #298 (cherry picked from commit e5b9750) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
This patch keeps the CTRL.hj_ack bit disabled until i3c_master_register() is completed in order to prevent slaves from indirect DAA, which causes the driver to fail DAA. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: #298 (cherry picked from commit 3b15ce6) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/i3c/master/i3c-master-cdns.c
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
This patch documents the DT binding for the Phytium I3C controller. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: #298 (cherry picked from commit 4fa47c3) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
This patch provides support for Phytium i3c master controller. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: #298 (cherry picked from commit 0e0f9b5) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/i3c/master/Kconfig drivers/i3c/master/Makefile
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
Log:
drivers/i3c/master/i3c-master-phytium.c:1548:15: error: incompatible function pointer types initializing 'int (*)(struct i2c_dev_desc *, struct i2c_msg *, int)' with an expression of type 'int (struct i2c_dev_desc *, const struct i2c_msg *, int)' [-Wincompatible-function-pointer-types]
1548 | .i2c_xfers = phytium_i3c_master_i2c_xfers,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/i3c/master/i3c-master-phytium.c:1689:12: error: incompatible function pointer types initializing 'void (*)(struct platform_device *)' with an expression of type 'int (struct platform_device *)' [-Wincompatible-function-pointer-types]
1689 | .remove = phytium_i3c_master_remove,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Link: #298
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
This patch used to support i3c driver in ACPI mode, this modification is in accordance with standard specifications of MIPI and add special keys to support for PHYTIUM platform. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang yinfeng <wangyinfeng@phytium.com.cn> Link: #298 (cherry picked from commit 1cf7076) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/i3c/master.c
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
Log:
drivers/i3c/master/i3c-master-phytium.c:1649:35: error: use of undeclared identifier 'I3C_BUS_MAX_I3C_SCL_RATE'
1649 | master->base.bus.scl_rate.i3c = I3C_BUS_MAX_I3C_SCL_RATE;
| ^
1 error generated.
Link: #298
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
This patch adds support for S3/S4 mode.When resume from S4 state,the reg value will be overwrite to solve read problems. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: #298 (cherry picked from commit d067eb8) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
lanlanxiyiji
pushed a commit
that referenced
this pull request
Jan 4, 2026
…orms. This patch uses the marco definition of CONFIG_ARCH_PHYTIUM to restrict the use of certain code segments on the phytium platforms, and does not compile this code for other platform. Signed-off-by: yuanxia <yuanxia2073@phytium.com.cn> Signed-off-by: Wu Jinyong <wujinyong1788@phytium.com.cn> Link: #298 (cherry picked from commit 1371a68) [ Format fix ] Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
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.
These patches have added support for the Phytium i3c controller and its related functions, and implemented architecture isolation.