[media] ARM: DT: STi: STiH407: Add c8sectpfe LinuxDVB DT node
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / stihxxx-b2120.dtsi
1 /*
2  * Copyright (C) 2014 STMicroelectronics (R&D) Limited.
3  * Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  */
9
10 #include <dt-bindings/clock/stih407-clks.h>
11 #include <dt-bindings/media/c8sectpfe.h>
12
13 / {
14         soc {
15                 sbc_serial0: serial@9530000 {
16                         status = "okay";
17                 };
18
19                 leds {
20                         compatible = "gpio-leds";
21                         red {
22                                 #gpio-cells = <2>;
23                                 label = "Front Panel LED";
24                                 gpios = <&pio4 1 0>;
25                                 linux,default-trigger = "heartbeat";
26                         };
27                         green {
28                                 #gpio-cells = <2>;
29                                 gpios = <&pio1 3 0>;
30                                 default-state = "off";
31                         };
32                 };
33
34                 i2c@9842000 {
35                         status = "okay";
36                 };
37
38                 i2c@9843000 {
39                         status = "okay";
40                 };
41
42                 i2c@9844000 {
43                         status = "okay";
44                 };
45
46                 i2c@9845000 {
47                         status = "okay";
48                 };
49
50                 i2c@9540000 {
51                         status = "okay";
52                 };
53
54                 mmc0: sdhci@09060000 {
55                         status = "okay";
56                 };
57
58                 mmc1: sdhci@09080000 {
59                         status = "okay";
60                 };
61
62                 /* SSC11 to HDMI */
63                 hdmiddc: i2c@9541000 {
64                         status = "okay";
65                         /* HDMI V1.3a supports Standard mode only */
66                         clock-frequency = <100000>;
67                         st,i2c-min-scl-pulse-width-us = <0>;
68                         st,i2c-min-sda-pulse-width-us = <5>;
69                 };
70
71                 miphy28lp_phy: miphy28lp@9b22000 {
72
73                         phy_port0: port@9b22000 {
74                                 st,osc-rdy;
75                         };
76
77                         phy_port1: port@9b2a000 {
78                                 st,osc-force-ext;
79                         };
80                 };
81
82                 st_dwc3: dwc3@8f94000 {
83                         status = "okay";
84                 };
85
86                 c8sectpfe@08a20000 {
87                         compatible = "st,stih407-c8sectpfe";
88                         status = "okay";
89                         reg = <0x08a20000 0x10000>, <0x08a00000 0x4000>;
90                         reg-names = "c8sectpfe", "c8sectpfe-ram";
91
92                         interrupts = <0 34 0>, <0 35 0>;
93                         interrupt-names = "c8sectpfe-error-irq",
94                                           "c8sectpfe-idle-irq";
95
96                         pinctrl-names   = "tsin0-serial", "tsin0-parallel",
97                                           "tsin3-serial", "tsin4-serial",
98                                           "tsin5-serial";
99
100                         pinctrl-0       = <&pinctrl_tsin0_serial>;
101                         pinctrl-1       = <&pinctrl_tsin0_parallel>;
102                         pinctrl-2       = <&pinctrl_tsin3_serial>;
103                         pinctrl-3       = <&pinctrl_tsin4_serial_alt3>;
104                         pinctrl-4       = <&pinctrl_tsin5_serial_alt1>;
105
106                         clocks = <&clk_s_c0_flexgen CLK_PROC_STFE>;
107                         clock-names = "c8sectpfe";
108
109                         /* tsin0 is TSA on NIMA */
110                         tsin0: port@0 {
111
112                                 tsin-num = <0>;
113                                 serial-not-parallel;
114                                 i2c-bus = <&ssc2>;
115                                 rst-gpio = <&pio15 4 0>;
116
117                                 dvb-card = <STV0367_TDA18212_NIMA_1>;
118                         };
119                 };
120         };
121 };