History log of /openbmc/phosphor-power/phosphor-regulators/ (Results 251 – 275 of 303)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
ca93f1f430-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'i2c_interface'.

*Valid: test i2c_interface.
*Invalid: test i2c_interface with no bus.
*Invalid: test i2c_interface with no address.
*Invalid: test i2c_interfac

regulators: Add test cases for object 'i2c_interface'.

*Valid: test i2c_interface.
*Invalid: test i2c_interface with no bus.
*Invalid: test i2c_interface with no address.
*Invalid: test i2c_interface with property bus wrong type.
*Invalid: test i2c_interface with property address wrong type.
*Invalid: test i2c_interface with property bus less than 0.
*Invalid: test i2c_interface with property address wrong format.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: Ibba4cbaa8964258f47a597154f0e35e88f89feab

show more ...

a2ba2dfb04-Feb-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'device'.

*Valid: test device.
*Valid: test device with required properties.
*Invalid: test device with no id.
*Invalid: test device with no is_regulator.
*Inva

regulators: Add test cases for object 'device'.

*Valid: test device.
*Valid: test device with required properties.
*Invalid: test device with no id.
*Invalid: test device with no is_regulator.
*Invalid: test device with no fru.
*Invalid: test device with no i2c_interface.
*Invalid: test device with property comments wrong type.
*Invalid: test device with property id wrong type.
*Invalid: test device with property is_regulator wrong type.
*Invalid: test device with property fru wrong type.
*Invalid: test device with property i2c_interface wrong type.
*Invalid: test device with property presence_detection wrong type.
*Invalid: test device with property configuration wrong type.
*Invalid: test device with property rails wrong type.
*Invalid: test device with property comments empty array.
*Invalid: test device with property fru length less than 1.
*Invalid: test device with property id wrong format.
*Invalid: test device with property rails empty array.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I4b7c7b6af43bf57d13ed8b420b780cbac8308332

show more ...

3728f56220-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'chassis'.

*Valid: test chassis.
*Valid: test chassis with required properties.
*Invalid: test chassis with no number.
*Invalid: test chassis with property comm

regulators: Add test cases for object 'chassis'.

*Valid: test chassis.
*Valid: test chassis with required properties.
*Invalid: test chassis with no number.
*Invalid: test chassis with property comments wrong type.
*Invalid: test chassis with property number wrong type.
*Invalid: test chassis with property devices wrong type.
*Invalid: test chassis with property comments empty array.
*Invalid: test chassis with property devices empty array.
*Invalid: test chassis with property number less than 1.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: Iba57cf5d1f744bfed48b7186425e932155f2bb1f

show more ...

68230aae20-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'set_device'.

*Valid: test set_device.
*Invalid: test set_device wrong type.
*Invalid: test set_device wrong format.

Signed-off-by: Bob King <Bob_King@wistron.

regulators: Add test cases for object 'set_device'.

*Valid: test set_device.
*Invalid: test set_device wrong type.
*Invalid: test set_device wrong format.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: Iaaa038f880100406a09abfb3f6a2ac9328e8a002

show more ...

e86c2e5e20-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'run_rule'.

*Valid: test run_rule.
*Invalid: test run_rule wrong type.
*Invalid: test run_rule wrong format.

Signed-off-by: Bob King <Bob_King@wistron.com>
Cha

regulators: Add test cases for object 'run_rule'.

*Valid: test run_rule.
*Invalid: test run_rule wrong type.
*Invalid: test run_rule wrong format.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I38d8aba32f09ac36c4128ca75558a835fdb5622a

show more ...

02179c6320-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'pmbus_write_vout_command'.

*Valid: test pmbus_write_vout_command.
*Valid: test pmbus_write_vout_command with required properties.
*Invalid: test pmbus_write_vo

regulators: Add test cases for object 'pmbus_write_vout_command'.

*Valid: test pmbus_write_vout_command.
*Valid: test pmbus_write_vout_command with required properties.
*Invalid: test pmbus_write_vout_command with no format.
*Invalid: test pmbus_write_vout_command with property volts wrong type.
*Invalid: test pmbus_write_vout_command with property format wrong type.
*Invalid: test pmbus_write_vout_command with property exponent wrong type.
*Invalid: test pmbus_write_vout_command with property is_verified wrong type.
*Invalid: test pmbus_write_vout_command with property format wrong format.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I552728952615fa167cf5bf1dc9cfd0a2d44395bc

show more ...

d661809b20-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'pmbus_read_sensor'.

