1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 OR MIT 2f126890aSEmmanuel Vadot// 3f126890aSEmmanuel Vadot// Copyright 2019 Armadeus Systems <support@armadeus.com> 4f126890aSEmmanuel Vadot 5f126890aSEmmanuel Vadot/ { 6f126890aSEmmanuel Vadot chosen { 7f126890aSEmmanuel Vadot stdout-path = &uart1; 8f126890aSEmmanuel Vadot }; 9f126890aSEmmanuel Vadot 10f126890aSEmmanuel Vadot backlight: backlight { 11f126890aSEmmanuel Vadot compatible = "pwm-backlight"; 12*7d0873ebSEmmanuel Vadot pwms = <&pwm3 0 191000 0>; 13f126890aSEmmanuel Vadot brightness-levels = <0 4 8 16 32 64 128 255>; 14f126890aSEmmanuel Vadot default-brightness-level = <7>; 15f126890aSEmmanuel Vadot power-supply = <®_5v>; 16f126890aSEmmanuel Vadot status = "okay"; 17f126890aSEmmanuel Vadot }; 18f126890aSEmmanuel Vadot 19f126890aSEmmanuel Vadot gpio-keys { 20f126890aSEmmanuel Vadot compatible = "gpio-keys"; 21f126890aSEmmanuel Vadot pinctrl-names = "default"; 22f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_gpio_keys>; 23f126890aSEmmanuel Vadot 24f126890aSEmmanuel Vadot user-button { 25f126890aSEmmanuel Vadot label = "User button"; 26f126890aSEmmanuel Vadot gpios = <&gpio2 11 GPIO_ACTIVE_LOW>; 27f126890aSEmmanuel Vadot linux,code = <BTN_MISC>; 28f126890aSEmmanuel Vadot wakeup-source; 29f126890aSEmmanuel Vadot }; 30f126890aSEmmanuel Vadot }; 31f126890aSEmmanuel Vadot 32f126890aSEmmanuel Vadot leds { 33f126890aSEmmanuel Vadot compatible = "gpio-leds"; 34f126890aSEmmanuel Vadot 35f126890aSEmmanuel Vadot user-led { 36f126890aSEmmanuel Vadot label = "User"; 37f126890aSEmmanuel Vadot pinctrl-names = "default"; 38f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_led>; 39f126890aSEmmanuel Vadot gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>; 40f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 41f126890aSEmmanuel Vadot }; 42f126890aSEmmanuel Vadot }; 43f126890aSEmmanuel Vadot 44f126890aSEmmanuel Vadot onewire { 45f126890aSEmmanuel Vadot compatible = "w1-gpio"; 46f126890aSEmmanuel Vadot pinctrl-names = "default"; 47f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_w1>; 48f126890aSEmmanuel Vadot gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; 49f126890aSEmmanuel Vadot }; 50f126890aSEmmanuel Vadot 51f126890aSEmmanuel Vadot panel: panel { 52f126890aSEmmanuel Vadot compatible = "armadeus,st0700-adapt"; 53f126890aSEmmanuel Vadot power-supply = <®_3v3>; 54f126890aSEmmanuel Vadot backlight = <&backlight>; 55f126890aSEmmanuel Vadot 56f126890aSEmmanuel Vadot port { 57f126890aSEmmanuel Vadot panel_in: endpoint { 58f126890aSEmmanuel Vadot remote-endpoint = <&lcdif_out>; 59f126890aSEmmanuel Vadot }; 60f126890aSEmmanuel Vadot }; 61f126890aSEmmanuel Vadot }; 62f126890aSEmmanuel Vadot 63f126890aSEmmanuel Vadot reg_5v: regulator-5v { 64f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 65f126890aSEmmanuel Vadot regulator-name = "5V"; 66f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 67f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 68f126890aSEmmanuel Vadot }; 69f126890aSEmmanuel Vadot 70f126890aSEmmanuel Vadot reg_usbotg1_vbus: regulator-usbotg1vbus { 71f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 72f126890aSEmmanuel Vadot regulator-name = "usbotg1vbus"; 73f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 74f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 75f126890aSEmmanuel Vadot pinctrl-names = "default"; 76f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usbotg1_vbus>; 77f126890aSEmmanuel Vadot gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; 78f126890aSEmmanuel Vadot enable-active-high; 79f126890aSEmmanuel Vadot }; 80f126890aSEmmanuel Vadot 81f126890aSEmmanuel Vadot reg_usbotg2_vbus: regulator-usbotg2vbus { 82f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 83f126890aSEmmanuel Vadot regulator-name = "usbotg2vbus"; 84f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 85f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 86f126890aSEmmanuel Vadot pinctrl-names = "default"; 87f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usbotg2_vbus>; 88f126890aSEmmanuel Vadot gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>; 89f126890aSEmmanuel Vadot enable-active-high; 90f126890aSEmmanuel Vadot }; 91f126890aSEmmanuel Vadot}; 92f126890aSEmmanuel Vadot 93f126890aSEmmanuel Vadot&adc1 { 94f126890aSEmmanuel Vadot vref-supply = <®_3v3>; 95f126890aSEmmanuel Vadot status = "okay"; 96f126890aSEmmanuel Vadot}; 97f126890aSEmmanuel Vadot 98f126890aSEmmanuel Vadot&can1 { 99f126890aSEmmanuel Vadot pinctrl-names = "default"; 100f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_flexcan1>; 101f126890aSEmmanuel Vadot xceiver-supply = <®_5v>; 102f126890aSEmmanuel Vadot status = "okay"; 103f126890aSEmmanuel Vadot}; 104f126890aSEmmanuel Vadot 105f126890aSEmmanuel Vadot&can2 { 106f126890aSEmmanuel Vadot pinctrl-names = "default"; 107f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_flexcan2>; 108f126890aSEmmanuel Vadot xceiver-supply = <®_5v>; 109f126890aSEmmanuel Vadot status = "okay"; 110f126890aSEmmanuel Vadot}; 111f126890aSEmmanuel Vadot 112f126890aSEmmanuel Vadot&ecspi4 { 113f126890aSEmmanuel Vadot pinctrl-names = "default"; 114f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_ecspi4>; 115f126890aSEmmanuel Vadot cs-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>, <&gpio4 3 GPIO_ACTIVE_LOW>; 116f126890aSEmmanuel Vadot status = "okay"; 117f126890aSEmmanuel Vadot}; 118f126890aSEmmanuel Vadot 119f126890aSEmmanuel Vadot&i2c1 { 120f126890aSEmmanuel Vadot pinctrl-names = "default"; 121f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_i2c1>; 122f126890aSEmmanuel Vadot clock-frequency = <400000>; 123f126890aSEmmanuel Vadot status = "okay"; 124f126890aSEmmanuel Vadot}; 125f126890aSEmmanuel Vadot 126f126890aSEmmanuel Vadot&i2c2 { 127f126890aSEmmanuel Vadot pinctrl-names = "default"; 128f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_i2c2>; 129f126890aSEmmanuel Vadot clock-frequency = <400000>; 130f126890aSEmmanuel Vadot status = "okay"; 131f126890aSEmmanuel Vadot}; 132f126890aSEmmanuel Vadot 133f126890aSEmmanuel Vadot&lcdif { 134f126890aSEmmanuel Vadot pinctrl-names = "default"; 135f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_lcdif>; 136f126890aSEmmanuel Vadot status = "okay"; 137f126890aSEmmanuel Vadot 138f126890aSEmmanuel Vadot port { 139f126890aSEmmanuel Vadot lcdif_out: endpoint { 140f126890aSEmmanuel Vadot remote-endpoint = <&panel_in>; 141f126890aSEmmanuel Vadot }; 142f126890aSEmmanuel Vadot }; 143f126890aSEmmanuel Vadot}; 144f126890aSEmmanuel Vadot 145f126890aSEmmanuel Vadot&pwm3 { 146f126890aSEmmanuel Vadot pinctrl-names = "default"; 147f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_pwm3>; 148f126890aSEmmanuel Vadot status = "okay"; 149f126890aSEmmanuel Vadot}; 150f126890aSEmmanuel Vadot 151f126890aSEmmanuel Vadot&snvs_pwrkey { 152f126890aSEmmanuel Vadot status = "disabled"; 153f126890aSEmmanuel Vadot}; 154f126890aSEmmanuel Vadot 155f126890aSEmmanuel Vadot&tsc { 156f126890aSEmmanuel Vadot pinctrl-names = "default"; 157f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_tsc>; 15801950c46SEmmanuel Vadot xnur-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; 159f126890aSEmmanuel Vadot measure-delay-time = <0xffff>; 160f126890aSEmmanuel Vadot pre-charge-time = <0xffff>; 161f126890aSEmmanuel Vadot status = "okay"; 162f126890aSEmmanuel Vadot}; 163f126890aSEmmanuel Vadot 164f126890aSEmmanuel Vadot&uart1 { 165f126890aSEmmanuel Vadot pinctrl-names = "default"; 166f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_uart1>; 167f126890aSEmmanuel Vadot status = "okay"; 168f126890aSEmmanuel Vadot}; 169f126890aSEmmanuel Vadot 170f126890aSEmmanuel Vadot&uart2 { 171f126890aSEmmanuel Vadot pinctrl-names = "default"; 172f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_uart2>; 173f126890aSEmmanuel Vadot status = "okay"; 174f126890aSEmmanuel Vadot}; 175f126890aSEmmanuel Vadot 176f126890aSEmmanuel Vadot&usbotg1 { 177f126890aSEmmanuel Vadot pinctrl-names = "default"; 178f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usbotg1_id>; 179f126890aSEmmanuel Vadot vbus-supply = <®_usbotg1_vbus>; 180f126890aSEmmanuel Vadot dr_mode = "otg"; 181f126890aSEmmanuel Vadot disable-over-current; 182f126890aSEmmanuel Vadot status = "okay"; 183f126890aSEmmanuel Vadot}; 184f126890aSEmmanuel Vadot 185f126890aSEmmanuel Vadot&usbotg2 { 186f126890aSEmmanuel Vadot vbus-supply = <®_usbotg2_vbus>; 187f126890aSEmmanuel Vadot dr_mode = "host"; 188f126890aSEmmanuel Vadot disable-over-current; 189f126890aSEmmanuel Vadot status = "okay"; 190f126890aSEmmanuel Vadot}; 191f126890aSEmmanuel Vadot 192f126890aSEmmanuel Vadot&iomuxc { 193f126890aSEmmanuel Vadot pinctrl-names = "default"; 194f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_gpios>; 195f126890aSEmmanuel Vadot 196f126890aSEmmanuel Vadot pinctrl_ecspi4: ecspi4grp { 197f126890aSEmmanuel Vadot fsl,pins = < 198f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA04__ECSPI4_SCLK 0x1b0b0 199f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA05__ECSPI4_MOSI 0x1b0b0 200f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA06__ECSPI4_MISO 0x1b0b0 201f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA01__GPIO4_IO03 0x1b0b0 202f126890aSEmmanuel Vadot MX6UL_PAD_NAND_DATA07__GPIO4_IO09 0x1b0b0 203f126890aSEmmanuel Vadot >; 204f126890aSEmmanuel Vadot }; 205f126890aSEmmanuel Vadot 206f126890aSEmmanuel Vadot pinctrl_flexcan1: flexcan1grp { 207f126890aSEmmanuel Vadot fsl,pins = < 208f126890aSEmmanuel Vadot MX6UL_PAD_UART3_CTS_B__FLEXCAN1_TX 0x0b0b0 209f126890aSEmmanuel Vadot MX6UL_PAD_UART3_RTS_B__FLEXCAN1_RX 0x0b0b0 210f126890aSEmmanuel Vadot >; 211f126890aSEmmanuel Vadot }; 212f126890aSEmmanuel Vadot 213f126890aSEmmanuel Vadot pinctrl_flexcan2: flexcan2grp { 214f126890aSEmmanuel Vadot fsl,pins = < 215f126890aSEmmanuel Vadot MX6UL_PAD_UART2_CTS_B__FLEXCAN2_TX 0x0b0b0 216f126890aSEmmanuel Vadot MX6UL_PAD_UART2_RTS_B__FLEXCAN2_RX 0x0b0b0 217f126890aSEmmanuel Vadot >; 218f126890aSEmmanuel Vadot }; 219f126890aSEmmanuel Vadot 220f126890aSEmmanuel Vadot pinctrl_gpios: gpiosgrp { 221f126890aSEmmanuel Vadot fsl,pins = < 222f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x0b0b0 223f126890aSEmmanuel Vadot MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x0b0b0 224f126890aSEmmanuel Vadot MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x0b0b0 225f126890aSEmmanuel Vadot MX6UL_PAD_NAND_RE_B__GPIO4_IO00 0x0b0b0 226f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0x0b0b0 227f126890aSEmmanuel Vadot MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x0b0b0 228f126890aSEmmanuel Vadot MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x0b0b0 229f126890aSEmmanuel Vadot MX6UL_PAD_NAND_WE_B__GPIO4_IO01 0x0b0b0 230f126890aSEmmanuel Vadot >; 231f126890aSEmmanuel Vadot }; 232f126890aSEmmanuel Vadot 233f126890aSEmmanuel Vadot pinctrl_gpio_keys: gpiokeysgrp { 234f126890aSEmmanuel Vadot fsl,pins = < 235f126890aSEmmanuel Vadot MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x0b0b0 236f126890aSEmmanuel Vadot >; 237f126890aSEmmanuel Vadot }; 238f126890aSEmmanuel Vadot 239f126890aSEmmanuel Vadot pinctrl_i2c1: i2c1grp { 240f126890aSEmmanuel Vadot fsl,pins = < 241f126890aSEmmanuel Vadot MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0 242f126890aSEmmanuel Vadot MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0 243f126890aSEmmanuel Vadot >; 244f126890aSEmmanuel Vadot }; 245f126890aSEmmanuel Vadot 246f126890aSEmmanuel Vadot pinctrl_i2c2: i2c2grp { 247f126890aSEmmanuel Vadot fsl,pins = < 248f126890aSEmmanuel Vadot MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0 249f126890aSEmmanuel Vadot MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0 250f126890aSEmmanuel Vadot >; 251f126890aSEmmanuel Vadot }; 252f126890aSEmmanuel Vadot 253f126890aSEmmanuel Vadot pinctrl_lcdif: lcdifgrp { 254f126890aSEmmanuel Vadot fsl,pins = < 255f126890aSEmmanuel Vadot MX6UL_PAD_LCD_CLK__LCDIF_CLK 0x100b1 256f126890aSEmmanuel Vadot MX6UL_PAD_LCD_ENABLE__LCDIF_ENABLE 0x100b1 257f126890aSEmmanuel Vadot MX6UL_PAD_LCD_HSYNC__LCDIF_HSYNC 0x100b1 258f126890aSEmmanuel Vadot MX6UL_PAD_LCD_VSYNC__LCDIF_VSYNC 0x100b1 259f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA00__LCDIF_DATA00 0x100b1 260f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA01__LCDIF_DATA01 0x100b1 261f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA02__LCDIF_DATA02 0x100b1 262f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA03__LCDIF_DATA03 0x100b1 263f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA04__LCDIF_DATA04 0x100b1 264f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA05__LCDIF_DATA05 0x100b1 265f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA06__LCDIF_DATA06 0x100b1 266f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA07__LCDIF_DATA07 0x100b1 267f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA08__LCDIF_DATA08 0x100b1 268f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA09__LCDIF_DATA09 0x100b1 269f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA10__LCDIF_DATA10 0x100b1 270f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA11__LCDIF_DATA11 0x100b1 271f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA12__LCDIF_DATA12 0x100b1 272f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA13__LCDIF_DATA13 0x100b1 273f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA14__LCDIF_DATA14 0x100b1 274f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA15__LCDIF_DATA15 0x100b1 275f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA16__LCDIF_DATA16 0x100b1 276f126890aSEmmanuel Vadot MX6UL_PAD_LCD_DATA17__LCDIF_DATA17 0x100b1 277f126890aSEmmanuel Vadot >; 278f126890aSEmmanuel Vadot }; 279f126890aSEmmanuel Vadot 280f126890aSEmmanuel Vadot pinctrl_led: ledgrp { 281f126890aSEmmanuel Vadot fsl,pins = < 282f126890aSEmmanuel Vadot MX6UL_PAD_LCD_RESET__GPIO3_IO04 0x0b0b0 283f126890aSEmmanuel Vadot >; 284f126890aSEmmanuel Vadot }; 285f126890aSEmmanuel Vadot 286f126890aSEmmanuel Vadot pinctrl_pwm3: pwm3grp { 287f126890aSEmmanuel Vadot fsl,pins = < 288f126890aSEmmanuel Vadot MX6UL_PAD_NAND_ALE__PWM3_OUT 0x1b0b0 289f126890aSEmmanuel Vadot >; 290f126890aSEmmanuel Vadot }; 291f126890aSEmmanuel Vadot 292f126890aSEmmanuel Vadot pinctrl_tsc: tscgrp { 293f126890aSEmmanuel Vadot fsl,pins = < 294f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0xb0 295f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO02__GPIO1_IO02 0xb0 296f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO03__GPIO1_IO03 0xb0 297f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0xb0 298f126890aSEmmanuel Vadot >; 299f126890aSEmmanuel Vadot }; 300f126890aSEmmanuel Vadot 301f126890aSEmmanuel Vadot pinctrl_uart1: uart1grp { 302f126890aSEmmanuel Vadot fsl,pins = < 303f126890aSEmmanuel Vadot MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1 304f126890aSEmmanuel Vadot MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1 305f126890aSEmmanuel Vadot >; 306f126890aSEmmanuel Vadot }; 307f126890aSEmmanuel Vadot 308f126890aSEmmanuel Vadot pinctrl_uart2: uart2grp { 309f126890aSEmmanuel Vadot fsl,pins = < 310f126890aSEmmanuel Vadot MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1 311f126890aSEmmanuel Vadot MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1 312f126890aSEmmanuel Vadot >; 313f126890aSEmmanuel Vadot }; 314f126890aSEmmanuel Vadot 315f126890aSEmmanuel Vadot pinctrl_usbotg1_id: usbotg1idgrp { 316f126890aSEmmanuel Vadot fsl,pins = < 317f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x1b0b0 318f126890aSEmmanuel Vadot >; 319f126890aSEmmanuel Vadot }; 320f126890aSEmmanuel Vadot 321f126890aSEmmanuel Vadot pinctrl_usbotg1_vbus: usbotg1vbusgrp { 322f126890aSEmmanuel Vadot fsl,pins = < 323f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1b0b0 324f126890aSEmmanuel Vadot >; 325f126890aSEmmanuel Vadot }; 326f126890aSEmmanuel Vadot}; 327