omap3-gta04a5.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2014-18 H. Nikolaus Schaller <[email protected]>
  4. */
  5. #include "omap3-gta04.dtsi"
  6. / {
  7. model = "Goldelico GTA04A5/Letux 2804";
  8. sound {
  9. ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>; /* GTA04A5 only */
  10. };
  11. wlan_en: wlan_en_regulator {
  12. compatible = "regulator-fixed";
  13. pinctrl-names = "default";
  14. pinctrl-0 = <&wlan_pins>;
  15. regulator-name = "wlan-en-regulator";
  16. regulator-min-microvolt = <1800000>;
  17. regulator-max-microvolt = <1800000>;
  18. gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>; /* GPIO_138 */
  19. startup-delay-us = <70000>;
  20. enable-active-high;
  21. };
  22. pps {
  23. compatible = "pps-gpio";
  24. pinctrl-names = "default";
  25. pinctrl-0 = <&pps_pins>;
  26. gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>; /* GPIN_114 */
  27. };
  28. };
  29. &gpio5 {
  30. irda-en-hog {
  31. gpio-hog;
  32. gpios = <(175-160) GPIO_ACTIVE_HIGH>;
  33. output-high; /* activate gpio_175 to disable IrDA receiver */
  34. };
  35. };
  36. &omap3_pmx_core {
  37. bt_pins: pinmux_bt_pins {
  38. pinctrl-single,pins = <
  39. OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT | MUX_MODE4) /* mmc2_dat5 = mmc3_dat1 = gpio137 */
  40. >;
  41. };
  42. wlan_pins: pinmux_wlan_pins {
  43. pinctrl-single,pins = <
  44. OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4) /* mmc2_dat6 = mmc3_dat2 = gpio138 */
  45. >;
  46. };
  47. wlan_irq_pin: pinmux_wlan_irq_pin {
  48. pinctrl-single,pins = <
  49. OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE4) /* mmc2_dat7 = mmc3_dat3 = gpio139 */
  50. >;
  51. };
  52. irda_pins: pinmux_irda {
  53. pinctrl-single,pins = <
  54. OMAP3_CORE1_IOPAD(0x21d0, PIN_OUTPUT_PULLUP | MUX_MODE4) /* mcspi1_cs1 = gpio175 */
  55. >;
  56. };
  57. pps_pins: pinmux_pps_pins {
  58. pinctrl-single,pins = <
  59. OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */
  60. >;
  61. };
  62. };
  63. /*
  64. * for WL183x module see
  65. * Documentation/devicetree/bindings/net/wireless/ti,wlcore.yaml
  66. */
  67. &wifi_pwrseq {
  68. /delete-property/ reset-gpios;
  69. };
  70. &mmc2 {
  71. vmmc-supply = <&wlan_en>;
  72. bus-width = <4>;
  73. cap-power-off-card;
  74. non-removable;
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&wlan_irq_pin>;
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. /delete-property/ mmc-pwrseq;
  80. wlcore: wlcore@2 {
  81. compatible = "ti,wl1837";
  82. reg = <2>;
  83. interrupt-parent = <&gpio5>;
  84. interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_139 */
  85. ref-clock-frequency = <26000000>;
  86. };
  87. };
  88. &i2c2 {
  89. /delete-node/ bmp085@77;
  90. /delete-node/ bma180@41;
  91. /delete-node/ itg3200@68;
  92. /delete-node/ hmc5843@1e;
  93. bmg160@69 {
  94. compatible = "bosch,bmg160";
  95. reg = <0x69>;
  96. };
  97. bmc150@10 {
  98. compatible = "bosch,bmc150_accel";
  99. reg = <0x10>;
  100. };
  101. bmc150@12 {
  102. compatible = "bosch,bmc150_magn";
  103. reg = <0x12>;
  104. };
  105. bme280@76 {
  106. compatible = "bosch,bme280";
  107. reg = <0x76>;
  108. vdda-supply = <&vio>;
  109. vddd-supply = <&vio>;
  110. };
  111. };