]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ARM: dts: aspeed: tiogapass: Add sensors
authorVijay Khemka <vijaykhemka@fb.com>
Mon, 17 Dec 2018 20:04:02 +0000 (12:04 -0800)
committerJoel Stanley <joel@jms.id.au>
Thu, 17 Jan 2019 03:03:07 +0000 (14:03 +1100)
Added ADC and other sensor devices present in the Facebook Tiogapass
machine.

Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts

index a4c7e205ca96ef562c70d65ea2810b246bc8b1fb..73e58a821613cf6e17280555dcc8095cfb854a59 100644 (file)
        memory@80000000 {
                reg = <0x80000000 0x20000000>;
        };
+
+       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 {
        use-ncsi;
 };
 
+&adc {
+       status = "okay";
+};
+
 &i2c0 {
        status = "okay";
        //Airmax Conn B, CPU0 PIROM, CPU1 PIROM
 
 &i2c8 {
        status = "okay";
+       tmp421@1f {
+               compatible = "ti,tmp421";
+               reg = <0x1f>;
+       };
        //Mezz Sensor SMBus
 };
 
        };
 
        fan@1 {
-               reg = <0x00>;
-               aspeed,fan-tach-ch = /bits/ 8 <0x01>;
+               reg = <0x01>;
+               aspeed,fan-tach-ch = /bits/ 8 <0x02>;
        };
 };