imx7d-pico-pi.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. //
  3. // Copyright 2017 NXP
  4. #include "imx7d-pico.dtsi"
  5. / {
  6. model = "TechNexion PICO-IMX7D Board and PI baseboard";
  7. compatible = "technexion,imx7d-pico-pi", "fsl,imx7d";
  8. leds {
  9. compatible = "gpio-leds";
  10. pinctrl-names = "default";
  11. pinctrl-0 = <&pinctrl_gpio_leds>;
  12. led {
  13. label = "gpio-led";
  14. gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
  15. };
  16. };
  17. sound {
  18. compatible = "simple-audio-card";
  19. simple-audio-card,name = "imx7-sgtl5000";
  20. simple-audio-card,format = "i2s";
  21. simple-audio-card,bitclock-master = <&dailink_master>;
  22. simple-audio-card,frame-master = <&dailink_master>;
  23. simple-audio-card,cpu {
  24. sound-dai = <&sai1>;
  25. };
  26. dailink_master: simple-audio-card,codec {
  27. sound-dai = <&sgtl5000>;
  28. clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
  29. };
  30. };
  31. };
  32. &i2c1 {
  33. sgtl5000: codec@a {
  34. #sound-dai-cells = <0>;
  35. reg = <0x0a>;
  36. compatible = "fsl,sgtl5000";
  37. clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
  38. VDDA-supply = <&reg_2p5v>;
  39. VDDIO-supply = <&reg_vref_1v8>;
  40. };
  41. };
  42. &i2c4 {
  43. polytouch: touchscreen@38 {
  44. compatible = "edt,edt-ft5x06";
  45. reg = <0x38>;
  46. pinctrl-names = "default";
  47. pinctrl-0 = <&pinctrl_touchscreen>;
  48. interrupt-parent = <&gpio2>;
  49. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  50. reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
  51. touchscreen-size-x = <800>;
  52. touchscreen-size-y = <480>;
  53. };
  54. };
  55. &iomuxc {
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&pinctrl_hog>;
  58. pinctrl_hog: hoggrp {
  59. fsl,pins = <
  60. MX7D_PAD_EPDC_DATA00__GPIO2_IO0 0x14
  61. MX7D_PAD_EPDC_DATA01__GPIO2_IO1 0x14
  62. MX7D_PAD_EPDC_DATA02__GPIO2_IO2 0x14
  63. MX7D_PAD_EPDC_DATA03__GPIO2_IO3 0x14
  64. MX7D_PAD_EPDC_DATA05__GPIO2_IO5 0x14
  65. MX7D_PAD_EPDC_DATA12__GPIO2_IO12 0x14
  66. MX7D_PAD_EPDC_DATA07__GPIO2_IO7 0x14
  67. >;
  68. };
  69. pinctrl_gpio_leds: gpioledsgrp {
  70. fsl,pins = <
  71. MX7D_PAD_EPDC_DATA06__GPIO2_IO6 0x14
  72. >;
  73. };
  74. pinctrl_touchscreen: touchscreengrp {
  75. fsl,pins = <
  76. MX7D_PAD_EPDC_DATA04__GPIO2_IO4 0x14
  77. MX7D_PAD_EPDC_DATA13__GPIO2_IO13 0x14
  78. >;
  79. };
  80. };