Skip to content
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

Pull the ocmb targets outside proc #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deepakala-k
Copy link
Contributor

The ocmb targets are separate chip. And in odyssey, the ocmb targets have its own pib targets, iic targets. So modelling them outside the proc so that the hierarchy is inline with the actual hardware.

Tested and working as expected.
ecmdquery chips
cage 0
node 0
slot 0
pu
p[0,1,2,3]
odyssey
p[2,3,26,27]

The ocmb targets are separate chip. And in odyssey, the ocmb targets have its
own pib targets, iic targets. So modelling them outside the proc so that the
hierarchy is inline with the actual hardware.

Tested and working as expected.
ecmdquery chips
cage 0
  node 0
    slot 0
      pu
        p[0,1,2,3]
      odyssey
        p[2,3,26,27]
@deepakala-k
Copy link
Contributor Author

ocmb1 {
compatible = "ibm,power-ocmb", "ibm,power10-ocmb";
index = <0x21>;
ATTR_CHIP_ID = <0>;
ATTR_CLOCKSTOP_ON_XSTOP = [ 00 ];
ATTR_EC = [ 00 ];
ATTR_FAPI_NAME = "ocmb:k0:n0:s0:p33 ";
ATTR_FAPI_POS = <33>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_IO_TANK_PLL_BYPASS = [ 00 ];
ATTR_LOCATION_CODE = "Ufcs-P0-C23 ";
ATTR_MRU_ID = <0x00>;
ATTR_NAME = [ 00 ];
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 4B 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/ocmb_chip-1 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_SPI_BUS_DIV_REF = [ 00 41 ];
ATTR_TYPE = [ 4B ];

fsi {
index = <0x01>;
};

pib {
index = <0x01>;

adc0 {
compatible = "ibm,power10-adc";
index = <0x84>;
ATTR_FAPI_NAME = "generici2cslave:k0:n0:s0:p132 ";
ATTR_FAPI_POS = <132>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 55 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/generic_i2c_device-4 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 00 ];
ATTR_TYPE = [ 55 ];
};

adc1 {
compatible = "ibm,power10-adc";
index = <0x85>;
ATTR_FAPI_NAME = "generici2cslave:k0:n0:s0:p133 ";
ATTR_FAPI_POS = <133>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 55 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/generic_i2c_device-5 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 01 ];
ATTR_TYPE = [ 55 ];
};

gpio_expander2 {
compatible = "ibm,power10-gpio_expander";
index = <0x86>;
ATTR_FAPI_NAME = "generici2cslave:k0:n0:s0:p134 ";
ATTR_FAPI_POS = <134>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 55 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/generic_i2c_device-6 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 02 ];
ATTR_TYPE = [ 55 ];
};

gpio_expander3 {
compatible = "ibm,power10-gpio_expander";
index = <0x87>;
ATTR_FAPI_NAME = "generici2cslave:k0:n0:s0:p135 ";
ATTR_FAPI_POS = <135>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 55 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/generic_i2c_device-7 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 03 ];
ATTR_TYPE = [ 55 ];
};

mem_port0 {
compatible = "ibm,power10-memport";
index = <0x42>;
ATTR_CHIPLET_ID = [ FF ];
ATTR_CHIP_UNIT_POS = [ 00 ];
ATTR_FAPI_NAME = "ocmb.mp:k0:n0:s0:p33:c0 ";
ATTR_FAPI_POS = <66>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_MRU_ID = <0x00>;
ATTR_PHYS_BIN_PATH = [ 24 01 00 02 00 4B 01 4C 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/ocmb_chip-1/mem_port-0 ";
ATTR_REL_POS = [ 00 ];
ATTR_TYPE = [ 4C ];

dimm0 {
compatible = "ibm,power10-dimm";
index = <0x84>;
ATTR_FAPI_NAME = "dimm:k0:n0:s0:p132 ";
ATTR_FAPI_POS = <132>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_LOCATION_CODE = "Ufcs-P0-C23 ";
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 03 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/dimm-2 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 00 ];
ATTR_TYPE = [ 03 ];
};
};

