imx6qdl-skov-cpu-revc.dtsi 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. //
  3. // Copyright (C) 2020 Pengutronix, Ulrich Oelmann <[email protected]>
  4. / {
  5. touchscreen {
  6. compatible = "resistive-adc-touch";
  7. io-channels = <&adc_ts 1>, <&adc_ts 3>, <&adc_ts 4>, <&adc_ts 5>;
  8. io-channel-names = "y", "z1", "z2", "x";
  9. touchscreen-min-pressure = <65000>;
  10. touchscreen-inverted-y;
  11. touchscreen-swapped-x-y;
  12. touchscreen-x-plate-ohms = <300>;
  13. touchscreen-y-plate-ohms = <800>;
  14. };
  15. };
  16. &ecspi4 {
  17. pinctrl-names = "default";
  18. pinctrl-0 = <&pinctrl_ecspi4>;
  19. cs-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
  20. status = "okay";
  21. adc_ts: adc@0 {
  22. compatible = "ti,tsc2046e-adc";
  23. reg = <0>;
  24. pinctrl-0 = <&pinctrl_touch>;
  25. pinctrl-names ="default";
  26. spi-max-frequency = <1000000>;
  27. interrupts-extended = <&gpio3 19 IRQ_TYPE_LEVEL_LOW>;
  28. #io-channel-cells = <1>;
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. channel@1 {
  32. reg = <1>;
  33. settling-time-us = <700>;
  34. oversampling-ratio = <5>;
  35. };
  36. channel@3 {
  37. reg = <3>;
  38. settling-time-us = <700>;
  39. oversampling-ratio = <5>;
  40. };
  41. channel@4 {
  42. reg = <4>;
  43. settling-time-us = <700>;
  44. oversampling-ratio = <5>;
  45. };
  46. channel@5 {
  47. reg = <5>;
  48. settling-time-us = <700>;
  49. oversampling-ratio = <5>;
  50. };
  51. };
  52. };
  53. &iomuxc {
  54. pinctrl_ecspi4: ecspi4grp {
  55. fsl,pins = <
  56. MX6QDL_PAD_EIM_D28__ECSPI4_MOSI 0x100b1
  57. MX6QDL_PAD_EIM_D22__ECSPI4_MISO 0x000b1
  58. MX6QDL_PAD_EIM_D21__ECSPI4_SCLK 0x000b1
  59. /* *no* external pull up */
  60. MX6QDL_PAD_EIM_D20__GPIO3_IO20 0x40000058
  61. >;
  62. };
  63. pinctrl_touch: touchgrp {
  64. fsl,pins = <
  65. /* external pull up */
  66. MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x10040
  67. >;
  68. };
  69. };