Skip to content

Commit fe68a78

Browse files
adamliyishenki
authored andcommitted
hwmon: Add Power8 OCC hwmon driver
Adds a hwmon driver for BMC to monitor Power8 CPU sensors via On Chip Controller. Signed-off-by: Yi Li <adamliyi@msn.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
1 parent 7495d28 commit fe68a78

File tree

6 files changed

+1464
-0
lines changed

6 files changed

+1464
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
HWMON i2c driver for IBM POWER CPU OCC (On Chip Controller)
2+
3+
Required properties:
4+
- compatible: must be "ibm,power8-occ-i2c"
5+
- reg: physical address
6+
7+
Example:
8+
i2c3: i2c-bus@100 {
9+
occ@50 {
10+
compatible = "ibm,occ-i2c";
11+
reg = <0x50>;
12+
};
13+
};

arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts

+10
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@
6060
reg = <0x4a>;
6161
};
6262
};
63+
i2c3: i2c-bus@100 {
64+
occ@50 {
65+
compatible = "ibm,occ-i2c";
66+
reg = <0x50>;
67+
};
68+
occ@51 {
69+
compatible = "ibm,occ-i2c";
70+
reg = <0x51>;
71+
};
72+
};
6373

6474
i2c6: i2c-bus@1c0 {
6575
nct7904@2d {

arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts

+7
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@
6464
reg = <0x4c>;
6565
};
6666
};
67+
68+
i2c3: i2c-bus@100 {
69+
occ@50 {
70+
compatible = "ibm,occ-i2c";
71+
reg = <0x50>;
72+
};
73+
};
6774
};
6875
};
6976
};

drivers/hwmon/Kconfig

+13
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,19 @@ config SENSORS_NCT7904
11671167
This driver can also be built as a module. If so, the module
11681168
will be called nct7904.
11691169

1170+
config SENSORS_POWER8_OCC_I2C
1171+
tristate "Power8 On Chip Controller i2c driver"
1172+
depends on I2C
1173+
help
1174+
If you say yes here you get support to monitor Power8 CPU
1175+
sensors via the On Chip Controller (OCC) over the i2c bus.
1176+
1177+
Generally this is used by management controllers such as a BMC
1178+
on an OpenPower system.
1179+
1180+
This driver can also be built as a module. If so, the module
1181+
will be called power8_occ_i2c.
1182+
11701183
config SENSORS_PCF8591
11711184
tristate "Philips PCF8591 ADC/DAC"
11721185
depends on I2C

drivers/hwmon/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ obj-$(CONFIG_SENSORS_NCT6775) += nct6775.o
123123
obj-$(CONFIG_SENSORS_NCT7802) += nct7802.o
124124
obj-$(CONFIG_SENSORS_NCT7904) += nct7904.o
125125
obj-$(CONFIG_SENSORS_NTC_THERMISTOR) += ntc_thermistor.o
126+
obj-$(CONFIG_SENSORS_POWER8_OCC_I2C) += power8_occ_i2c.o
126127
obj-$(CONFIG_SENSORS_PC87360) += pc87360.o
127128
obj-$(CONFIG_SENSORS_PC87427) += pc87427.o
128129
obj-$(CONFIG_SENSORS_PCF8591) += pcf8591.o

0 commit comments

Comments
 (0)