1791b02daSAnson Huang// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2791b02daSAnson Huang/* 3791b02daSAnson Huang * Copyright 2019 NXP 4791b02daSAnson Huang */ 5791b02daSAnson Huang 6bf587f89SLi Jun#include <dt-bindings/usb/pd.h> 7791b02daSAnson Huang#include "imx8mn.dtsi" 8791b02daSAnson Huang 9791b02daSAnson Huang/ { 10791b02daSAnson Huang chosen { 11791b02daSAnson Huang stdout-path = &uart2; 12791b02daSAnson Huang }; 13791b02daSAnson Huang 14791b02daSAnson Huang gpio-leds { 15791b02daSAnson Huang compatible = "gpio-leds"; 16791b02daSAnson Huang pinctrl-names = "default"; 17791b02daSAnson Huang pinctrl-0 = <&pinctrl_gpio_led>; 18791b02daSAnson Huang 19791b02daSAnson Huang status { 20791b02daSAnson Huang label = "yellow:status"; 21791b02daSAnson Huang gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; 22791b02daSAnson Huang default-state = "on"; 23791b02daSAnson Huang }; 24791b02daSAnson Huang }; 25791b02daSAnson Huang 26e8abdd58SFabio Estevam hdmi-connector { 27e8abdd58SFabio Estevam compatible = "hdmi-connector"; 28e8abdd58SFabio Estevam label = "hdmi"; 29e8abdd58SFabio Estevam type = "a"; 30e8abdd58SFabio Estevam 31e8abdd58SFabio Estevam port { 32e8abdd58SFabio Estevam hdmi_connector_in: endpoint { 33e8abdd58SFabio Estevam remote-endpoint = <&adv7533_out>; 34e8abdd58SFabio Estevam }; 35e8abdd58SFabio Estevam }; 36e8abdd58SFabio Estevam }; 37e8abdd58SFabio Estevam 38c16b4571SAnson Huang memory@40000000 { 39c16b4571SAnson Huang device_type = "memory"; 40c16b4571SAnson Huang reg = <0x0 0x40000000 0 0x80000000>; 41c16b4571SAnson Huang }; 42c16b4571SAnson Huang 43791b02daSAnson Huang reg_usdhc2_vmmc: regulator-usdhc2 { 44791b02daSAnson Huang compatible = "regulator-fixed"; 45791b02daSAnson Huang pinctrl-names = "default"; 46791b02daSAnson Huang pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>; 47791b02daSAnson Huang regulator-name = "VSD_3V3"; 48791b02daSAnson Huang regulator-min-microvolt = <3300000>; 49791b02daSAnson Huang regulator-max-microvolt = <3300000>; 50791b02daSAnson Huang gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; 51cbc44b22SPeng Fan off-on-delay-us = <12000>; 52791b02daSAnson Huang enable-active-high; 53791b02daSAnson Huang }; 5429939851SJoakim Zhang 5529939851SJoakim Zhang ir-receiver { 5629939851SJoakim Zhang compatible = "gpio-ir-receiver"; 5729939851SJoakim Zhang gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; 5829939851SJoakim Zhang pinctrl-names = "default"; 5929939851SJoakim Zhang pinctrl-0 = <&pinctrl_ir>; 6029939851SJoakim Zhang linux,autosuspend-period = <125>; 6129939851SJoakim Zhang }; 62b5f2ace2SShengjiu Wang 6307ce797dSShengjiu Wang audio_codec_bt_sco: audio-codec-bt-sco { 6407ce797dSShengjiu Wang compatible = "linux,bt-sco"; 6507ce797dSShengjiu Wang #sound-dai-cells = <1>; 6607ce797dSShengjiu Wang }; 6707ce797dSShengjiu Wang 68b5f2ace2SShengjiu Wang wm8524: audio-codec { 69b5f2ace2SShengjiu Wang #sound-dai-cells = <0>; 70b5f2ace2SShengjiu Wang compatible = "wlf,wm8524"; 71b5f2ace2SShengjiu Wang pinctrl-names = "default"; 72b5f2ace2SShengjiu Wang pinctrl-0 = <&pinctrl_gpio_wlf>; 73b5f2ace2SShengjiu Wang wlf,mute-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>; 74b5f2ace2SShengjiu Wang clocks = <&clk IMX8MN_CLK_SAI3_ROOT>; 75b5f2ace2SShengjiu Wang clock-names = "mclk"; 76b5f2ace2SShengjiu Wang }; 77b5f2ace2SShengjiu Wang 7807ce797dSShengjiu Wang sound-bt-sco { 7907ce797dSShengjiu Wang compatible = "simple-audio-card"; 8007ce797dSShengjiu Wang simple-audio-card,name = "bt-sco-audio"; 8107ce797dSShengjiu Wang simple-audio-card,format = "dsp_a"; 8207ce797dSShengjiu Wang simple-audio-card,bitclock-inversion; 8307ce797dSShengjiu Wang simple-audio-card,frame-master = <&btcpu>; 8407ce797dSShengjiu Wang simple-audio-card,bitclock-master = <&btcpu>; 8507ce797dSShengjiu Wang 8607ce797dSShengjiu Wang btcpu: simple-audio-card,cpu { 8707ce797dSShengjiu Wang sound-dai = <&sai2>; 8807ce797dSShengjiu Wang dai-tdm-slot-num = <2>; 8907ce797dSShengjiu Wang dai-tdm-slot-width = <16>; 9007ce797dSShengjiu Wang }; 9107ce797dSShengjiu Wang 9207ce797dSShengjiu Wang simple-audio-card,codec { 9307ce797dSShengjiu Wang sound-dai = <&audio_codec_bt_sco 1>; 9407ce797dSShengjiu Wang }; 9507ce797dSShengjiu Wang }; 9607ce797dSShengjiu Wang 97b5f2ace2SShengjiu Wang sound-wm8524 { 98b5f2ace2SShengjiu Wang compatible = "fsl,imx-audio-wm8524"; 99b5f2ace2SShengjiu Wang model = "wm8524-audio"; 100b5f2ace2SShengjiu Wang audio-cpu = <&sai3>; 101b5f2ace2SShengjiu Wang audio-codec = <&wm8524>; 102b5f2ace2SShengjiu Wang audio-asrc = <&easrc>; 103b5f2ace2SShengjiu Wang audio-routing = 104b5f2ace2SShengjiu Wang "Line Out Jack", "LINEVOUTL", 105b5f2ace2SShengjiu Wang "Line Out Jack", "LINEVOUTR"; 106b5f2ace2SShengjiu Wang }; 1074c36eb10SShengjiu Wang 1084c36eb10SShengjiu Wang sound-spdif { 1094c36eb10SShengjiu Wang compatible = "fsl,imx-audio-spdif"; 1104c36eb10SShengjiu Wang model = "imx-spdif"; 1114c36eb10SShengjiu Wang spdif-controller = <&spdif1>; 1124c36eb10SShengjiu Wang spdif-out; 1134c36eb10SShengjiu Wang spdif-in; 1144c36eb10SShengjiu Wang }; 115b5f2ace2SShengjiu Wang}; 116b5f2ace2SShengjiu Wang 117b5f2ace2SShengjiu Wang&easrc { 118b5f2ace2SShengjiu Wang fsl,asrc-rate = <48000>; 119b5f2ace2SShengjiu Wang status = "okay"; 120791b02daSAnson Huang}; 121791b02daSAnson Huang 122791b02daSAnson Huang&fec1 { 123791b02daSAnson Huang pinctrl-names = "default"; 124791b02daSAnson Huang pinctrl-0 = <&pinctrl_fec1>; 125791b02daSAnson Huang phy-mode = "rgmii-id"; 126791b02daSAnson Huang phy-handle = <ðphy0>; 127791b02daSAnson Huang fsl,magic-packet; 128791b02daSAnson Huang status = "okay"; 129791b02daSAnson Huang 130791b02daSAnson Huang mdio { 131791b02daSAnson Huang #address-cells = <1>; 132791b02daSAnson Huang #size-cells = <0>; 133791b02daSAnson Huang 134791b02daSAnson Huang ethphy0: ethernet-phy@0 { 135791b02daSAnson Huang compatible = "ethernet-phy-ieee802.3-c22"; 136791b02daSAnson Huang reg = <0>; 1376133d842SJoakim Zhang reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; 1386133d842SJoakim Zhang reset-assert-us = <10000>; 13920b6559eSJoakim Zhang qca,disable-smarteee; 14009e5ccddSJoakim Zhang vddio-supply = <&vddio>; 14109e5ccddSJoakim Zhang 14209e5ccddSJoakim Zhang vddio: vddio-regulator { 14309e5ccddSJoakim Zhang regulator-min-microvolt = <1800000>; 14409e5ccddSJoakim Zhang regulator-max-microvolt = <1800000>; 14509e5ccddSJoakim Zhang }; 146791b02daSAnson Huang }; 147791b02daSAnson Huang }; 148791b02daSAnson Huang}; 149791b02daSAnson Huang 150579df428SMichael Walle&flexspi { 151579df428SMichael Walle pinctrl-names = "default"; 152579df428SMichael Walle pinctrl-0 = <&pinctrl_flexspi>; 153579df428SMichael Walle status = "okay"; 154579df428SMichael Walle 155579df428SMichael Walle flash0: flash@0 { 156579df428SMichael Walle compatible = "jedec,spi-nor"; 157579df428SMichael Walle reg = <0>; 158579df428SMichael Walle #address-cells = <1>; 159579df428SMichael Walle #size-cells = <1>; 160579df428SMichael Walle spi-max-frequency = <166000000>; 161579df428SMichael Walle spi-tx-bus-width = <4>; 162579df428SMichael Walle spi-rx-bus-width = <4>; 163579df428SMichael Walle }; 164579df428SMichael Walle}; 165579df428SMichael Walle 166791b02daSAnson Huang&i2c1 { 167791b02daSAnson Huang clock-frequency = <400000>; 168791b02daSAnson Huang pinctrl-names = "default"; 169791b02daSAnson Huang pinctrl-0 = <&pinctrl_i2c1>; 170791b02daSAnson Huang status = "okay"; 171791b02daSAnson Huang}; 172791b02daSAnson Huang 173bf587f89SLi Jun&i2c2 { 174bf587f89SLi Jun clock-frequency = <400000>; 175c0c4c456SPeng Fan pinctrl-names = "default", "gpio"; 176bf587f89SLi Jun pinctrl-0 = <&pinctrl_i2c2>; 177c0c4c456SPeng Fan pinctrl-1 = <&pinctrl_i2c2_gpio>; 1782b1d5d05SFabio Estevam scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 1792b1d5d05SFabio Estevam sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 180bf587f89SLi Jun status = "okay"; 181bf587f89SLi Jun 182e8abdd58SFabio Estevam hdmi@3d { 183e8abdd58SFabio Estevam compatible = "adi,adv7535"; 184e8abdd58SFabio Estevam reg = <0x3d>, <0x3c>, <0x3e>, <0x3f>; 185e8abdd58SFabio Estevam reg-names = "main", "cec", "edid", "packet"; 186e8abdd58SFabio Estevam adi,dsi-lanes = <4>; 187e8abdd58SFabio Estevam 188e8abdd58SFabio Estevam adi,input-depth = <8>; 189e8abdd58SFabio Estevam adi,input-colorspace = "rgb"; 190e8abdd58SFabio Estevam adi,input-clock = "1x"; 191e8abdd58SFabio Estevam adi,input-style = <1>; 192e8abdd58SFabio Estevam adi,input-justification = "evenly"; 193e8abdd58SFabio Estevam 194e8abdd58SFabio Estevam ports { 195e8abdd58SFabio Estevam #address-cells = <1>; 196e8abdd58SFabio Estevam #size-cells = <0>; 197e8abdd58SFabio Estevam 198e8abdd58SFabio Estevam port@0 { 199e8abdd58SFabio Estevam reg = <0>; 200e8abdd58SFabio Estevam 201e8abdd58SFabio Estevam adv7533_in: endpoint { 202e8abdd58SFabio Estevam remote-endpoint = <&dsi_out>; 203e8abdd58SFabio Estevam }; 204e8abdd58SFabio Estevam }; 205e8abdd58SFabio Estevam 206e8abdd58SFabio Estevam port@1 { 207e8abdd58SFabio Estevam reg = <1>; 208e8abdd58SFabio Estevam 209e8abdd58SFabio Estevam adv7533_out: endpoint { 210e8abdd58SFabio Estevam remote-endpoint = <&hdmi_connector_in>; 211e8abdd58SFabio Estevam }; 212e8abdd58SFabio Estevam }; 213e8abdd58SFabio Estevam 214e8abdd58SFabio Estevam }; 215e8abdd58SFabio Estevam }; 216e8abdd58SFabio Estevam 217bf587f89SLi Jun ptn5110: tcpc@50 { 218bf587f89SLi Jun compatible = "nxp,ptn5110"; 219bf587f89SLi Jun pinctrl-names = "default"; 220bf587f89SLi Jun pinctrl-0 = <&pinctrl_typec1>; 221bf587f89SLi Jun reg = <0x50>; 222bf587f89SLi Jun interrupt-parent = <&gpio2>; 223bf587f89SLi Jun interrupts = <11 IRQ_TYPE_LEVEL_LOW>; 224bf587f89SLi Jun status = "okay"; 225bf587f89SLi Jun 226bf587f89SLi Jun port { 227bf587f89SLi Jun typec1_dr_sw: endpoint { 228bf587f89SLi Jun remote-endpoint = <&usb1_drd_sw>; 229bf587f89SLi Jun }; 230bf587f89SLi Jun }; 231bf587f89SLi Jun 232bf587f89SLi Jun typec1_con: connector { 233bf587f89SLi Jun compatible = "usb-c-connector"; 234bf587f89SLi Jun label = "USB-C"; 235bf587f89SLi Jun power-role = "dual"; 236bf587f89SLi Jun data-role = "dual"; 237bf587f89SLi Jun try-power-role = "sink"; 238bf587f89SLi Jun source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; 239bf587f89SLi Jun sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM) 240bf587f89SLi Jun PDO_VAR(5000, 20000, 3000)>; 241bf587f89SLi Jun op-sink-microwatt = <15000000>; 242bf587f89SLi Jun self-powered; 243bf587f89SLi Jun }; 244bf587f89SLi Jun }; 245bf587f89SLi Jun}; 246bf587f89SLi Jun 247d3f46dd4SAnson Huang&i2c3 { 248d3f46dd4SAnson Huang clock-frequency = <400000>; 249c0c4c456SPeng Fan pinctrl-names = "default", "gpio"; 250d3f46dd4SAnson Huang pinctrl-0 = <&pinctrl_i2c3>; 251c0c4c456SPeng Fan pinctrl-1 = <&pinctrl_i2c3_gpio>; 252c0c4c456SPeng Fan scl-gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>; 253c0c4c456SPeng Fan sda-gpios = <&gpio5 19 GPIO_ACTIVE_HIGH>; 254d3f46dd4SAnson Huang status = "okay"; 255ded9e59bSAnson Huang 256ded9e59bSAnson Huang pca6416: gpio@20 { 257ded9e59bSAnson Huang compatible = "ti,tca6416"; 258ded9e59bSAnson Huang reg = <0x20>; 259ded9e59bSAnson Huang gpio-controller; 260ded9e59bSAnson Huang #gpio-cells = <2>; 261ded9e59bSAnson Huang }; 262*5aafda60SFabio Estevam 263*5aafda60SFabio Estevam camera@3c { 264*5aafda60SFabio Estevam compatible = "ovti,ov5640"; 265*5aafda60SFabio Estevam reg = <0x3c>; 266*5aafda60SFabio Estevam pinctrl-names = "default"; 267*5aafda60SFabio Estevam pinctrl-0 = <&pinctrl_camera>; 268*5aafda60SFabio Estevam clocks = <&clk IMX8MN_CLK_CLKO1>; 269*5aafda60SFabio Estevam clock-names = "xclk"; 270*5aafda60SFabio Estevam assigned-clocks = <&clk IMX8MN_CLK_CLKO1>; 271*5aafda60SFabio Estevam assigned-clock-parents = <&clk IMX8MN_CLK_24M>; 272*5aafda60SFabio Estevam assigned-clock-rates = <24000000>; 273*5aafda60SFabio Estevam powerdown-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; 274*5aafda60SFabio Estevam reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; 275*5aafda60SFabio Estevam 276*5aafda60SFabio Estevam port { 277*5aafda60SFabio Estevam ov5640_to_mipi_csi2: endpoint { 278*5aafda60SFabio Estevam remote-endpoint = <&imx8mn_mipi_csi_in>; 279*5aafda60SFabio Estevam clock-lanes = <0>; 280*5aafda60SFabio Estevam data-lanes = <1 2>; 281*5aafda60SFabio Estevam }; 282*5aafda60SFabio Estevam }; 283*5aafda60SFabio Estevam }; 284*5aafda60SFabio Estevam}; 285*5aafda60SFabio Estevam 286*5aafda60SFabio Estevam&isi { 287*5aafda60SFabio Estevam status = "okay"; 288*5aafda60SFabio Estevam}; 289*5aafda60SFabio Estevam 290*5aafda60SFabio Estevam&mipi_csi { 291*5aafda60SFabio Estevam status = "okay"; 292*5aafda60SFabio Estevam 293*5aafda60SFabio Estevam ports { 294*5aafda60SFabio Estevam port@0 { 295*5aafda60SFabio Estevam imx8mn_mipi_csi_in: endpoint { 296*5aafda60SFabio Estevam remote-endpoint = <&ov5640_to_mipi_csi2>; 297*5aafda60SFabio Estevam data-lanes = <1 2>; 298*5aafda60SFabio Estevam }; 299*5aafda60SFabio Estevam }; 300*5aafda60SFabio Estevam }; 301d3f46dd4SAnson Huang}; 302d3f46dd4SAnson Huang 303e8abdd58SFabio Estevam&lcdif { 304e8abdd58SFabio Estevam status = "okay"; 305e8abdd58SFabio Estevam}; 306e8abdd58SFabio Estevam 307e8abdd58SFabio Estevam&mipi_dsi { 308e8abdd58SFabio Estevam samsung,esc-clock-frequency = <10000000>; 309e8abdd58SFabio Estevam status = "okay"; 310e8abdd58SFabio Estevam 311e8abdd58SFabio Estevam ports { 312e8abdd58SFabio Estevam port@1 { 313e8abdd58SFabio Estevam reg = <1>; 314e8abdd58SFabio Estevam 315e8abdd58SFabio Estevam dsi_out: endpoint { 316e8abdd58SFabio Estevam remote-endpoint = <&adv7533_in>; 317e8abdd58SFabio Estevam data-lanes = <1 2 3 4>; 318e8abdd58SFabio Estevam }; 319e8abdd58SFabio Estevam }; 320e8abdd58SFabio Estevam }; 321e8abdd58SFabio Estevam}; 322e8abdd58SFabio Estevam 32307ce797dSShengjiu Wang&sai2 { 32407ce797dSShengjiu Wang #sound-dai-cells = <0>; 32507ce797dSShengjiu Wang pinctrl-names = "default"; 32607ce797dSShengjiu Wang pinctrl-0 = <&pinctrl_sai2>; 32707ce797dSShengjiu Wang assigned-clocks = <&clk IMX8MN_CLK_SAI2>; 32807ce797dSShengjiu Wang assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; 32907ce797dSShengjiu Wang assigned-clock-rates = <24576000>; 33007ce797dSShengjiu Wang status = "okay"; 33107ce797dSShengjiu Wang}; 33207ce797dSShengjiu Wang 333b5f2ace2SShengjiu Wang&sai3 { 334b5f2ace2SShengjiu Wang pinctrl-names = "default"; 335b5f2ace2SShengjiu Wang pinctrl-0 = <&pinctrl_sai3>; 336b5f2ace2SShengjiu Wang assigned-clocks = <&clk IMX8MN_CLK_SAI3>; 337b5f2ace2SShengjiu Wang assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; 338b5f2ace2SShengjiu Wang assigned-clock-rates = <24576000>; 339b5f2ace2SShengjiu Wang fsl,sai-mclk-direction-output; 340b5f2ace2SShengjiu Wang status = "okay"; 341b5f2ace2SShengjiu Wang}; 342b5f2ace2SShengjiu Wang 343791b02daSAnson Huang&snvs_pwrkey { 344791b02daSAnson Huang status = "okay"; 345791b02daSAnson Huang}; 346791b02daSAnson Huang 3474c36eb10SShengjiu Wang&spdif1 { 3484c36eb10SShengjiu Wang pinctrl-names = "default"; 3494c36eb10SShengjiu Wang pinctrl-0 = <&pinctrl_spdif1>; 3504c36eb10SShengjiu Wang assigned-clocks = <&clk IMX8MN_CLK_SPDIF1>; 3514c36eb10SShengjiu Wang assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; 3524c36eb10SShengjiu Wang assigned-clock-rates = <24576000>; 3534c36eb10SShengjiu Wang status = "okay"; 3544c36eb10SShengjiu Wang}; 3554c36eb10SShengjiu Wang 356a8ea275dSPeng Fan&uart1 { /* BT */ 357a8ea275dSPeng Fan pinctrl-names = "default"; 358a8ea275dSPeng Fan pinctrl-0 = <&pinctrl_uart1>; 359a8ea275dSPeng Fan assigned-clocks = <&clk IMX8MN_CLK_UART1>; 360a8ea275dSPeng Fan assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_80M>; 361a8ea275dSPeng Fan uart-has-rtscts; 362a8ea275dSPeng Fan status = "okay"; 363a8ea275dSPeng Fan}; 364a8ea275dSPeng Fan 365791b02daSAnson Huang&uart2 { /* console */ 366791b02daSAnson Huang pinctrl-names = "default"; 367791b02daSAnson Huang pinctrl-0 = <&pinctrl_uart2>; 368791b02daSAnson Huang status = "okay"; 369791b02daSAnson Huang}; 370791b02daSAnson Huang 371cc545760SFabio Estevam&uart3 { 372cc545760SFabio Estevam pinctrl-names = "default"; 373cc545760SFabio Estevam pinctrl-0 = <&pinctrl_uart3>; 374cc545760SFabio Estevam assigned-clocks = <&clk IMX8MN_CLK_UART3>; 375cc545760SFabio Estevam assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_80M>; 376cc545760SFabio Estevam uart-has-rtscts; 377cc545760SFabio Estevam status = "okay"; 378cc545760SFabio Estevam}; 379cc545760SFabio Estevam 3803cad403fSLi Jun&usbphynop1 { 3813cad403fSLi Jun wakeup-source; 3823cad403fSLi Jun}; 3833cad403fSLi Jun 384bf587f89SLi Jun&usbotg1 { 385bf587f89SLi Jun dr_mode = "otg"; 386bf587f89SLi Jun hnp-disable; 387bf587f89SLi Jun srp-disable; 388bf587f89SLi Jun adp-disable; 389bf587f89SLi Jun usb-role-switch; 39021cc1f22SLi Jun disable-over-current; 39114e292fcSPeter Chen samsung,picophy-pre-emp-curr-control = <3>; 39214e292fcSPeter Chen samsung,picophy-dc-vol-level-adjust = <7>; 393bf587f89SLi Jun status = "okay"; 394bf587f89SLi Jun 395bf587f89SLi Jun port { 396bf587f89SLi Jun usb1_drd_sw: endpoint { 397bf587f89SLi Jun remote-endpoint = <&typec1_dr_sw>; 398bf587f89SLi Jun }; 399bf587f89SLi Jun }; 400bf587f89SLi Jun}; 401bf587f89SLi Jun 402791b02daSAnson Huang&usdhc2 { 403791b02daSAnson Huang assigned-clocks = <&clk IMX8MN_CLK_USDHC2>; 404791b02daSAnson Huang assigned-clock-rates = <200000000>; 405791b02daSAnson Huang pinctrl-names = "default", "state_100mhz", "state_200mhz"; 406791b02daSAnson Huang pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; 407791b02daSAnson Huang pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; 408791b02daSAnson Huang pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; 409791b02daSAnson Huang cd-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 410791b02daSAnson Huang bus-width = <4>; 411791b02daSAnson Huang vmmc-supply = <®_usdhc2_vmmc>; 412791b02daSAnson Huang status = "okay"; 413791b02daSAnson Huang}; 414791b02daSAnson Huang 415791b02daSAnson Huang&usdhc3 { 416791b02daSAnson Huang assigned-clocks = <&clk IMX8MN_CLK_USDHC3_ROOT>; 417791b02daSAnson Huang assigned-clock-rates = <400000000>; 418791b02daSAnson Huang pinctrl-names = "default", "state_100mhz", "state_200mhz"; 419791b02daSAnson Huang pinctrl-0 = <&pinctrl_usdhc3>; 420791b02daSAnson Huang pinctrl-1 = <&pinctrl_usdhc3_100mhz>; 421791b02daSAnson Huang pinctrl-2 = <&pinctrl_usdhc3_200mhz>; 422791b02daSAnson Huang bus-width = <8>; 423791b02daSAnson Huang non-removable; 424791b02daSAnson Huang status = "okay"; 425791b02daSAnson Huang}; 426791b02daSAnson Huang 427791b02daSAnson Huang&wdog1 { 428791b02daSAnson Huang pinctrl-names = "default"; 429791b02daSAnson Huang pinctrl-0 = <&pinctrl_wdog>; 430791b02daSAnson Huang fsl,ext-reset-output; 431791b02daSAnson Huang status = "okay"; 432791b02daSAnson Huang}; 433791b02daSAnson Huang 434791b02daSAnson Huang&iomuxc { 435*5aafda60SFabio Estevam pinctrl_camera: cameragrp { 436*5aafda60SFabio Estevam fsl,pins = < 437*5aafda60SFabio Estevam MX8MN_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x19 438*5aafda60SFabio Estevam MX8MN_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x19 439*5aafda60SFabio Estevam MX8MN_IOMUXC_GPIO1_IO14_CCMSRCGPCMIX_CLKO1 0x59 440*5aafda60SFabio Estevam >; 441*5aafda60SFabio Estevam }; 442*5aafda60SFabio Estevam 443791b02daSAnson Huang pinctrl_fec1: fec1grp { 444791b02daSAnson Huang fsl,pins = < 445791b02daSAnson Huang MX8MN_IOMUXC_ENET_MDC_ENET1_MDC 0x3 446791b02daSAnson Huang MX8MN_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3 447791b02daSAnson Huang MX8MN_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f 448791b02daSAnson Huang MX8MN_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f 449791b02daSAnson Huang MX8MN_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f 450791b02daSAnson Huang MX8MN_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f 451791b02daSAnson Huang MX8MN_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91 452791b02daSAnson Huang MX8MN_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91 453791b02daSAnson Huang MX8MN_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91 454791b02daSAnson Huang MX8MN_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91 455791b02daSAnson Huang MX8MN_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f 456791b02daSAnson Huang MX8MN_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91 457791b02daSAnson Huang MX8MN_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91 458791b02daSAnson Huang MX8MN_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f 459791b02daSAnson Huang MX8MN_IOMUXC_SAI2_RXC_GPIO4_IO22 0x19 460791b02daSAnson Huang >; 461791b02daSAnson Huang }; 462791b02daSAnson Huang 463579df428SMichael Walle pinctrl_flexspi: flexspigrp { 464579df428SMichael Walle fsl,pins = < 465579df428SMichael Walle MX8MN_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x1c2 466579df428SMichael Walle MX8MN_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B 0x82 467579df428SMichael Walle MX8MN_IOMUXC_NAND_DATA00_QSPI_A_DATA0 0x82 468579df428SMichael Walle MX8MN_IOMUXC_NAND_DATA01_QSPI_A_DATA1 0x82 469579df428SMichael Walle MX8MN_IOMUXC_NAND_DATA02_QSPI_A_DATA2 0x82 470579df428SMichael Walle MX8MN_IOMUXC_NAND_DATA03_QSPI_A_DATA3 0x82 471579df428SMichael Walle >; 472579df428SMichael Walle }; 473579df428SMichael Walle 474791b02daSAnson Huang pinctrl_gpio_led: gpioledgrp { 475791b02daSAnson Huang fsl,pins = < 476791b02daSAnson Huang MX8MN_IOMUXC_NAND_READY_B_GPIO3_IO16 0x19 477791b02daSAnson Huang >; 478791b02daSAnson Huang }; 479791b02daSAnson Huang 480b5f2ace2SShengjiu Wang pinctrl_gpio_wlf: gpiowlfgrp { 481b5f2ace2SShengjiu Wang fsl,pins = < 482b5f2ace2SShengjiu Wang MX8MN_IOMUXC_I2C4_SDA_GPIO5_IO21 0xd6 483b5f2ace2SShengjiu Wang >; 484b5f2ace2SShengjiu Wang }; 485b5f2ace2SShengjiu Wang 48629939851SJoakim Zhang pinctrl_ir: irgrp { 48729939851SJoakim Zhang fsl,pins = < 48829939851SJoakim Zhang MX8MN_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x4f 48929939851SJoakim Zhang >; 49029939851SJoakim Zhang }; 49129939851SJoakim Zhang 492791b02daSAnson Huang pinctrl_i2c1: i2c1grp { 493791b02daSAnson Huang fsl,pins = < 494791b02daSAnson Huang MX8MN_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3 495791b02daSAnson Huang MX8MN_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3 496791b02daSAnson Huang >; 497791b02daSAnson Huang }; 498791b02daSAnson Huang 499bf587f89SLi Jun pinctrl_i2c2: i2c2grp { 500bf587f89SLi Jun fsl,pins = < 501bf587f89SLi Jun MX8MN_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3 502bf587f89SLi Jun MX8MN_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3 503bf587f89SLi Jun >; 504bf587f89SLi Jun }; 505bf587f89SLi Jun 506788fd97bSPeng Fan pinctrl_i2c2_gpio: i2c2gpiogrp { 507c0c4c456SPeng Fan fsl,pins = < 508c0c4c456SPeng Fan MX8MN_IOMUXC_I2C2_SCL_GPIO5_IO16 0x1c3 509c0c4c456SPeng Fan MX8MN_IOMUXC_I2C2_SDA_GPIO5_IO17 0x1c3 510c0c4c456SPeng Fan >; 511c0c4c456SPeng Fan }; 512c0c4c456SPeng Fan 513d3f46dd4SAnson Huang pinctrl_i2c3: i2c3grp { 514d3f46dd4SAnson Huang fsl,pins = < 515d3f46dd4SAnson Huang MX8MN_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3 516d3f46dd4SAnson Huang MX8MN_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3 517d3f46dd4SAnson Huang >; 518d3f46dd4SAnson Huang }; 519d3f46dd4SAnson Huang 520788fd97bSPeng Fan pinctrl_i2c3_gpio: i2c3gpiogrp { 521c0c4c456SPeng Fan fsl,pins = < 522c0c4c456SPeng Fan MX8MN_IOMUXC_I2C3_SCL_GPIO5_IO18 0x1c3 523c0c4c456SPeng Fan MX8MN_IOMUXC_I2C3_SDA_GPIO5_IO19 0x1c3 524c0c4c456SPeng Fan >; 525c0c4c456SPeng Fan }; 526c0c4c456SPeng Fan 527a0985471SKrzysztof Kozlowski pinctrl_pmic: pmicirqgrp { 5286386156eSRobin Gong fsl,pins = < 5294153f781SKrzysztof Kozlowski MX8MN_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x141 5306386156eSRobin Gong >; 5316386156eSRobin Gong }; 5326386156eSRobin Gong 533a0985471SKrzysztof Kozlowski pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { 534791b02daSAnson Huang fsl,pins = < 535791b02daSAnson Huang MX8MN_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41 536791b02daSAnson Huang >; 537791b02daSAnson Huang }; 538791b02daSAnson Huang 53907ce797dSShengjiu Wang pinctrl_sai2: sai2grp { 54007ce797dSShengjiu Wang fsl,pins = < 54107ce797dSShengjiu Wang MX8MN_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6 54207ce797dSShengjiu Wang MX8MN_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6 54307ce797dSShengjiu Wang MX8MN_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6 54407ce797dSShengjiu Wang MX8MN_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0 0xd6 54507ce797dSShengjiu Wang >; 54607ce797dSShengjiu Wang }; 54707ce797dSShengjiu Wang 548b5f2ace2SShengjiu Wang pinctrl_sai3: sai3grp { 549b5f2ace2SShengjiu Wang fsl,pins = < 550b5f2ace2SShengjiu Wang MX8MN_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 551b5f2ace2SShengjiu Wang MX8MN_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6 552b5f2ace2SShengjiu Wang MX8MN_IOMUXC_SAI3_MCLK_SAI3_MCLK 0xd6 553b5f2ace2SShengjiu Wang MX8MN_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6 554b5f2ace2SShengjiu Wang >; 555b5f2ace2SShengjiu Wang }; 556b5f2ace2SShengjiu Wang 5574c36eb10SShengjiu Wang pinctrl_spdif1: spdif1grp { 5584c36eb10SShengjiu Wang fsl,pins = < 5594c36eb10SShengjiu Wang MX8MN_IOMUXC_SPDIF_TX_SPDIF1_OUT 0xd6 5604c36eb10SShengjiu Wang MX8MN_IOMUXC_SPDIF_RX_SPDIF1_IN 0xd6 5614c36eb10SShengjiu Wang >; 5624c36eb10SShengjiu Wang }; 5634c36eb10SShengjiu Wang 564bf587f89SLi Jun pinctrl_typec1: typec1grp { 565bf587f89SLi Jun fsl,pins = < 566bf587f89SLi Jun MX8MN_IOMUXC_SD1_STROBE_GPIO2_IO11 0x159 567bf587f89SLi Jun >; 568bf587f89SLi Jun }; 569bf587f89SLi Jun 570a8ea275dSPeng Fan pinctrl_uart1: uart1grp { 571a8ea275dSPeng Fan fsl,pins = < 572a8ea275dSPeng Fan MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 573a8ea275dSPeng Fan MX8MN_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 574a8ea275dSPeng Fan MX8MN_IOMUXC_UART3_RXD_UART1_DCE_CTS_B 0x140 575a8ea275dSPeng Fan MX8MN_IOMUXC_UART3_TXD_UART1_DCE_RTS_B 0x140 576a8ea275dSPeng Fan >; 577a8ea275dSPeng Fan }; 578a8ea275dSPeng Fan 579791b02daSAnson Huang pinctrl_uart2: uart2grp { 580791b02daSAnson Huang fsl,pins = < 581791b02daSAnson Huang MX8MN_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140 582791b02daSAnson Huang MX8MN_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140 583791b02daSAnson Huang >; 584791b02daSAnson Huang }; 585791b02daSAnson Huang 586cc545760SFabio Estevam pinctrl_uart3: uart3grp { 587cc545760SFabio Estevam fsl,pins = < 588cc545760SFabio Estevam MX8MN_IOMUXC_ECSPI1_SCLK_UART3_DCE_RX 0x140 589cc545760SFabio Estevam MX8MN_IOMUXC_ECSPI1_MOSI_UART3_DCE_TX 0x140 590cc545760SFabio Estevam MX8MN_IOMUXC_ECSPI1_SS0_UART3_DCE_RTS_B 0x140 591cc545760SFabio Estevam MX8MN_IOMUXC_ECSPI1_MISO_UART3_DCE_CTS_B 0x140 592cc545760SFabio Estevam >; 593cc545760SFabio Estevam }; 594cc545760SFabio Estevam 595a0985471SKrzysztof Kozlowski pinctrl_usdhc2_gpio: usdhc2gpiogrp { 596791b02daSAnson Huang fsl,pins = < 597791b02daSAnson Huang MX8MN_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x1c4 598791b02daSAnson Huang >; 599791b02daSAnson Huang }; 600791b02daSAnson Huang 601791b02daSAnson Huang pinctrl_usdhc2: usdhc2grp { 602791b02daSAnson Huang fsl,pins = < 603791b02daSAnson Huang MX8MN_IOMUXC_SD2_CLK_USDHC2_CLK 0x190 604791b02daSAnson Huang MX8MN_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0 605791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0 606791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0 607791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0 608791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0 609791b02daSAnson Huang MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0 610791b02daSAnson Huang >; 611791b02daSAnson Huang }; 612791b02daSAnson Huang 613a0985471SKrzysztof Kozlowski pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { 614791b02daSAnson Huang fsl,pins = < 615791b02daSAnson Huang MX8MN_IOMUXC_SD2_CLK_USDHC2_CLK 0x194 616791b02daSAnson Huang MX8MN_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4 617791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4 618791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4 619791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4 620791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4 621791b02daSAnson Huang MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0 622791b02daSAnson Huang >; 623791b02daSAnson Huang }; 624791b02daSAnson Huang 625a0985471SKrzysztof Kozlowski pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { 626791b02daSAnson Huang fsl,pins = < 627791b02daSAnson Huang MX8MN_IOMUXC_SD2_CLK_USDHC2_CLK 0x196 628791b02daSAnson Huang MX8MN_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6 629791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6 630791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6 631791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6 632791b02daSAnson Huang MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6 633791b02daSAnson Huang MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0 634791b02daSAnson Huang >; 635791b02daSAnson Huang }; 636791b02daSAnson Huang 637791b02daSAnson Huang pinctrl_usdhc3: usdhc3grp { 638791b02daSAnson Huang fsl,pins = < 639791b02daSAnson Huang MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x40000190 640791b02daSAnson Huang MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0 641791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0 642791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0 643791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0 644791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0 645791b02daSAnson Huang MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0 646791b02daSAnson Huang MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0 647791b02daSAnson Huang MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0 648791b02daSAnson Huang MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0 649791b02daSAnson Huang MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190 650791b02daSAnson Huang >; 651791b02daSAnson Huang }; 652791b02daSAnson Huang 653a0985471SKrzysztof Kozlowski pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp { 654791b02daSAnson Huang fsl,pins = < 655791b02daSAnson Huang MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x40000194 656791b02daSAnson Huang MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4 657791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4 658791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4 659791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4 660791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4 661791b02daSAnson Huang MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4 662791b02daSAnson Huang MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4 663791b02daSAnson Huang MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4 664791b02daSAnson Huang MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4 665791b02daSAnson Huang MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194 666791b02daSAnson Huang >; 667791b02daSAnson Huang }; 668791b02daSAnson Huang 669a0985471SKrzysztof Kozlowski pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { 670791b02daSAnson Huang fsl,pins = < 671791b02daSAnson Huang MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x40000196 672791b02daSAnson Huang MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6 673791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6 674791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6 675791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6 676791b02daSAnson Huang MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6 677791b02daSAnson Huang MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6 678791b02daSAnson Huang MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6 679791b02daSAnson Huang MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6 680791b02daSAnson Huang MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6 681791b02daSAnson Huang MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x196 682791b02daSAnson Huang >; 683791b02daSAnson Huang }; 684791b02daSAnson Huang 685791b02daSAnson Huang pinctrl_wdog: wdoggrp { 686791b02daSAnson Huang fsl,pins = < 687fa88e6e4SAnson Huang MX8MN_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x166 688791b02daSAnson Huang >; 689791b02daSAnson Huang }; 690791b02daSAnson Huang}; 691