tegra194-p3668.dtsi 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include "tegra194.dtsi"
  3. #include <dt-bindings/mfd/max77620.h>
  4. / {
  5. aliases {
  6. ethernet0 = "/bus@0/ethernet@2490000";
  7. i2c0 = "/bpmp/i2c";
  8. i2c1 = "/bus@0/i2c@3160000";
  9. i2c2 = "/bus@0/i2c@c240000";
  10. i2c3 = "/bus@0/i2c@3180000";
  11. i2c4 = "/bus@0/i2c@3190000";
  12. i2c5 = "/bus@0/i2c@31c0000";
  13. i2c6 = "/bus@0/i2c@c250000";
  14. i2c7 = "/bus@0/i2c@31e0000";
  15. rtc0 = "/bpmp/i2c/pmic@3c";
  16. rtc1 = "/bus@0/rtc@c2a0000";
  17. serial0 = &tcu;
  18. };
  19. chosen {
  20. bootargs = "console=ttyTCU0,115200n8";
  21. stdout-path = "serial0:115200n8";
  22. };
  23. bus@0 {
  24. ethernet@2490000 {
  25. status = "okay";
  26. phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(R, 1) GPIO_ACTIVE_LOW>;
  27. phy-handle = <&phy>;
  28. phy-mode = "rgmii-id";
  29. mdio {
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. phy: ethernet-phy@0 {
  33. compatible = "ethernet-phy-ieee802.3-c22";
  34. reg = <0x0>;
  35. interrupt-parent = <&gpio>;
  36. interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>;
  37. #phy-cells = <0>;
  38. };
  39. };
  40. };
  41. memory-controller@2c00000 {
  42. status = "okay";
  43. };
  44. i2c@c250000 {
  45. status = "okay";
  46. power-sensor@40 {
  47. compatible = "ti,ina3221";
  48. reg = <0x40>;
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. input@0 {
  52. reg = <0x0>;
  53. label = "VDD_IN";
  54. shunt-resistor-micro-ohms = <5000>;
  55. };
  56. input@1 {
  57. reg = <0x1>;
  58. label = "VDD_CPU_GPU_CV";
  59. shunt-resistor-micro-ohms = <5000>;
  60. };
  61. input@2 {
  62. reg = <0x2>;
  63. label = "VDD_SOC";
  64. shunt-resistor-micro-ohms = <5000>;
  65. };
  66. };
  67. };
  68. serial@3100000 {
  69. status = "okay";
  70. };
  71. i2c@3160000 {
  72. status = "okay";
  73. eeprom@50 {
  74. compatible = "atmel,24c02";
  75. reg = <0x50>;
  76. label = "module";
  77. vcc-supply = <&vdd_1v8ls>;
  78. address-width = <8>;
  79. pagesize = <8>;
  80. size = <256>;
  81. read-only;
  82. };
  83. };
  84. padctl@3520000 {
  85. avdd-usb-supply = <&vdd_usb_3v3>;
  86. vclamp-usb-supply = <&vdd_1v8ao>;
  87. ports {
  88. usb2-1 {
  89. vbus-supply = <&vdd_5v0_sys>;
  90. };
  91. usb2-3 {
  92. vbus-supply = <&vdd_5v0_sys>;
  93. };
  94. usb3-0 {
  95. vbus-supply = <&vdd_5v0_sys>;
  96. };
  97. usb3-3 {
  98. vbus-supply = <&vdd_5v0_sys>;
  99. };
  100. };
  101. };
  102. rtc@c2a0000 {
  103. status = "okay";
  104. };
  105. pmc@c360000 {
  106. nvidia,invert-interrupt;
  107. };
  108. };
  109. bpmp {
  110. i2c {
  111. status = "okay";
  112. pmic: pmic@3c {
  113. compatible = "maxim,max20024";
  114. reg = <0x3c>;
  115. interrupt-parent = <&pmc>;
  116. interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
  117. #interrupt-cells = <2>;
  118. interrupt-controller;
  119. #gpio-cells = <2>;
  120. gpio-controller;
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&max20024_default>;
  123. fps {
  124. fps0 {
  125. maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
  126. maxim,shutdown-fps-time-period-us = <640>;
  127. };
  128. fps1 {
  129. maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
  130. maxim,shutdown-fps-time-period-us = <640>;
  131. maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
  132. };
  133. fps2 {
  134. maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
  135. maxim,shutdown-fps-time-period-us = <640>;
  136. };
  137. };
  138. max20024_default: pinmux {
  139. gpio0 {
  140. pins = "gpio0";
  141. function = "gpio";
  142. };
  143. gpio1 {
  144. pins = "gpio1";
  145. function = "fps-out";
  146. maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
  147. };
  148. gpio2 {
  149. pins = "gpio2";
  150. function = "fps-out";
  151. maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
  152. };
  153. gpio3 {
  154. pins = "gpio3";
  155. function = "fps-out";
  156. maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
  157. };
  158. gpio4 {
  159. pins = "gpio4";
  160. function = "32k-out1";
  161. drive-push-pull = <1>;
  162. };
  163. gpio6 {
  164. pins = "gpio6";
  165. function = "gpio";
  166. drive-push-pull = <1>;
  167. };
  168. gpio7 {
  169. pins = "gpio7";
  170. function = "gpio";
  171. drive-push-pull = <0>;
  172. };
  173. };
  174. regulators {
  175. in-sd0-supply = <&vdd_5v0_sys>;
  176. in-sd1-supply = <&vdd_5v0_sys>;
  177. in-sd2-supply = <&vdd_5v0_sys>;
  178. in-sd3-supply = <&vdd_5v0_sys>;
  179. in-sd4-supply = <&vdd_5v0_sys>;
  180. in-ldo0-1-supply = <&vdd_5v0_sys>;
  181. in-ldo2-supply = <&vdd_5v0_sys>;
  182. in-ldo3-5-supply = <&vdd_5v0_sys>;
  183. in-ldo4-6-supply = <&vdd_5v0_sys>;
  184. in-ldo7-8-supply = <&vdd_1v8ls>;
  185. vdd_1v0: sd0 {
  186. regulator-name = "VDDIO_SYS_1V0";
  187. regulator-min-microvolt = <1000000>;
  188. regulator-max-microvolt = <1000000>;
  189. regulator-always-on;
  190. regulator-boot-on;
  191. };
  192. vdd_1v8hs: sd1 {
  193. regulator-name = "VDDIO_SYS_1V8HS";
  194. regulator-min-microvolt = <1800000>;
  195. regulator-max-microvolt = <1800000>;
  196. regulator-always-on;
  197. regulator-boot-on;
  198. };
  199. vdd_1v8ls: sd2 {
  200. regulator-name = "VDDIO_SYS_1V8LS";
  201. regulator-min-microvolt = <1800000>;
  202. regulator-max-microvolt = <1800000>;
  203. regulator-always-on;
  204. regulator-boot-on;
  205. };
  206. vdd_1v8ao: sd3 {
  207. regulator-name = "VDDIO_AO_1V8";
  208. regulator-min-microvolt = <1800000>;
  209. regulator-max-microvolt = <1800000>;
  210. regulator-always-on;
  211. regulator-boot-on;
  212. };
  213. sd4 {
  214. regulator-name = "VDD_DDR_1V1";
  215. regulator-min-microvolt = <1100000>;
  216. regulator-max-microvolt = <1100000>;
  217. regulator-always-on;
  218. regulator-boot-on;
  219. };
  220. ldo0 {
  221. regulator-name = "VDD_RTC";
  222. regulator-min-microvolt = <800000>;
  223. regulator-max-microvolt = <800000>;
  224. regulator-always-on;
  225. regulator-boot-on;
  226. };
  227. ldo2 {
  228. regulator-name = "VDDIO_AO_3V3";
  229. regulator-min-microvolt = <3300000>;
  230. regulator-max-microvolt = <3300000>;
  231. regulator-always-on;
  232. regulator-boot-on;
  233. };
  234. vdd_emmc_3v3: ldo3 {
  235. regulator-name = "VDD_EMMC_3V3";
  236. regulator-min-microvolt = <3300000>;
  237. regulator-max-microvolt = <3300000>;
  238. };
  239. vdd_usb_3v3: ldo5 {
  240. regulator-name = "VDD_USB_3V3";
  241. regulator-min-microvolt = <3300000>;
  242. regulator-max-microvolt = <3300000>;
  243. regulator-always-on;
  244. regulator-boot-on;
  245. };
  246. ldo6 {
  247. regulator-name = "VDD_SDIO_3V3";
  248. regulator-min-microvolt = <3300000>;
  249. regulator-max-microvolt = <3300000>;
  250. };
  251. ldo7 {
  252. regulator-name = "AVDD_CSI_1V2";
  253. regulator-min-microvolt = <1200000>;
  254. regulator-max-microvolt = <1200000>;
  255. };
  256. };
  257. };
  258. };
  259. };
  260. };