sun5i-a10s.dtsi 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /*
  2. * Copyright 2013 Maxime Ripard
  3. *
  4. * Maxime Ripard <[email protected]>
  5. *
  6. * This file is dual-licensed: you can use it either under the terms
  7. * of the GPL or the X11 license, at your option. Note that this dual
  8. * licensing only applies to this file, and not this project as a
  9. * whole.
  10. *
  11. * a) This library is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of the
  14. * License, or (at your option) any later version.
  15. *
  16. * This library is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * Or, alternatively,
  22. *
  23. * b) Permission is hereby granted, free of charge, to any person
  24. * obtaining a copy of this software and associated documentation
  25. * files (the "Software"), to deal in the Software without
  26. * restriction, including without limitation the rights to use,
  27. * copy, modify, merge, publish, distribute, sublicense, and/or
  28. * sell copies of the Software, and to permit persons to whom the
  29. * Software is furnished to do so, subject to the following
  30. * conditions:
  31. *
  32. * The above copyright notice and this permission notice shall be
  33. * included in all copies or substantial portions of the Software.
  34. *
  35. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  36. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  37. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  38. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  39. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  40. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  41. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  42. * OTHER DEALINGS IN THE SOFTWARE.
  43. */
  44. #include "sun5i.dtsi"
  45. #include <dt-bindings/dma/sun4i-a10.h>
  46. / {
  47. aliases {
  48. ethernet0 = &emac;
  49. };
  50. chosen {
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. ranges;
  54. framebuffer-lcd0-hdmi {
  55. compatible = "allwinner,simple-framebuffer",
  56. "simple-framebuffer";
  57. allwinner,pipeline = "de_be0-lcd0-hdmi";
  58. clocks = <&ccu CLK_AHB_LCD>, <&ccu CLK_AHB_HDMI>,
  59. <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DRAM_DE_BE>,
  60. <&ccu CLK_DE_BE>, <&ccu CLK_HDMI>;
  61. status = "disabled";
  62. };
  63. };
  64. display-engine {
  65. compatible = "allwinner,sun5i-a10s-display-engine";
  66. allwinner,pipelines = <&fe0>;
  67. };
  68. soc {
  69. hdmi: hdmi@1c16000 {
  70. compatible = "allwinner,sun5i-a10s-hdmi";
  71. reg = <0x01c16000 0x1000>;
  72. interrupts = <58>;
  73. clocks = <&ccu CLK_AHB_HDMI>, <&ccu CLK_HDMI>,
  74. <&ccu CLK_PLL_VIDEO0_2X>,
  75. <&ccu CLK_PLL_VIDEO1_2X>;
  76. clock-names = "ahb", "mod", "pll-0", "pll-1";
  77. dmas = <&dma SUN4I_DMA_NORMAL 16>,
  78. <&dma SUN4I_DMA_NORMAL 16>,
  79. <&dma SUN4I_DMA_DEDICATED 24>;
  80. dma-names = "ddc-tx", "ddc-rx", "audio-tx";
  81. status = "disabled";
  82. ports {
  83. #address-cells = <1>;
  84. #size-cells = <0>;
  85. hdmi_in: port@0 {
  86. reg = <0>;
  87. hdmi_in_tcon0: endpoint {
  88. remote-endpoint = <&tcon0_out_hdmi>;
  89. };
  90. };
  91. hdmi_out: port@1 {
  92. reg = <1>;
  93. };
  94. };
  95. };
  96. pwm: pwm@1c20e00 {
  97. compatible = "allwinner,sun5i-a10s-pwm";
  98. reg = <0x01c20e00 0xc>;
  99. clocks = <&ccu CLK_HOSC>;
  100. #pwm-cells = <3>;
  101. status = "disabled";
  102. };
  103. };
  104. };
  105. &ccu {
  106. compatible = "allwinner,sun5i-a10s-ccu";
  107. };
  108. &mmc1 {
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&mmc1_pins>;
  111. };
  112. &pio {
  113. compatible = "allwinner,sun5i-a10s-pinctrl";
  114. uart0_pb_pins: uart0-pb-pins {
  115. pins = "PB19", "PB20";
  116. function = "uart0";
  117. };
  118. uart2_pc_pins: uart2-pc-pins {
  119. pins = "PC18", "PC19";
  120. function = "uart2";
  121. };
  122. emac_pa_pins: emac-pa-pins {
  123. pins = "PA0", "PA1", "PA2",
  124. "PA3", "PA4", "PA5", "PA6",
  125. "PA7", "PA8", "PA9", "PA10",
  126. "PA11", "PA12", "PA13", "PA14",
  127. "PA15", "PA16";
  128. function = "emac";
  129. };
  130. mmc1_pins: mmc1-pins {
  131. pins = "PG3", "PG4", "PG5",
  132. "PG6", "PG7", "PG8";
  133. function = "mmc1";
  134. drive-strength = <30>;
  135. };
  136. spi2_pb_pins: spi2-pb-pins {
  137. pins = "PB12", "PB13", "PB14";
  138. function = "spi2";
  139. };
  140. spi2_cs0_pb_pin: spi2-cs0-pb-pin {
  141. pins = "PB11";
  142. function = "spi2";
  143. };
  144. };
  145. &tcon0_out {
  146. tcon0_out_hdmi: endpoint@2 {
  147. reg = <2>;
  148. remote-endpoint = <&hdmi_in_tcon0>;
  149. allwinner,tcon-channel = <1>;
  150. };
  151. };