Merge tag 'iommu-updates-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / r8a7745-iwg22d-sodimm-dbhd-ca.dts
1 /*
2  * Device Tree Source for the iWave-RZG1E SODIMM carrier board + HDMI daughter
3  * board
4  *
5  * Copyright (C) 2017 Renesas Electronics Corp.
6  *
7  * This file is licensed under the terms of the GNU General Public License
8  * version 2.  This program is licensed "as is" without any warranty of any
9  * kind, whether express or implied.
10  */
11
12 #include "r8a7745-iwg22d-sodimm.dts"
13
14 / {
15         model = "iWave RainboW-G22D-SODIMM RZ/G1E based board with HDMI add-on";
16         compatible = "iwave,g22d", "iwave,g22m", "renesas,r8a7745";
17
18         aliases {
19                 serial0 = &scif1;
20                 serial4 = &scif5;
21                 serial6 = &hscif2;
22         };
23
24         cec_clock: cec-clock {
25                 compatible = "fixed-clock";
26                 #clock-cells = <0>;
27                 clock-frequency = <12000000>;
28         };
29
30         hdmi-out {
31                 compatible = "hdmi-connector";
32                 type = "a";
33
34                 port {
35                         hdmi_con: endpoint {
36                                 remote-endpoint = <&adv7511_out>;
37                         };
38                 };
39         };
40 };
41
42 &du {
43         pinctrl-0 = <&du0_pins>;
44         pinctrl-names = "default";
45
46         status = "okay";
47
48         ports {
49                 port@0 {
50                         endpoint {
51                                 remote-endpoint = <&adv7511_in>;
52                         };
53                 };
54         };
55 };
56
57 &can1 {
58         pinctrl-0 = <&can1_pins>;
59         pinctrl-names = "default";
60
61         status = "okay";
62 };
63
64 &hscif2 {
65         pinctrl-0 = <&hscif2_pins>;
66         pinctrl-names = "default";
67
68         status = "okay";
69 };
70
71 &i2c1 {
72         pinctrl-0 = <&i2c1_pins>;
73         pinctrl-names = "default";
74
75         status = "okay";
76         clock-frequency = <400000>;
77
78         hdmi@39 {
79                 compatible = "adi,adv7511w";
80                 reg = <0x39>;
81                 interrupt-parent = <&gpio1>;
82                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
83                 clocks = <&cec_clock>;
84                 clock-names = "cec";
85                 pd-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>;
86
87                 adi,input-depth = <8>;
88                 adi,input-colorspace = "rgb";
89                 adi,input-clock = "1x";
90                 adi,input-style = <1>;
91                 adi,input-justification = "evenly";
92
93                 ports {
94                         #address-cells = <1>;
95                         #size-cells = <0>;
96
97                         port@0 {
98                                 reg = <0>;
99                                 adv7511_in: endpoint {
100                                         remote-endpoint = <&du_out_rgb0>;
101                                 };
102                         };
103
104                         port@1 {
105                                 reg = <1>;
106                                 adv7511_out: endpoint {
107                                         remote-endpoint = <&hdmi_con>;
108                                 };
109                         };
110                 };
111         };
112 };
113
114 &pfc {
115         can1_pins: can1 {
116                 groups = "can1_data_b";
117                 function = "can1";
118         };
119
120         du0_pins: du0 {
121                 groups = "du0_rgb888", "du0_sync", "du0_disp", "du0_clk0_out";
122                 function = "du0";
123         };
124
125         hscif2_pins: hscif2 {
126                 groups = "hscif2_data";
127                 function = "hscif2";
128         };
129
130         i2c1_pins: i2c1 {
131                 groups = "i2c1_d";
132                 function = "i2c1";
133         };
134
135         scif1_pins: scif1 {
136                 groups = "scif1_data";
137                 function = "scif1";
138         };
139
140         scif5_pins: scif5 {
141                 groups = "scif5_data_d";
142                 function = "scif5";
143         };
144 };
145
146 &scif1 {
147         pinctrl-0 = <&scif1_pins>;
148         pinctrl-names = "default";
149
150         status = "okay";
151 };
152
153 &scif5 {
154         pinctrl-0 = <&scif5_pins>;
155         pinctrl-names = "default";
156
157         status = "okay";
158 };