Merge tag 'imx-dt-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo...
[cascardo/linux.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 #include <dt-bindings/clock/stih407-clks.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/media/c8sectpfe.h>
12 / {
13         soc {
14                 sbc_serial0: serial@9530000 {
15                         status = "okay";
16                 };
17
18                 leds {
19                         compatible = "gpio-leds";
20                         red {
21                                 #gpio-cells = <2>;
22                                 label = "Front Panel LED";
23                                 gpios = <&pio4 1 0>;
24                                 linux,default-trigger = "heartbeat";
25                         };
26                         green {
27                                 #gpio-cells = <2>;
28                                 gpios = <&pio1 3 0>;
29                                 default-state = "off";
30                         };
31                 };
32
33                 pwm0: pwm@9810000 {
34                         status = "okay";
35                 };
36
37                 pwm1: pwm@9510000 {
38                         status = "okay";
39                 };
40
41                 ssc2: i2c@9842000 {
42                         status = "okay";
43                         clock-frequency = <100000>;
44                         st,i2c-min-scl-pulse-width-us = <0>;
45                         st,i2c-min-sda-pulse-width-us = <5>;
46                 };
47
48                 ssc3: i2c@9843000 {
49                         status = "okay";
50                         clock-frequency = <100000>;
51                         st,i2c-min-scl-pulse-width-us = <0>;
52                         st,i2c-min-sda-pulse-width-us = <5>;
53                 };
54
55                 i2c@9844000 {
56                         status = "okay";
57                 };
58
59                 i2c@9845000 {
60                         status = "okay";
61                 };
62
63                 i2c@9540000 {
64                         status = "okay";
65                 };
66
67                 mmc0: sdhci@09060000 {
68                         non-removable;
69                         status = "okay";
70                 };
71
72                 mmc1: sdhci@09080000 {
73                         status = "okay";
74                 };
75
76                 /* SSC11 to HDMI */
77                 hdmiddc: i2c@9541000 {
78                         status = "okay";
79                         /* HDMI V1.3a supports Standard mode only */
80                         clock-frequency = <100000>;
81                         st,i2c-min-scl-pulse-width-us = <0>;
82                         st,i2c-min-sda-pulse-width-us = <5>;
83                 };
84
85                 miphy28lp_phy: miphy28lp@9b22000 {
86
87                         phy_port0: port@9b22000 {
88                                 st,osc-rdy;
89                         };
90
91                         phy_port1: port@9b2a000 {
92                                 st,osc-force-ext;
93                         };
94                 };
95
96                 st_dwc3: dwc3@8f94000 {
97                         status = "okay";
98                 };
99
100                 ethernet0: dwmac@9630000 {
101                         st,tx-retime-src = "clkgen";
102                         status = "okay";
103                         phy-mode = "rgmii";
104                         fixed-link = <0 1 1000 0 0>;
105                 };
106
107                 demux@08a20000 {
108                         compatible      = "st,stih407-c8sectpfe";
109                         status          = "okay";
110                         reg             = <0x08a20000 0x10000>,
111                                           <0x08a00000 0x4000>;
112                         reg-names       = "c8sectpfe", "c8sectpfe-ram";
113                         interrupts      = <GIC_SPI 34 IRQ_TYPE_NONE>,
114                                           <GIC_SPI 35 IRQ_TYPE_NONE>;
115                         interrupt-names = "c8sectpfe-error-irq",
116                                           "c8sectpfe-idle-irq";
117                         pinctrl-0       = <&pinctrl_tsin0_serial>;
118                         pinctrl-1       = <&pinctrl_tsin0_parallel>;
119                         pinctrl-2       = <&pinctrl_tsin3_serial>;
120                         pinctrl-3       = <&pinctrl_tsin4_serial_alt3>;
121                         pinctrl-4       = <&pinctrl_tsin5_serial_alt1>;
122                         pinctrl-names   = "tsin0-serial",
123                                           "tsin0-parallel",
124                                           "tsin3-serial",
125                                           "tsin4-serial",
126                                           "tsin5-serial";
127                         clocks          = <&clk_s_c0_flexgen CLK_PROC_STFE>;
128                         clock-names     = "c8sectpfe";
129
130                         /* tsin0 is TSA on NIMA */
131                         tsin0: port@0 {
132                                 tsin-num        = <0>;
133                                 serial-not-parallel;
134                                 i2c-bus         = <&ssc2>;
135                                 reset-gpios     = <&pio15 4 GPIO_ACTIVE_HIGH>;
136                                 dvb-card        = <STV0367_TDA18212_NIMA_1>;
137                         };
138                 };
139         };
140 };