// SPDX-License-Identifier: (GPL-2.0 OR MIT) /* * Copyright 2020 NXP */ #include "imx8mm-evk.dts" / { mic_leds { compatible = "gpio-leds"; mic0 { label = "mic0"; gpios = <&pca9555 5 GPIO_ACTIVE_LOW>; default-state = "off"; }; mic1 { label = "mic1"; gpios = <&pca9555 7 GPIO_ACTIVE_LOW>; default-state = "off"; }; mic2 { label = "mic2"; gpios = <&pca9555 6 GPIO_ACTIVE_LOW>; default-state = "off"; }; mic3 { label = "mic3"; gpios = <&pca9555 2 GPIO_ACTIVE_LOW>; default-state = "off"; }; mic4 { label = "mic4"; gpios = <&pca9555 1 GPIO_ACTIVE_LOW>; default-state = "off"; }; mic5 { label = "mic5"; gpios = <&pca9555 0 GPIO_ACTIVE_LOW>; default-state = "off"; }; mic6 { label = "mic6"; gpios = <&pca9555 4 GPIO_ACTIVE_LOW>; default-state = "off"; }; mic7 { label = "mic7"; gpios = <&pca9555 3 GPIO_ACTIVE_LOW>; default-state = "off"; }; }; sw_keys { compatible = "gpio-keys"; sw4: volume_down { label = "Volume Down"; gpios = <&pca9555 15 GPIO_ACTIVE_LOW>; linux,code = ; interrupt-parent = <&pca9555>; interrupts = <15 IRQ_TYPE_LEVEL_LOW>; }; sw3: volume_up { label = "Volume Up"; gpios = <&pca9555 14 GPIO_ACTIVE_LOW>; linux,code = ; interrupt-parent = <&pca9555>; interrupts = <14 IRQ_TYPE_LEVEL_LOW>; }; sw2: volume_mute { label = "Volume Mute"; gpios = <&pca9555 13 GPIO_ACTIVE_LOW>; linux,code = ; interrupt-parent = <&pca9555>; interrupts = <13 IRQ_TYPE_LEVEL_LOW>; }; sw1: key_act { label = "Key Act"; gpios = <&pca9555 12 GPIO_ACTIVE_LOW>; linux,code = ; interrupt-parent = <&pca9555>; interrupts = <12 IRQ_TYPE_LEVEL_LOW>; }; }; reg_vddext_3v3: regulator-vddext { compatible = "regulator-fixed"; regulator-name = "VDDEXT_3V3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; }; &iomuxc { pinctrl_swpdm_mute_irq: swpdm_mute_grp { fsl,pins = < MX8MM_IOMUXC_ECSPI1_MISO_GPIO5_IO8 0x19 >; }; pinctrl_pushbutton_irq: pushbutton_grp { fsl,pins = < MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x19 >; }; }; &i2c3 { pca9555: gpio@21 { compatible = "nxp,pca9555"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pushbutton_irq>; reg = <0x21>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupt-parent = <&gpio5>; interrupts = <9 IRQ_TYPE_LEVEL_LOW>; vcc-supply = <®_vddext_3v3>; status = "okay"; }; pca995btw: pca9955btw@7 { #address-cells = <1>; #size-cells = <0>; compatible = "nxp,pca9955btw"; reg = <0x07>; led0 { label = "green0"; linux,default-trigger = "none"; reg = <0>; }; led1 { label = "blue0"; linux,default-trigger = "none"; reg = <1>; }; led2 { label = "red0"; linux,default-trigger = "none"; reg = <2>; }; led3 { label = "green1"; linux,default-trigger = "none"; reg = <3>; }; led4 { label = "blue1"; linux,default-trigger = "none"; reg = <4>; }; led5 { label = "red1"; linux,default-trigger = "none"; reg = <5>; }; led6 { label = "green2"; linux,default-trigger = "none"; reg = <6>; }; led7 { label = "blue2"; linux,default-trigger = "none"; reg = <7>; }; led8 { label = "red2"; linux,default-trigger = "none"; reg = <8>; }; led9 { label = "green3"; linux,default-trigger = "none"; reg = <9>; }; led10 { label = "blue3"; linux,default-trigger = "none"; reg = <10>; }; led11 { label = "red3"; linux,default-trigger = "none"; reg = <11>; }; }; }; &uart3 { status = "disabled"; };