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