ste-hrefv60plus-stuib.dts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright 2012 ST-Ericsson AB
  4. *
  5. * Device Tree for the HREF version 60 or later with the ST UIB
  6. */
  7. /dts-v1/;
  8. #include "ste-db8500.dtsi"
  9. #include "ste-hrefv60plus.dtsi"
  10. #include "ste-href-stuib.dtsi"
  11. / {
  12. model = "ST-Ericsson HREF (v60+) and ST UIB";
  13. compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
  14. /* ST6G3244ME level translator for 1.8/2.9 V */
  15. vmmci: regulator-gpio {
  16. compatible = "regulator-gpio";
  17. regulator-min-microvolt = <1800000>;
  18. regulator-max-microvolt = <2900000>;
  19. regulator-name = "mmci-reg";
  20. regulator-type = "voltage";
  21. startup-delay-us = <100>;
  22. states = <1800000 0x1
  23. 2900000 0x0>;
  24. gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
  25. enable-gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>;
  26. enable-active-high;
  27. pinctrl-names = "default";
  28. pinctrl-0 = <&vmmci_default_mode>;
  29. };
  30. soc {
  31. /* Reset line for the BU21013 touchscreen */
  32. i2c@80110000 {
  33. /* Only one of these will be used */
  34. bu21013_tp@5c {
  35. interrupt-parent = <&gpio2>;
  36. interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
  37. touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
  38. reset-gpios = <&gpio4 17 GPIO_LINE_OPEN_DRAIN>;
  39. };
  40. bu21013_tp@5d {
  41. interrupt-parent = <&gpio2>;
  42. interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
  43. touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
  44. reset-gpios = <&gpio4 17 GPIO_LINE_OPEN_DRAIN>;
  45. };
  46. };
  47. };
  48. };
  49. &pinctrl {
  50. vmmci {
  51. vmmci_default_mode: vmmc_default {
  52. /* VMMCI level-shifter enable */
  53. default_hrefv60_cfg2 {
  54. pins = "GPIO169_D22";
  55. ste,config = <&gpio_out_hi>;
  56. };
  57. /* VMMCI level-shifter voltage select */
  58. default_hrefv60_cfg3 {
  59. pins = "GPIO5_AG6";
  60. ste,config = <&gpio_out_hi>;
  61. };
  62. };
  63. };
  64. };