ccu8540-pinctrl.dtsi 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright 2012 ST-Ericsson
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. #include "ste-nomadik-pinctrl.dtsi"
  12. / {
  13. soc {
  14. pinctrl {
  15. uart0 {
  16. uart0_default_mux: uart0_mux {
  17. default_mux {
  18. ste,function = "u0";
  19. ste,pins = "u0_a_1";
  20. };
  21. };
  22. uart0_default_mode: uart0_default {
  23. default_cfg1 {
  24. ste,pins = "GPIO0", "GPIO2";
  25. ste,config = <&in_pu>;
  26. };
  27. default_cfg2 {
  28. ste,pins = "GPIO1", "GPIO3";
  29. ste,config = <&out_hi>;
  30. };
  31. };
  32. uart0_sleep_mode: uart0_sleep {
  33. sleep_cfg1 {
  34. ste,pins = "GPIO0", "GPIO2";
  35. ste,config = <&slpm_in_pu>;
  36. };
  37. sleep_cfg2 {
  38. ste,pins = "GPIO1", "GPIO3";
  39. ste,config = <&slpm_out_hi>;
  40. };
  41. };
  42. };
  43. uart2 {
  44. uart2_default_mode: uart2_default {
  45. default_mux {
  46. ste,function = "u2";
  47. ste,pins = "u2txrx_a_1";
  48. };
  49. default_cfg1 {
  50. ste,pins = "GPIO120";
  51. ste,config = <&in_pu>;
  52. };
  53. default_cfg2 {
  54. ste,pins = "GPIO121";
  55. ste,config = <&out_hi>;
  56. };
  57. };
  58. uart2_sleep_mode: uart2_sleep {
  59. sleep_cfg1 {
  60. ste,pins = "GPIO120";
  61. ste,config = <&slpm_in_pu>;
  62. };
  63. sleep_cfg2 {
  64. ste,pins = "GPIO121";
  65. ste,config = <&slpm_out_hi>;
  66. };
  67. };
  68. };
  69. };
  70. };
  71. };