Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 
0003 /dts-v1/;
0004 
0005 #include <dt-bindings/gpio/gpio.h>
0006 #include "imx6q-ba16.dtsi"
0007 
0008 / {
0009         model = "Advantech DMS-BA16";
0010         compatible = "advantech,imx6q-dms-ba16", "advantech,imx6q-ba16", "fsl,imx6q";
0011 
0012         reg_usb_otg_vbus: regulator-usbotgvbus {
0013                 compatible = "regulator-fixed";
0014                 regulator-name = "usb_otg_vbus";
0015                 regulator-min-microvolt = <5000000>;
0016                 regulator-max-microvolt = <5000000>;
0017                 pinctrl-names = "default";
0018                 pinctrl-0 = <&pinctrl_usbotgvbus>;
0019                 gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>;
0020                 enable-active-high;
0021         };
0022 
0023         sys_mclk: clock-sys-mclk {
0024                 compatible = "fixed-clock";
0025                 #clock-cells = <0>;
0026                 clock-frequency = <22000000>;
0027         };
0028 
0029         sound {
0030                 compatible = "fsl,imx6q-ba16-sgtl5000",
0031                              "fsl,imx-audio-sgtl5000";
0032                 model = "imx6q-ba16-sgtl5000";
0033                 ssi-controller = <&ssi1>;
0034                 audio-codec = <&sgtl5000>;
0035                 audio-routing =
0036                         "MIC_IN", "Mic Jack",
0037                         "Mic Jack", "Mic Bias",
0038                         "Headphone Jack", "HP_OUT";
0039                 mux-int-port = <1>;
0040                 mux-ext-port = <4>;
0041         };
0042 };
0043 
0044 &ecspi5 {
0045         cs-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
0046         pinctrl-names = "default";
0047         pinctrl-0 = <&pinctrl_ecspi5>;
0048         status = "okay";
0049 
0050         m25_eeprom: flash@0 {
0051                 compatible = "atmel,at25256B", "atmel,at25";
0052                 spi-max-frequency = <20000000>;
0053                 size = <0x8000>;
0054                 pagesize = <64>;
0055                 reg = <0>;
0056                 address-width = <16>;
0057         };
0058 };
0059 
0060 &iomuxc {
0061         pinctrl_i2c1_gpio: i2c1gpiogrp {
0062                 fsl,pins = <
0063                         MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26        0x1b0b0
0064                         MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27        0x1b0b0
0065                 >;
0066         };
0067 
0068         pinctrl_i2c2_gpio: i2c2gpiogrp {
0069                 fsl,pins = <
0070                         MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x1b0b0
0071                         MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x1b0b0
0072                 >;
0073         };
0074 
0075         pinctrl_i2c3_gpio: i2c3gpiogrp {
0076                 fsl,pins = <
0077                         MX6QDL_PAD_GPIO_3__GPIO1_IO03   0x1b0b0
0078                         MX6QDL_PAD_GPIO_6__GPIO1_IO06   0x1b0b0
0079                 >;
0080         };
0081 
0082         pinctrl_usbotgvbus: usbotgvbusgrp {
0083                 fsl,pins = <
0084                         MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059
0085                         MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x000b0
0086                 >;
0087         };
0088 };
0089 
0090 &i2c1 {
0091         clock-frequency = <100000>;
0092         pinctrl-names = "default";
0093         pinctrl-0 = <&pinctrl_i2c1>;
0094         status = "okay";
0095 
0096         sgtl5000: codec@a {
0097                 compatible = "fsl,sgtl5000";
0098                 reg = <0x0a>;
0099                 clocks = <&sys_mclk>;
0100                 lrclk-strength = <0x3>;
0101                 VDDA-supply = <&reg_1p8v>;
0102                 VDDIO-supply = <&reg_3p3v>;
0103         };
0104 };
0105 
0106 &pwm2 {
0107         pinctrl-names = "default";
0108         pinctrl-0 = <&pinctrl_pwm2>;
0109         status = "okay";
0110 };
0111 
0112 &sata {
0113         fsl,no-spread-spectrum;
0114         fsl,transmit-atten-16ths = <12>;
0115         fsl,transmit-boost-mdB = <3330>;
0116         fsl,transmit-level-mV = <1133>;
0117         fsl,receive-dpll-mode = <1>;
0118         status = "okay";
0119 };
0120 
0121 &usbotg {
0122         vbus-supply = <&reg_usb_otg_vbus>;
0123         pinctrl-names = "default";
0124         pinctrl-0 = <&pinctrl_usbotg>;
0125         dr_mode = "otg";
0126         disable-over-current;
0127         status = "okay";
0128 };
0129 
0130 &usdhc4 {
0131         pinctrl-names = "default";
0132         pinctrl-0 = <&pinctrl_usdhc4>;
0133         bus-width = <8>;
0134         cd-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
0135         no-1-8-v;
0136         keep-power-in-suspend;
0137         wakeup-source;
0138         status = "okay";
0139 };