Ulrich Hecht | a742795 | 2014-09-05 12:23:49 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the Alt board |
| 3 | * |
| 4 | * Copyright (C) 2014 Renesas Electronics Corporation |
| 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 | |
| 11 | /dts-v1/; |
| 12 | #include "r8a7794.dtsi" |
| 13 | |
| 14 | / { |
| 15 | model = "Alt"; |
| 16 | compatible = "renesas,alt", "renesas,r8a7794"; |
| 17 | |
| 18 | aliases { |
| 19 | serial0 = &scif2; |
| 20 | }; |
| 21 | |
| 22 | chosen { |
Simon Horman | 89aeff9 | 2014-11-04 13:23:38 +0900 | [diff] [blame] | 23 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
Geert Uytterhoeven | b4a0f50 | 2014-10-03 17:11:43 +0200 | [diff] [blame] | 24 | stdout-path = &scif2; |
Ulrich Hecht | a742795 | 2014-09-05 12:23:49 +0200 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | memory@40000000 { |
| 28 | device_type = "memory"; |
| 29 | reg = <0 0x40000000 0 0x40000000>; |
| 30 | }; |
| 31 | |
| 32 | lbsc { |
| 33 | #address-cells = <1>; |
| 34 | #size-cells = <1>; |
| 35 | }; |
Magnus Damm | 876e7fb | 2015-11-16 17:57:29 +0900 | [diff] [blame] | 36 | |
| 37 | vga-encoder { |
| 38 | compatible = "adi,adv7123"; |
| 39 | |
| 40 | ports { |
| 41 | #address-cells = <1>; |
| 42 | #size-cells = <0>; |
| 43 | |
| 44 | port@0 { |
| 45 | reg = <0>; |
| 46 | adv7123_in: endpoint { |
| 47 | remote-endpoint = <&du_out_rgb1>; |
| 48 | }; |
| 49 | }; |
| 50 | port@1 { |
| 51 | reg = <1>; |
| 52 | adv7123_out: endpoint { |
| 53 | remote-endpoint = <&vga_in>; |
| 54 | }; |
| 55 | }; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | vga { |
| 60 | compatible = "vga-connector"; |
| 61 | |
| 62 | port { |
| 63 | vga_in: endpoint { |
| 64 | remote-endpoint = <&adv7123_out>; |
| 65 | }; |
| 66 | }; |
| 67 | }; |
| 68 | |
| 69 | x2_clk: x2-clock { |
| 70 | compatible = "fixed-clock"; |
| 71 | #clock-cells = <0>; |
| 72 | clock-frequency = <74250000>; |
| 73 | }; |
| 74 | |
| 75 | x13_clk: x13-clock { |
| 76 | compatible = "fixed-clock"; |
| 77 | #clock-cells = <0>; |
| 78 | clock-frequency = <148500000>; |
| 79 | }; |
| 80 | }; |
| 81 | |
| 82 | &du { |
| 83 | status = "okay"; |
| 84 | |
| 85 | clocks = <&mstp7_clks R8A7794_CLK_DU0>, |
| 86 | <&mstp7_clks R8A7794_CLK_DU0>, |
| 87 | <&x13_clk>, <&x2_clk>; |
| 88 | clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; |
| 89 | |
| 90 | ports { |
| 91 | port@1 { |
| 92 | endpoint { |
| 93 | remote-endpoint = <&adv7123_in>; |
| 94 | }; |
| 95 | }; |
| 96 | }; |
Ulrich Hecht | a742795 | 2014-09-05 12:23:49 +0200 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | &extal_clk { |
| 100 | clock-frequency = <20000000>; |
| 101 | }; |
| 102 | |
Simon Horman | 22b1607 | 2015-11-17 11:10:40 -0800 | [diff] [blame] | 103 | &pfc { |
| 104 | scif2_pins: serial2 { |
| 105 | renesas,groups = "scif2_data"; |
| 106 | renesas,function = "scif2"; |
| 107 | }; |
| 108 | |
| 109 | ether_pins: ether { |
| 110 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; |
| 111 | renesas,function = "eth"; |
| 112 | }; |
| 113 | |
| 114 | ether_b_pins: ether { |
| 115 | renesas,groups = "eth_link_b", "eth_mdio_b", "eth_rmii_b"; |
| 116 | renesas,function = "eth"; |
| 117 | }; |
Ulrich Hecht | 7f81bf7 | 2015-11-18 13:51:06 +0100 | [diff] [blame] | 118 | |
| 119 | i2c1_pins: i2c1 { |
| 120 | renesas,groups = "i2c1"; |
| 121 | renesas,function = "i2c1"; |
| 122 | }; |
Ulrich Hecht | d537543 | 2015-11-18 13:51:07 +0100 | [diff] [blame^] | 123 | |
| 124 | vin0_pins: vin0 { |
| 125 | renesas,groups = "vin0_data8", "vin0_clk"; |
| 126 | renesas,function = "vin0"; |
| 127 | }; |
Simon Horman | 22b1607 | 2015-11-17 11:10:40 -0800 | [diff] [blame] | 128 | }; |
| 129 | |
Ulrich Hecht | a742795 | 2014-09-05 12:23:49 +0200 | [diff] [blame] | 130 | &cmt0 { |
Geert Uytterhoeven | 38e0290 | 2014-12-09 12:25:04 +0100 | [diff] [blame] | 131 | status = "okay"; |
Ulrich Hecht | a742795 | 2014-09-05 12:23:49 +0200 | [diff] [blame] | 132 | }; |
| 133 | |
Laurent Pinchart | a895b7c | 2015-01-27 10:45:56 +0200 | [diff] [blame] | 134 | ðer { |
| 135 | phy-handle = <&phy1>; |
| 136 | renesas,ether-link-active-low; |
| 137 | status = "okay"; |
| 138 | |
| 139 | phy1: ethernet-phy@1 { |
| 140 | reg = <1>; |
| 141 | interrupt-parent = <&irqc0>; |
Laurent Pinchart | 1fc5801 | 2015-02-26 16:08:33 +0200 | [diff] [blame] | 142 | interrupts = <8 IRQ_TYPE_LEVEL_LOW>; |
Laurent Pinchart | a895b7c | 2015-01-27 10:45:56 +0200 | [diff] [blame] | 143 | micrel,led-mode = <1>; |
| 144 | }; |
| 145 | }; |
| 146 | |
Ulrich Hecht | 7f81bf7 | 2015-11-18 13:51:06 +0100 | [diff] [blame] | 147 | &i2c1 { |
| 148 | pinctrl-0 = <&i2c1_pins>; |
| 149 | pinctrl-names = "default"; |
| 150 | |
| 151 | status = "okay"; |
| 152 | clock-frequency = <400000>; |
Ulrich Hecht | d537543 | 2015-11-18 13:51:07 +0100 | [diff] [blame^] | 153 | |
| 154 | composite-in@20 { |
| 155 | compatible = "adi,adv7180"; |
| 156 | reg = <0x20>; |
| 157 | remote = <&vin0>; |
| 158 | |
| 159 | port { |
| 160 | adv7180: endpoint { |
| 161 | bus-width = <8>; |
| 162 | remote-endpoint = <&vin0ep>; |
| 163 | }; |
| 164 | }; |
| 165 | }; |
| 166 | }; |
| 167 | |
| 168 | &vin0 { |
| 169 | status = "okay"; |
| 170 | pinctrl-0 = <&vin0_pins>; |
| 171 | pinctrl-names = "default"; |
| 172 | |
| 173 | port { |
| 174 | #address-cells = <1>; |
| 175 | #size-cells = <0>; |
| 176 | |
| 177 | vin0ep: endpoint { |
| 178 | remote-endpoint = <&adv7180>; |
| 179 | bus-width = <8>; |
| 180 | }; |
| 181 | }; |
Ulrich Hecht | 7f81bf7 | 2015-11-18 13:51:06 +0100 | [diff] [blame] | 182 | }; |
| 183 | |
Ulrich Hecht | a742795 | 2014-09-05 12:23:49 +0200 | [diff] [blame] | 184 | &scif2 { |
Geert Uytterhoeven | 38e0290 | 2014-12-09 12:25:04 +0100 | [diff] [blame] | 185 | status = "okay"; |
Ulrich Hecht | a742795 | 2014-09-05 12:23:49 +0200 | [diff] [blame] | 186 | }; |