81d9788af0bf2b998df2dfaf70c9548c17cd1e7d
[openwrt/openwrt.git] / target / linux / gemini / patches-4.14 / 0003-ARM-dts-Add-TVE200-to-the-Gemini-SoC-DTSI.patch
1 From 00e53d08bbe92051765c5bb94223b6f628cd3740 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Wed, 11 Oct 2017 19:45:19 +0200
4 Subject: [PATCH 03/31] ARM: dts: Add TVE200 to the Gemini SoC DTSI
5
6 The Faraday TVE200 is present in the Gemini SoC, sometimes
7 under the name "TVC". Add it to the SoC DTSI file along with
8 its resources.
9
10 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
11 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
12 ---
13 arch/arm/boot/dts/gemini.dtsi | 21 +++++++++++++++++++++
14 1 file changed, 21 insertions(+)
15
16 --- a/arch/arm/boot/dts/gemini.dtsi
17 +++ b/arch/arm/boot/dts/gemini.dtsi
18 @@ -142,6 +142,12 @@
19 groups = "idegrp";
20 };
21 };
22 + tvc_default_pins: pinctrl-tvc {
23 + mux {
24 + function = "tvc";
25 + groups = "tvcgrp";
26 + };
27 + };
28 };
29 };
30
31 @@ -348,5 +354,20 @@
32 memcpy-bus-width = <32>;
33 #dma-cells = <2>;
34 };
35 +
36 + display-controller@6a000000 {
37 + compatible = "cortina,gemini-tvc", "faraday,tve200";
38 + reg = <0x6a000000 0x1000>;
39 + interrupts = <13 IRQ_TYPE_EDGE_RISING>;
40 + resets = <&syscon GEMINI_RESET_TVC>;
41 + clocks = <&syscon GEMINI_CLK_GATE_TVC>,
42 + <&syscon GEMINI_CLK_TVC>;
43 + clock-names = "PCLK", "TVE";
44 + pinctrl-names = "default";
45 + pinctrl-0 = <&tvc_default_pins>;
46 + #address-cells = <1>;
47 + #size-cells = <0>;
48 + status = "disabled";
49 + };
50 };
51 };