1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2020 Linumiz 4*f126890aSEmmanuel Vadot * Author: Parthiban Nallathambi <parthiban@linumiz.com> 5*f126890aSEmmanuel Vadot */ 6*f126890aSEmmanuel Vadot 7*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 8*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 9*f126890aSEmmanuel Vadot#include <dt-bindings/pwm/pwm.h> 10*f126890aSEmmanuel Vadot 11*f126890aSEmmanuel Vadot/ { 12*f126890aSEmmanuel Vadot model = "MYiR MYS-6ULX Single Board Computer"; 13*f126890aSEmmanuel Vadot compatible = "fsl,imx6ull"; 14*f126890aSEmmanuel Vadot 15*f126890aSEmmanuel Vadot chosen { 16*f126890aSEmmanuel Vadot stdout-path = &uart1; 17*f126890aSEmmanuel Vadot }; 18*f126890aSEmmanuel Vadot 19*f126890aSEmmanuel Vadot reg_vdd_5v: regulator-vdd-5v { 20*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 21*f126890aSEmmanuel Vadot regulator-name = "VDD_5V"; 22*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 23*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 24*f126890aSEmmanuel Vadot regulator-always-on; 25*f126890aSEmmanuel Vadot regulator-boot-on; 26*f126890aSEmmanuel Vadot }; 27*f126890aSEmmanuel Vadot 28*f126890aSEmmanuel Vadot reg_vdd_3v3: regulator-vdd-3v3 { 29*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 30*f126890aSEmmanuel Vadot regulator-name = "VDD_3V3"; 31*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 32*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 33*f126890aSEmmanuel Vadot regulator-always-on; 34*f126890aSEmmanuel Vadot vin-supply = <®_vdd_5v>; 35*f126890aSEmmanuel Vadot }; 36*f126890aSEmmanuel Vadot}; 37*f126890aSEmmanuel Vadot 38*f126890aSEmmanuel Vadot&fec1 { 39*f126890aSEmmanuel Vadot pinctrl-names = "default"; 40*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_enet1>; 41*f126890aSEmmanuel Vadot phy-mode = "rmii"; 42*f126890aSEmmanuel Vadot phy-handle = <ðphy0>; 43*f126890aSEmmanuel Vadot phy-supply = <®_vdd_3v3>; 44*f126890aSEmmanuel Vadot status = "okay"; 45*f126890aSEmmanuel Vadot 46*f126890aSEmmanuel Vadot mdio: mdio { 47*f126890aSEmmanuel Vadot #address-cells = <1>; 48*f126890aSEmmanuel Vadot #size-cells = <0>; 49*f126890aSEmmanuel Vadot 50*f126890aSEmmanuel Vadot ethphy0: ethernet-phy@0 { 51*f126890aSEmmanuel Vadot reg = <0>; 52*f126890aSEmmanuel Vadot interrupt-parent = <&gpio5>; 53*f126890aSEmmanuel Vadot interrupts = <5 IRQ_TYPE_LEVEL_LOW>; 54*f126890aSEmmanuel Vadot clocks = <&clks IMX6UL_CLK_ENET_REF>; 55*f126890aSEmmanuel Vadot clock-names = "rmii-ref"; 56*f126890aSEmmanuel Vadot }; 57*f126890aSEmmanuel Vadot }; 58*f126890aSEmmanuel Vadot}; 59*f126890aSEmmanuel Vadot 60*f126890aSEmmanuel Vadot&gpmi { 61*f126890aSEmmanuel Vadot pinctrl-names = "default"; 62*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_gpmi_nand>; 63*f126890aSEmmanuel Vadot nand-on-flash-bbt; 64*f126890aSEmmanuel Vadot status = "disabled"; 65*f126890aSEmmanuel Vadot}; 66*f126890aSEmmanuel Vadot 67*f126890aSEmmanuel Vadot&uart1 { 68*f126890aSEmmanuel Vadot pinctrl-names = "default"; 69*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_uart1>; 70*f126890aSEmmanuel Vadot status = "okay"; 71*f126890aSEmmanuel Vadot}; 72*f126890aSEmmanuel Vadot 73*f126890aSEmmanuel Vadot&usbotg1 { 74*f126890aSEmmanuel Vadot pinctrl-names = "default"; 75*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usb_otg1_id>; 76*f126890aSEmmanuel Vadot dr_mode = "otg"; 77*f126890aSEmmanuel Vadot status = "okay"; 78*f126890aSEmmanuel Vadot}; 79*f126890aSEmmanuel Vadot 80*f126890aSEmmanuel Vadot&usbotg2 { 81*f126890aSEmmanuel Vadot dr_mode = "host"; 82*f126890aSEmmanuel Vadot disable-over-current; 83*f126890aSEmmanuel Vadot status = "okay"; 84*f126890aSEmmanuel Vadot}; 85*f126890aSEmmanuel Vadot 86*f126890aSEmmanuel Vadot&usdhc1 { 87*f126890aSEmmanuel Vadot pinctrl-names = "default", "state_100mhz", "state_200mhz"; 88*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usdhc1>; 89*f126890aSEmmanuel Vadot pinctrl-1 = <&pinctrl_usdhc1_100mhz>; 90*f126890aSEmmanuel Vadot pinctrl-2 = <&pinctrl_usdhc1_200mhz>; 91*f126890aSEmmanuel Vadot cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; 92*f126890aSEmmanuel Vadot no-1-8-v; 93*f126890aSEmmanuel Vadot keep-power-in-suspend; 94*f126890aSEmmanuel Vadot wakeup-source; 95*f126890aSEmmanuel Vadot vmmc-supply = <®_vdd_3v3>; 96*f126890aSEmmanuel Vadot status = "okay"; 97*f126890aSEmmanuel Vadot}; 98*f126890aSEmmanuel Vadot 99*f126890aSEmmanuel Vadot&usdhc2 { 100*f126890aSEmmanuel Vadot pinctrl-names = "default"; 101*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usdhc2>; 102*f126890aSEmmanuel Vadot pinctrl-1 = <&pinctrl_usdhc2_100mhz>; 103*f126890aSEmmanuel Vadot pinctrl-2 = <&pinctrl_usdhc2_200mhz>; 104*f126890aSEmmanuel Vadot bus-width = <8>; 105*f126890aSEmmanuel Vadot non-removable; 106*f126890aSEmmanuel Vadot keep-power-in-suspend; 107*f126890aSEmmanuel Vadot vmmc-supply = <®_vdd_3v3>; 108*f126890aSEmmanuel Vadot}; 109*f126890aSEmmanuel Vadot 110*f126890aSEmmanuel Vadot&iomuxc { 111*f126890aSEmmanuel Vadot pinctrl_enet1: enet1grp { 112*f126890aSEmmanuel Vadot fsl,pins = < 113*f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0 114*f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0 115*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0 116*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0 117*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0 118*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0 119*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0 120*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0 121*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0 122*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031 123*f126890aSEmmanuel Vadot MX6UL_PAD_SNVS_TAMPER5__GPIO5_IO05 0x1b0b0 124*f126890aSEmmanuel Vadot >; 125*f126890aSEmmanuel Vadot }; 126*f126890aSEmmanuel Vadot 127*f126890aSEmmanuel Vadot pinctrl_gpmi_nand: gpminandgrp { 128*f126890aSEmmanuel Vadot fsl,pins = < 129*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_CLE__RAWNAND_CLE 0x0b0b1 130*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_ALE__RAWNAND_ALE 0x0b0b1 131*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_WP_B__RAWNAND_WP_B 0x0b0b1 132*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_READY_B__RAWNAND_READY_B 0x0b000 133*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_CE0_B__RAWNAND_CE0_B 0x0b0b1 134*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_RE_B__RAWNAND_RE_B 0x0b0b1 135*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_WE_B__RAWNAND_WE_B 0x0b0b1 136*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00 0x0b0b1 137*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA01__RAWNAND_DATA01 0x0b0b1 138*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA02__RAWNAND_DATA02 0x0b0b1 139*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA03__RAWNAND_DATA03 0x0b0b1 140*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA04__RAWNAND_DATA04 0x0b0b1 141*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA05__RAWNAND_DATA05 0x0b0b1 142*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA06__RAWNAND_DATA06 0x0b0b1 143*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA07__RAWNAND_DATA07 0x0b0b1 144*f126890aSEmmanuel Vadot >; 145*f126890aSEmmanuel Vadot }; 146*f126890aSEmmanuel Vadot 147*f126890aSEmmanuel Vadot pinctrl_uart1: uart1grp { 148*f126890aSEmmanuel Vadot fsl,pins = < 149*f126890aSEmmanuel Vadot MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1 150*f126890aSEmmanuel Vadot MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1 151*f126890aSEmmanuel Vadot >; 152*f126890aSEmmanuel Vadot }; 153*f126890aSEmmanuel Vadot 154*f126890aSEmmanuel Vadot pinctrl_usb_otg1_id: usbotg1idgrp { 155*f126890aSEmmanuel Vadot fsl,pins = < 156*f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059 157*f126890aSEmmanuel Vadot >; 158*f126890aSEmmanuel Vadot }; 159*f126890aSEmmanuel Vadot 160*f126890aSEmmanuel Vadot pinctrl_usdhc1: usdhc1grp { 161*f126890aSEmmanuel Vadot fsl,pins = < 162*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059 163*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10059 164*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059 165*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059 166*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059 167*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059 168*f126890aSEmmanuel Vadot MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059 169*f126890aSEmmanuel Vadot >; 170*f126890aSEmmanuel Vadot }; 171*f126890aSEmmanuel Vadot 172*f126890aSEmmanuel Vadot pinctrl_usdhc1_100mhz: usdhc1grp100mhz { 173*f126890aSEmmanuel Vadot fsl,pins = < 174*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x170b9 175*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x100b9 176*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170b9 177*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170b9 178*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170b9 179*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170b9 180*f126890aSEmmanuel Vadot >; 181*f126890aSEmmanuel Vadot }; 182*f126890aSEmmanuel Vadot 183*f126890aSEmmanuel Vadot pinctrl_usdhc1_200mhz: usdhc1grp200mhz { 184*f126890aSEmmanuel Vadot fsl,pins = < 185*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x170f9 186*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x100f9 187*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170f9 188*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170f9 189*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170f9 190*f126890aSEmmanuel Vadot MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170f9 191*f126890aSEmmanuel Vadot >; 192*f126890aSEmmanuel Vadot }; 193*f126890aSEmmanuel Vadot 194*f126890aSEmmanuel Vadot pinctrl_usdhc2: usdhc2grp { 195*f126890aSEmmanuel Vadot fsl,pins = < 196*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10069 197*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059 198*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059 199*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059 200*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059 201*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059 202*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059 203*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059 204*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059 205*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059 206*f126890aSEmmanuel Vadot >; 207*f126890aSEmmanuel Vadot }; 208*f126890aSEmmanuel Vadot 209*f126890aSEmmanuel Vadot pinctrl_usdhc2_100mhz: usdhc2grp100mhz { 210*f126890aSEmmanuel Vadot fsl,pins = < 211*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100b9 212*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x170b9 213*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x170b9 214*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x170b9 215*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x170b9 216*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x170b9 217*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x170b9 218*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x170b9 219*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x170b9 220*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x170b9 221*f126890aSEmmanuel Vadot >; 222*f126890aSEmmanuel Vadot }; 223*f126890aSEmmanuel Vadot 224*f126890aSEmmanuel Vadot pinctrl_usdhc2_200mhz: usdhc2grp200mhz { 225*f126890aSEmmanuel Vadot fsl,pins = < 226*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100f9 227*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x170f9 228*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x170f9 229*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x170f9 230*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x170f9 231*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x170f9 232*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x170f9 233*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x170f9 234*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x170f9 235*f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x170f9 236*f126890aSEmmanuel Vadot >; 237*f126890aSEmmanuel Vadot }; 238*f126890aSEmmanuel Vadot}; 239