Test cases for object 'pmbus_read_sensor' are:
*Valid: test pmbus_read_sensor.
*Valid: test pmbus_read_sensor with required properties.
*In

regulators: Add test cases for object 'pmbus_read_sensor'.

Test cases for object 'pmbus_read_sensor' are:
*Valid: test pmbus_read_sensor.
*Valid: test pmbus_read_sensor with required properties.
*Invalid: test pmbus_read_sensor with no type.
*Invalid: test pmbus_read_sensor with no command.
*Invalid: test pmbus_read_sensor with no format.
*Invalid: test pmbus_read_sensor with property type wrong type.
*Invalid: test pmbus_read_sensor with property command wrong type.
*Invalid: test pmbus_read_sensor with property format wrong type.
*Invalid: test pmbus_read_sensor with property exponent wrong type.
*Invalid: test pmbus_read_sensor with property type wrong format.
*Invalid: test pmbus_read_sensor with property command wrong format.
*Invalid: test pmbus_read_sensor with property format wrong format.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: Iaeee47b7edb360667bcb3028735bae2279082b81

show more ...

cfc29d0320-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'or'.

Test cases for object 'or' are:
*Valid: test or.
*Invalid: test or with empty array.
*Invalid: test or with wrong type.

Signed-off-by: Bob King <Bob_King

regulators: Add test cases for object 'or'.

Test cases for object 'or' are:
*Valid: test or.
*Invalid: test or with empty array.
*Invalid: test or with wrong type.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I07a77958d997227428fbc6eb4e5a08301f8a9ef3

show more ...

bfe9fe7d20-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'not'.

Test cases for object 'not' are:
*Valid: test not.
*Invalid: test not with wrong type.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I4b8f35

regulators: Add test cases for object 'not'.

Test cases for object 'not' are:
*Valid: test not.
*Invalid: test not with wrong type.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I4b8f3530c4eb6e1d3b5c4896467d5eb9e3c47863

show more ...

ead0b05920-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'if'.

Test cases for object 'if' are:
*Valid: test if.
*Valid: test if with required properties.
*Invalid: test if with no property condition.
*Invalid: test if

regulators: Add test cases for object 'if'.

Test cases for object 'if' are:
*Valid: test if.
*Valid: test if with required properties.
*Invalid: test if with no property condition.
*Invalid: test if with no property then.
*Invalid: test if with property then empty array.
*Invalid: test if with property else empty array.
*Invalid: test if with property condition wrong type.
*Invalid: test if with property then wrong type.
*Invalid: test if with property else wrong type.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I46808c6a1ad67e393b16c846251770e9793718b7

show more ...

fb162bbe20-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'i2c_compare_bytes'.

*Valid: test i2c_compare_bytes
*Valid: test i2c_compare_bytes with all required properties
*Invalid: test i2c_compare_bytes with no registe

regulators: Add test cases for object 'i2c_compare_bytes'.

*Valid: test i2c_compare_bytes
*Valid: test i2c_compare_bytes with all required properties
*Invalid: test i2c_compare_bytes with no register
*Invalid: test i2c_compare_bytes with no values
*Invalid: test i2c_compare_bytes with property values as empty array
*Invalid: test i2c_compare_bytes with property masks as empty array
*Invalid: test i2c_compare_bytes with property register wrong type
*Invalid: test i2c_compare_bytes with property values wrong type
*Invalid: test i2c_compare_bytes with property masks wrong type
*Invalid: test i2c_compare_bytes with property register more than 2 hex digits.
*Invalid: test i2c_compare_bytes with property values more than 2 hex digits.
*Invalid: test i2c_compare_bytes with property masks more than 2 hex digits.
*Invalid: test i2c_compare_bytes with property register less than 2 hex digits.
*Invalid: test i2c_compare_bytes with property values less than 2 hex digits.
*Invalid: test i2c_compare_bytes with property masks less than 2 hex digits.
*Invalid: test i2c_compare_bytes with property register no leading prefix.
*Invalid: test i2c_compare_bytes with property values no leading prefix.
*Invalid: test i2c_compare_bytes with property masks no leading prefix.
*Invalid: test i2c_compare_bytes with property register invalid hex digit.
*Invalid: test i2c_compare_bytes with property values invalid hex digit.
*Invalid: test i2c_compare_bytes with property masks invalid hex digit.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: Ic86099de9a5487adaa06cb293817828de646c916

show more ...

514023d520-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'i2c_compare_byte'.

