]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8m{m,p}-venice-gw71xx: Add Magetometer
authorTim Harvey <tharvey@gateworks.com>
Tue, 9 Dec 2025 20:58:28 +0000 (12:58 -0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 30 Dec 2025 03:18:45 +0000 (11:18 +0800)
Add support for the optional LIS2MDL magnetometer on GW71xx baseboards.

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

index 429be2bab8a2d5188dc9769ff7ad000e8769c53e..320806d3d07344e8e8f2e8b348cba1d9a2cb0a6e 100644 (file)
                interrupt-parent = <&gpio4>;
                interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
        };
+
+       magnetometer@1e {
+               compatible = "st,lis2mdl";
+               reg = <0x1e>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_mag>;
+               interrupt-parent = <&gpio4>;
+               interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
+       };
 };
 
 /* off-board header */
                >;
        };
 
+       pinctrl_mag: maggrp {
+               fsl,pins = <
+                       MX8MM_IOMUXC_SAI1_RXC_GPIO4_IO1         0x159
+               >;
+       };
+
        pinctrl_gpio_leds: gpioledgrp {
                fsl,pins = <
                        MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5    0x19
index 4bf818873fe3c5275e6383a84b515e8599637589..9317e62304e30d9387bc6664216288efbe27e80a 100644 (file)
                interrupt-parent = <&gpio4>;
                interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
        };
+
+       magnetometer@1e {
+               compatible = "st,lis2mdl";
+               reg = <0x1e>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_mag>;
+               interrupt-parent = <&gpio4>;
+               interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
+       };
 };
 
 &pcie_phy {
                >;
        };
 
+       pinctrl_mag: maggrp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_SAI2_TXC__GPIO4_IO25       0x150   /* IRQ */
+               >;
+       };
+
        pinctrl_gpio_leds: gpioledgrp {
                fsl,pins = <
                        MX8MP_IOMUXC_SAI1_RXC__GPIO4_IO01       0x6     /* LEDG */