1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2f126890aSEmmanuel Vadot 3f126890aSEmmanuel Vadot/dts-v1/; 4f126890aSEmmanuel Vadot 5f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 6f126890aSEmmanuel Vadot#include "imx6q-ba16.dtsi" 7f126890aSEmmanuel Vadot 8f126890aSEmmanuel Vadot/ { 9f126890aSEmmanuel Vadot model = "Advantech DMS-BA16"; 10f126890aSEmmanuel Vadot compatible = "advantech,imx6q-dms-ba16", "advantech,imx6q-ba16", "fsl,imx6q"; 11f126890aSEmmanuel Vadot 12f126890aSEmmanuel Vadot reg_usb_otg_vbus: regulator-usbotgvbus { 13f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 14f126890aSEmmanuel Vadot regulator-name = "usb_otg_vbus"; 15f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 16f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 17f126890aSEmmanuel Vadot pinctrl-names = "default"; 18f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usbotgvbus>; 19f126890aSEmmanuel Vadot gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>; 20f126890aSEmmanuel Vadot enable-active-high; 21f126890aSEmmanuel Vadot }; 22f126890aSEmmanuel Vadot 23f126890aSEmmanuel Vadot sys_mclk: clock-sys-mclk { 24f126890aSEmmanuel Vadot compatible = "fixed-clock"; 25f126890aSEmmanuel Vadot #clock-cells = <0>; 26f126890aSEmmanuel Vadot clock-frequency = <22000000>; 27f126890aSEmmanuel Vadot }; 28f126890aSEmmanuel Vadot 29f126890aSEmmanuel Vadot sound { 30f126890aSEmmanuel Vadot compatible = "fsl,imx6q-ba16-sgtl5000", 31f126890aSEmmanuel Vadot "fsl,imx-audio-sgtl5000"; 32f126890aSEmmanuel Vadot model = "imx6q-ba16-sgtl5000"; 33f126890aSEmmanuel Vadot ssi-controller = <&ssi1>; 34f126890aSEmmanuel Vadot audio-codec = <&sgtl5000>; 35f126890aSEmmanuel Vadot audio-routing = 36f126890aSEmmanuel Vadot "MIC_IN", "Mic Jack", 37f126890aSEmmanuel Vadot "Mic Jack", "Mic Bias", 38f126890aSEmmanuel Vadot "Headphone Jack", "HP_OUT"; 39f126890aSEmmanuel Vadot mux-int-port = <1>; 40f126890aSEmmanuel Vadot mux-ext-port = <4>; 41f126890aSEmmanuel Vadot }; 42f126890aSEmmanuel Vadot}; 43f126890aSEmmanuel Vadot 44f126890aSEmmanuel Vadot&ecspi5 { 45f126890aSEmmanuel Vadot cs-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; 46f126890aSEmmanuel Vadot pinctrl-names = "default"; 47f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_ecspi5>; 48f126890aSEmmanuel Vadot status = "okay"; 49f126890aSEmmanuel Vadot 50f126890aSEmmanuel Vadot m25_eeprom: flash@0 { 51f126890aSEmmanuel Vadot compatible = "atmel,at25256B", "atmel,at25"; 52f126890aSEmmanuel Vadot spi-max-frequency = <20000000>; 53f126890aSEmmanuel Vadot size = <0x8000>; 54f126890aSEmmanuel Vadot pagesize = <64>; 55f126890aSEmmanuel Vadot reg = <0>; 56f126890aSEmmanuel Vadot address-width = <16>; 57f126890aSEmmanuel Vadot }; 58f126890aSEmmanuel Vadot}; 59f126890aSEmmanuel Vadot 60f126890aSEmmanuel Vadot&iomuxc { 61f126890aSEmmanuel Vadot pinctrl_i2c1_gpio: i2c1gpiogrp { 62f126890aSEmmanuel Vadot fsl,pins = < 63f126890aSEmmanuel Vadot MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x1b0b0 64f126890aSEmmanuel Vadot MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27 0x1b0b0 65f126890aSEmmanuel Vadot >; 66f126890aSEmmanuel Vadot }; 67f126890aSEmmanuel Vadot 68f126890aSEmmanuel Vadot pinctrl_i2c2_gpio: i2c2gpiogrp { 69f126890aSEmmanuel Vadot fsl,pins = < 70f126890aSEmmanuel Vadot MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x1b0b0 71f126890aSEmmanuel Vadot MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x1b0b0 72f126890aSEmmanuel Vadot >; 73f126890aSEmmanuel Vadot }; 74f126890aSEmmanuel Vadot 75f126890aSEmmanuel Vadot pinctrl_i2c3_gpio: i2c3gpiogrp { 76f126890aSEmmanuel Vadot fsl,pins = < 77f126890aSEmmanuel Vadot MX6QDL_PAD_GPIO_3__GPIO1_IO03 0x1b0b0 78f126890aSEmmanuel Vadot MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0 79f126890aSEmmanuel Vadot >; 80f126890aSEmmanuel Vadot }; 81f126890aSEmmanuel Vadot 82f126890aSEmmanuel Vadot pinctrl_usbotgvbus: usbotgvbusgrp { 83f126890aSEmmanuel Vadot fsl,pins = < 84f126890aSEmmanuel Vadot MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059 85f126890aSEmmanuel Vadot MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x000b0 86f126890aSEmmanuel Vadot >; 87f126890aSEmmanuel Vadot }; 88f126890aSEmmanuel Vadot}; 89f126890aSEmmanuel Vadot 90f126890aSEmmanuel Vadot&i2c1 { 91f126890aSEmmanuel Vadot clock-frequency = <100000>; 92f126890aSEmmanuel Vadot pinctrl-names = "default"; 93f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_i2c1>; 94f126890aSEmmanuel Vadot status = "okay"; 95f126890aSEmmanuel Vadot 96f126890aSEmmanuel Vadot sgtl5000: codec@a { 97f126890aSEmmanuel Vadot compatible = "fsl,sgtl5000"; 98f126890aSEmmanuel Vadot reg = <0x0a>; 99*aa1a8ff2SEmmanuel Vadot #sound-dai-cells = <0>; 100f126890aSEmmanuel Vadot clocks = <&sys_mclk>; 101f126890aSEmmanuel Vadot lrclk-strength = <0x3>; 102f126890aSEmmanuel Vadot VDDA-supply = <®_1p8v>; 103f126890aSEmmanuel Vadot VDDIO-supply = <®_3p3v>; 104f126890aSEmmanuel Vadot }; 105f126890aSEmmanuel Vadot}; 106f126890aSEmmanuel Vadot 107f126890aSEmmanuel Vadot&pwm2 { 108f126890aSEmmanuel Vadot pinctrl-names = "default"; 109f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_pwm2>; 110f126890aSEmmanuel Vadot status = "okay"; 111f126890aSEmmanuel Vadot}; 112f126890aSEmmanuel Vadot 113f126890aSEmmanuel Vadot&sata { 114f126890aSEmmanuel Vadot fsl,no-spread-spectrum; 115f126890aSEmmanuel Vadot fsl,transmit-atten-16ths = <12>; 116f126890aSEmmanuel Vadot fsl,transmit-boost-mdB = <3330>; 117f126890aSEmmanuel Vadot fsl,transmit-level-mV = <1133>; 118f126890aSEmmanuel Vadot fsl,receive-dpll-mode = <1>; 119f126890aSEmmanuel Vadot status = "okay"; 120f126890aSEmmanuel Vadot}; 121f126890aSEmmanuel Vadot 122f126890aSEmmanuel Vadot&usbotg { 123f126890aSEmmanuel Vadot vbus-supply = <®_usb_otg_vbus>; 124f126890aSEmmanuel Vadot pinctrl-names = "default"; 125f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usbotg>; 126f126890aSEmmanuel Vadot dr_mode = "otg"; 127f126890aSEmmanuel Vadot disable-over-current; 128f126890aSEmmanuel Vadot status = "okay"; 129f126890aSEmmanuel Vadot}; 130f126890aSEmmanuel Vadot 131f126890aSEmmanuel Vadot&usdhc4 { 132f126890aSEmmanuel Vadot pinctrl-names = "default"; 133f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usdhc4>; 134f126890aSEmmanuel Vadot bus-width = <8>; 135f126890aSEmmanuel Vadot cd-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; 136f126890aSEmmanuel Vadot no-1-8-v; 137f126890aSEmmanuel Vadot keep-power-in-suspend; 138f126890aSEmmanuel Vadot wakeup-source; 139f126890aSEmmanuel Vadot status = "okay"; 140f126890aSEmmanuel Vadot}; 141