*Valid: test i2c_compare_byte with all properties
*Valid: test i2c_compare_byte with all required properties
*Invalid: test i2c_compare_byte

regulators: Add test cases for object 'i2c_compare_byte'.

*Valid: test i2c_compare_byte with all properties
*Valid: test i2c_compare_byte with all required properties
*Invalid: test i2c_compare_byte with no register
*Invalid: test i2c_compare_byte with no value
*Invalid: test i2c_compare_byte with property register wrong type
*Invalid: test i2c_compare_byte with property value wrong type
*Invalid: test i2c_compare_byte with property mask wrong type
*Invalid: test i2c_compare_byte with property register more than 2 hex digits.
*Invalid: test i2c_compare_byte with property value more than 2 hex digits.
*Invalid: test i2c_compare_byte with property mask more than 2 hex digits.
*Invalid: test i2c_compare_byte with property register less than 2 hex digits.
*Invalid: test i2c_compare_byte with property value less than 2 hex digits.
*Invalid: test i2c_compare_byte with property mask less than 2 hex digits.
*Invalid: test i2c_compare_byte with property register no leading prefix.
*Invalid: test i2c_compare_byte with property value no leading prefix.
*Invalid: test i2c_compare_byte with property mask no leading prefix.
*Invalid: test i2c_compare_byte with property register invalid hex digit.
*Invalid: test i2c_compare_byte with property value invalid hex digit.
*Invalid: test i2c_compare_byte with property mask invalid hex digit.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: If3c5b656298022d0cdc8046a2846fd1b7eeb8eff

show more ...

4ab8cbbf20-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'i2c_compare_bit'.

Test cases for object 'i2c_compare_bit' are:
*Valid: test i2c_compare_bit.
*Invalid: test i2c_compare_bit with no register.
*Invalid: test i2

regulators: Add test cases for object 'i2c_compare_bit'.

Test cases for object 'i2c_compare_bit' are:
*Valid: test i2c_compare_bit.
*Invalid: test i2c_compare_bit with no register.
*Invalid: test i2c_compare_bit with no position.
*Invalid: test i2c_compare_bit with no value.
*Invalid: test i2c_compare_bit with register wrong type.
*Invalid: test i2c_compare_bit with register wrong format.
*Invalid: test i2c_compare_bit with position wrong type.
*Invalid: test i2c_compare_bit with position greater than 7.
*Invalid: test i2c_compare_bit with position less than 0.
*Invalid: test i2c_compare_bit with value wrong type.
*Invalid: test i2c_compare_bit with value greater than 1.
*Invalid: test i2c_compare_bit with value less than 0.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I63634724542b86f1a9a38fcebec2239251aafc0d

show more ...

f8b77a0220-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'compare_vpd'.

Test cases for object 'compare_vpd' are:
*Valid.
*Invalid: no FRU property.
*Invalid: no keyword property.
*Invalid: no value property.
*Invalid:

regulators: Add test cases for object 'compare_vpd'.

Test cases for object 'compare_vpd' are:
*Valid.
*Invalid: no FRU property.
*Invalid: no keyword property.
*Invalid: no value property.
*Invalid: property FRU wrong type.
*Invalid: property FRU is string less than 1.
*Invalid: property keyword is not "CCIN",
"Manufacturer","Model", "PartNumber"
*Invalid: property value wrong type.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: If3bc080256cff4fdef089a7803bac3faca0314d4

show more ...

bf1cbeaa20-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'compare_presence'.

Test cases for object 'compare_presence' are:
*Valid.
*Invalid: no FRU property.
*Invalid: FRU property length is string less than 1.
*Inval

regulators: Add test cases for object 'compare_presence'.

Test cases for object 'compare_presence' are:
*Valid.
*Invalid: no FRU property.
*Invalid: FRU property length is string less than 1.
*Invalid: no value property.
*Invalid: value property type is not boolean.
*Invalid: FRU property type is not string.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I051d87cadeb79a6612df5a483c2149569613d518

show more ...

beaf653220-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add test cases for object 'and'.

Test cases for object 'and' are:
*Valid
*Invalid: actions property has incorrect value data type
*Invalid: actions property value is an empty array
*Inva

regulators: Add test cases for object 'and'.

Test cases for object 'and' are:
*Valid
*Invalid: actions property has incorrect value data type
*Invalid: actions property value is an empty array
*Invalid: actions property value is an array that contains wrong element type

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: Iec0aa14ce7d0b48bcb1ee5ac3b4a25542180ae6c

show more ...

95b796a415-Jan-2020 Bob King <Bob_King@wistron.com>

