overlays: i2c-sensor: Add comment re fragment gap
authorPhil Elwell <phil@raspberrypi.com>
Tue, 24 Jan 2023 11:15:02 +0000 (11:15 +0000)
committerPhil Elwell <phil@raspberrypi.com>
Tue, 24 Jan 2023 12:01:25 +0000 (12:01 +0000)
From rpi-6.1.y the i2c-sensor overlay includes support for the BNO055,
which occupies fragments 30 & 31. The driver for this devices does not
exist in the 5.15 kernel, so the rpi-5.15.y version of the overlay does
not include it.

Forward-porting new sensors added to rpi-5.15.y is made easier if the
same fragment numbers are used, so add a comment in the rpi-5.15.y
source explaining the gap.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi

index 4b3519e..ed3a207 100755 (executable)
                };
        };
 
+       // Fragments 30 and 31 omitted due to BNO055 support in rpi-6.1.y
+
        __overrides__ {
                bme280 = <0>,"+0";
                bmp085 = <0>,"+1";
                ms8607 = <0>,"+27";
                mpu6050 = <0>,"+28";
                mpu9250 = <0>,"+29";
+               // Skip 30 and 31
 
                addr =  <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
                        <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",