Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 2 | /* |
Marek Vasut | cbff9f8 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 3 | * Device Tree Source for the Salvator-X board with R-Car H3 ES2.0 |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2015 Renesas Electronics Corp. |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 8 | /dts-v1/; |
| 9 | #include "r8a7795.dtsi" |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 10 | #include "salvator-x.dtsi" |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 11 | |
| 12 | / { |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 13 | model = "Renesas Salvator-X board based on r8a7795 ES2.0+"; |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 14 | compatible = "renesas,salvator-x", "renesas,r8a7795"; |
| 15 | |
Marek Vasut | 4157c47 | 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 0x38000000>; |
| 20 | }; |
| 21 | |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 22 | memory@500000000 { |
| 23 | device_type = "memory"; |
| 24 | reg = <0x5 0x00000000 0x0 0x40000000>; |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 25 | }; |
| 26 | |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 27 | memory@600000000 { |
| 28 | device_type = "memory"; |
| 29 | reg = <0x6 0x00000000 0x0 0x40000000>; |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 30 | }; |
| 31 | |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 32 | memory@700000000 { |
| 33 | device_type = "memory"; |
| 34 | reg = <0x7 0x00000000 0x0 0x40000000>; |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 35 | }; |
| 36 | }; |
| 37 | |
| 38 | &du { |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 39 | clocks = <&cpg CPG_MOD 724>, |
| 40 | <&cpg CPG_MOD 723>, |
| 41 | <&cpg CPG_MOD 722>, |
| 42 | <&cpg CPG_MOD 721>, |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 43 | <&versaclock5 1>, |
| 44 | <&x21_clk>, |
| 45 | <&x22_clk>, |
| 46 | <&versaclock5 2>; |
Marek Vasut | 317d13a | 2019-03-04 22:53:28 +0100 | [diff] [blame^] | 47 | clock-names = "du.0", "du.1", "du.2", "du.3", |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 48 | "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3"; |
| 49 | }; |
| 50 | |
| 51 | &ehci2 { |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
Marek Vasut | cbff9f8 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 55 | &sound_card { |
| 56 | dais = <&rsnd_port0 /* ak4613 */ |
| 57 | &rsnd_port1 /* HDMI0 */ |
| 58 | &rsnd_port2>; /* HDMI1 */ |
| 59 | }; |
| 60 | |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 61 | &hdmi0 { |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 62 | status = "okay"; |
| 63 | |
| 64 | ports { |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 65 | port@1 { |
| 66 | reg = <1>; |
| 67 | rcar_dw_hdmi0_out: endpoint { |
| 68 | remote-endpoint = <&hdmi0_con>; |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 69 | }; |
| 70 | }; |
Marek Vasut | cbff9f8 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 71 | port@2 { |
| 72 | reg = <2>; |
| 73 | dw_hdmi0_snd_in: endpoint { |
| 74 | remote-endpoint = <&rsnd_endpoint1>; |
| 75 | }; |
| 76 | }; |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 77 | }; |
| 78 | }; |
| 79 | |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 80 | &hdmi0_con { |
| 81 | remote-endpoint = <&rcar_dw_hdmi0_out>; |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 82 | }; |
| 83 | |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 84 | &hdmi1 { |
| 85 | status = "okay"; |
| 86 | |
| 87 | ports { |
| 88 | port@1 { |
| 89 | reg = <1>; |
| 90 | rcar_dw_hdmi1_out: endpoint { |
| 91 | remote-endpoint = <&hdmi1_con>; |
| 92 | }; |
| 93 | }; |
Marek Vasut | cbff9f8 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 94 | port@2 { |
| 95 | reg = <2>; |
| 96 | dw_hdmi1_snd_in: endpoint { |
| 97 | remote-endpoint = <&rsnd_endpoint2>; |
| 98 | }; |
| 99 | }; |
Marek Vasut | 37a7908 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 100 | }; |
| 101 | }; |
| 102 | |
| 103 | &hdmi1_con { |
| 104 | remote-endpoint = <&rcar_dw_hdmi1_out>; |
| 105 | }; |
| 106 | |
| 107 | &ohci2 { |
| 108 | status = "okay"; |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 109 | }; |
| 110 | |
Marek Vasut | cbff9f8 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 111 | &rcar_sound { |
| 112 | ports { |
| 113 | /* rsnd_port0 is on salvator-common */ |
| 114 | rsnd_port1: port@1 { |
Marek Vasut | 317d13a | 2019-03-04 22:53:28 +0100 | [diff] [blame^] | 115 | reg = <1>; |
Marek Vasut | cbff9f8 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 116 | rsnd_endpoint1: endpoint { |
| 117 | remote-endpoint = <&dw_hdmi0_snd_in>; |
| 118 | |
| 119 | dai-format = "i2s"; |
| 120 | bitclock-master = <&rsnd_endpoint1>; |
| 121 | frame-master = <&rsnd_endpoint1>; |
| 122 | |
| 123 | playback = <&ssi2>; |
| 124 | }; |
| 125 | }; |
| 126 | rsnd_port2: port@2 { |
Marek Vasut | 317d13a | 2019-03-04 22:53:28 +0100 | [diff] [blame^] | 127 | reg = <2>; |
Marek Vasut | cbff9f8 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 128 | rsnd_endpoint2: endpoint { |
| 129 | remote-endpoint = <&dw_hdmi1_snd_in>; |
| 130 | |
| 131 | dai-format = "i2s"; |
| 132 | bitclock-master = <&rsnd_endpoint2>; |
| 133 | frame-master = <&rsnd_endpoint2>; |
| 134 | |
| 135 | playback = <&ssi3>; |
| 136 | }; |
| 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 141 | &pfc { |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 142 | usb2_pins: usb2 { |
| 143 | groups = "usb2"; |
| 144 | function = "usb2"; |
| 145 | }; |
| 146 | }; |
| 147 | |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 148 | &sata { |
| 149 | status = "okay"; |
| 150 | }; |
| 151 | |
Marek Vasut | 4157c47 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 152 | &usb2_phy2 { |
| 153 | pinctrl-0 = <&usb2_pins>; |
| 154 | pinctrl-names = "default"; |
| 155 | |
| 156 | status = "okay"; |
| 157 | }; |