imx6qdl-solidsense.dtsi 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /*
  2. * Copyright (C) 2021 Russell King <[email protected]>
  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/leds/common.h>
  42. / {
  43. leds {
  44. compatible = "gpio-leds";
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&pinctrl_solidsense_leds>;
  47. /* Red/Green LED1 - next to WiFi SMA */
  48. led-11 {
  49. color = <LED_COLOR_ID_RED>;
  50. function = LED_FUNCTION_INDICATOR;
  51. function-enumerator = <0>;
  52. gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
  53. };
  54. led-12 {
  55. color = <LED_COLOR_ID_GREEN>;
  56. function = LED_FUNCTION_INDICATOR;
  57. function-enumerator = <0>;
  58. gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
  59. };
  60. /* Red/Green LED2 - next to GPS SMA */
  61. led-21 {
  62. color = <LED_COLOR_ID_RED>;
  63. function = LED_FUNCTION_INDICATOR;
  64. function-enumerator = <1>;
  65. gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
  66. };
  67. led-22 {
  68. color = <LED_COLOR_ID_GREEN>;
  69. function = LED_FUNCTION_INDICATOR;
  70. function-enumerator = <1>;
  71. gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
  72. };
  73. };
  74. };
  75. &audio {
  76. status = "disabled";
  77. };
  78. &ecspi2 {
  79. status = "disabled";
  80. };
  81. &i2c3 {
  82. status = "disabled";
  83. };
  84. &iomuxc {
  85. pinctrl-0 = <&pinctrl_hog>, <&pinctrl_solidsense_hog>;
  86. solidsense {
  87. pinctrl_solidsense_hog: solidsense-hog {
  88. fsl,pins = <
  89. /* Nordic RESET_N */
  90. MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x400130b1
  91. /* Nordic Chip 1 SWDIO - GPIO 125 */
  92. MX6QDL_PAD_DISP0_DAT8__GPIO4_IO29 0x400130b1
  93. /* Nordic Chip 1 SWDCLK - GPIO 59 */
  94. /* already claimed in the HB2 hogs */
  95. /* MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x400130b1 */
  96. /* Nordic Chip 2 SWDIO - GPIO 81 */
  97. MX6QDL_PAD_EIM_D17__GPIO3_IO17 0x400130b1
  98. /* Nordic Chip 2 SWCLK - GPIO 82 */
  99. MX6QDL_PAD_EIM_D18__GPIO3_IO18 0x400130b1
  100. >;
  101. };
  102. pinctrl_solidsense_leds: solidsense-leds {
  103. fsl,pins = <
  104. /* Red LED 1 - GPIO 58 */
  105. MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x400130b1
  106. /* Green LED 1 - GPIO 55 */
  107. MX6QDL_PAD_EIM_CS0__GPIO2_IO23 0x400130b1
  108. /* Red LED 2 - GPIO 57 */
  109. MX6QDL_PAD_EIM_OE__GPIO2_IO25 0x400130b1
  110. /* Green LED 2 - GPIO 56 */
  111. MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x400130b1
  112. >;
  113. };
  114. pinctrl_solidsense_uart2: solidsense-uart2 {
  115. fsl,pins = <
  116. MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
  117. MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
  118. >;
  119. };
  120. pinctrl_solidsense_uart3: solidsense-uart3 {
  121. fsl,pins = <
  122. MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
  123. MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
  124. >;
  125. };
  126. };
  127. };
  128. &pwm1 {
  129. status = "disabled";
  130. };
  131. &sgtl5000 {
  132. status = "disabled";
  133. };
  134. &uart2 {
  135. pinctrl-names = "default";
  136. pinctrl-0 = <&pinctrl_solidsense_uart2>;
  137. status = "okay";
  138. };
  139. &uart3 {
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&pinctrl_solidsense_uart3>;
  142. status = "okay";
  143. };