tegra114-tn7.dts 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/input/input.h>
  4. #include "tegra114.dtsi"
  5. / {
  6. model = "Tegra Note 7";
  7. compatible = "nvidia,tn7", "nvidia,tegra114";
  8. chosen {
  9. /* TN7's bootloader's arguments need to be overridden */
  10. bootargs = "console=ttyS0,115200n8 console=tty1 gpt fbcon=rotate:2";
  11. /* TN7's bootloader will place initrd at this address */
  12. linux,initrd-start = <0x82000000>;
  13. linux,initrd-end = <0x82800000>;
  14. };
  15. aliases {
  16. serial0 = &uartd;
  17. };
  18. firmware {
  19. trusted-foundations {
  20. compatible = "tlm,trusted-foundations";
  21. tlm,version-major = <2>;
  22. tlm,version-minor = <8>;
  23. };
  24. };
  25. memory@80000000 {
  26. /* memory >= 0x37e00000 is reserved for firmware usage */
  27. reg = <0x80000000 0x37e00000>;
  28. };
  29. host1x@50000000 {
  30. dsi@54300000 {
  31. status = "okay";
  32. avdd-dsi-csi-supply = <&vdd_1v2_ap>;
  33. panel@0 {
  34. compatible = "lg,ld070wx3-sl01";
  35. reg = <0>;
  36. power-supply = <&vdd_lcd>;
  37. backlight = <&backlight>;
  38. };
  39. };
  40. };
  41. serial@70006300 {
  42. status = "okay";
  43. };
  44. pwm@7000a000 {
  45. status = "okay";
  46. };
  47. i2c@7000d000 {
  48. status = "okay";
  49. clock-frequency = <400000>;
  50. palmas: pmic@58 {
  51. compatible = "ti,tps65913", "ti,palmas";
  52. reg = <0x58>;
  53. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  54. #interrupt-cells = <2>;
  55. interrupt-controller;
  56. ti,system-power-controller;
  57. palmas_gpio: gpio {
  58. compatible = "ti,palmas-gpio";
  59. gpio-controller;
  60. #gpio-cells = <2>;
  61. };
  62. pmic {
  63. compatible = "ti,tps65913-pmic", "ti,palmas-pmic";
  64. ldoln-in-supply = <&vdd_smps10_out2>;
  65. regulators {
  66. smps123 {
  67. regulator-name = "vd-cpu";
  68. regulator-min-microvolt = <1000000>;
  69. regulator-max-microvolt = <1000000>;
  70. regulator-always-on;
  71. regulator-boot-on;
  72. };
  73. smps45 {
  74. regulator-name = "vd-soc";
  75. regulator-min-microvolt = <1100000>;
  76. regulator-max-microvolt = <1100000>;
  77. regulator-always-on;
  78. regulator-boot-on;
  79. };
  80. smps6 {
  81. regulator-name = "va-lcd-hv";
  82. regulator-min-microvolt = <3000000>;
  83. regulator-max-microvolt = <3000000>;
  84. regulator-always-on;
  85. regulator-boot-on;
  86. };
  87. smps7 {
  88. regulator-name = "vd-ddr";
  89. regulator-min-microvolt = <1350000>;
  90. regulator-max-microvolt = <1350000>;
  91. regulator-always-on;
  92. regulator-boot-on;
  93. };
  94. vdd_1v8: smps8 {
  95. regulator-name = "vs-pmu-1v8";
  96. regulator-min-microvolt = <1800000>;
  97. regulator-max-microvolt = <1800000>;
  98. regulator-always-on;
  99. regulator-boot-on;
  100. };
  101. vdd_2v9_sys: smps9 {
  102. regulator-name = "vs-sys-2v9";
  103. regulator-min-microvolt = <2900000>;
  104. regulator-max-microvolt = <2900000>;
  105. regulator-always-on;
  106. regulator-boot-on;
  107. };
  108. vdd_smps10_out1: smps10_out1 {
  109. regulator-name = "vd-smps10-out1";
  110. regulator-min-microvolt = <5000000>;
  111. regulator-max-microvolt = <5000000>;
  112. regulator-always-on;
  113. regulator-boot-on;
  114. };
  115. vdd_smps10_out2: smps10_out2 {
  116. regulator-name = "vd-smps10-out2";
  117. regulator-min-microvolt = <5000000>;
  118. regulator-max-microvolt = <5000000>;
  119. regulator-always-on;
  120. regulator-boot-on;
  121. };
  122. ldo1 {
  123. regulator-name = "va-pllx";
  124. regulator-min-microvolt = <1050000>;
  125. regulator-max-microvolt = <1050000>;
  126. regulator-always-on;
  127. regulator-boot-on;
  128. };
  129. vdd_1v2_ap: ldo2 {
  130. regulator-name = "va-ap-1v2";
  131. regulator-min-microvolt = <1200000>;
  132. regulator-max-microvolt = <1200000>;
  133. regulator-always-on;
  134. regulator-boot-on;
  135. };
  136. ldo3 {
  137. regulator-name = "vd-fuse";
  138. regulator-min-microvolt = <1800000>;
  139. regulator-max-microvolt = <1800000>;
  140. regulator-always-on;
  141. regulator-boot-on;
  142. };
  143. ldo4 {
  144. regulator-name = "vd-ts-hv";
  145. regulator-min-microvolt = <3200000>;
  146. regulator-max-microvolt = <3200000>;
  147. regulator-always-on;
  148. regulator-boot-on;
  149. };
  150. ldo5 {
  151. regulator-name = "va-cam2-hv";
  152. regulator-min-microvolt = <2700000>;
  153. regulator-max-microvolt = <2700000>;
  154. };
  155. ldo6 {
  156. regulator-name = "va-sns-hv";
  157. regulator-min-microvolt = <2850000>;
  158. regulator-max-microvolt = <2850000>;
  159. };
  160. ldo7 {
  161. regulator-name = "va-cam1-hv";
  162. regulator-min-microvolt = <2700000>;
  163. regulator-max-microvolt = <2700000>;
  164. };
  165. ldo8 {
  166. regulator-name = "va-ap-rtc";
  167. regulator-min-microvolt = <1100000>;
  168. regulator-max-microvolt = <1100000>;
  169. ti,enable-ldo8-tracking;
  170. regulator-always-on;
  171. regulator-boot-on;
  172. };
  173. ldo9 {
  174. regulator-name = "vi-sdcard";
  175. regulator-min-microvolt = <2900000>;
  176. regulator-max-microvolt = <2900000>;
  177. };
  178. ldousb {
  179. regulator-name = "avdd-usb";
  180. regulator-min-microvolt = <3300000>;
  181. regulator-max-microvolt = <3300000>;
  182. regulator-always-on;
  183. regulator-boot-on;
  184. };
  185. ldoln {
  186. regulator-name = "va-hdmi";
  187. regulator-min-microvolt = <3300000>;
  188. regulator-max-microvolt = <3300000>;
  189. };
  190. };
  191. };
  192. rtc {
  193. compatible = "ti,palmas-rtc";
  194. interrupt-parent = <&palmas>;
  195. interrupts = <8 0>;
  196. };
  197. };
  198. };
  199. pmc@7000e400 {
  200. nvidia,invert-interrupt;
  201. };
  202. /* eMMC */
  203. mmc@78000600 {
  204. status = "okay";
  205. bus-width = <8>;
  206. non-removable;
  207. };
  208. usb@7d000000 {
  209. status = "okay";
  210. };
  211. usb-phy@7d000000 {
  212. status = "okay";
  213. nvidia,xcvr-setup = <7>;
  214. nvidia,xcvr-lsfslew = <2>;
  215. nvidia,xcvr-lsrslew = <2>;
  216. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  217. /* Should be changed to "otg" once we have vbus_supply */
  218. /* As of now, USB devices need to be powered externally */
  219. dr_mode = "host";
  220. };
  221. backlight: backlight {
  222. compatible = "pwm-backlight";
  223. pwms = <&pwm 1 40000>;
  224. brightness-levels = <0 4 8 16 32 64 128 255>;
  225. default-brightness-level = <6>;
  226. power-supply = <&lcd_bl_en>;
  227. };
  228. clk32k_in: clock-32k {
  229. compatible = "fixed-clock";
  230. clock-frequency = <32768>;
  231. #clock-cells = <0>;
  232. };
  233. gpio-keys {
  234. compatible = "gpio-keys";
  235. key-power {
  236. label = "Power";
  237. gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
  238. linux,code = <KEY_POWER>;
  239. wakeup-source;
  240. };
  241. key-volume-down {
  242. label = "Volume Down";
  243. gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>;
  244. linux,code = <KEY_VOLUMEDOWN>;
  245. };
  246. key-volume-up {
  247. label = "Volume Up";
  248. gpios = <&gpio TEGRA_GPIO(R, 2) GPIO_ACTIVE_LOW>;
  249. linux,code = <KEY_VOLUMEUP>;
  250. };
  251. };
  252. /* FIXME: output of BQ24192 */
  253. vs_sys: regulator-vs {
  254. compatible = "regulator-fixed";
  255. regulator-name = "VS_SYS";
  256. regulator-min-microvolt = <4200000>;
  257. regulator-max-microvolt = <4200000>;
  258. regulator-always-on;
  259. regulator-boot-on;
  260. };
  261. lcd_bl_en: regulator-lcden {
  262. compatible = "regulator-fixed";
  263. regulator-name = "VDD_LCD_BL";
  264. regulator-min-microvolt = <16500000>;
  265. regulator-max-microvolt = <16500000>;
  266. gpio = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
  267. enable-active-high;
  268. vin-supply = <&vs_sys>;
  269. regulator-boot-on;
  270. };
  271. vdd_lcd: regulator-lcd {
  272. compatible = "regulator-fixed";
  273. regulator-name = "VD_LCD_1V8";
  274. regulator-min-microvolt = <1800000>;
  275. regulator-max-microvolt = <1800000>;
  276. gpio = <&palmas_gpio 4 GPIO_ACTIVE_HIGH>;
  277. enable-active-high;
  278. vin-supply = <&vdd_1v8>;
  279. regulator-boot-on;
  280. };
  281. };