rk3328.dtsi 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
  4. */
  5. #include <dt-bindings/clock/rk3328-cru.h>
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. #include <dt-bindings/pinctrl/rockchip.h>
  10. #include <dt-bindings/power/rk3328-power.h>
  11. #include <dt-bindings/soc/rockchip,boot-mode.h>
  12. #include <dt-bindings/thermal/thermal.h>
  13. / {
  14. compatible = "rockchip,rk3328";
  15. interrupt-parent = <&gic>;
  16. #address-cells = <2>;
  17. #size-cells = <2>;
  18. aliases {
  19. serial0 = &uart0;
  20. serial1 = &uart1;
  21. serial2 = &uart2;
  22. i2c0 = &i2c0;
  23. i2c1 = &i2c1;
  24. i2c2 = &i2c2;
  25. i2c3 = &i2c3;
  26. ethernet0 = &gmac2io;
  27. ethernet1 = &gmac2phy;
  28. };
  29. cpus {
  30. #address-cells = <2>;
  31. #size-cells = <0>;
  32. cpu0: cpu@0 {
  33. device_type = "cpu";
  34. compatible = "arm,cortex-a53", "arm,armv8";
  35. reg = <0x0 0x0>;
  36. clocks = <&cru ARMCLK>;
  37. #cooling-cells = <2>;
  38. dynamic-power-coefficient = <120>;
  39. enable-method = "psci";
  40. next-level-cache = <&l2>;
  41. operating-points-v2 = <&cpu0_opp_table>;
  42. };
  43. cpu1: cpu@1 {
  44. device_type = "cpu";
  45. compatible = "arm,cortex-a53", "arm,armv8";
  46. reg = <0x0 0x1>;
  47. clocks = <&cru ARMCLK>;
  48. #cooling-cells = <2>;
  49. dynamic-power-coefficient = <120>;
  50. enable-method = "psci";
  51. next-level-cache = <&l2>;
  52. operating-points-v2 = <&cpu0_opp_table>;
  53. };
  54. cpu2: cpu@2 {
  55. device_type = "cpu";
  56. compatible = "arm,cortex-a53", "arm,armv8";
  57. reg = <0x0 0x2>;
  58. clocks = <&cru ARMCLK>;
  59. #cooling-cells = <2>;
  60. dynamic-power-coefficient = <120>;
  61. enable-method = "psci";
  62. next-level-cache = <&l2>;
  63. operating-points-v2 = <&cpu0_opp_table>;
  64. };
  65. cpu3: cpu@3 {
  66. device_type = "cpu";
  67. compatible = "arm,cortex-a53", "arm,armv8";
  68. reg = <0x0 0x3>;
  69. clocks = <&cru ARMCLK>;
  70. #cooling-cells = <2>;
  71. dynamic-power-coefficient = <120>;
  72. enable-method = "psci";
  73. next-level-cache = <&l2>;
  74. operating-points-v2 = <&cpu0_opp_table>;
  75. };
  76. l2: l2-cache0 {
  77. compatible = "cache";
  78. };
  79. };
  80. cpu0_opp_table: opp_table0 {
  81. compatible = "operating-points-v2";
  82. opp-shared;
  83. opp-408000000 {
  84. opp-hz = /bits/ 64 <408000000>;
  85. opp-microvolt = <950000>;
  86. clock-latency-ns = <40000>;
  87. opp-suspend;
  88. };
  89. opp-600000000 {
  90. opp-hz = /bits/ 64 <600000000>;
  91. opp-microvolt = <950000>;
  92. clock-latency-ns = <40000>;
  93. };
  94. opp-816000000 {
  95. opp-hz = /bits/ 64 <816000000>;
  96. opp-microvolt = <1000000>;
  97. clock-latency-ns = <40000>;
  98. };
  99. opp-1008000000 {
  100. opp-hz = /bits/ 64 <1008000000>;
  101. opp-microvolt = <1100000>;
  102. clock-latency-ns = <40000>;
  103. };
  104. opp-1200000000 {
  105. opp-hz = /bits/ 64 <1200000000>;
  106. opp-microvolt = <1225000>;
  107. clock-latency-ns = <40000>;
  108. };
  109. opp-1296000000 {
  110. opp-hz = /bits/ 64 <1296000000>;
  111. opp-microvolt = <1300000>;
  112. clock-latency-ns = <40000>;
  113. };
  114. };
  115. amba {
  116. compatible = "simple-bus";
  117. #address-cells = <2>;
  118. #size-cells = <2>;
  119. ranges;
  120. dmac: dmac@ff1f0000 {
  121. compatible = "arm,pl330", "arm,primecell";
  122. reg = <0x0 0xff1f0000 0x0 0x4000>;
  123. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
  124. <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  125. clocks = <&cru ACLK_DMAC>;
  126. clock-names = "apb_pclk";
  127. #dma-cells = <1>;
  128. };
  129. };
  130. arm-pmu {
  131. compatible = "arm,cortex-a53-pmu";
  132. interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
  133. <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
  134. <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
  135. <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
  136. interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
  137. };
  138. psci {
  139. compatible = "arm,psci-1.0", "arm,psci-0.2";
  140. method = "smc";
  141. };
  142. timer {
  143. compatible = "arm,armv8-timer";
  144. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  145. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  146. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  147. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  148. };
  149. xin24m: xin24m {
  150. compatible = "fixed-clock";
  151. #clock-cells = <0>;
  152. clock-frequency = <24000000>;
  153. clock-output-names = "xin24m";
  154. };
  155. i2s0: i2s@ff000000 {
  156. compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
  157. reg = <0x0 0xff000000 0x0 0x1000>;
  158. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  159. clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
  160. clock-names = "i2s_clk", "i2s_hclk";
  161. dmas = <&dmac 11>, <&dmac 12>;
  162. dma-names = "tx", "rx";
  163. status = "disabled";
  164. };
  165. i2s1: i2s@ff010000 {
  166. compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
  167. reg = <0x0 0xff010000 0x0 0x1000>;
  168. interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
  169. clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
  170. clock-names = "i2s_clk", "i2s_hclk";
  171. dmas = <&dmac 14>, <&dmac 15>;
  172. dma-names = "tx", "rx";
  173. status = "disabled";
  174. };
  175. i2s2: i2s@ff020000 {
  176. compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
  177. reg = <0x0 0xff020000 0x0 0x1000>;
  178. interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
  179. clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
  180. clock-names = "i2s_clk", "i2s_hclk";
  181. dmas = <&dmac 0>, <&dmac 1>;
  182. dma-names = "tx", "rx";
  183. status = "disabled";
  184. };
  185. spdif: spdif@ff030000 {
  186. compatible = "rockchip,rk3328-spdif";
  187. reg = <0x0 0xff030000 0x0 0x1000>;
  188. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  189. clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
  190. clock-names = "mclk", "hclk";
  191. dmas = <&dmac 10>;
  192. dma-names = "tx";
  193. pinctrl-names = "default";
  194. pinctrl-0 = <&spdifm2_tx>;
  195. status = "disabled";
  196. };
  197. pdm: pdm@ff040000 {
  198. compatible = "rockchip,pdm";
  199. reg = <0x0 0xff040000 0x0 0x1000>;
  200. clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
  201. clock-names = "pdm_clk", "pdm_hclk";
  202. dmas = <&dmac 16>;
  203. dma-names = "rx";
  204. pinctrl-names = "default", "sleep";
  205. pinctrl-0 = <&pdmm0_clk
  206. &pdmm0_sdi0
  207. &pdmm0_sdi1
  208. &pdmm0_sdi2
  209. &pdmm0_sdi3>;
  210. pinctrl-1 = <&pdmm0_clk_sleep
  211. &pdmm0_sdi0_sleep
  212. &pdmm0_sdi1_sleep
  213. &pdmm0_sdi2_sleep
  214. &pdmm0_sdi3_sleep>;
  215. status = "disabled";
  216. };
  217. grf: syscon@ff100000 {
  218. compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
  219. reg = <0x0 0xff100000 0x0 0x1000>;
  220. #address-cells = <1>;
  221. #size-cells = <1>;
  222. io_domains: io-domains {
  223. compatible = "rockchip,rk3328-io-voltage-domain";
  224. status = "disabled";
  225. };
  226. power: power-controller {
  227. compatible = "rockchip,rk3328-power-controller";
  228. #power-domain-cells = <1>;
  229. #address-cells = <1>;
  230. #size-cells = <0>;
  231. pd_hevc@RK3328_PD_HEVC {
  232. reg = <RK3328_PD_HEVC>;
  233. };
  234. pd_video@RK3328_PD_VIDEO {
  235. reg = <RK3328_PD_VIDEO>;
  236. };
  237. pd_vpu@RK3328_PD_VPU {
  238. reg = <RK3328_PD_VPU>;
  239. };
  240. };
  241. reboot-mode {
  242. compatible = "syscon-reboot-mode";
  243. offset = <0x5c8>;
  244. mode-normal = <BOOT_NORMAL>;
  245. mode-recovery = <BOOT_RECOVERY>;
  246. mode-bootloader = <BOOT_FASTBOOT>;
  247. mode-loader = <BOOT_BL_DOWNLOAD>;
  248. };
  249. };
  250. uart0: serial@ff110000 {
  251. compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
  252. reg = <0x0 0xff110000 0x0 0x100>;
  253. interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
  254. clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
  255. clock-names = "baudclk", "apb_pclk";
  256. dmas = <&dmac 2>, <&dmac 3>;
  257. dma-names = "tx", "rx";
  258. pinctrl-names = "default";
  259. pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
  260. reg-io-width = <4>;
  261. reg-shift = <2>;
  262. status = "disabled";
  263. };
  264. uart1: serial@ff120000 {
  265. compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
  266. reg = <0x0 0xff120000 0x0 0x100>;
  267. interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  268. clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
  269. clock-names = "baudclk", "apb_pclk";
  270. dmas = <&dmac 4>, <&dmac 5>;
  271. dma-names = "tx", "rx";
  272. pinctrl-names = "default";
  273. pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
  274. reg-io-width = <4>;
  275. reg-shift = <2>;
  276. status = "disabled";
  277. };
  278. uart2: serial@ff130000 {
  279. compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
  280. reg = <0x0 0xff130000 0x0 0x100>;
  281. interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
  282. clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
  283. clock-names = "baudclk", "apb_pclk";
  284. dmas = <&dmac 6>, <&dmac 7>;
  285. dma-names = "tx", "rx";
  286. pinctrl-names = "default";
  287. pinctrl-0 = <&uart2m1_xfer>;
  288. reg-io-width = <4>;
  289. reg-shift = <2>;
  290. status = "disabled";
  291. };
  292. i2c0: i2c@ff150000 {
  293. compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
  294. reg = <0x0 0xff150000 0x0 0x1000>;
  295. interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
  296. #address-cells = <1>;
  297. #size-cells = <0>;
  298. clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>;
  299. clock-names = "i2c", "pclk";
  300. pinctrl-names = "default";
  301. pinctrl-0 = <&i2c0_xfer>;
  302. status = "disabled";
  303. };
  304. i2c1: i2c@ff160000 {
  305. compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
  306. reg = <0x0 0xff160000 0x0 0x1000>;
  307. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  308. #address-cells = <1>;
  309. #size-cells = <0>;
  310. clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
  311. clock-names = "i2c", "pclk";
  312. pinctrl-names = "default";
  313. pinctrl-0 = <&i2c1_xfer>;
  314. status = "disabled";
  315. };
  316. i2c2: i2c@ff170000 {
  317. compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
  318. reg = <0x0 0xff170000 0x0 0x1000>;
  319. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  320. #address-cells = <1>;
  321. #size-cells = <0>;
  322. clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
  323. clock-names = "i2c", "pclk";
  324. pinctrl-names = "default";
  325. pinctrl-0 = <&i2c2_xfer>;
  326. status = "disabled";
  327. };
  328. i2c3: i2c@ff180000 {
  329. compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
  330. reg = <0x0 0xff180000 0x0 0x1000>;
  331. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  332. #address-cells = <1>;
  333. #size-cells = <0>;
  334. clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
  335. clock-names = "i2c", "pclk";
  336. pinctrl-names = "default";
  337. pinctrl-0 = <&i2c3_xfer>;
  338. status = "disabled";
  339. };
  340. spi0: spi@ff190000 {
  341. compatible = "rockchip,rk3328-spi", "rockchip,rk3066-spi";
  342. reg = <0x0 0xff190000 0x0 0x1000>;
  343. interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
  344. #address-cells = <1>;
  345. #size-cells = <0>;
  346. clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
  347. clock-names = "spiclk", "apb_pclk";
  348. dmas = <&dmac 8>, <&dmac 9>;
  349. dma-names = "tx", "rx";
  350. pinctrl-names = "default";
  351. pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>;
  352. status = "disabled";
  353. };
  354. wdt: watchdog@ff1a0000 {
  355. compatible = "snps,dw-wdt";
  356. reg = <0x0 0xff1a0000 0x0 0x100>;
  357. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
  358. };
  359. pwm0: pwm@ff1b0000 {
  360. compatible = "rockchip,rk3328-pwm";
  361. reg = <0x0 0xff1b0000 0x0 0x10>;
  362. clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
  363. clock-names = "pwm", "pclk";
  364. pinctrl-names = "default";
  365. pinctrl-0 = <&pwm0_pin>;
  366. #pwm-cells = <3>;
  367. status = "disabled";
  368. };
  369. pwm1: pwm@ff1b0010 {
  370. compatible = "rockchip,rk3328-pwm";
  371. reg = <0x0 0xff1b0010 0x0 0x10>;
  372. clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
  373. clock-names = "pwm", "pclk";
  374. pinctrl-names = "default";
  375. pinctrl-0 = <&pwm1_pin>;
  376. #pwm-cells = <3>;
  377. status = "disabled";
  378. };
  379. pwm2: pwm@ff1b0020 {
  380. compatible = "rockchip,rk3328-pwm";
  381. reg = <0x0 0xff1b0020 0x0 0x10>;
  382. clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
  383. clock-names = "pwm", "pclk";
  384. pinctrl-names = "default";
  385. pinctrl-0 = <&pwm2_pin>;
  386. #pwm-cells = <3>;
  387. status = "disabled";
  388. };
  389. pwm3: pwm@ff1b0030 {
  390. compatible = "rockchip,rk3328-pwm";
  391. reg = <0x0 0xff1b0030 0x0 0x10>;
  392. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  393. clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
  394. clock-names = "pwm", "pclk";
  395. pinctrl-names = "default";
  396. pinctrl-0 = <&pwmir_pin>;
  397. #pwm-cells = <3>;
  398. status = "disabled";
  399. };
  400. thermal-zones {
  401. soc_thermal: soc-thermal {
  402. polling-delay-passive = <20>;
  403. polling-delay = <1000>;
  404. sustainable-power = <1000>;
  405. thermal-sensors = <&tsadc 0>;
  406. trips {
  407. threshold: trip-point0 {
  408. temperature = <70000>;
  409. hysteresis = <2000>;
  410. type = "passive";
  411. };
  412. target: trip-point1 {
  413. temperature = <85000>;
  414. hysteresis = <2000>;
  415. type = "passive";
  416. };
  417. soc_crit: soc-crit {
  418. temperature = <95000>;
  419. hysteresis = <2000>;
  420. type = "critical";
  421. };
  422. };
  423. cooling-maps {
  424. map0 {
  425. trip = <&target>;
  426. cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  427. contribution = <4096>;
  428. };
  429. };
  430. };
  431. };
  432. tsadc: tsadc@ff250000 {
  433. compatible = "rockchip,rk3328-tsadc";
  434. reg = <0x0 0xff250000 0x0 0x100>;
  435. interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
  436. assigned-clocks = <&cru SCLK_TSADC>;
  437. assigned-clock-rates = <50000>;
  438. clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
  439. clock-names = "tsadc", "apb_pclk";
  440. pinctrl-names = "init", "default", "sleep";
  441. pinctrl-0 = <&otp_gpio>;
  442. pinctrl-1 = <&otp_out>;
  443. pinctrl-2 = <&otp_gpio>;
  444. resets = <&cru SRST_TSADC>;
  445. reset-names = "tsadc-apb";
  446. rockchip,grf = <&grf>;
  447. rockchip,hw-tshut-temp = <100000>;
  448. #thermal-sensor-cells = <1>;
  449. status = "disabled";
  450. };
  451. efuse: efuse@ff260000 {
  452. compatible = "rockchip,rk3328-efuse";
  453. reg = <0x0 0xff260000 0x0 0x50>;
  454. #address-cells = <1>;
  455. #size-cells = <1>;
  456. clocks = <&cru SCLK_EFUSE>;
  457. clock-names = "pclk_efuse";
  458. rockchip,efuse-size = <0x20>;
  459. /* Data cells */
  460. efuse_id: id@7 {
  461. reg = <0x07 0x10>;
  462. };
  463. cpu_leakage: cpu-leakage@17 {
  464. reg = <0x17 0x1>;
  465. };
  466. logic_leakage: logic-leakage@19 {
  467. reg = <0x19 0x1>;
  468. };
  469. efuse_cpu_version: cpu-version@1a {
  470. reg = <0x1a 0x1>;
  471. bits = <3 3>;
  472. };
  473. };
  474. saradc: adc@ff280000 {
  475. compatible = "rockchip,rk3328-saradc", "rockchip,rk3399-saradc";
  476. reg = <0x0 0xff280000 0x0 0x100>;
  477. interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
  478. #io-channel-cells = <1>;
  479. clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
  480. clock-names = "saradc", "apb_pclk";
  481. resets = <&cru SRST_SARADC_P>;
  482. reset-names = "saradc-apb";
  483. status = "disabled";
  484. };
  485. gpu: gpu@ff300000 {
  486. compatible = "rockchip,rk3328-mali", "arm,mali-450";
  487. reg = <0x0 0xff300000 0x0 0x40000>;
  488. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
  489. <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
  490. <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
  491. <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
  492. <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
  493. <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
  494. <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
  495. interrupt-names = "gp",
  496. "gpmmu",
  497. "pp",
  498. "pp0",
  499. "ppmmu0",
  500. "pp1",
  501. "ppmmu1";
  502. clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
  503. clock-names = "bus", "core";
  504. resets = <&cru SRST_GPU_A>;
  505. };
  506. h265e_mmu: iommu@ff330200 {
  507. compatible = "rockchip,iommu";
  508. reg = <0x0 0xff330200 0 0x100>;
  509. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
  510. interrupt-names = "h265e_mmu";
  511. clocks = <&cru ACLK_H265>, <&cru PCLK_H265>;
  512. clock-names = "aclk", "iface";
  513. #iommu-cells = <0>;
  514. status = "disabled";
  515. };
  516. vepu_mmu: iommu@ff340800 {
  517. compatible = "rockchip,iommu";
  518. reg = <0x0 0xff340800 0x0 0x40>;
  519. interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
  520. interrupt-names = "vepu_mmu";
  521. clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
  522. clock-names = "aclk", "iface";
  523. #iommu-cells = <0>;
  524. status = "disabled";
  525. };
  526. vpu_mmu: iommu@ff350800 {
  527. compatible = "rockchip,iommu";
  528. reg = <0x0 0xff350800 0x0 0x40>;
  529. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  530. interrupt-names = "vpu_mmu";
  531. clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
  532. clock-names = "aclk", "iface";
  533. #iommu-cells = <0>;
  534. status = "disabled";
  535. };
  536. rkvdec_mmu: iommu@ff360480 {
  537. compatible = "rockchip,iommu";
  538. reg = <0x0 0xff360480 0x0 0x40>, <0x0 0xff3604c0 0x0 0x40>;
  539. interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  540. interrupt-names = "rkvdec_mmu";
  541. clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>;
  542. clock-names = "aclk", "iface";
  543. #iommu-cells = <0>;
  544. status = "disabled";
  545. };
  546. vop_mmu: iommu@ff373f00 {
  547. compatible = "rockchip,iommu";
  548. reg = <0x0 0xff373f00 0x0 0x100>;
  549. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  550. interrupt-names = "vop_mmu";
  551. clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
  552. clock-names = "aclk", "iface";
  553. #iommu-cells = <0>;
  554. status = "disabled";
  555. };
  556. cru: clock-controller@ff440000 {
  557. compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon";
  558. reg = <0x0 0xff440000 0x0 0x1000>;
  559. rockchip,grf = <&grf>;
  560. #clock-cells = <1>;
  561. #reset-cells = <1>;
  562. assigned-clocks =
  563. /*
  564. * CPLL should run at 1200, but that is to high for
  565. * the initial dividers of most of its children.
  566. * We need set cpll child clk div first,
  567. * and then set the cpll frequency.
  568. */
  569. <&cru DCLK_LCDC>, <&cru SCLK_PDM>,
  570. <&cru SCLK_RTC32K>, <&cru SCLK_UART0>,
  571. <&cru SCLK_UART1>, <&cru SCLK_UART2>,
  572. <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
  573. <&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>,
  574. <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
  575. <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
  576. <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
  577. <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
  578. <&cru SCLK_SDIO>, <&cru SCLK_TSP>,
  579. <&cru SCLK_WIFI>, <&cru ARMCLK>,
  580. <&cru PLL_GPLL>, <&cru PLL_CPLL>,
  581. <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>,
  582. <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
  583. <&cru HCLK_PERI>, <&cru PCLK_PERI>,
  584. <&cru SCLK_RTC32K>;
  585. assigned-clock-parents =
  586. <&cru HDMIPHY>, <&cru PLL_APLL>,
  587. <&cru PLL_GPLL>, <&xin24m>,
  588. <&xin24m>, <&xin24m>;
  589. assigned-clock-rates =
  590. <0>, <61440000>,
  591. <0>, <24000000>,
  592. <24000000>, <24000000>,
  593. <15000000>, <15000000>,
  594. <100000000>, <100000000>,
  595. <100000000>, <100000000>,
  596. <50000000>, <100000000>,
  597. <100000000>, <100000000>,
  598. <50000000>, <50000000>,
  599. <50000000>, <50000000>,
  600. <24000000>, <600000000>,
  601. <491520000>, <1200000000>,
  602. <150000000>, <75000000>,
  603. <75000000>, <150000000>,
  604. <75000000>, <75000000>,
  605. <32768>;
  606. };
  607. usb2phy_grf: syscon@ff450000 {
  608. compatible = "rockchip,rk3328-usb2phy-grf", "syscon",
  609. "simple-mfd";
  610. reg = <0x0 0xff450000 0x0 0x10000>;
  611. #address-cells = <1>;
  612. #size-cells = <1>;
  613. u2phy: usb2-phy@100 {
  614. compatible = "rockchip,rk3328-usb2phy";
  615. reg = <0x100 0x10>;
  616. clocks = <&xin24m>;
  617. clock-names = "phyclk";
  618. clock-output-names = "usb480m_phy";
  619. #clock-cells = <0>;
  620. assigned-clocks = <&cru USB480M>;
  621. assigned-clock-parents = <&u2phy>;
  622. status = "disabled";
  623. u2phy_otg: otg-port {
  624. #phy-cells = <0>;
  625. interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
  626. <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
  627. <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  628. interrupt-names = "otg-bvalid", "otg-id",
  629. "linestate";
  630. status = "disabled";
  631. };
  632. u2phy_host: host-port {
  633. #phy-cells = <0>;
  634. interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  635. interrupt-names = "linestate";
  636. status = "disabled";
  637. };
  638. };
  639. };
  640. sdmmc: dwmmc@ff500000 {
  641. compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
  642. reg = <0x0 0xff500000 0x0 0x4000>;
  643. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  644. clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
  645. <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
  646. clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
  647. fifo-depth = <0x100>;
  648. max-frequency = <150000000>;
  649. status = "disabled";
  650. };
  651. sdio: dwmmc@ff510000 {
  652. compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
  653. reg = <0x0 0xff510000 0x0 0x4000>;
  654. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  655. clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
  656. <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
  657. clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
  658. fifo-depth = <0x100>;
  659. max-frequency = <150000000>;
  660. status = "disabled";
  661. };
  662. emmc: dwmmc@ff520000 {
  663. compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
  664. reg = <0x0 0xff520000 0x0 0x4000>;
  665. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
  666. clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
  667. <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
  668. clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
  669. fifo-depth = <0x100>;
  670. max-frequency = <150000000>;
  671. status = "disabled";
  672. };
  673. gmac2io: ethernet@ff540000 {
  674. compatible = "rockchip,rk3328-gmac";
  675. reg = <0x0 0xff540000 0x0 0x10000>;
  676. interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  677. interrupt-names = "macirq";
  678. clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_RX>,
  679. <&cru SCLK_MAC2IO_TX>, <&cru SCLK_MAC2IO_REF>,
  680. <&cru SCLK_MAC2IO_REFOUT>, <&cru ACLK_MAC2IO>,
  681. <&cru PCLK_MAC2IO>;
  682. clock-names = "stmmaceth", "mac_clk_rx",
  683. "mac_clk_tx", "clk_mac_ref",
  684. "clk_mac_refout", "aclk_mac",
  685. "pclk_mac";
  686. resets = <&cru SRST_GMAC2IO_A>;
  687. reset-names = "stmmaceth";
  688. rockchip,grf = <&grf>;
  689. status = "disabled";
  690. };
  691. gmac2phy: ethernet@ff550000 {
  692. compatible = "rockchip,rk3328-gmac";
  693. reg = <0x0 0xff550000 0x0 0x10000>;
  694. rockchip,grf = <&grf>;
  695. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  696. interrupt-names = "macirq";
  697. clocks = <&cru SCLK_MAC2PHY_SRC>, <&cru SCLK_MAC2PHY_RXTX>,
  698. <&cru SCLK_MAC2PHY_RXTX>, <&cru SCLK_MAC2PHY_REF>,
  699. <&cru ACLK_MAC2PHY>, <&cru PCLK_MAC2PHY>,
  700. <&cru SCLK_MAC2PHY_OUT>;
  701. clock-names = "stmmaceth", "mac_clk_rx",
  702. "mac_clk_tx", "clk_mac_ref",
  703. "aclk_mac", "pclk_mac",
  704. "clk_macphy";
  705. resets = <&cru SRST_GMAC2PHY_A>, <&cru SRST_MACPHY>;
  706. reset-names = "stmmaceth", "mac-phy";
  707. phy-mode = "rmii";
  708. phy-handle = <&phy>;
  709. status = "disabled";
  710. mdio {
  711. compatible = "snps,dwmac-mdio";
  712. #address-cells = <1>;
  713. #size-cells = <0>;
  714. phy: phy@0 {
  715. compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
  716. reg = <0>;
  717. clocks = <&cru SCLK_MAC2PHY_OUT>;
  718. resets = <&cru SRST_MACPHY>;
  719. pinctrl-names = "default";
  720. pinctrl-0 = <&fephyled_rxm1 &fephyled_linkm1>;
  721. phy-is-integrated;
  722. };
  723. };
  724. };
  725. usb20_otg: usb@ff580000 {
  726. compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
  727. "snps,dwc2";
  728. reg = <0x0 0xff580000 0x0 0x40000>;
  729. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  730. clocks = <&cru HCLK_OTG>;
  731. clock-names = "otg";
  732. dr_mode = "otg";
  733. g-np-tx-fifo-size = <16>;
  734. g-rx-fifo-size = <280>;
  735. g-tx-fifo-size = <256 128 128 64 32 16>;
  736. g-use-dma;
  737. phys = <&u2phy_otg>;
  738. phy-names = "usb2-phy";
  739. status = "disabled";
  740. };
  741. usb_host0_ehci: usb@ff5c0000 {
  742. compatible = "generic-ehci";
  743. reg = <0x0 0xff5c0000 0x0 0x10000>;
  744. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  745. clocks = <&cru HCLK_HOST0>, <&u2phy>;
  746. clock-names = "usbhost", "utmi";
  747. phys = <&u2phy_host>;
  748. phy-names = "usb";
  749. status = "disabled";
  750. };
  751. usb_host0_ohci: usb@ff5d0000 {
  752. compatible = "generic-ohci";
  753. reg = <0x0 0xff5d0000 0x0 0x10000>;
  754. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  755. clocks = <&cru HCLK_HOST0>, <&u2phy>;
  756. clock-names = "usbhost", "utmi";
  757. phys = <&u2phy_host>;
  758. phy-names = "usb";
  759. status = "disabled";
  760. };
  761. gic: interrupt-controller@ff811000 {
  762. compatible = "arm,gic-400";
  763. #interrupt-cells = <3>;
  764. #address-cells = <0>;
  765. interrupt-controller;
  766. reg = <0x0 0xff811000 0 0x1000>,
  767. <0x0 0xff812000 0 0x2000>,
  768. <0x0 0xff814000 0 0x2000>,
  769. <0x0 0xff816000 0 0x2000>;
  770. interrupts = <GIC_PPI 9
  771. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  772. };
  773. pinctrl: pinctrl {
  774. compatible = "rockchip,rk3328-pinctrl";
  775. rockchip,grf = <&grf>;
  776. #address-cells = <2>;
  777. #size-cells = <2>;
  778. ranges;
  779. gpio0: gpio0@ff210000 {
  780. compatible = "rockchip,gpio-bank";
  781. reg = <0x0 0xff210000 0x0 0x100>;
  782. interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
  783. clocks = <&cru PCLK_GPIO0>;
  784. gpio-controller;
  785. #gpio-cells = <2>;
  786. interrupt-controller;
  787. #interrupt-cells = <2>;
  788. };
  789. gpio1: gpio1@ff220000 {
  790. compatible = "rockchip,gpio-bank";
  791. reg = <0x0 0xff220000 0x0 0x100>;
  792. interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
  793. clocks = <&cru PCLK_GPIO1>;
  794. gpio-controller;
  795. #gpio-cells = <2>;
  796. interrupt-controller;
  797. #interrupt-cells = <2>;
  798. };
  799. gpio2: gpio2@ff230000 {
  800. compatible = "rockchip,gpio-bank";
  801. reg = <0x0 0xff230000 0x0 0x100>;
  802. interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
  803. clocks = <&cru PCLK_GPIO2>;
  804. gpio-controller;
  805. #gpio-cells = <2>;
  806. interrupt-controller;
  807. #interrupt-cells = <2>;
  808. };
  809. gpio3: gpio3@ff240000 {
  810. compatible = "rockchip,gpio-bank";
  811. reg = <0x0 0xff240000 0x0 0x100>;
  812. interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
  813. clocks = <&cru PCLK_GPIO3>;
  814. gpio-controller;
  815. #gpio-cells = <2>;
  816. interrupt-controller;
  817. #interrupt-cells = <2>;
  818. };
  819. pcfg_pull_up: pcfg-pull-up {
  820. bias-pull-up;
  821. };
  822. pcfg_pull_down: pcfg-pull-down {
  823. bias-pull-down;
  824. };
  825. pcfg_pull_none: pcfg-pull-none {
  826. bias-disable;
  827. };
  828. pcfg_pull_none_2ma: pcfg-pull-none-2ma {
  829. bias-disable;
  830. drive-strength = <2>;
  831. };
  832. pcfg_pull_up_2ma: pcfg-pull-up-2ma {
  833. bias-pull-up;
  834. drive-strength = <2>;
  835. };
  836. pcfg_pull_up_4ma: pcfg-pull-up-4ma {
  837. bias-pull-up;
  838. drive-strength = <4>;
  839. };
  840. pcfg_pull_none_4ma: pcfg-pull-none-4ma {
  841. bias-disable;
  842. drive-strength = <4>;
  843. };
  844. pcfg_pull_down_4ma: pcfg-pull-down-4ma {
  845. bias-pull-down;
  846. drive-strength = <4>;
  847. };
  848. pcfg_pull_none_8ma: pcfg-pull-none-8ma {
  849. bias-disable;
  850. drive-strength = <8>;
  851. };
  852. pcfg_pull_up_8ma: pcfg-pull-up-8ma {
  853. bias-pull-up;
  854. drive-strength = <8>;
  855. };
  856. pcfg_pull_none_12ma: pcfg-pull-none-12ma {
  857. bias-disable;
  858. drive-strength = <12>;
  859. };
  860. pcfg_pull_up_12ma: pcfg-pull-up-12ma {
  861. bias-pull-up;
  862. drive-strength = <12>;
  863. };
  864. pcfg_output_high: pcfg-output-high {
  865. output-high;
  866. };
  867. pcfg_output_low: pcfg-output-low {
  868. output-low;
  869. };
  870. pcfg_input_high: pcfg-input-high {
  871. bias-pull-up;
  872. input-enable;
  873. };
  874. pcfg_input: pcfg-input {
  875. input-enable;
  876. };
  877. i2c0 {
  878. i2c0_xfer: i2c0-xfer {
  879. rockchip,pins = <2 RK_PD0 1 &pcfg_pull_none>,
  880. <2 RK_PD1 1 &pcfg_pull_none>;
  881. };
  882. };
  883. i2c1 {
  884. i2c1_xfer: i2c1-xfer {
  885. rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>,
  886. <2 RK_PA5 2 &pcfg_pull_none>;
  887. };
  888. };
  889. i2c2 {
  890. i2c2_xfer: i2c2-xfer {
  891. rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>,
  892. <2 RK_PB6 1 &pcfg_pull_none>;
  893. };
  894. };
  895. i2c3 {
  896. i2c3_xfer: i2c3-xfer {
  897. rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>,
  898. <0 RK_PA6 2 &pcfg_pull_none>;
  899. };
  900. i2c3_gpio: i2c3-gpio {
  901. rockchip,pins =
  902. <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
  903. <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
  904. };
  905. };
  906. hdmi_i2c {
  907. hdmii2c_xfer: hdmii2c-xfer {
  908. rockchip,pins = <0 RK_PA5 1 &pcfg_pull_none>,
  909. <0 RK_PA6 1 &pcfg_pull_none>;
  910. };
  911. };
  912. pdm-0 {
  913. pdmm0_clk: pdmm0-clk {
  914. rockchip,pins = <2 RK_PC2 2 &pcfg_pull_none>;
  915. };
  916. pdmm0_fsync: pdmm0-fsync {
  917. rockchip,pins = <2 RK_PC7 2 &pcfg_pull_none>;
  918. };
  919. pdmm0_sdi0: pdmm0-sdi0 {
  920. rockchip,pins = <2 RK_PC3 2 &pcfg_pull_none>;
  921. };
  922. pdmm0_sdi1: pdmm0-sdi1 {
  923. rockchip,pins = <2 RK_PC4 2 &pcfg_pull_none>;
  924. };
  925. pdmm0_sdi2: pdmm0-sdi2 {
  926. rockchip,pins = <2 RK_PC5 2 &pcfg_pull_none>;
  927. };
  928. pdmm0_sdi3: pdmm0-sdi3 {
  929. rockchip,pins = <2 RK_PC6 2 &pcfg_pull_none>;
  930. };
  931. pdmm0_clk_sleep: pdmm0-clk-sleep {
  932. rockchip,pins =
  933. <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>;
  934. };
  935. pdmm0_sdi0_sleep: pdmm0-sdi0-sleep {
  936. rockchip,pins =
  937. <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>;
  938. };
  939. pdmm0_sdi1_sleep: pdmm0-sdi1-sleep {
  940. rockchip,pins =
  941. <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>;
  942. };
  943. pdmm0_sdi2_sleep: pdmm0-sdi2-sleep {
  944. rockchip,pins =
  945. <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>;
  946. };
  947. pdmm0_sdi3_sleep: pdmm0-sdi3-sleep {
  948. rockchip,pins =
  949. <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>;
  950. };
  951. pdmm0_fsync_sleep: pdmm0-fsync-sleep {
  952. rockchip,pins =
  953. <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
  954. };
  955. };
  956. tsadc {
  957. otp_gpio: otp-gpio {
  958. rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
  959. };
  960. otp_out: otp-out {
  961. rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>;
  962. };
  963. };
  964. uart0 {
  965. uart0_xfer: uart0-xfer {
  966. rockchip,pins = <1 RK_PB1 1 &pcfg_pull_up>,
  967. <1 RK_PB0 1 &pcfg_pull_none>;
  968. };
  969. uart0_cts: uart0-cts {
  970. rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>;
  971. };
  972. uart0_rts: uart0-rts {
  973. rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>;
  974. };
  975. uart0_rts_gpio: uart0-rts-gpio {
  976. rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
  977. };
  978. };
  979. uart1 {
  980. uart1_xfer: uart1-xfer {
  981. rockchip,pins = <3 RK_PA4 4 &pcfg_pull_up>,
  982. <3 RK_PA6 4 &pcfg_pull_none>;
  983. };
  984. uart1_cts: uart1-cts {
  985. rockchip,pins = <3 RK_PA7 4 &pcfg_pull_none>;
  986. };
  987. uart1_rts: uart1-rts {
  988. rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>;
  989. };
  990. uart1_rts_gpio: uart1-rts-gpio {
  991. rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
  992. };
  993. };
  994. uart2-0 {
  995. uart2m0_xfer: uart2m0-xfer {
  996. rockchip,pins = <1 RK_PA0 2 &pcfg_pull_up>,
  997. <1 RK_PA1 2 &pcfg_pull_none>;
  998. };
  999. };
  1000. uart2-1 {
  1001. uart2m1_xfer: uart2m1-xfer {
  1002. rockchip,pins = <2 RK_PA0 1 &pcfg_pull_up>,
  1003. <2 RK_PA1 1 &pcfg_pull_none>;
  1004. };
  1005. };
  1006. spi0-0 {
  1007. spi0m0_clk: spi0m0-clk {
  1008. rockchip,pins = <2 RK_PB0 1 &pcfg_pull_up>;
  1009. };
  1010. spi0m0_cs0: spi0m0-cs0 {
  1011. rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
  1012. };
  1013. spi0m0_tx: spi0m0-tx {
  1014. rockchip,pins = <2 RK_PB1 1 &pcfg_pull_up>;
  1015. };
  1016. spi0m0_rx: spi0m0-rx {
  1017. rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
  1018. };
  1019. spi0m0_cs1: spi0m0-cs1 {
  1020. rockchip,pins = <2 RK_PB4 1 &pcfg_pull_up>;
  1021. };
  1022. };
  1023. spi0-1 {
  1024. spi0m1_clk: spi0m1-clk {
  1025. rockchip,pins = <3 RK_PC7 2 &pcfg_pull_up>;
  1026. };
  1027. spi0m1_cs0: spi0m1-cs0 {
  1028. rockchip,pins = <3 RK_PD2 2 &pcfg_pull_up>;
  1029. };
  1030. spi0m1_tx: spi0m1-tx {
  1031. rockchip,pins = <3 RK_PD1 2 &pcfg_pull_up>;
  1032. };
  1033. spi0m1_rx: spi0m1-rx {
  1034. rockchip,pins = <3 RK_PD0 2 &pcfg_pull_up>;
  1035. };
  1036. spi0m1_cs1: spi0m1-cs1 {
  1037. rockchip,pins = <3 RK_PD3 2 &pcfg_pull_up>;
  1038. };
  1039. };
  1040. spi0-2 {
  1041. spi0m2_clk: spi0m2-clk {
  1042. rockchip,pins = <3 RK_PA0 4 &pcfg_pull_up>;
  1043. };
  1044. spi0m2_cs0: spi0m2-cs0 {
  1045. rockchip,pins = <3 RK_PB0 3 &pcfg_pull_up>;
  1046. };
  1047. spi0m2_tx: spi0m2-tx {
  1048. rockchip,pins = <3 RK_PA1 4 &pcfg_pull_up>;
  1049. };
  1050. spi0m2_rx: spi0m2-rx {
  1051. rockchip,pins = <3 RK_PA2 4 &pcfg_pull_up>;
  1052. };
  1053. };
  1054. i2s1 {
  1055. i2s1_mclk: i2s1-mclk {
  1056. rockchip,pins = <2 RK_PB7 1 &pcfg_pull_none>;
  1057. };
  1058. i2s1_sclk: i2s1-sclk {
  1059. rockchip,pins = <2 RK_PC2 1 &pcfg_pull_none>;
  1060. };
  1061. i2s1_lrckrx: i2s1-lrckrx {
  1062. rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>;
  1063. };
  1064. i2s1_lrcktx: i2s1-lrcktx {
  1065. rockchip,pins = <2 RK_PC1 1 &pcfg_pull_none>;
  1066. };
  1067. i2s1_sdi: i2s1-sdi {
  1068. rockchip,pins = <2 RK_PC3 1 &pcfg_pull_none>;
  1069. };
  1070. i2s1_sdo: i2s1-sdo {
  1071. rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
  1072. };
  1073. i2s1_sdio1: i2s1-sdio1 {
  1074. rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>;
  1075. };
  1076. i2s1_sdio2: i2s1-sdio2 {
  1077. rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>;
  1078. };
  1079. i2s1_sdio3: i2s1-sdio3 {
  1080. rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
  1081. };
  1082. i2s1_sleep: i2s1-sleep {
  1083. rockchip,pins =
  1084. <2 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>,
  1085. <2 RK_PC0 RK_FUNC_GPIO &pcfg_input_high>,
  1086. <2 RK_PC1 RK_FUNC_GPIO &pcfg_input_high>,
  1087. <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>,
  1088. <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>,
  1089. <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>,
  1090. <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
  1091. <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
  1092. <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
  1093. };
  1094. };
  1095. i2s2-0 {
  1096. i2s2m0_mclk: i2s2m0-mclk {
  1097. rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
  1098. };
  1099. i2s2m0_sclk: i2s2m0-sclk {
  1100. rockchip,pins = <1 RK_PC6 1 &pcfg_pull_none>;
  1101. };
  1102. i2s2m0_lrckrx: i2s2m0-lrckrx {
  1103. rockchip,pins = <1 RK_PD2 1 &pcfg_pull_none>;
  1104. };
  1105. i2s2m0_lrcktx: i2s2m0-lrcktx {
  1106. rockchip,pins = <1 RK_PC7 1 &pcfg_pull_none>;
  1107. };
  1108. i2s2m0_sdi: i2s2m0-sdi {
  1109. rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>;
  1110. };
  1111. i2s2m0_sdo: i2s2m0-sdo {
  1112. rockchip,pins = <1 RK_PD1 1 &pcfg_pull_none>;
  1113. };
  1114. i2s2m0_sleep: i2s2m0-sleep {
  1115. rockchip,pins =
  1116. <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
  1117. <1 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
  1118. <1 RK_PD2 RK_FUNC_GPIO &pcfg_input_high>,
  1119. <1 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>,
  1120. <1 RK_PD0 RK_FUNC_GPIO &pcfg_input_high>,
  1121. <1 RK_PD1 RK_FUNC_GPIO &pcfg_input_high>;
  1122. };
  1123. };
  1124. i2s2-1 {
  1125. i2s2m1_mclk: i2s2m1-mclk {
  1126. rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
  1127. };
  1128. i2s2m1_sclk: i2s2m1-sclk {
  1129. rockchip,pins = <3 RK_PA0 6 &pcfg_pull_none>;
  1130. };
  1131. i2s2m1_lrckrx: i2sm1-lrckrx {
  1132. rockchip,pins = <3 RK_PB0 6 &pcfg_pull_none>;
  1133. };
  1134. i2s2m1_lrcktx: i2s2m1-lrcktx {
  1135. rockchip,pins = <3 RK_PB0 4 &pcfg_pull_none>;
  1136. };
  1137. i2s2m1_sdi: i2s2m1-sdi {
  1138. rockchip,pins = <3 RK_PA2 6 &pcfg_pull_none>;
  1139. };
  1140. i2s2m1_sdo: i2s2m1-sdo {
  1141. rockchip,pins = <3 RK_PA1 6 &pcfg_pull_none>;
  1142. };
  1143. i2s2m1_sleep: i2s2m1-sleep {
  1144. rockchip,pins =
  1145. <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
  1146. <3 RK_PA0 RK_FUNC_GPIO &pcfg_input_high>,
  1147. <3 RK_PB0 RK_FUNC_GPIO &pcfg_input_high>,
  1148. <3 RK_PA2 RK_FUNC_GPIO &pcfg_input_high>,
  1149. <3 RK_PA1 RK_FUNC_GPIO &pcfg_input_high>;
  1150. };
  1151. };
  1152. spdif-0 {
  1153. spdifm0_tx: spdifm0-tx {
  1154. rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>;
  1155. };
  1156. };
  1157. spdif-1 {
  1158. spdifm1_tx: spdifm1-tx {
  1159. rockchip,pins = <2 RK_PC1 2 &pcfg_pull_none>;
  1160. };
  1161. };
  1162. spdif-2 {
  1163. spdifm2_tx: spdifm2-tx {
  1164. rockchip,pins = <0 RK_PA2 2 &pcfg_pull_none>;
  1165. };
  1166. };
  1167. sdmmc0-0 {
  1168. sdmmc0m0_pwren: sdmmc0m0-pwren {
  1169. rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>;
  1170. };
  1171. sdmmc0m0_gpio: sdmmc0m0-gpio {
  1172. rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
  1173. };
  1174. };
  1175. sdmmc0-1 {
  1176. sdmmc0m1_pwren: sdmmc0m1-pwren {
  1177. rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>;
  1178. };
  1179. sdmmc0m1_gpio: sdmmc0m1-gpio {
  1180. rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
  1181. };
  1182. };
  1183. sdmmc0 {
  1184. sdmmc0_clk: sdmmc0-clk {
  1185. rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none_8ma>;
  1186. };
  1187. sdmmc0_cmd: sdmmc0-cmd {
  1188. rockchip,pins = <1 RK_PA4 1 &pcfg_pull_up_8ma>;
  1189. };
  1190. sdmmc0_dectn: sdmmc0-dectn {
  1191. rockchip,pins = <1 RK_PA5 1 &pcfg_pull_up_4ma>;
  1192. };
  1193. sdmmc0_wrprt: sdmmc0-wrprt {
  1194. rockchip,pins = <1 RK_PA7 1 &pcfg_pull_up_4ma>;
  1195. };
  1196. sdmmc0_bus1: sdmmc0-bus1 {
  1197. rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>;
  1198. };
  1199. sdmmc0_bus4: sdmmc0-bus4 {
  1200. rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>,
  1201. <1 RK_PA1 1 &pcfg_pull_up_8ma>,
  1202. <1 RK_PA2 1 &pcfg_pull_up_8ma>,
  1203. <1 RK_PA3 1 &pcfg_pull_up_8ma>;
  1204. };
  1205. sdmmc0_gpio: sdmmc0-gpio {
  1206. rockchip,pins =
  1207. <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1208. <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1209. <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1210. <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1211. <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1212. <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1213. <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1214. <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
  1215. };
  1216. };
  1217. sdmmc0ext {
  1218. sdmmc0ext_clk: sdmmc0ext-clk {
  1219. rockchip,pins = <3 RK_PA2 3 &pcfg_pull_none_4ma>;
  1220. };
  1221. sdmmc0ext_cmd: sdmmc0ext-cmd {
  1222. rockchip,pins = <3 RK_PA0 3 &pcfg_pull_up_4ma>;
  1223. };
  1224. sdmmc0ext_wrprt: sdmmc0ext-wrprt {
  1225. rockchip,pins = <3 RK_PA3 3 &pcfg_pull_up_4ma>;
  1226. };
  1227. sdmmc0ext_dectn: sdmmc0ext-dectn {
  1228. rockchip,pins = <3 RK_PA1 3 &pcfg_pull_up_4ma>;
  1229. };
  1230. sdmmc0ext_bus1: sdmmc0ext-bus1 {
  1231. rockchip,pins = <3 RK_PA4 3 &pcfg_pull_up_4ma>;
  1232. };
  1233. sdmmc0ext_bus4: sdmmc0ext-bus4 {
  1234. rockchip,pins =
  1235. <3 RK_PA4 3 &pcfg_pull_up_4ma>,
  1236. <3 RK_PA5 3 &pcfg_pull_up_4ma>,
  1237. <3 RK_PA6 3 &pcfg_pull_up_4ma>,
  1238. <3 RK_PA7 3 &pcfg_pull_up_4ma>;
  1239. };
  1240. sdmmc0ext_gpio: sdmmc0ext-gpio {
  1241. rockchip,pins =
  1242. <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1243. <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1244. <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1245. <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1246. <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1247. <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1248. <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1249. <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
  1250. };
  1251. };
  1252. sdmmc1 {
  1253. sdmmc1_clk: sdmmc1-clk {
  1254. rockchip,pins = <1 RK_PB4 1 &pcfg_pull_none_8ma>;
  1255. };
  1256. sdmmc1_cmd: sdmmc1-cmd {
  1257. rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_8ma>;
  1258. };
  1259. sdmmc1_pwren: sdmmc1-pwren {
  1260. rockchip,pins = <1 RK_PC2 1 &pcfg_pull_up_8ma>;
  1261. };
  1262. sdmmc1_wrprt: sdmmc1-wrprt {
  1263. rockchip,pins = <1 RK_PC4 1 &pcfg_pull_up_8ma>;
  1264. };
  1265. sdmmc1_dectn: sdmmc1-dectn {
  1266. rockchip,pins = <1 RK_PC3 1 &pcfg_pull_up_8ma>;
  1267. };
  1268. sdmmc1_bus1: sdmmc1-bus1 {
  1269. rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>;
  1270. };
  1271. sdmmc1_bus4: sdmmc1-bus4 {
  1272. rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>,
  1273. <1 RK_PB7 1 &pcfg_pull_up_8ma>,
  1274. <1 RK_PC0 1 &pcfg_pull_up_8ma>,
  1275. <1 RK_PC1 1 &pcfg_pull_up_8ma>;
  1276. };
  1277. sdmmc1_gpio: sdmmc1-gpio {
  1278. rockchip,pins =
  1279. <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1280. <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1281. <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1282. <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1283. <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1284. <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1285. <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1286. <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
  1287. <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
  1288. };
  1289. };
  1290. emmc {
  1291. emmc_clk: emmc-clk {
  1292. rockchip,pins = <3 RK_PC5 2 &pcfg_pull_none_12ma>;
  1293. };
  1294. emmc_cmd: emmc-cmd {
  1295. rockchip,pins = <3 RK_PC3 2 &pcfg_pull_up_12ma>;
  1296. };
  1297. emmc_pwren: emmc-pwren {
  1298. rockchip,pins = <3 RK_PC6 2 &pcfg_pull_none>;
  1299. };
  1300. emmc_rstnout: emmc-rstnout {
  1301. rockchip,pins = <3 RK_PC4 2 &pcfg_pull_none>;
  1302. };
  1303. emmc_bus1: emmc-bus1 {
  1304. rockchip,pins = <0 RK_PA7 2 &pcfg_pull_up_12ma>;
  1305. };
  1306. emmc_bus4: emmc-bus4 {
  1307. rockchip,pins =
  1308. <0 RK_PA7 2 &pcfg_pull_up_12ma>,
  1309. <2 RK_PD4 2 &pcfg_pull_up_12ma>,
  1310. <2 RK_PD5 2 &pcfg_pull_up_12ma>,
  1311. <2 RK_PD6 2 &pcfg_pull_up_12ma>;
  1312. };
  1313. emmc_bus8: emmc-bus8 {
  1314. rockchip,pins =
  1315. <0 RK_PA7 2 &pcfg_pull_up_12ma>,
  1316. <2 RK_PD4 2 &pcfg_pull_up_12ma>,
  1317. <2 RK_PD5 2 &pcfg_pull_up_12ma>,
  1318. <2 RK_PD6 2 &pcfg_pull_up_12ma>,
  1319. <2 RK_PD7 2 &pcfg_pull_up_12ma>,
  1320. <3 RK_PC0 2 &pcfg_pull_up_12ma>,
  1321. <3 RK_PC1 2 &pcfg_pull_up_12ma>,
  1322. <3 RK_PC2 2 &pcfg_pull_up_12ma>;
  1323. };
  1324. };
  1325. pwm0 {
  1326. pwm0_pin: pwm0-pin {
  1327. rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>;
  1328. };
  1329. };
  1330. pwm1 {
  1331. pwm1_pin: pwm1-pin {
  1332. rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>;
  1333. };
  1334. };
  1335. pwm2 {
  1336. pwm2_pin: pwm2-pin {
  1337. rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>;
  1338. };
  1339. };
  1340. pwmir {
  1341. pwmir_pin: pwmir-pin {
  1342. rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>;
  1343. };
  1344. };
  1345. gmac-1 {
  1346. rgmiim1_pins: rgmiim1-pins {
  1347. rockchip,pins =
  1348. /* mac_txclk */
  1349. <1 RK_PB4 2 &pcfg_pull_none_8ma>,
  1350. /* mac_rxclk */
  1351. <1 RK_PB5 2 &pcfg_pull_none_4ma>,
  1352. /* mac_mdio */
  1353. <1 RK_PC3 2 &pcfg_pull_none_4ma>,
  1354. /* mac_txen */
  1355. <1 RK_PD1 2 &pcfg_pull_none_8ma>,
  1356. /* mac_clk */
  1357. <1 RK_PC5 2 &pcfg_pull_none_4ma>,
  1358. /* mac_rxdv */
  1359. <1 RK_PC6 2 &pcfg_pull_none_4ma>,
  1360. /* mac_mdc */
  1361. <1 RK_PC7 2 &pcfg_pull_none_4ma>,
  1362. /* mac_rxd1 */
  1363. <1 RK_PB2 2 &pcfg_pull_none_4ma>,
  1364. /* mac_rxd0 */
  1365. <1 RK_PB3 2 &pcfg_pull_none_4ma>,
  1366. /* mac_txd1 */
  1367. <1 RK_PB0 2 &pcfg_pull_none_8ma>,
  1368. /* mac_txd0 */
  1369. <1 RK_PB1 2 &pcfg_pull_none_8ma>,
  1370. /* mac_rxd3 */
  1371. <1 RK_PB6 2 &pcfg_pull_none_4ma>,
  1372. /* mac_rxd2 */
  1373. <1 RK_PB7 2 &pcfg_pull_none_4ma>,
  1374. /* mac_txd3 */
  1375. <1 RK_PC0 2 &pcfg_pull_none_8ma>,
  1376. /* mac_txd2 */
  1377. <1 RK_PC1 2 &pcfg_pull_none_8ma>,
  1378. /* mac_txclk */
  1379. <0 RK_PB0 1 &pcfg_pull_none_8ma>,
  1380. /* mac_txen */
  1381. <0 RK_PB4 1 &pcfg_pull_none_8ma>,
  1382. /* mac_clk */
  1383. <0 RK_PD0 1 &pcfg_pull_none_4ma>,
  1384. /* mac_txd1 */
  1385. <0 RK_PC0 1 &pcfg_pull_none_8ma>,
  1386. /* mac_txd0 */
  1387. <0 RK_PC1 1 &pcfg_pull_none_8ma>,
  1388. /* mac_txd3 */
  1389. <0 RK_PC7 1 &pcfg_pull_none_8ma>,
  1390. /* mac_txd2 */
  1391. <0 RK_PC6 1 &pcfg_pull_none_8ma>;
  1392. };
  1393. rmiim1_pins: rmiim1-pins {
  1394. rockchip,pins =
  1395. /* mac_mdio */
  1396. <1 RK_PC3 2 &pcfg_pull_none_2ma>,
  1397. /* mac_txen */
  1398. <1 RK_PD1 2 &pcfg_pull_none_12ma>,
  1399. /* mac_clk */
  1400. <1 RK_PC5 2 &pcfg_pull_none_2ma>,
  1401. /* mac_rxer */
  1402. <1 RK_PD0 2 &pcfg_pull_none_2ma>,
  1403. /* mac_rxdv */
  1404. <1 RK_PC6 2 &pcfg_pull_none_2ma>,
  1405. /* mac_mdc */
  1406. <1 RK_PC7 2 &pcfg_pull_none_2ma>,
  1407. /* mac_rxd1 */
  1408. <1 RK_PB2 2 &pcfg_pull_none_2ma>,
  1409. /* mac_rxd0 */
  1410. <1 RK_PB3 2 &pcfg_pull_none_2ma>,
  1411. /* mac_txd1 */
  1412. <1 RK_PB0 2 &pcfg_pull_none_12ma>,
  1413. /* mac_txd0 */
  1414. <1 RK_PB1 2 &pcfg_pull_none_12ma>,
  1415. /* mac_mdio */
  1416. <0 RK_PB3 1 &pcfg_pull_none>,
  1417. /* mac_txen */
  1418. <0 RK_PB4 1 &pcfg_pull_none>,
  1419. /* mac_clk */
  1420. <0 RK_PD0 1 &pcfg_pull_none>,
  1421. /* mac_mdc */
  1422. <0 RK_PC3 1 &pcfg_pull_none>,
  1423. /* mac_txd1 */
  1424. <0 RK_PC0 1 &pcfg_pull_none>,
  1425. /* mac_txd0 */
  1426. <0 RK_PC1 1 &pcfg_pull_none>;
  1427. };
  1428. };
  1429. gmac2phy {
  1430. fephyled_speed100: fephyled-speed100 {
  1431. rockchip,pins = <0 RK_PD7 1 &pcfg_pull_none>;
  1432. };
  1433. fephyled_speed10: fephyled-speed10 {
  1434. rockchip,pins = <0 RK_PD6 1 &pcfg_pull_none>;
  1435. };
  1436. fephyled_duplex: fephyled-duplex {
  1437. rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>;
  1438. };
  1439. fephyled_rxm0: fephyled-rxm0 {
  1440. rockchip,pins = <0 RK_PD5 1 &pcfg_pull_none>;
  1441. };
  1442. fephyled_txm0: fephyled-txm0 {
  1443. rockchip,pins = <0 RK_PD5 2 &pcfg_pull_none>;
  1444. };
  1445. fephyled_linkm0: fephyled-linkm0 {
  1446. rockchip,pins = <0 RK_PD4 1 &pcfg_pull_none>;
  1447. };
  1448. fephyled_rxm1: fephyled-rxm1 {
  1449. rockchip,pins = <2 RK_PD1 2 &pcfg_pull_none>;
  1450. };
  1451. fephyled_txm1: fephyled-txm1 {
  1452. rockchip,pins = <2 RK_PD1 3 &pcfg_pull_none>;
  1453. };
  1454. fephyled_linkm1: fephyled-linkm1 {
  1455. rockchip,pins = <2 RK_PD0 2 &pcfg_pull_none>;
  1456. };
  1457. };
  1458. tsadc_pin {
  1459. tsadc_int: tsadc-int {
  1460. rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>;
  1461. };
  1462. tsadc_gpio: tsadc-gpio {
  1463. rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
  1464. };
  1465. };
  1466. hdmi_pin {
  1467. hdmi_cec: hdmi-cec {
  1468. rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
  1469. };
  1470. hdmi_hpd: hdmi-hpd {
  1471. rockchip,pins = <0 RK_PA4 1 &pcfg_pull_down>;
  1472. };
  1473. };
  1474. cif-0 {
  1475. dvp_d2d9_m0:dvp-d2d9-m0 {
  1476. rockchip,pins =
  1477. /* cif_d0 */
  1478. <3 RK_PA4 2 &pcfg_pull_none>,
  1479. /* cif_d1 */
  1480. <3 RK_PA5 2 &pcfg_pull_none>,
  1481. /* cif_d2 */
  1482. <3 RK_PA6 2 &pcfg_pull_none>,
  1483. /* cif_d3 */
  1484. <3 RK_PA7 2 &pcfg_pull_none>,
  1485. /* cif_d4 */
  1486. <3 RK_PB0 2 &pcfg_pull_none>,
  1487. /* cif_d5m0 */
  1488. <3 RK_PB1 2 &pcfg_pull_none>,
  1489. /* cif_d6m0 */
  1490. <3 RK_PB2 2 &pcfg_pull_none>,
  1491. /* cif_d7m0 */
  1492. <3 RK_PB3 2 &pcfg_pull_none>,
  1493. /* cif_href */
  1494. <3 RK_PA1 2 &pcfg_pull_none>,
  1495. /* cif_vsync */
  1496. <3 RK_PA0 2 &pcfg_pull_none>,
  1497. /* cif_clkoutm0 */
  1498. <3 RK_PA3 2 &pcfg_pull_none>,
  1499. /* cif_clkin */
  1500. <3 RK_PA2 2 &pcfg_pull_none>;
  1501. };
  1502. };
  1503. cif-1 {
  1504. dvp_d2d9_m1:dvp-d2d9-m1 {
  1505. rockchip,pins =
  1506. /* cif_d0 */
  1507. <3 RK_PA4 2 &pcfg_pull_none>,
  1508. /* cif_d1 */
  1509. <3 RK_PA5 2 &pcfg_pull_none>,
  1510. /* cif_d2 */
  1511. <3 RK_PA6 2 &pcfg_pull_none>,
  1512. /* cif_d3 */
  1513. <3 RK_PA7 2 &pcfg_pull_none>,
  1514. /* cif_d4 */
  1515. <3 RK_PB0 2 &pcfg_pull_none>,
  1516. /* cif_d5m1 */
  1517. <2 RK_PC0 4 &pcfg_pull_none>,
  1518. /* cif_d6m1 */
  1519. <2 RK_PC1 4 &pcfg_pull_none>,
  1520. /* cif_d7m1 */
  1521. <2 RK_PC2 4 &pcfg_pull_none>,
  1522. /* cif_href */
  1523. <3 RK_PA1 2 &pcfg_pull_none>,
  1524. /* cif_vsync */
  1525. <3 RK_PA0 2 &pcfg_pull_none>,
  1526. /* cif_clkoutm1 */
  1527. <2 RK_PB7 4 &pcfg_pull_none>,
  1528. /* cif_clkin */
  1529. <3 RK_PA2 2 &pcfg_pull_none>;
  1530. };
  1531. };
  1532. };
  1533. };