hansemro / kc1-linux

Documentation of mainline Linux on First Generation Kindle Fire
GNU General Public License v2.0
4 stars 0 forks source link

Add accelerometer support to device tree #9

Closed hansemro closed 3 years ago

hansemro commented 3 years ago

References:

arch/arm/boot/dts/omap4-kc1.dts:

&i2c4 {
    ...
    accelerometer@18 {
        compatible = "bosch,bma250";
        reg = <0x18>;
        vdd-supply = <&vaux2>;
        vddio-supply = <&vaux2>;
    };
    ...
};
hansemro commented 3 years ago
5.11.0 kernel issue
[   12.854309] industrialio: disagrees about version of symbol dev_set_name
[   12.854309] industrialio: Unknown symbol dev_set_name (err -22)
[   12.854553] industrialio: disagrees about version of symbol device_initialize
[   12.854553] industrialio: Unknown symbol device_initialize (err -22)
[   12.854827] industrialio: disagrees about version of symbol get_device
[   12.854858] industrialio: Unknown symbol get_device (err -22)
[   12.854858] industrialio: disagrees about version of symbol put_device
[   12.854980] industrialio: Unknown symbol put_device (err -22)
[   12.854980] industrialio: disagrees about version of symbol _dev_info
[   12.855041] industrialio: Unknown symbol _dev_info (err -22)
[   12.855041] industrialio: disagrees about version of symbol _dev_err
[   12.855041] industrialio: Unknown symbol _dev_err (err -22)
[   12.855163] industrialio: disagrees about version of symbol device_add
[   12.855163] industrialio: Unknown symbol device_add (err -22)
[   12.855224] industrialio: disagrees about version of symbol device_property_read_string_array
[   12.855255] industrialio: Unknown symbol device_property_read_string_array (err -22)
[   12.855255] industrialio: disagrees about version of symbol device_del
[   12.855316] industrialio: Unknown symbol device_del (err -22)
hansemro commented 3 years ago

Updated device tree snippet: vdd-supply and vddio-supply had to be set to vaux2 for the accelerometer to work.

Note: CONFIG_BMA180 is required to use BMA250

hansemro commented 3 years ago

Added device tree changes to main: f4a927d17001cdf149fadd8b1d08631d3c2aaba0

Closing issue after confirming accelerometer works.

Notes: