// SPDX-License-Identifier: GPL-2.0 OR X11 /* * Device Tree Include file for TQ-Systems MBa7 carrier board. * * Copyright (C) 2016 TQ-Systems GmbH * Author: Markus Niebel * Copyright (C) 2019 Bruno Thomsen * * Note: This file does not include nodes for all peripheral devices. * As device driver coverage increases additional nodes can be added. */ #include #include / { aliases { mmc0 = &usdhc3; mmc1 = &usdhc1; /delete-property/ mmc2; rtc0 = &ds1339; rtc1 = &snvs_rtc; }; beeper { compatible = "gpio-beeper"; gpios = <&pca9555 0 GPIO_ACTIVE_HIGH>; }; chosen { stdout-path = &uart6; }; gpio_buttons: gpio-keys { compatible = "gpio-keys"; /* * NOTE: These buttons are attached to a GPIO-expander. * Enabling wakeup-source, enables wakeup on all inputs. * If PE_GPIO[3..6] are used as inputs, they cause a * wakeup as well. */ button-0 { /* #SWITCH_A */ label = "S11"; linux,code = ; gpios = <&pca9555 13 GPIO_ACTIVE_LOW>; wakeup-source; }; button-1 { /* #SWITCH_B */ label = "S12"; linux,code = ; gpios = <&pca9555 14 GPIO_ACTIVE_LOW>; wakeup-source; }; button-2 { /* #SWITCH_C */ label = "S13"; linux,code = ; gpios = <&pca9555 15 GPIO_ACTIVE_LOW>; wakeup-source; }; }; gpio-leds { compatible = "gpio-leds"; led1 { label = "led1"; gpios = <&pca9555 8 GPIO_ACTIVE_HIGH>; linux,default-trigger = "default-on"; }; led2 { label = "led2"; gpios = <&pca9555 9 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; }; }; iio-hwmon { compatible = "iio-hwmon"; io-channels = <&adc1 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>, <&adc2 0>, <&adc2 1>, <&adc2 2>, <&adc2 3>; }; reg_sd1_vmmc: regulator-sd1-vmmc { compatible = "regulator-fixed"; regulator-name = "VCC3V3_SD1"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; }; reg_fec1_pwdn: regulator-fec1-pwdn { compatible = "regulator-fixed"; regulator-name = "PWDN_FEC1"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>; enable-active-high; }; reg_fec2_pwdn: regulator-fec2-pwdn { compatible = "regulator-fixed"; regulator-name = "PWDN_FEC2"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>; enable-active-high; }; reg_usb_otg1_vbus: regulator-usb-otg1-vbus { compatible = "regulator-fixed"; regulator-name = "VBUS_USBOTG1"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; enable-active-high; }; reg_usb_otg2_vbus: regulator-usb-otg2-vbus { compatible = "regulator-fixed"; regulator-name = "VBUS_USBOTG2"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>; enable-active-high; }; reg_mpcie_1v5: regulator-mpcie-1v5 { compatible = "regulator-fixed"; regulator-name = "VCC1V5_MPCIE"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>; gpio = <&pca9555 12 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-always-on; }; reg_mpcie_3v3: regulator-mpcie-3v3 { compatible = "regulator-fixed"; regulator-name = "VCC3V3_MPCIE"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&pca9555 10 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-always-on; }; reg_mba_12v0: regulator-mba-12v0 { compatible = "regulator-fixed"; regulator-name = "VCC12V0_MBA7"; regulator-min-microvolt = <12000000>; regulator-max-microvolt = <12000000>; gpio = <&pca9555 11 GPIO_ACTIVE_HIGH>; enable-active-high; }; reg_lvds_transmitter: regulator-lvds-transmitter { compatible = "regulator-fixed"; regulator-name = "#SHTDN_LVDS"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&pca9555 1 GPIO_ACTIVE_HIGH>; enable-active-high; }; reg_vref_1v8: regulator-vref-1v8 { compatible = "regulator-fixed"; regulator-name = "VCC1V8_REF"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; vin-supply = <&sw2_reg>; }; reg_audio_3v3: regulator-audio-3v3 { compatible = "regulator-fixed"; regulator-name = "VCC3V3_AUDIO"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; }; reg_vcc_3v3: regulator-vcc-3v3 { compatible = "regulator-fixed"; regulator-name = "VCC3V3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; }; sound { compatible = "fsl,imx-audio-tlv320aic32x4"; model = "imx-audio-tlv320aic32x4"; ssi-controller = <&sai1>; audio-codec = <&tlv320aic32x4>; audio-routing = "IN3_L", "Mic Jack", "Mic Jack", "Mic Bias", "IN1_L", "Line In Jack", "IN1_R", "Line In Jack", "Line Out Jack", "LOL", "Line Out Jack", "LOR"; }; }; &adc1 { vref-supply = <®_vref_1v8>; status = "okay"; }; &adc2 { vref-supply = <®_vref_1v8>; status = "okay"; }; &ecspi1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi1>, <&pinctrl_ecspi1_ss0>; cs-gpios = <&gpio4 0 GPIO_ACTIVE_LOW>, <&gpio4 1 GPIO_ACTIVE_LOW>, <&gpio4 2 GPIO_ACTIVE_LOW>, <&gpio4 19 GPIO_ACTIVE_LOW>; status = "okay"; }; &ecspi2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi2>; status = "okay"; }; &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet1>; phy-mode = "rgmii-id"; phy-supply = <®_fec1_pwdn>; phy-handle = <ðphy1_0>; fsl,magic-packet; status = "okay"; mdio { #address-cells = <1>; #size-cells = <0>; ethphy1_0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet1_phy>; ti,rx-internal-delay = ; ti,tx-internal-delay = ; ti,fifo-depth = ; ti,clk-output-sel = ; reset-gpios = <&gpio7 15 GPIO_ACTIVE_LOW>; reset-assert-us = <1000>; reset-deassert-us = <500>; }; }; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; uboot@0 { label = "U-Boot"; reg = <0x0 0xd0000>; }; env1@d0000 { label = "ENV1"; reg = <0xd0000 0x10000>; }; env2@e0000 { label = "ENV2"; reg = <0xe0000 0x10000>; }; dtb@f0000 { label = "DTB"; reg = <0xf0000 0x10000>; }; linux@100000 { label = "Linux"; reg = <0x100000 0x700000>; }; rootfs@800000 { label = "RootFS"; reg = <0x800000 0x3800000>; }; }; }; &flexcan1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flexcan1>; status = "okay"; }; &flexcan2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flexcan2>; status = "okay"; }; &i2c1 { lm75: temperature-sensor@49 { compatible = "national,lm75a"; reg = <0x49>; vs-supply = <®_vcc_3v3>; }; }; &i2c2 { clock-frequency = <100000>; pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; pinctrl-1 = <&pinctrl_i2c2_recovery>; scl-gpios = <&gpio4 10 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; sda-gpios = <&gpio4 11 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "okay"; tlv320aic32x4: audio-codec@18 { compatible = "ti,tlv320aic32x4"; reg = <0x18>; clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>; clock-names = "mclk"; ldoin-supply = <®_audio_3v3>; iov-supply = <®_audio_3v3>; }; pca9555: gpio-expander@20 { compatible = "nxp,pca9555"; reg = <0x20>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pca9555>; gpio-controller; #gpio-cells = <2>; interrupt-parent = <&gpio7>; interrupts = <12 IRQ_TYPE_EDGE_FALLING>; interrupt-controller; #interrupt-cells = <2>; vcc-supply = <®_vcc_3v3>; }; }; &i2c3 { clock-frequency = <100000>; pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c3>; pinctrl-1 = <&pinctrl_i2c3_recovery>; scl-gpios = <&gpio4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; sda-gpios = <&gpio4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "okay"; }; &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog_mba7_1>; pinctrl_ecspi1: ecspi1grp { fsl,pins = , , , , , ; }; pinctrl_ecspi1_ss0: ecspi1ss0grp { fsl,pins = < MX7D_PAD_ECSPI1_SS0__GPIO4_IO19 0x74 >; }; pinctrl_ecspi2: ecspi2grp { fsl,pins = , , , ; }; pinctrl_enet1: enet1grp { fsl,pins = , , , , , , , , , , , , , ; }; pinctrl_enet1_phy: enet1phygrp { fsl,pins = /* Reset: SION, 100kPU, SRE_FAST, DSE_X1 */ , /* INT/PWDN: SION, 100kPU, HYS, SRE_FAST, DSE_X1 */ ; }; pinctrl_flexcan1: flexcan1grp { fsl,pins = , ; }; pinctrl_flexcan2: flexcan2grp { fsl,pins = , ; }; pinctrl_hog_mba7_1: hogmba71grp { fsl,pins = /* Limitation: WDOG2_B / WDOG2_RESET not usable */ , , /* #BOOT_EN */ ; }; pinctrl_i2c2: i2c2grp { fsl,pins = , ; }; pinctrl_i2c2_recovery: i2c2recoverygrp { fsl,pins = , ; }; pinctrl_i2c3: i2c3grp { fsl,pins = , ; }; pinctrl_i2c3_recovery: i2c3recoverygrp { fsl,pins = , ; }; pinctrl_pca9555: pca95550grp { fsl,pins = ; }; pinctrl_sai1: sai1grp { fsl,pins = , , , , , , ; }; pinctrl_uart3: uart3grp { fsl,pins = , , , ; }; pinctrl_uart4: uart4grp { fsl,pins = , , , ; }; pinctrl_uart5: uart5grp { fsl,pins = , ; }; pinctrl_uart6: uart6grp { fsl,pins = , , , ; }; pinctrl_uart7: uart7grp { fsl,pins = , , , /* Limitation: RTS is not connected */ ; }; pinctrl_usdhc1_gpio: usdhc1_gpiogrp { fsl,pins = /* WP */ , /* CD */ , /* VSELECT */ ; }; pinctrl_usdhc1: usdhc1grp { fsl,pins = , , , , , ; }; pinctrl_usdhc1_100mhz: usdhc1_100mhzgrp { fsl,pins = , , , , , ; }; pinctrl_usdhc1_200mhz: usdhc1_200mhzgrp { fsl,pins = , , , , , ; }; }; &iomuxc_lpsr { pinctrl_pwm1: pwm1grp { fsl,pins = /* LCD_CONTRAST */ ; }; pinctrl_usbotg1: usbotg1grp { fsl,pins = , ; }; pinctrl_wdog1: wdog1grp { fsl,pins = ; }; }; &pwm1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm1>; status = "okay"; }; &sai1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai1>; assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>, <&clks IMX7D_SAI1_ROOT_CLK>; assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>; assigned-clock-rates = <0>, <36864000>; status = "okay"; }; &snvs_pwrkey { status = "okay"; }; &uart3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart3>; assigned-clocks = <&clks IMX7D_UART3_ROOT_SRC>; assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; status = "okay"; }; &uart4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart4>; assigned-clocks = <&clks IMX7D_UART4_ROOT_SRC>; assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; status = "okay"; }; &uart5 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart5>; assigned-clocks = <&clks IMX7D_UART5_ROOT_SRC>; assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; status = "okay"; }; &uart6 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart6>; assigned-clocks = <&clks IMX7D_UART6_ROOT_SRC>; assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; status = "okay"; }; &uart7 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart7>; assigned-clocks = <&clks IMX7D_UART7_ROOT_SRC>; assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; uart-has-rtscts; linux,rs485-enabled-at-boot-time; rs485-rts-active-low; rs485-rx-during-tx; status = "okay"; }; &usbh { disable-over-current; status = "okay"; }; &usbotg1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usbotg1>; vbus-supply = <®_usb_otg1_vbus>; srp-disable; hnp-disable; adp-disable; over-current-active-low; dr_mode = "otg"; status = "okay"; }; &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_usdhc1_gpio>; pinctrl-1 = <&pinctrl_usdhc1_100mhz>, <&pinctrl_usdhc1_gpio>; pinctrl-2 = <&pinctrl_usdhc1_200mhz>, <&pinctrl_usdhc1_gpio>; cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; wp-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; vmmc-supply = <®_sd1_vmmc>; bus-width = <4>; no-1-8-v; no-sdio; no-mmc; status = "okay"; }; &wdog1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_wdog1>; fsl,ext-reset-output; };