]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: imx8m*-venice-gw75xx: add Accelerometer device
authorTim Harvey <tharvey@gateworks.com>
Fri, 18 Oct 2024 17:36:08 +0000 (10:36 -0700)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Oct 2024 06:53:04 +0000 (14:53 +0800)
The GW75xx has a LIS2DE12TR 3-axis accelerometer on the I2C bus with an
interrupt pin. Add it to the device-tree.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-venice-gw75xx.dtsi
arch/arm64/boot/dts/freescale/imx8mp-venice-gw75xx.dtsi

index 5eb92005195cfedf5752f37d0bf538cb2018c4aa..53004c4a13aad5138b5bb3f1eeee209730b48923 100644 (file)
        pinctrl-0 = <&pinctrl_i2c2>;
        status = "okay";
 
+       accelerometer@19 {
+               compatible = "st,lis2de12";
+               reg = <0x19>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_accel>;
+               interrupt-parent = <&gpio5>;
+               interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
+               st,drdy-int-pin = <1>;
+       };
+
        eeprom@52 {
                compatible = "atmel,24c32";
                reg = <0x52>;
                >;
        };
 
+       pinctrl_accel: accelgrp {
+               fsl,pins = <
+                       MX8MM_IOMUXC_ECSPI1_MISO_GPIO5_IO8      0x159
+               >;
+       };
+
        pinctrl_gpio_leds: gpioledgrp {
                fsl,pins = <
                        MX8MM_IOMUXC_SAI1_RXFS_GPIO4_IO0        0x6     /* LEDG */
index 0d40cb0f05f6771d5173ebd5498440645645c569..f90b293c85fcbd9fbf08f01e09c280801de130f7 100644 (file)
        pinctrl-0 = <&pinctrl_i2c2>;
        status = "okay";
 
+       accelerometer@19 {
+               compatible = "st,lis2de12";
+               reg = <0x19>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_accel>;
+               interrupt-parent = <&gpio5>;
+               interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
+               st,drdy-int-pin = <1>;
+       };
+
        eeprom@52 {
                compatible = "atmel,24c32";
                reg = <0x52>;
                >;
        };
 
+       pinctrl_accel: accelgrp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_ECSPI1_MISO__GPIO5_IO08    0x159
+               >;
+       };
+
        pinctrl_gpio_leds: gpioledgrp {
                fsl,pins = <
                        MX8MP_IOMUXC_SAI2_RXC__GPIO4_IO22       0x6     /* LEDG */