r8a7791-koelsch.dts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the Koelsch board
  4. *
  5. * Copyright (C) 2013 Renesas Electronics Corporation
  6. * Copyright (C) 2013-2014 Renesas Solutions Corp.
  7. * Copyright (C) 2014 Cogent Embedded, Inc.
  8. */
  9. /*
  10. * SSI-AK4643
  11. *
  12. * SW1: 1: AK4643
  13. * 2: CN22
  14. * 3: ADV7511
  15. *
  16. * This command is required when Playback/Capture
  17. *
  18. * amixer set "LINEOUT Mixer DACL" on
  19. * amixer set "DVC Out" 100%
  20. * amixer set "DVC In" 100%
  21. *
  22. * You can use Mute
  23. *
  24. * amixer set "DVC Out Mute" on
  25. * amixer set "DVC In Mute" on
  26. *
  27. * You can use Volume Ramp
  28. *
  29. * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
  30. * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
  31. * amixer set "DVC Out Ramp" on
  32. * aplay xxx.wav &
  33. * amixer set "DVC Out" 80% // Volume Down
  34. * amixer set "DVC Out" 100% // Volume Up
  35. */
  36. /dts-v1/;
  37. #include "r8a7791.dtsi"
  38. #include <dt-bindings/gpio/gpio.h>
  39. #include <dt-bindings/input/input.h>
  40. / {
  41. model = "Koelsch";
  42. compatible = "renesas,koelsch", "renesas,r8a7791";
  43. aliases {
  44. serial0 = &scif0;
  45. serial1 = &scif1;
  46. i2c9 = &gpioi2c1;
  47. i2c10 = &gpioi2c2;
  48. i2c11 = &gpioi2c4;
  49. i2c12 = &i2cexio1;
  50. i2c13 = &i2chdmi;
  51. i2c14 = &i2cexio4;
  52. mmc0 = &sdhi0;
  53. mmc1 = &sdhi1;
  54. mmc2 = &sdhi2;
  55. };
  56. chosen {
  57. bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
  58. stdout-path = "serial0:115200n8";
  59. };
  60. memory@40000000 {
  61. device_type = "memory";
  62. reg = <0 0x40000000 0 0x40000000>;
  63. };
  64. memory@200000000 {
  65. device_type = "memory";
  66. reg = <2 0x00000000 0 0x40000000>;
  67. };
  68. lbsc {
  69. #address-cells = <1>;
  70. #size-cells = <1>;
  71. };
  72. keyboard {
  73. compatible = "gpio-keys";
  74. pinctrl-0 = <&keyboard_pins>;
  75. pinctrl-names = "default";
  76. key-1 {
  77. gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
  78. linux,code = <KEY_1>;
  79. label = "SW2-1";
  80. wakeup-source;
  81. debounce-interval = <20>;
  82. };
  83. key-2 {
  84. gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
  85. linux,code = <KEY_2>;
  86. label = "SW2-2";
  87. wakeup-source;
  88. debounce-interval = <20>;
  89. };
  90. key-3 {
  91. gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
  92. linux,code = <KEY_3>;
  93. label = "SW2-3";
  94. wakeup-source;
  95. debounce-interval = <20>;
  96. };
  97. key-4 {
  98. gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
  99. linux,code = <KEY_4>;
  100. label = "SW2-4";
  101. wakeup-source;
  102. debounce-interval = <20>;
  103. };
  104. key-a {
  105. gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
  106. linux,code = <KEY_A>;
  107. label = "SW30";
  108. wakeup-source;
  109. debounce-interval = <20>;
  110. };
  111. key-b {
  112. gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
  113. linux,code = <KEY_B>;
  114. label = "SW31";
  115. wakeup-source;
  116. debounce-interval = <20>;
  117. };
  118. key-c {
  119. gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
  120. linux,code = <KEY_C>;
  121. label = "SW32";
  122. wakeup-source;
  123. debounce-interval = <20>;
  124. };
  125. key-d {
  126. gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
  127. linux,code = <KEY_D>;
  128. label = "SW33";
  129. wakeup-source;
  130. debounce-interval = <20>;
  131. };
  132. key-e {
  133. gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
  134. linux,code = <KEY_E>;
  135. label = "SW34";
  136. wakeup-source;
  137. debounce-interval = <20>;
  138. };
  139. key-f {
  140. gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
  141. linux,code = <KEY_F>;
  142. label = "SW35";
  143. wakeup-source;
  144. debounce-interval = <20>;
  145. };
  146. key-g {
  147. gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
  148. linux,code = <KEY_G>;
  149. label = "SW36";
  150. wakeup-source;
  151. debounce-interval = <20>;
  152. };
  153. };
  154. leds {
  155. compatible = "gpio-leds";
  156. led6 {
  157. gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
  158. label = "LED6";
  159. };
  160. led7 {
  161. gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
  162. label = "LED7";
  163. };
  164. led8 {
  165. gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
  166. label = "LED8";
  167. };
  168. };
  169. vcc_sdhi0: regulator-vcc-sdhi0 {
  170. compatible = "regulator-fixed";
  171. regulator-name = "SDHI0 Vcc";
  172. regulator-min-microvolt = <3300000>;
  173. regulator-max-microvolt = <3300000>;
  174. gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
  175. enable-active-high;
  176. };
  177. vccq_sdhi0: regulator-vccq-sdhi0 {
  178. compatible = "regulator-gpio";
  179. regulator-name = "SDHI0 VccQ";
  180. regulator-min-microvolt = <1800000>;
  181. regulator-max-microvolt = <3300000>;
  182. gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
  183. gpios-states = <1>;
  184. states = <3300000 1>, <1800000 0>;
  185. };
  186. vcc_sdhi1: regulator-vcc-sdhi1 {
  187. compatible = "regulator-fixed";
  188. regulator-name = "SDHI1 Vcc";
  189. regulator-min-microvolt = <3300000>;
  190. regulator-max-microvolt = <3300000>;
  191. gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
  192. enable-active-high;
  193. };
  194. vccq_sdhi1: regulator-vccq-sdhi1 {
  195. compatible = "regulator-gpio";
  196. regulator-name = "SDHI1 VccQ";
  197. regulator-min-microvolt = <1800000>;
  198. regulator-max-microvolt = <3300000>;
  199. gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
  200. gpios-states = <1>;
  201. states = <3300000 1>, <1800000 0>;
  202. };
  203. vcc_sdhi2: regulator-vcc-sdhi2 {
  204. compatible = "regulator-fixed";
  205. regulator-name = "SDHI2 Vcc";
  206. regulator-min-microvolt = <3300000>;
  207. regulator-max-microvolt = <3300000>;
  208. gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
  209. enable-active-high;
  210. };
  211. vccq_sdhi2: regulator-vccq-sdhi2 {
  212. compatible = "regulator-gpio";
  213. regulator-name = "SDHI2 VccQ";
  214. regulator-min-microvolt = <1800000>;
  215. regulator-max-microvolt = <3300000>;
  216. gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
  217. gpios-states = <1>;
  218. states = <3300000 1>, <1800000 0>;
  219. };
  220. audio_clock: audio_clock {
  221. compatible = "fixed-clock";
  222. #clock-cells = <0>;
  223. clock-frequency = <11289600>;
  224. };
  225. rsnd_ak4643: sound {
  226. compatible = "simple-audio-card";
  227. simple-audio-card,format = "left_j";
  228. simple-audio-card,bitclock-master = <&sndcodec>;
  229. simple-audio-card,frame-master = <&sndcodec>;
  230. sndcpu: simple-audio-card,cpu {
  231. sound-dai = <&rcar_sound>;
  232. };
  233. sndcodec: simple-audio-card,codec {
  234. sound-dai = <&ak4643>;
  235. clocks = <&audio_clock>;
  236. };
  237. };
  238. hdmi-in {
  239. compatible = "hdmi-connector";
  240. type = "a";
  241. port {
  242. hdmi_con_in: endpoint {
  243. remote-endpoint = <&adv7612_in>;
  244. };
  245. };
  246. };
  247. cec_clock: cec-clock {
  248. compatible = "fixed-clock";
  249. #clock-cells = <0>;
  250. clock-frequency = <12000000>;
  251. };
  252. hdmi-out {
  253. compatible = "hdmi-connector";
  254. type = "a";
  255. port {
  256. hdmi_con_out: endpoint {
  257. remote-endpoint = <&adv7511_out>;
  258. };
  259. };
  260. };
  261. x2_clk: x2-clock {
  262. compatible = "fixed-clock";
  263. #clock-cells = <0>;
  264. clock-frequency = <74250000>;
  265. };
  266. x13_clk: x13-clock {
  267. compatible = "fixed-clock";
  268. #clock-cells = <0>;
  269. clock-frequency = <148500000>;
  270. };
  271. gpioi2c1: i2c-9 {
  272. #address-cells = <1>;
  273. #size-cells = <0>;
  274. compatible = "i2c-gpio";
  275. status = "disabled";
  276. scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  277. sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  278. i2c-gpio,delay-us = <5>;
  279. };
  280. gpioi2c2: i2c-10 {
  281. #address-cells = <1>;
  282. #size-cells = <0>;
  283. compatible = "i2c-gpio";
  284. status = "disabled";
  285. scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  286. sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  287. i2c-gpio,delay-us = <5>;
  288. };
  289. gpioi2c4: i2c-11 {
  290. #address-cells = <1>;
  291. #size-cells = <0>;
  292. compatible = "i2c-gpio";
  293. status = "disabled";
  294. scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  295. sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  296. i2c-gpio,delay-us = <5>;
  297. };
  298. /*
  299. * I2C1 is routed to EXIO connector B, pins 64 (SCL) + 66 (SDA).
  300. * A fallback to GPIO is provided.
  301. */
  302. i2cexio1: i2c-12 {
  303. compatible = "i2c-demux-pinctrl";
  304. i2c-parent = <&i2c1>, <&gpioi2c1>;
  305. i2c-bus-name = "i2c-exio1";
  306. #address-cells = <1>;
  307. #size-cells = <0>;
  308. };
  309. /*
  310. * A fallback to GPIO is provided for I2C2.
  311. */
  312. i2chdmi: i2c-13 {
  313. compatible = "i2c-demux-pinctrl";
  314. i2c-parent = <&i2c2>, <&gpioi2c2>;
  315. i2c-bus-name = "i2c-hdmi";
  316. #address-cells = <1>;
  317. #size-cells = <0>;
  318. ak4643: codec@12 {
  319. compatible = "asahi-kasei,ak4643";
  320. #sound-dai-cells = <0>;
  321. reg = <0x12>;
  322. };
  323. composite-in@20 {
  324. compatible = "adi,adv7180";
  325. reg = <0x20>;
  326. port {
  327. adv7180: endpoint {
  328. bus-width = <8>;
  329. remote-endpoint = <&vin1ep>;
  330. };
  331. };
  332. };
  333. hdmi@39 {
  334. compatible = "adi,adv7511w";
  335. reg = <0x39>;
  336. interrupt-parent = <&gpio3>;
  337. interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
  338. clocks = <&cec_clock>;
  339. clock-names = "cec";
  340. adi,input-depth = <8>;
  341. adi,input-colorspace = "rgb";
  342. adi,input-clock = "1x";
  343. ports {
  344. #address-cells = <1>;
  345. #size-cells = <0>;
  346. port@0 {
  347. reg = <0>;
  348. adv7511_in: endpoint {
  349. remote-endpoint = <&du_out_rgb>;
  350. };
  351. };
  352. port@1 {
  353. reg = <1>;
  354. adv7511_out: endpoint {
  355. remote-endpoint = <&hdmi_con_out>;
  356. };
  357. };
  358. };
  359. };
  360. hdmi-in@4c {
  361. compatible = "adi,adv7612";
  362. reg = <0x4c>;
  363. interrupt-parent = <&gpio4>;
  364. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  365. default-input = <0>;
  366. ports {
  367. #address-cells = <1>;
  368. #size-cells = <0>;
  369. port@0 {
  370. reg = <0>;
  371. adv7612_in: endpoint {
  372. remote-endpoint = <&hdmi_con_in>;
  373. };
  374. };
  375. port@2 {
  376. reg = <2>;
  377. adv7612_out: endpoint {
  378. remote-endpoint = <&vin0ep2>;
  379. };
  380. };
  381. };
  382. };
  383. eeprom@50 {
  384. compatible = "renesas,r1ex24002", "atmel,24c02";
  385. reg = <0x50>;
  386. pagesize = <16>;
  387. };
  388. };
  389. /*
  390. * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
  391. * A fallback to GPIO is provided.
  392. */
  393. i2cexio4: i2c-14 {
  394. compatible = "i2c-demux-pinctrl";
  395. i2c-parent = <&i2c4>, <&gpioi2c4>;
  396. i2c-bus-name = "i2c-exio4";
  397. #address-cells = <1>;
  398. #size-cells = <0>;
  399. };
  400. };
  401. &du {
  402. pinctrl-0 = <&du_pins>;
  403. pinctrl-names = "default";
  404. status = "okay";
  405. clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
  406. <&x13_clk>, <&x2_clk>;
  407. clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
  408. ports {
  409. port@0 {
  410. endpoint {
  411. remote-endpoint = <&adv7511_in>;
  412. };
  413. };
  414. };
  415. };
  416. &lvds0 {
  417. ports {
  418. port@1 {
  419. lvds_connector: endpoint {
  420. };
  421. };
  422. };
  423. };
  424. &extal_clk {
  425. clock-frequency = <20000000>;
  426. };
  427. &pfc {
  428. pinctrl-0 = <&scif_clk_pins>;
  429. pinctrl-names = "default";
  430. i2c1_pins: i2c1 {
  431. groups = "i2c1";
  432. function = "i2c1";
  433. };
  434. i2c2_pins: i2c2 {
  435. groups = "i2c2";
  436. function = "i2c2";
  437. };
  438. i2c4_pins: i2c4 {
  439. groups = "i2c4_c";
  440. function = "i2c4";
  441. };
  442. du_pins: du {
  443. groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
  444. function = "du";
  445. };
  446. scif0_pins: scif0 {
  447. groups = "scif0_data_d";
  448. function = "scif0";
  449. };
  450. scif1_pins: scif1 {
  451. groups = "scif1_data_d";
  452. function = "scif1";
  453. };
  454. scif_clk_pins: scif_clk {
  455. groups = "scif_clk";
  456. function = "scif_clk";
  457. };
  458. ether_pins: ether {
  459. groups = "eth_link", "eth_mdio", "eth_rmii";
  460. function = "eth";
  461. };
  462. phy1_pins: phy1 {
  463. groups = "intc_irq0";
  464. function = "intc";
  465. };
  466. pmic_irq_pins: pmicirq {
  467. groups = "intc_irq2";
  468. function = "intc";
  469. };
  470. sdhi0_pins: sd0 {
  471. groups = "sdhi0_data4", "sdhi0_ctrl";
  472. function = "sdhi0";
  473. power-source = <3300>;
  474. };
  475. sdhi0_pins_uhs: sd0_uhs {
  476. groups = "sdhi0_data4", "sdhi0_ctrl";
  477. function = "sdhi0";
  478. power-source = <1800>;
  479. };
  480. sdhi1_pins: sd1 {
  481. groups = "sdhi1_data4", "sdhi1_ctrl";
  482. function = "sdhi1";
  483. power-source = <3300>;
  484. };
  485. sdhi1_pins_uhs: sd1_uhs {
  486. groups = "sdhi1_data4", "sdhi1_ctrl";
  487. function = "sdhi1";
  488. power-source = <1800>;
  489. };
  490. sdhi2_pins: sd2 {
  491. groups = "sdhi2_data4", "sdhi2_ctrl";
  492. function = "sdhi2";
  493. power-source = <3300>;
  494. };
  495. sdhi2_pins_uhs: sd2_uhs {
  496. groups = "sdhi2_data4", "sdhi2_ctrl";
  497. function = "sdhi2";
  498. power-source = <1800>;
  499. };
  500. qspi_pins: qspi {
  501. groups = "qspi_ctrl", "qspi_data4";
  502. function = "qspi";
  503. };
  504. msiof0_pins: msiof0 {
  505. groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
  506. "msiof0_tx";
  507. function = "msiof0";
  508. };
  509. usb0_pins: usb0 {
  510. groups = "usb0";
  511. function = "usb0";
  512. };
  513. usb1_pins: usb1 {
  514. groups = "usb1";
  515. function = "usb1";
  516. };
  517. vin0_pins: vin0 {
  518. groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
  519. function = "vin0";
  520. };
  521. vin1_pins: vin1 {
  522. groups = "vin1_data8", "vin1_clk";
  523. function = "vin1";
  524. };
  525. sound_pins: sound {
  526. groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
  527. function = "ssi";
  528. };
  529. sound_clk_pins: sound_clk {
  530. groups = "audio_clk_a";
  531. function = "audio_clk";
  532. };
  533. keyboard_pins: keyboard {
  534. pins = "GP_5_0", "GP_5_1", "GP_5_2", "GP_5_3";
  535. bias-pull-up;
  536. };
  537. };
  538. &ether {
  539. pinctrl-0 = <&ether_pins>, <&phy1_pins>;
  540. pinctrl-names = "default";
  541. phy-handle = <&phy1>;
  542. renesas,ether-link-active-low;
  543. status = "okay";
  544. phy1: ethernet-phy@1 {
  545. compatible = "ethernet-phy-id0022.1537",
  546. "ethernet-phy-ieee802.3-c22";
  547. reg = <1>;
  548. interrupt-parent = <&irqc0>;
  549. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  550. micrel,led-mode = <1>;
  551. reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
  552. };
  553. };
  554. &cmt0 {
  555. status = "okay";
  556. };
  557. &rwdt {
  558. timeout-sec = <60>;
  559. status = "okay";
  560. };
  561. &sata0 {
  562. status = "okay";
  563. };
  564. &scif0 {
  565. pinctrl-0 = <&scif0_pins>;
  566. pinctrl-names = "default";
  567. status = "okay";
  568. };
  569. &scif1 {
  570. pinctrl-0 = <&scif1_pins>;
  571. pinctrl-names = "default";
  572. status = "okay";
  573. };
  574. &scif_clk {
  575. clock-frequency = <14745600>;
  576. };
  577. &sdhi0 {
  578. pinctrl-0 = <&sdhi0_pins>;
  579. pinctrl-1 = <&sdhi0_pins_uhs>;
  580. pinctrl-names = "default", "state_uhs";
  581. vmmc-supply = <&vcc_sdhi0>;
  582. vqmmc-supply = <&vccq_sdhi0>;
  583. cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
  584. wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
  585. sd-uhs-sdr50;
  586. sd-uhs-sdr104;
  587. status = "okay";
  588. };
  589. &sdhi1 {
  590. pinctrl-0 = <&sdhi1_pins>;
  591. pinctrl-1 = <&sdhi1_pins_uhs>;
  592. pinctrl-names = "default", "state_uhs";
  593. vmmc-supply = <&vcc_sdhi1>;
  594. vqmmc-supply = <&vccq_sdhi1>;
  595. cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
  596. wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
  597. sd-uhs-sdr50;
  598. status = "okay";
  599. };
  600. &sdhi2 {
  601. pinctrl-0 = <&sdhi2_pins>;
  602. pinctrl-1 = <&sdhi2_pins_uhs>;
  603. pinctrl-names = "default", "state_uhs";
  604. vmmc-supply = <&vcc_sdhi2>;
  605. vqmmc-supply = <&vccq_sdhi2>;
  606. cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
  607. sd-uhs-sdr50;
  608. status = "okay";
  609. };
  610. &qspi {
  611. pinctrl-0 = <&qspi_pins>;
  612. pinctrl-names = "default";
  613. status = "okay";
  614. flash: flash@0 {
  615. compatible = "spansion,s25fl512s", "jedec,spi-nor";
  616. reg = <0>;
  617. spi-max-frequency = <30000000>;
  618. spi-tx-bus-width = <4>;
  619. spi-rx-bus-width = <4>;
  620. spi-cpha;
  621. spi-cpol;
  622. m25p,fast-read;
  623. partitions {
  624. compatible = "fixed-partitions";
  625. #address-cells = <1>;
  626. #size-cells = <1>;
  627. partition@0 {
  628. label = "loader";
  629. reg = <0x00000000 0x00080000>;
  630. read-only;
  631. };
  632. partition@80000 {
  633. label = "user";
  634. reg = <0x00080000 0x00580000>;
  635. read-only;
  636. };
  637. partition@600000 {
  638. label = "flash";
  639. reg = <0x00600000 0x03a00000>;
  640. };
  641. };
  642. };
  643. };
  644. &msiof0 {
  645. pinctrl-0 = <&msiof0_pins>;
  646. pinctrl-names = "default";
  647. status = "okay";
  648. pmic: pmic@0 {
  649. compatible = "renesas,r2a11302ft";
  650. reg = <0>;
  651. spi-max-frequency = <6000000>;
  652. spi-cpol;
  653. spi-cpha;
  654. };
  655. };
  656. &i2c1 {
  657. pinctrl-0 = <&i2c1_pins>;
  658. pinctrl-names = "i2c-exio1";
  659. };
  660. &i2c2 {
  661. pinctrl-0 = <&i2c2_pins>;
  662. pinctrl-names = "i2c-hdmi";
  663. clock-frequency = <100000>;
  664. };
  665. &i2c4 {
  666. pinctrl-0 = <&i2c4_pins>;
  667. pinctrl-names = "i2c-exio4";
  668. };
  669. &i2c6 {
  670. pinctrl-names = "default";
  671. pinctrl-0 = <&pmic_irq_pins>;
  672. status = "okay";
  673. clock-frequency = <100000>;
  674. pmic@58 {
  675. compatible = "dlg,da9063";
  676. reg = <0x58>;
  677. interrupt-parent = <&irqc0>;
  678. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  679. interrupt-controller;
  680. rtc {
  681. compatible = "dlg,da9063-rtc";
  682. };
  683. watchdog {
  684. compatible = "dlg,da9063-watchdog";
  685. };
  686. };
  687. vdd_dvfs: regulator@68 {
  688. compatible = "dlg,da9210";
  689. reg = <0x68>;
  690. interrupt-parent = <&irqc0>;
  691. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  692. regulator-min-microvolt = <1000000>;
  693. regulator-max-microvolt = <1000000>;
  694. regulator-boot-on;
  695. regulator-always-on;
  696. };
  697. };
  698. &pci0 {
  699. status = "okay";
  700. pinctrl-0 = <&usb0_pins>;
  701. pinctrl-names = "default";
  702. };
  703. &pci1 {
  704. status = "okay";
  705. pinctrl-0 = <&usb1_pins>;
  706. pinctrl-names = "default";
  707. };
  708. &hsusb {
  709. status = "okay";
  710. pinctrl-0 = <&usb0_pins>;
  711. pinctrl-names = "default";
  712. renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
  713. };
  714. &usbphy {
  715. status = "okay";
  716. };
  717. &pcie_bus_clk {
  718. clock-frequency = <100000000>;
  719. };
  720. &pciec {
  721. status = "okay";
  722. };
  723. &cpu0 {
  724. cpu0-supply = <&vdd_dvfs>;
  725. };
  726. /* HDMI video input */
  727. &vin0 {
  728. status = "okay";
  729. pinctrl-0 = <&vin0_pins>;
  730. pinctrl-names = "default";
  731. port {
  732. vin0ep2: endpoint {
  733. remote-endpoint = <&adv7612_out>;
  734. bus-width = <24>;
  735. hsync-active = <0>;
  736. vsync-active = <0>;
  737. pclk-sample = <1>;
  738. data-active = <1>;
  739. };
  740. };
  741. };
  742. /* composite video input */
  743. &vin1 {
  744. status = "okay";
  745. pinctrl-0 = <&vin1_pins>;
  746. pinctrl-names = "default";
  747. port {
  748. vin1ep: endpoint {
  749. remote-endpoint = <&adv7180>;
  750. bus-width = <8>;
  751. };
  752. };
  753. };
  754. &rcar_sound {
  755. pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
  756. pinctrl-names = "default";
  757. /* Single DAI */
  758. #sound-dai-cells = <0>;
  759. status = "okay";
  760. rcar_sound,dai {
  761. dai0 {
  762. playback = <&ssi0>, <&src2>, <&dvc0>;
  763. capture = <&ssi1>, <&src3>, <&dvc1>;
  764. };
  765. };
  766. };
  767. &ssi1 {
  768. shared-pin;
  769. };