Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 2 | /* |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 3 | * Device Tree Source for the Salvator-X board with R-Car M3-W |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2016 Renesas Electronics Corp. |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | #include "r8a7796.dtsi" |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 10 | #include "salvator-x.dtsi" |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | model = "Renesas Salvator-X board based on r8a7796"; |
| 14 | compatible = "renesas,salvator-x", "renesas,r8a7796"; |
| 15 | |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 16 | memory@48000000 { |
| 17 | device_type = "memory"; |
| 18 | /* first 128MB is reserved for secure area. */ |
| 19 | reg = <0x0 0x48000000 0x0 0x78000000>; |
| 20 | }; |
| 21 | |
| 22 | memory@600000000 { |
| 23 | device_type = "memory"; |
| 24 | reg = <0x6 0x00000000 0x0 0x80000000>; |
| 25 | }; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 26 | }; |
Marek Vasut | 07efb45 | 2017-11-29 04:27:36 +0100 | [diff] [blame] | 27 | |
| 28 | &du { |
| 29 | clocks = <&cpg CPG_MOD 724>, |
| 30 | <&cpg CPG_MOD 723>, |
| 31 | <&cpg CPG_MOD 722>, |
Marek Vasut | 07efb45 | 2017-11-29 04:27:36 +0100 | [diff] [blame] | 32 | <&versaclock5 1>, |
| 33 | <&x21_clk>, |
| 34 | <&versaclock5 2>; |
Marek Vasut | fde558e | 2019-03-04 22:53:28 +0100 | [diff] [blame] | 35 | clock-names = "du.0", "du.1", "du.2", |
Marek Vasut | 07efb45 | 2017-11-29 04:27:36 +0100 | [diff] [blame] | 36 | "dclkin.0", "dclkin.1", "dclkin.2"; |
| 37 | }; |
| 38 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 39 | &sound_card { |
| 40 | dais = <&rsnd_port0 /* ak4613 */ |
| 41 | &rsnd_port1>; /* HDMI0 */ |
| 42 | }; |
| 43 | |
Marek Vasut | 07efb45 | 2017-11-29 04:27:36 +0100 | [diff] [blame] | 44 | &hdmi0 { |
| 45 | status = "okay"; |
| 46 | |
| 47 | ports { |
| 48 | port@1 { |
| 49 | reg = <1>; |
| 50 | rcar_dw_hdmi0_out: endpoint { |
| 51 | remote-endpoint = <&hdmi0_con>; |
| 52 | }; |
| 53 | }; |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 54 | port@2 { |
| 55 | reg = <2>; |
| 56 | dw_hdmi0_snd_in: endpoint { |
| 57 | remote-endpoint = <&rsnd_endpoint1>; |
| 58 | }; |
| 59 | }; |
Marek Vasut | 07efb45 | 2017-11-29 04:27:36 +0100 | [diff] [blame] | 60 | }; |
| 61 | }; |
| 62 | |
| 63 | &hdmi0_con { |
| 64 | remote-endpoint = <&rcar_dw_hdmi0_out>; |
| 65 | }; |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 66 | |
| 67 | &rcar_sound { |
| 68 | ports { |
| 69 | /* rsnd_port0 is on salvator-common */ |
| 70 | rsnd_port1: port@1 { |
Eugeniu Rosca | 5586a87 | 2019-07-09 18:27:13 +0200 | [diff] [blame] | 71 | reg = <1>; |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 72 | rsnd_endpoint1: endpoint { |
| 73 | remote-endpoint = <&dw_hdmi0_snd_in>; |
| 74 | |
| 75 | dai-format = "i2s"; |
| 76 | bitclock-master = <&rsnd_endpoint1>; |
| 77 | frame-master = <&rsnd_endpoint1>; |
| 78 | |
| 79 | playback = <&ssi2>; |
| 80 | }; |
| 81 | }; |
| 82 | }; |
| 83 | }; |