tegra194-p2888.dtsi 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include "tegra194.dtsi"
  3. #include <dt-bindings/mfd/max77620.h>
  4. / {
  5. model = "NVIDIA Tegra194 P2888 Processor Module";
  6. compatible = "nvidia,p2888", "nvidia,tegra194";
  7. aliases {
  8. sdhci0 = "/cbb/sdhci@3460000";
  9. sdhci1 = "/cbb/sdhci@3400000";
  10. serial0 = &uartb;
  11. i2c0 = "/bpmp/i2c";
  12. i2c1 = "/cbb/i2c@3160000";
  13. i2c2 = "/cbb/i2c@c240000";
  14. i2c3 = "/cbb/i2c@3180000";
  15. i2c4 = "/cbb/i2c@3190000";
  16. i2c5 = "/cbb/i2c@31c0000";
  17. i2c6 = "/cbb/i2c@c250000";
  18. i2c7 = "/cbb/i2c@31e0000";
  19. };
  20. chosen {
  21. bootargs = "console=ttyS0,115200n8";
  22. stdout-path = "serial0:115200n8";
  23. };
  24. cbb {
  25. ethernet@2490000 {
  26. status = "okay";
  27. phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 5) GPIO_ACTIVE_LOW>;
  28. phy-handle = <&phy>;
  29. phy-mode = "rgmii";
  30. mdio {
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. phy: phy@0 {
  34. compatible = "ethernet-phy-ieee802.3-c22";
  35. reg = <0x0>;
  36. interrupt-parent = <&gpio>;
  37. interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>;
  38. };
  39. };
  40. };
  41. serial@3110000 {
  42. status = "okay";
  43. };
  44. /* SDMMC1 (SD/MMC) */
  45. sdhci@3400000 {
  46. cd-gpios = <&gpio TEGRA194_MAIN_GPIO(A, 0) GPIO_ACTIVE_LOW>;
  47. };
  48. /* SDMMC4 (eMMC) */
  49. sdhci@3460000 {
  50. status = "okay";
  51. bus-width = <8>;
  52. non-removable;
  53. vqmmc-supply = <&vdd_1v8ls>;
  54. vmmc-supply = <&vdd_emmc_3v3>;
  55. };
  56. pmc@c360000 {
  57. nvidia,invert-interrupt;
  58. };
  59. };
  60. bpmp {
  61. i2c {
  62. status = "okay";
  63. pmic: pmic@3c {
  64. compatible = "maxim,max20024";
  65. reg = <0x3c>;
  66. interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
  67. #interrupt-cells = <2>;
  68. interrupt-controller;
  69. #gpio-cells = <2>;
  70. gpio-controller;
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&max20024_default>;
  73. max20024_default: pinmux {
  74. gpio0 {
  75. pins = "gpio0";
  76. function = "gpio";
  77. };
  78. gpio1 {
  79. pins = "gpio1";
  80. function = "fps-out";
  81. maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
  82. };
  83. gpio2 {
  84. pins = "gpio2";
  85. function = "fps-out";
  86. maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
  87. };
  88. gpio3 {
  89. pins = "gpio3";
  90. function = "fps-out";
  91. maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
  92. };
  93. gpio4 {
  94. pins = "gpio4";
  95. function = "32k-out1";
  96. drive-push-pull = <1>;
  97. };
  98. gpio6 {
  99. pins = "gpio6";
  100. function = "gpio";
  101. drive-push-pull = <1>;
  102. };
  103. gpio7 {
  104. pins = "gpio7";
  105. function = "gpio";
  106. drive-push-pull = <0>;
  107. };
  108. };
  109. fps {
  110. fps0 {
  111. maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
  112. maxim,shutdown-fps-time-period-us = <640>;
  113. };
  114. fps1 {
  115. maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
  116. maxim,shutdown-fps-time-period-us = <640>;
  117. maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
  118. };
  119. fps2 {
  120. maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
  121. maxim,shutdown-fps-time-period-us = <640>;
  122. };
  123. };
  124. regulators {
  125. in-sd0-supply = <&vdd_5v0_sys>;
  126. in-sd1-supply = <&vdd_5v0_sys>;
  127. in-sd2-supply = <&vdd_5v0_sys>;
  128. in-sd3-supply = <&vdd_5v0_sys>;
  129. in-sd4-supply = <&vdd_5v0_sys>;
  130. in-ldo0-1-supply = <&vdd_5v0_sys>;
  131. in-ldo2-supply = <&vdd_5v0_sys>;
  132. in-ldo3-5-supply = <&vdd_5v0_sys>;
  133. in-ldo4-6-supply = <&vdd_5v0_sys>;
  134. in-ldo7-8-supply = <&vdd_1v8ls>;
  135. sd0 {
  136. regulator-name = "VDD_1V0";
  137. regulator-min-microvolt = <1000000>;
  138. regulator-max-microvolt = <1000000>;
  139. regulator-always-on;
  140. regulator-boot-on;
  141. };
  142. sd1 {
  143. regulator-name = "VDD_1V8HS";
  144. regulator-min-microvolt = <1800000>;
  145. regulator-max-microvolt = <1800000>;
  146. regulator-always-on;
  147. regulator-boot-on;
  148. };
  149. vdd_1v8ls: sd2 {
  150. regulator-name = "VDD_1V8LS";
  151. regulator-min-microvolt = <1800000>;
  152. regulator-max-microvolt = <1800000>;
  153. regulator-always-on;
  154. regulator-boot-on;
  155. };
  156. sd3 {
  157. regulator-name = "VDD_1V8AO";
  158. regulator-min-microvolt = <1800000>;
  159. regulator-max-microvolt = <1800000>;
  160. regulator-always-on;
  161. regulator-boot-on;
  162. };
  163. sd4 {
  164. regulator-name = "VDD_DDR_1V1";
  165. regulator-min-microvolt = <1100000>;
  166. regulator-max-microvolt = <1100000>;
  167. regulator-always-on;
  168. regulator-boot-on;
  169. };
  170. ldo0 {
  171. regulator-name = "VDD_RTC";
  172. regulator-min-microvolt = <800000>;
  173. regulator-max-microvolt = <800000>;
  174. regulator-always-on;
  175. regulator-boot-on;
  176. };
  177. ldo2 {
  178. regulator-name = "VDD_AO_3V3";
  179. regulator-min-microvolt = <3300000>;
  180. regulator-max-microvolt = <3300000>;
  181. regulator-always-on;
  182. regulator-boot-on;
  183. };
  184. vdd_emmc_3v3: ldo3 {
  185. regulator-name = "VDD_EMMC_3V3";
  186. regulator-min-microvolt = <3300000>;
  187. regulator-max-microvolt = <3300000>;
  188. };
  189. ldo5 {
  190. regulator-name = "VDD_USB_3V3";
  191. regulator-min-microvolt = <3300000>;
  192. regulator-max-microvolt = <3300000>;
  193. };
  194. ldo6 {
  195. regulator-name = "VDD_SDIO_3V3";
  196. regulator-min-microvolt = <3300000>;
  197. regulator-max-microvolt = <3300000>;
  198. };
  199. ldo7 {
  200. regulator-name = "VDD_CSI_1V2";
  201. regulator-min-microvolt = <1200000>;
  202. regulator-max-microvolt = <1200000>;
  203. };
  204. };
  205. };
  206. };
  207. };
  208. regulators {
  209. compatible = "simple-bus";
  210. #address-cells = <1>;
  211. #size-cells = <0>;
  212. vdd_5v0_sys: regulator@0 {
  213. compatible = "regulator-fixed";
  214. reg = <0>;
  215. regulator-name = "VIN_SYS_5V0";
  216. regulator-min-microvolt = <5000000>;
  217. regulator-max-microvolt = <5000000>;
  218. regulator-always-on;
  219. regulator-boot-on;
  220. };
  221. };
  222. };