Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/aspeed/aspeed-bmc-amd-congo.dts
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,17 @@
#endif
};

/ {
/* Alert_L associated with socket 0 */
alertl_sock0 {
compatible = "apml-alertl";
status = "okay";
gpios = <&ltpi0_gpio 20 GPIO_ACTIVE_LOW>;
sbrmi = <&sbrmi_p0_iod0>;
sbtsi = <&sbtsi_p0_iod0>;
};
};

#ifdef I3C_HUB

#define JESD300_SPD_I3C_MODE(bus, index, addr) \
Expand Down
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/aspeed/aspeed-bmc-amd-morocco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,17 @@
#endif
};

/ {
/* Alert_L associated with socket 0 */
alertl_sock0 {
compatible = "apml-alertl";
status = "okay";
gpios = <&ltpi0_gpio 20 GPIO_ACTIVE_LOW>;
sbrmi = <&sbrmi_p0_iod0>;
sbtsi = <&sbtsi_p0_iod0>;
};
};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add Alert_L node for socket 1.
You can get the LTPI GPIO number from the PR #139

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in PR #143

#ifdef I3C_HUB

#define JESD300_SPD_I3C_MODE(bus, index, addr) \
Expand Down
1 change: 0 additions & 1 deletion drivers/i3c/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ i3c_device_match_id(struct i3c_device *i3cdev,
part = I3C_PID_PART_ID(devinfo.pid);
ext_info = I3C_PID_EXTRA_INFO(devinfo.pid);
inst = I3C_PID_INSTANCE_ID(devinfo.pid);
ext_info = ext_info | (inst << 12);
rndpid = I3C_PID_RND_LOWER_32BITS(devinfo.pid);

printk(" i3c_device_match_id: manuf 0x%x, part 0x%x, inst 0x%x, ext_info 0x%x \n", manuf, part, inst, ext_info);
Expand Down
11 changes: 11 additions & 0 deletions drivers/misc/amd-apml/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ config APML_SBTSI

This driver can also be built as a module. If so, the module will
be called apml_sbtsi.

config APML_ALERTL
tristate "Emulated apml alertl interface driver over i3c bus"
depends on APML_SBRMI && APML_SBTSI
default n
help
If you say yes here you get support for emulated alertl
interface on AMD SoCs with APML interface connected to a BMC device.

This driver can also be built as a module. If so, the module will
be called apml_alertl.
1 change: 1 addition & 0 deletions drivers/misc/amd-apml/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@

obj-$(CONFIG_APML_SBRMI) += sbrmi.o sbrmi-common.o
obj-$(CONFIG_APML_SBTSI) += apml_sbtsi.o
obj-$(CONFIG_APML_ALERTL) += apml_alertl.o
Loading