Skip to contentSkip to conversation

ARM: dts: aspeed: Use new occ-hwmon driver for P8 systems

PATCH Applied Lei YU 2 participants 3 messages Oct 27, 2017 – Oct 30, 2017

Subsystems (2)
lore
Share & tools
lore

Lei YU

author
#0 lore raw

PATCH 1/1 ARM: dts: aspeed: Use new occ-hwmon driver for P8 systems

Use the new occ-hwmon driver and compatible name for Barreleye and Garrison.

---
 arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts |  8 ++++----
 arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts  | 10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)
arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts +4 -4
index d37d0ea..6e70ca5 100644
@@ -124,13 +124,13 @@
 &i2c3 {
 	status = "okay";
 
-	occ@50 {
-		compatible = "ibm,occ-i2c";
+	occ-hwmon@50 {
+		compatible = "ibm,p8-occ-hwmon";
 		reg = <0x50>;
 	};
 
-	occ@51 {
-		compatible = "ibm,occ-i2c";
+	occ-hwmon@51 {
+		compatible = "ibm,p8-occ-hwmon";
 		reg = <0x51>;
 	};
 };
arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +5 -5
index 6b96e36..95552c8 100644
@@ -156,8 +156,8 @@
 &i2c4 {
 	status = "okay";
 
-	occ@50 {
-		compatible = "ibm,occ-i2c";
+	occ-hwmon@50 {
+		compatible = "ibm,p8-occ-hwmon";
 		reg = <0x50>;
 	};
 };
@@ -165,9 +165,9 @@
 &i2c5 {
 	status = "okay";
 
-	occ@50 {
-		compatible = "ibm,occ-i2c";
-		reg = <0x50>;
+	occ-hwmon@51 {
+		compatible = "ibm,p8-occ-hwmon";
+		reg = <0x51>;
 	};
 };
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 17 lines · Lei YU

Use the new occ-hwmon driver and compatible name for Barreleye and Garrison.

---
 arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts |  8 ++++---- arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts  | 10 +++++-----

 2 files changed, 9 insertions(+), 9 deletions(-)

arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts +0 -0
index d37d0ea..6e70ca5 100644
@@ -124,13 +124,13 @@
  &i2c3 {
  	status = "okay";

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

Quoted 3 lines
arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts +1 -2
-	occ@50 {
-		compatible = "ibm,occ-i2c";
+	occ-hwmon@50 {

I tend to disagree with the node name. 'occ-hwmon' reflects the hardware *and* a Linux subsystem, which is not what a node name should represent. My alternative would be 'occ-sensors', and maybe we can bikeshed that. However, the patch is consistent with what we have in other devicetrees. We should fix what we have, but I think that's a job for another day.

Quoted 39 lines
arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts +1 -0
+		compatible = "ibm,p8-occ-hwmon";

  reg = <0x50>;
  };

arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts +2 -2
-	occ@51 {
-		compatible = "ibm,occ-i2c";
+	occ-hwmon@51 {
+		compatible = "ibm,p8-occ-hwmon";

  reg = <0x51>;
  };
 };

arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +0 -0
index 6b96e36..95552c8 100644
@@ -156,8 +156,8 @@
  &i2c4 {
  	status = "okay";

arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +2 -2
-	occ@50 {
-		compatible = "ibm,occ-i2c";
+	occ-hwmon@50 {
+		compatible = "ibm,p8-occ-hwmon";

  reg = <0x50>;
  };
 };

arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +0 -0
@@ -165,9 +165,9 @@
  &i2c5 {
  	status = "okay";

arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +3 -3
-	occ@50 {
-		compatible = "ibm,occ-i2c";
-		reg = <0x50>;
+	occ-hwmon@51 {
+		compatible = "ibm,p8-occ-hwmon";
+		reg = <0x51>;

  };
 };

#2 lore raw
In reply to Lei YU
Quoted 4 lines · Lei YU

Use the new occ-hwmon driver and compatible name for Barreleye and Garrison.

Thanks, applied to dev-4.10.

Andrew

Quoted 57 lines

---
 arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts |  8 ++++---- arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts  | 10 +++++-----

 2 files changed, 9 insertions(+), 9 deletions(-)
arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts +0 -0
index d37d0ea..6e70ca5 100644
@@ -124,13 +124,13 @@
  &i2c3 {
  	status = "okay";

arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts +2 -2
-	occ@50 {
-		compatible = "ibm,occ-i2c";
+	occ-hwmon@50 {
+		compatible = "ibm,p8-occ-hwmon";

  reg = <0x50>;
  };

arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts +2 -2
-	occ@51 {
-		compatible = "ibm,occ-i2c";
+	occ-hwmon@51 {
+		compatible = "ibm,p8-occ-hwmon";

  reg = <0x51>;
  };
 };

arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +0 -0
index 6b96e36..95552c8 100644
@@ -156,8 +156,8 @@
  &i2c4 {
  	status = "okay";

arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +2 -2
-	occ@50 {
-		compatible = "ibm,occ-i2c";
+	occ-hwmon@50 {
+		compatible = "ibm,p8-occ-hwmon";

  reg = <0x50>;
  };
 };

arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +0 -0
@@ -165,9 +165,9 @@
  &i2c5 {
  	status = "okay";

arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +3 -3
-	occ@50 {
-		compatible = "ibm,occ-i2c";
-		reg = <0x50>;
+	occ-hwmon@51 {
+		compatible = "ibm,p8-occ-hwmon";
+		reg = <0x51>;

  };
 };