Skip to content

arm64: dts: aspeed: arthur: Update I2C8 and I2C12 - #311

Open
ankitaprasad2206 wants to merge 1 commit into
dev_6.18.20from
pull-dev-a2-for-arthur
Open

arm64: dts: aspeed: arthur: Update I2C8 and I2C12#311
ankitaprasad2206 wants to merge 1 commit into
dev_6.18.20from
pull-dev-a2-for-arthur

Conversation

@ankitaprasad2206

Copy link
Copy Markdown
Collaborator

Add SCM_I2C<0> mux@70/71 nodes for P0/board VRs, clocks, temps, and ADCs in DTS. Add SCM_I2C<2> for fan controllers for Churro and 2U Fan Boards in DTS. Add aliases for BMC's I2C8 and I2C12 buses.

Tested:

  • Kernel booted with the Updated DTS
  • Verified aliases working as expected

Add SCM_I2C<0> mux@70/71 nodes for P0/board VRs, clocks, temps, and
ADCs in DTS. Add SCM_I2C<2> for fan controllers for Churro and 2U
Fan Boards in DTS. Add aliases for BMC's I2C8 and I2C12 buses.

Tested:
- Kernel booted with the Updated DTS
- Verified aliases working as expected

Signed-off-by: ankprasa <ankprasa@amd.com>

@modolaty modolaty left a comment

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.

note you have 2 different controller
EMC2305 and NCT7363
That will break set-fan-spead.sh logic

i2c103 = &arthur_fan_board_ch3;
i2c104 = &arthur_fan_board_ch2;
i2c105 = &arthur_fan_board_ch3;
i2c100 = &P0_conn_012_cpu;

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.

i2c100 to i2c107 are not used
This will cause compile error

i2c203 = &churro_fans_0_0;
i2c204 = &churro_fans_0_1;
i2c210 = &churro_id;
i2c215 = &arthur_2u_id;

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.

arthur_2u_id is NOT used
remove it

i2c210 = &churro_id;
i2c215 = &arthur_2u_id;
i2c211 = &churro_mcu;
i2c216 = &arthur_2u_mcu;

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.

arthur_2u_mcu is NOT used
remove it

fan@1 {
min-rpm = /bits/ 16 <1000>;
max-rpm = /bits/ 16 <16000>;
arthur_2u_mux: i2cswitch@76 {

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.

This is the 1st Mux at 0x76

fan@2 {
min-rpm = /bits/ 16 <1000>;
max-rpm = /bits/ 16 <16000>;
fan_board2_mux: i2cswitch@76 {

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.

This is the 2nd Mux at 0x76
looks like they will collide

reg = <0>;
#address-cells = <1>;
#size-cells = <0>;

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.

Do we also want to add P0 SCM BRD ID at 0x54?

};
};

P0_clk: i2c@1 {

@amd-knieman amd-knieman Aug 20, 2026

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.

This port is NC, so will need to remove.

};
};

NC_1: i2c@3 {

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.

For ports not connected, do we want to remove them so they aren't accessible?

#address-cells = <1>;
#size-cells = <0>;

emc1438@4e {

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.

Device is present, but driver isn't being bound for these 2 devices.

#address-cells = <1>;
#size-cells = <0>;

pdb_vmon@54 {

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.

Device is present, but driver isn't being bound for these 2 devices.

#address-cells = <1>;
#size-cells = <0>;

brd_adc@48 {

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.

Device is present, but driver isn't being bound.

#address-cells = <1>;
#size-cells = <0>;
i2c-mux-idle-disconnect;

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.

Any reason channels 0->5 aren't included? They are go to connectors with IO expanders.

#address-cells = <1>;
#size-cells = <0>;
i2c-mux-idle-disconnect;

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.

We need to add channel 4 back. This should have the clocks of P0_clk.

#address-cells = <1>;
#size-cells = <0>;

i2cswitch@76 {

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.

This needs changed to 0x75. Will need to test with latest board though.

#address-cells = <1>;
#size-cells = <0>;

emc2305@4d {

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.

Will need changed to have only a single fan.

};

/* TacoBowl ch3 -> second Churro/2U superset path */
arthur_fan_board_ch3: i2c@3 {

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.

What is this one for? How are the fan boards expected to be configured?

  1. Fan boards for both channel 2 and 3
  2. Fan board for either channel 2 or 3 but not both. (IE no assigned plug in spot, can do either)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants