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