mem_port1 {
compatible = "ibm,power10-memport";
index = <0x43>;
ATTR_CHIPLET_ID = [ FF ];
ATTR_CHIP_UNIT_POS = [ 01 ];
ATTR_FAPI_NAME = "ocmb.mp:k0:n0:s0:p33:c1 ";
ATTR_FAPI_POS = <67>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_MRU_ID = <0x00>;
ATTR_PHYS_BIN_PATH = [ 24 01 00 02 00 4B 01 4C 01 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/ocmb_chip-1/mem_port-1 ";
ATTR_REL_POS = [ 01 ];
ATTR_TYPE = [ 4C ];

dimm0 {
compatible = "ibm,power10-dimm";
index = <0x86>;
ATTR_FAPI_NAME = "dimm:k0:n0:s0:p134 ";
ATTR_FAPI_POS = <134>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_LOCATION_CODE = "Ufcs-P0-C23 ";
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 03 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/dimm-3 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 00 ];
ATTR_TYPE = [ 03 ];
};
};

perv1 {
compatible = "ibm,ody-chiplet";
index = <0x01>;
ATTR_CHIPLET_ID = [ 01 ];
ATTR_FAPI_NAME = "ocmb.perv:k0:n0:s0:p33:c1 ";
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_MRU_ID = <0x00>;
ATTR_PHYS_BIN_PATH = [ 24 01 00 02 00 4B 01 2C 01 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/ocmb_chip-1/perv-1 ";
ATTR_TYPE = [ 2C ];
};

perv8 {
compatible = "ibm,ody-chiplet";
index = <0x08>;
ATTR_CHIPLET_ID = [ 08 ];
ATTR_FAPI_NAME = "ocmb.perv:k0:n0:s0:p33:c8 ";
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_MRU_ID = <0x00>;
ATTR_PHYS_BIN_PATH = [ 24 01 00 02 00 4B 01 2C 08 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/ocmb_chip-1/perv-8 ";
ATTR_TYPE = [ 2C ];
};

pmic0 {
compatible = "ibm,power10-pmic";
index = <0x84>;
ATTR_FAPI_NAME = "pmic:k0:n0:s0:p132 ";
ATTR_FAPI_POS = <132>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 4E 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/pmic-4 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 00 ];
ATTR_TYPE = [ 4E ];
};

pmic1 {
compatible = "ibm,power10-pmic";
index = <0x85>;
ATTR_FAPI_NAME = "pmic:k0:n0:s0:p133 ";
ATTR_FAPI_POS = <133>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 4E 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/pmic-5 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 01 ];
ATTR_TYPE = [ 4E ];
};

pmic2 {
compatible = "ibm,power10-pmic";
index = <0x86>;
ATTR_FAPI_NAME = "pmic:k0:n0:s0:p134 ";
ATTR_FAPI_POS = <134>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 4E 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/pmic-6 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 02 ];
ATTR_TYPE = [ 4E ];
};

pmic3 {
compatible = "ibm,power10-pmic";
index = <0x87>;
ATTR_FAPI_NAME = "pmic:k0:n0:s0:p135 ";
ATTR_FAPI_POS = <135>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 23 01 00 02 00 4E 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/pmic-7 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 03 ];
ATTR_TYPE = [ 4E ];
};

power_ic0 {
compatible = "ibm,power10-pmic";
index = <0x84>;
ATTR_FAPI_NAME = "power_ic:k0:n0:s0:p132 ";
ATTR_FAPI_POS = <132>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/power_ic-4 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 00 ];
ATTR_TYPE = [ 00 ];
};

power_ic1 {
compatible = "ibm,power10-pmic";
index = <0x85>;
ATTR_FAPI_NAME = "power_ic:k0:n0:s0:p133 ";
ATTR_FAPI_POS = <133>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/power_ic-5 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 01 ];
ATTR_TYPE = [ 00 ];
};

power_ic2 {
compatible = "ibm,power10-pmic";
index = <0x86>;
ATTR_FAPI_NAME = "power_ic:k0:n0:s0:p134 ";
ATTR_FAPI_POS = <134>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/power_ic-6 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 02 ];
ATTR_TYPE = [ 00 ];
};

power_ic3 {
compatible = "ibm,power10-pmic";
index = <0x87>;
ATTR_FAPI_NAME = "power_ic:k0:n0:s0:p135 ";
ATTR_FAPI_POS = <135>;
ATTR_HWAS_STATE = [ 00 00 00 00 00 ];
ATTR_PHYS_BIN_PATH = [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ];
ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/power_ic-7 ";
ATTR_POS = <0xFFFFFFFF>;
ATTR_REL_POS = [ 03 ];
ATTR_TYPE = [ 00 ];
};
};
};

ocmb2 {
compatible = "ibm,power-ocmb", "ibm,power10-ocmb";
index = <0x22>;
ATTR_CHIP_ID = <0>;

@deepakala-k
Copy link
Contributor Author

The ocmb target is created after the bmc target

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.

1 participant