imx6q-dms-ba16.dts 2.8 KB

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