regulators: Add check duplicate ID function.

Add check duplicate id and number functions.
check_duplicate_rule_id
check_duplicate_chassis_number
check_duplicate_device_id
check_duplicate_rail_id

Si

regulators: Add check duplicate ID function.

Add check duplicate id and number functions.
check_duplicate_rule_id
check_duplicate_chassis_number
check_duplicate_device_id
check_duplicate_rail_id

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: Ic7874037ee46614ca34f88113adc4d246608b718

show more ...

afb7fc3f11-Dec-2019 Shawn McCarney <shawnmm@us.ibm.com>

Add I2C interface to Device class

Add an I2C interface to the phosphor-regulators C++ Device class.

Use the I2CInterface class from the tools/i2c directory of this
repository.

Also add the other r

Add I2C interface to Device class

Add an I2C interface to the phosphor-regulators C++ Device class.

Use the I2CInterface class from the tools/i2c directory of this
repository.

Also add the other required properties of the JSON "device" object to
the C++ Device class.

The JSON "device" object is in the phosphor-regulators config file. For
more information, see phosphor-regulators/docs/config_file/device.md.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: Idc780b1a11372d6597762cfb6540fa44f1cfb64e

show more ...

0dcbdf5720-Jan-2020 Bob King <Bob_King@wistron.com>

Update format cause .clang-format file updates.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I500cce09185c061a0c8c168346b86edda7f2eea2

5cc0128017-Dec-2019 Bob King <Bob_King@wistron.com>

Add validate-regulators-config.py validation tool.

validate-regulators-config.py is a tool that validates configuration
files for the phosphor-regulators application. See
phosphor-regulators/docs/co

Add validate-regulators-config.py validation tool.

validate-regulators-config.py is a tool that validates configuration
files for the phosphor-regulators application. See
phosphor-regulators/docs/config_file/README.md for the
command to use the tool.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I41cd4070dbb6ec27e834308a9eb0a819feb77319

show more ...

386d33ff26-Dec-2019 Bob King <Bob_King@wistron.com>

Create validate-regulators-config_tests.cpp.

Create validate-regulators-config_tests.cpp and add test cases for JSON
object "rule". The validate-regulators-config_tests.cpp tests the cases
which val

Create validate-regulators-config_tests.cpp.

Create validate-regulators-config_tests.cpp and add test cases for JSON
object "rule". The validate-regulators-config_tests.cpp tests the cases
which validate-regulators-config.py checks.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I86ad7d78dac3617170dbd0a78213843f311b7123

show more ...

dcb4b3b317-Dec-2019 Bob King <Bob_King@wistron.com>

Add schema file for phosphor-regulators JSON.

Add the schema file for validate-regulators-config.py to validate
the config_file.json.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I7e97

Add schema file for phosphor-regulators JSON.

Add the schema file for validate-regulators-config.py to validate
the config_file.json.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I7e97b41bdb171093f2e07c8ff0db247fffdc6841

show more ...

994a873c13-Dec-2019 Bob King <Bob_King@wistron.com>

Modify README.md for folders change under phosphor-regulators and link.

Rename validate-regulators-config to validate-regulators-config.py and
create schema folder that includes the config_schema.js

Modify README.md for folders change under phosphor-regulators and link.

Rename validate-regulators-config to validate-regulators-config.py and
create schema folder that includes the config_schema.json file that
validate-regulators-config.py needs.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: Ib09e1bee6f13361a787ab82f7937d02a80cb41c4

show more ...

4c94bc7c13-Dec-2019 Shawn McCarney <shawnmm@us.ibm.com>

Create phosphor-regulators application

Create the initial version of the phosphor-regulators application.

Modify the meson.build file to build and install the application.

Signed-off-by: Shawn McC

Create phosphor-regulators application

Create the initial version of the phosphor-regulators application.

Modify the meson.build file to build and install the application.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I22da7e81f02d401d152d954a254cff3c35c84b73

show more ...

6d59773713-Nov-2019 Shawn McCarney <shawnmm@us.ibm.com>

Create regulators IfAction class

Create the IfAction class that implements the "if" action in the JSON
config file.

See phosphor-regulators/docs/config_file/if.md for more information on
the "if" a

Create regulators IfAction class

Create the IfAction class that implements the "if" action in the JSON
config file.

See phosphor-regulators/docs/config_file/if.md for more information on
the "if" action.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I16d5ba7bb88b5baa8a5085168a8bd2dc75449e9b

show more ...

1...<<111213