Re: [PATCH v2 1/4] ARM: dts: aspeed: Add sensors devices for Facebook

2019-01-16 Thread Joel Stanley
On Tue, 18 Dec 2018 at 07:04, Vijay Khemka  wrote:
>
> Added ADC and other sensor devices in Facebook Tiogapass device tree.
>
> Signed-off-by: Vijay Khemka 

Applied to the aspeed tree for 5.1.

Cheers,

Joel


[PATCH v2 1/4] ARM: dts: aspeed: Add sensors devices for Facebook

2018-12-17 Thread Vijay Khemka
Added ADC and other sensor devices in Facebook Tiogapass device tree.

Signed-off-by: Vijay Khemka 
---
 .../dts/aspeed-bmc-facebook-tiogapass.dts | 23 +--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts 
b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
index f8e7b71af7e6..64039853 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
@@ -21,6 +21,17 @@
memory@8000 {
reg = <0x8000 0x2000>;
};
+
+   iio-hwmon {
+   compatible = "iio-hwmon";
+   io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
+   <&adc 4>, <&adc 5>, <&adc 6>;
+   };
+
+   iio-hwmon-battery {
+   compatible = "iio-hwmon";
+   io-channels = <&adc 7>;
+   };
 };
 
 &fmc {
@@ -64,6 +75,10 @@
use-ncsi;
 };
 
+&adc {
+   status = "okay";
+};
+
 &i2c0 {
status = "okay";
//Airmax Conn B, CPU0 PIROM, CPU1 PIROM
@@ -122,6 +137,10 @@
 
 &i2c8 {
status = "okay";
+   tmp421@1f {
+   compatible = "ti,tmp421";
+   reg = <0x1f>;
+   };
//Mezz Sensor SMBus
 };
 
@@ -140,7 +159,7 @@
};
 
fan@1 {
-   reg = <0x00>;
-   aspeed,fan-tach-ch = /bits/ 8 <0x01>;
+   reg = <0x01>;
+   aspeed,fan-tach-ch = /bits/ 8 <0x02>;
};
 };
-- 
2.17.1