Re: [PATCH] iio: imu: st_lsm6dsx: Add ACPI ID for SHIFT13mi gyroscope

From: Milan Mišić

Date: Wed Mar 25 2026 - 09:13:42 EST


On 3/25/26 12:56, Andy Shevchenko wrote:
Please, for the record also reply with the DSDT excerpt of the device in
question, so we will see how it's defined in ACPI.

Hi Andy,
Here's the device's DSDT excerpt:

Device (GYRO)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "SMOCF00") // _HID: Hardware ID
Name (_CID, "SMOCF00") // _CID: Compatible ID
Name (_DDN, "Gyroscope") // _DDN: DOS Device Name
Name (_UID, One) // _UID: Unique ID
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (RBUF, ResourceTemplate ()
{
I2cSerialBusV2 (0x006B, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PC00.I2C0",
0x00, ResourceConsumer, , Exclusive,
RawDataBuffer (0x04) // Vendor Data
{
0x53, 0x4F, 0x41, 0x30
})
I2cSerialBusV2 (0x006B, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PC00.I2C0",
0x00, ResourceConsumer, , Exclusive,
RawDataBuffer (0x04) // Vendor Data
{
0x53, 0x4F, 0x47, 0x30
})
})
Return (RBUF) /* \_SB_.PC00.I2C0.GYRO._CRS.RBUF */
}

Method (SOA0, 0, NotSerialized)
{
Name (RBUF, Package (0x03)
{
"1 0 0",
"0 -1 0",
"0 0 1"
})
Return (RBUF) /* \_SB_.PC00.I2C0.GYRO.SOA0.RBUF */
}

Method (SOG0, 0, NotSerialized)
{
Name (RBUF, Package (0x03)
{
"0 1 0",
"-1 0 0",
"0 0 -1"
})
Return (RBUF) /* \_SB_.PC00.I2C0.GYRO.SOG0.RBUF */
}

Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}
}

Best Regards,
Milan Misic