Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the Salvator-X board |
| 3 | * |
| 4 | * Copyright (C) 2015 Renesas Electronics Corp. |
| 5 | * |
| 6 | * This file is licensed under the terms of the GNU General Public License |
| 7 | * version 2. This program is licensed "as is" without any warranty of any |
| 8 | * kind, whether express or implied. |
| 9 | */ |
| 10 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 11 | #define CPG_AUDIO_CLK_I R8A7795_CLK_S0D4 |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 12 | |
| 13 | /dts-v1/; |
| 14 | #include "r8a7795.dtsi" |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 15 | #include "salvator-x.dtsi" |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 16 | |
| 17 | / { |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 18 | model = "Renesas Salvator-X board based on r8a7795 ES2.0+"; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 19 | compatible = "renesas,salvator-x", "renesas,r8a7795"; |
| 20 | |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 21 | memory@48000000 { |
| 22 | device_type = "memory"; |
| 23 | /* first 128MB is reserved for secure area. */ |
| 24 | reg = <0x0 0x48000000 0x0 0x38000000>; |
| 25 | }; |
| 26 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 27 | memory@500000000 { |
| 28 | device_type = "memory"; |
| 29 | reg = <0x5 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@600000000 { |
| 33 | device_type = "memory"; |
| 34 | reg = <0x6 0x00000000 0x0 0x40000000>; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 35 | }; |
| 36 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 37 | memory@700000000 { |
| 38 | device_type = "memory"; |
| 39 | reg = <0x7 0x00000000 0x0 0x40000000>; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 40 | }; |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 41 | }; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 42 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 43 | &du { |
| 44 | clocks = <&cpg CPG_MOD 724>, |
| 45 | <&cpg CPG_MOD 723>, |
| 46 | <&cpg CPG_MOD 722>, |
| 47 | <&cpg CPG_MOD 721>, |
| 48 | <&cpg CPG_MOD 727>, |
| 49 | <&versaclock5 1>, |
| 50 | <&x21_clk>, |
| 51 | <&x22_clk>, |
| 52 | <&versaclock5 2>; |
| 53 | clock-names = "du.0", "du.1", "du.2", "du.3", "lvds.0", |
| 54 | "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3"; |
| 55 | }; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 56 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 57 | &ehci2 { |
| 58 | status = "okay"; |
| 59 | }; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 60 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 61 | &hdmi0 { |
| 62 | status = "okay"; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 63 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 64 | ports { |
| 65 | port@1 { |
| 66 | reg = <1>; |
| 67 | rcar_dw_hdmi0_out: endpoint { |
| 68 | remote-endpoint = <&hdmi0_con>; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 69 | }; |
| 70 | }; |
| 71 | }; |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 72 | }; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 73 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 74 | &hdmi0_con { |
| 75 | remote-endpoint = <&rcar_dw_hdmi0_out>; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 76 | }; |
| 77 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 78 | &hdmi1 { |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 79 | status = "okay"; |
| 80 | |
| 81 | ports { |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 82 | port@1 { |
| 83 | reg = <1>; |
| 84 | rcar_dw_hdmi1_out: endpoint { |
| 85 | remote-endpoint = <&hdmi1_con>; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 86 | }; |
| 87 | }; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 88 | }; |
| 89 | }; |
| 90 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 91 | &hdmi1_con { |
| 92 | remote-endpoint = <&rcar_dw_hdmi1_out>; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 93 | }; |
| 94 | |
Marek Vasut | 36f83d9 | 2017-09-12 23:01:51 +0200 | [diff] [blame] | 95 | &ohci2 { |
| 96 | status = "okay"; |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | &pfc { |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 100 | usb2_pins: usb2 { |
| 101 | groups = "usb2"; |
| 102 | function = "usb2"; |
| 103 | }; |
| 104 | }; |
| 105 | |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 106 | &sata { |
| 107 | status = "okay"; |
| 108 | }; |
| 109 | |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 110 | &usb2_phy2 { |
| 111 | pinctrl-0 = <&usb2_pins>; |
| 112 | pinctrl-names = "default"; |
| 113 | |
Marek Vasut | b938f38 | 2017-07-21 23:16:59 +0200 | [diff] [blame] | 114 | status = "okay"; |
| 115 | }; |