imx6qdl-cubox-i.dtsi 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. /*
  2. * Copyright (C) 2014 Russell King
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * version 2 as published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * Or, alternatively,
  19. *
  20. * b) Permission is hereby granted, free of charge, to any person
  21. * obtaining a copy of this software and associated documentation
  22. * files (the "Software"), to deal in the Software without
  23. * restriction, including without limitation the rights to use,
  24. * copy, modify, merge, publish, distribute, sublicense, and/or
  25. * sell copies of the Software, and to permit persons to whom the
  26. * Software is furnished to do so, subject to the following
  27. * conditions:
  28. *
  29. * The above copyright notice and this permission notice shall be
  30. * included in all copies or substantial portions of the Software.
  31. *
  32. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  33. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  34. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  35. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  36. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  37. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  38. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  39. * OTHER DEALINGS IN THE SOFTWARE.
  40. */
  41. #include <dt-bindings/input/input.h>
  42. #include <dt-bindings/gpio/gpio.h>
  43. / {
  44. /* Will be filled by the bootloader */
  45. memory@10000000 {
  46. device_type = "memory";
  47. reg = <0x10000000 0>;
  48. };
  49. ir_recv: ir-receiver {
  50. compatible = "gpio-ir-receiver";
  51. gpios = <&gpio3 9 1>;
  52. pinctrl-names = "default";
  53. pinctrl-0 = <&pinctrl_cubox_i_ir>;
  54. };
  55. led-controller {
  56. compatible = "pwm-leds";
  57. pinctrl-names = "default";
  58. pinctrl-0 = <&pinctrl_cubox_i_pwm1>;
  59. led-1 {
  60. active-low;
  61. label = "imx6:red:front";
  62. max-brightness = <248>;
  63. pwms = <&pwm1 0 50000>;
  64. };
  65. };
  66. v_5v0: regulator-v-5v0 {
  67. compatible = "regulator-fixed";
  68. regulator-always-on;
  69. regulator-max-microvolt = <5000000>;
  70. regulator-min-microvolt = <5000000>;
  71. regulator-name = "v_5v0";
  72. };
  73. v_usb2: regulator-v-usb2 {
  74. compatible = "regulator-fixed";
  75. enable-active-high;
  76. gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&pinctrl_cubox_i_usbh1_vbus>;
  79. regulator-max-microvolt = <5000000>;
  80. regulator-min-microvolt = <5000000>;
  81. regulator-name = "v_usb2";
  82. vin-supply = <&v_5v0>;
  83. };
  84. v_usb1: regulator-v-usb1 {
  85. compatible = "regulator-fixed";
  86. enable-active-high;
  87. gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&pinctrl_cubox_i_usbotg_vbus>;
  90. regulator-max-microvolt = <5000000>;
  91. regulator-min-microvolt = <5000000>;
  92. regulator-name = "v_usb1";
  93. vin-supply = <&v_5v0>;
  94. };
  95. sound-spdif {
  96. compatible = "fsl,imx-audio-spdif";
  97. model = "Integrated SPDIF";
  98. /* IMX6 doesn't implement this yet */
  99. spdif-controller = <&spdif>;
  100. spdif-out;
  101. };
  102. gpio-keys {
  103. compatible = "gpio-keys";
  104. pinctrl-0 = <&pinctrl_gpio_key>;
  105. pinctrl-names = "default";
  106. button_0 {
  107. label = "Button 0";
  108. gpios = <&gpio3 8 GPIO_ACTIVE_LOW>;
  109. linux,code = <BTN_0>;
  110. };
  111. };
  112. };
  113. &hdmi {
  114. pinctrl-names = "default";
  115. pinctrl-0 = <&pinctrl_cubox_i_hdmi>;
  116. ddc-i2c-bus = <&i2c2>;
  117. status = "okay";
  118. };
  119. &i2c2 {
  120. clock-frequency = <100000>;
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&pinctrl_cubox_i_i2c2>;
  123. status = "okay";
  124. };
  125. &i2c3 {
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&pinctrl_cubox_i_i2c3>;
  128. status = "okay";
  129. rtc@68 {
  130. compatible = "nxp,pcf8523";
  131. reg = <0x68>;
  132. };
  133. };
  134. &iomuxc {
  135. cubox_i {
  136. pinctrl_cubox_i_hdmi: cubox-i-hdmi {
  137. fsl,pins = <
  138. MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
  139. >;
  140. };
  141. pinctrl_cubox_i_i2c2: cubox-i-i2c2 {
  142. fsl,pins = <
  143. MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
  144. MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
  145. >;
  146. };
  147. pinctrl_cubox_i_i2c3: cubox-i-i2c3 {
  148. fsl,pins = <
  149. MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
  150. MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
  151. >;
  152. };
  153. pinctrl_cubox_i_ir: cubox-i-ir {
  154. fsl,pins = <
  155. MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000
  156. >;
  157. };
  158. pinctrl_cubox_i_pwm1: cubox-i-pwm1-front-led {
  159. fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b0>;
  160. };
  161. pinctrl_cubox_i_spdif: cubox-i-spdif {
  162. fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>;
  163. };
  164. pinctrl_cubox_i_usbh1: cubox-i-usbh1 {
  165. fsl,pins = <MX6QDL_PAD_GPIO_3__USB_H1_OC 0x1b0b0>;
  166. };
  167. pinctrl_cubox_i_usbh1_vbus: cubox-i-usbh1-vbus {
  168. fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x4001b0b0>;
  169. };
  170. pinctrl_cubox_i_usbotg: cubox-i-usbotg {
  171. /*
  172. * The Cubox-i pulls ID low, but as it's pointless
  173. * leaving it as a pull-up, even if it is just 10uA.
  174. */
  175. fsl,pins = <
  176. MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059
  177. MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0
  178. >;
  179. };
  180. pinctrl_cubox_i_usbotg_vbus: cubox-i-usbotg-vbus {
  181. fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x4001b0b0>;
  182. };
  183. pinctrl_cubox_i_usdhc2_aux: cubox-i-usdhc2-aux {
  184. fsl,pins = <
  185. MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071
  186. MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071
  187. >;
  188. };
  189. pinctrl_cubox_i_usdhc2: cubox-i-usdhc2 {
  190. fsl,pins = <
  191. MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
  192. MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
  193. MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
  194. MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
  195. MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
  196. MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
  197. >;
  198. };
  199. pinctrl_gpio_key: gpio-key {
  200. fsl,pins = <
  201. MX6QDL_PAD_EIM_DA8__GPIO3_IO08 0x17059
  202. >;
  203. };
  204. };
  205. };
  206. &pwm1 {
  207. #pwm-cells = <2>;
  208. status = "okay";
  209. };
  210. &spdif {
  211. pinctrl-names = "default";
  212. pinctrl-0 = <&pinctrl_cubox_i_spdif>;
  213. status = "okay";
  214. };
  215. &usbh1 {
  216. pinctrl-names = "default";
  217. pinctrl-0 = <&pinctrl_cubox_i_usbh1>;
  218. vbus-supply = <&v_usb2>;
  219. status = "okay";
  220. };
  221. &usbotg {
  222. pinctrl-names = "default";
  223. pinctrl-0 = <&pinctrl_cubox_i_usbotg>;
  224. vbus-supply = <&v_usb1>;
  225. status = "okay";
  226. };
  227. &usdhc2 {
  228. pinctrl-names = "default";
  229. pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>;
  230. vmmc-supply = <&vcc_3v3>;
  231. cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  232. status = "okay";
  233. };
  234. &vcc_3v3 {
  235. vin-supply = <&v_5v0>;
  236. };