]> www.infradead.org Git - linux.git/commitdiff
ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors
authorChanh Nguyen <chanh@os.amperecomputing.com>
Tue, 6 Aug 2024 07:18:02 +0000 (07:18 +0000)
committerJoel Stanley <joel@jms.id.au>
Thu, 22 Aug 2024 03:37:14 +0000 (13:07 +0930)
Define I2C alias ports from I2C Switch 0x70 at BMC I2C5.

Add the tmp421 sensors via the I2C alias ports as OCP device
temperature sensors.

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20240806071806.1666550-2-chanh@os.amperecomputing.com
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts
arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts

index 8ab5f301f92680f3927a522987fbf52aa5d87bfe..8102f41d1d156062c3745e927fe157370e40a104 100644 (file)
                 */
                i2c80 = &nvme_m2_0;
                i2c81 = &nvme_m2_1;
+
+               /*
+                *  i2c bus 82 assigned to OCP slot
+                */
+               i2c82 = &ocpslot;
        };
 
        chosen {
                reg = <0x70>;
                i2c-mux-idle-disconnect;
 
+               ocpslot: i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0>;
+
+                       ocpslot_temp: temperature-sensor@1f {
+                               compatible = "ti,tmp421";
+                               reg = <0x1f>;
+                       };
+               };
+
                nvmeslot_0_7: i2c@3 {
                        #address-cells = <1>;
                        #size-cells = <0>;
index 3c8925034a8c4dde3361c6cba3a28d985b727e97..3a97e88278d506347bd86058c6f7e9f8f1516751 100644 (file)
                serial7 = &uart8;
                serial8 = &uart9;
 
+               /*
+                *  i2c bus 30-31 assigned to OCP slot 0-1
+                */
+               i2c30 = &ocpslot_0;
+               i2c31 = &ocpslot_1;
+
                /*
                 *  I2C NVMe alias port
                 */
                #size-cells = <0>;
                reg = <0x70>;
                i2c-mux-idle-disconnect;
+
+               ocpslot_0: i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0>;
+
+                       ocpslot_0_temp: temperature-sensor@1f {
+                               compatible = "ti,tmp421";
+                               reg = <0x1f>;
+                       };
+               };
+
+               ocpslot_1: i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x1>;
+
+                       ocpslot_1_temp: temperature-sensor@1f {
+                               compatible = "ti,tmp421";
+                               reg = <0x1f>;
+                       };
+               };
        };
 };