apq8016-sbc.dtsi 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * Copyright (c) 2015, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #include "msm8916.dtsi"
  14. #include "pm8916.dtsi"
  15. #include "apq8016-sbc-soc-pins.dtsi"
  16. #include "apq8016-sbc-pmic-pins.dtsi"
  17. / {
  18. aliases {
  19. serial0 = &blsp1_uart2;
  20. serial1 = &blsp1_uart1;
  21. };
  22. chosen {
  23. stdout-path = "serial0";
  24. };
  25. soc {
  26. serial@78b0000 {
  27. status = "okay";
  28. pinctrl-names = "default", "sleep";
  29. pinctrl-0 = <&blsp1_uart2_default>;
  30. pinctrl-1 = <&blsp1_uart2_sleep>;
  31. };
  32. i2c@78b6000 {
  33. /* On Low speed expansion */
  34. status = "okay";
  35. };
  36. i2c@78b8000 {
  37. /* On High speed expansion */
  38. status = "okay";
  39. };
  40. i2c@78ba000 {
  41. /* On Low speed expansion */
  42. status = "okay";
  43. };
  44. spi@78b7000 {
  45. /* On High speed expansion */
  46. status = "okay";
  47. };
  48. spi@78b9000 {
  49. /* On Low speed expansion */
  50. status = "okay";
  51. };
  52. leds {
  53. pinctrl-names = "default";
  54. pinctrl-0 = <&msmgpio_leds>,
  55. <&pm8916_gpios_leds>,
  56. <&pm8916_mpps_leds>;
  57. compatible = "gpio-leds";
  58. led@1 {
  59. label = "apq8016-sbc:green:user1";
  60. gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
  61. linux,default-trigger = "heartbeat";
  62. default-state = "off";
  63. };
  64. led@2 {
  65. label = "apq8016-sbc:green:user2";
  66. gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
  67. linux,default-trigger = "mmc0";
  68. default-state = "off";
  69. };
  70. led@3 {
  71. label = "apq8016-sbc:green:user3";
  72. gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
  73. linux,default-trigger = "mmc1";
  74. default-state = "off";
  75. };
  76. led@4 {
  77. label = "apq8016-sbc:green:user4";
  78. gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
  79. linux,default-trigger = "none";
  80. default-state = "off";
  81. };
  82. led@5 {
  83. label = "apq8016-sbc:yellow:wlan";
  84. gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
  85. linux,default-trigger = "wlan";
  86. default-state = "off";
  87. };
  88. led@6 {
  89. label = "apq8016-sbc:blue:bt";
  90. gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
  91. linux,default-trigger = "bluetooth-power";
  92. default-state = "off";
  93. };
  94. };
  95. };
  96. };
  97. &sdhc_1 {
  98. status = "okay";
  99. };