arm64: dts: imx8m{m,p}-venice-gw71xx: Add Magetometer
Subsystems (2)
PATCH 1/1 arm64: dts: imx8m{m,p}-venice-gw71xx: Add Magetometer
Add support for the optional LIS2MDL magnetometer on GW71xx baseboards.
Signed-off-by Tim Harvey <[email protected]>
--- .../boot/dts/freescale/imx8mm-venice-gw71xx.dtsi | 15 +++++++++++++++ .../boot/dts/freescale/imx8mp-venice-gw71xx.dtsi | 15 +++++++++++++++ 2 files changed, 30 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi +15 -0
@@ -92,6 +92,15 @@ accelerometer@19 { 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 */
@@ -174,6 +183,12 @@ MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5 0x159 >; }; + 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
arch/arm64/boot/dts/freescale/imx8mp-venice-gw71xx.dtsi +15 -0
@@ -101,6 +101,15 @@ accelerometer@19 { 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 {
@@ -198,6 +207,12 @@ MX8MP_IOMUXC_SAI2_RXFS__GPIO4_IO21 0x150 /* IRQ */ >; }; + 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 */
Signature · 1 line
2.25.1
Shawn Guo
AppliedQuoted 3 lines · Tim Harvey
Add support for the optional LIS2MDL magnetometer on GW71xx baseboards.
Signed-off-by Tim Harvey <[email protected]>
Applied, thanks!