xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/bridge/toshiba,tc358767.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunToshiba TC358767 eDP bridge bindings
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun - compatible: "toshiba,tc358767"
5*4882a593Smuzhiyun - reg: i2c address of the bridge, 0x68 or 0x0f, depending on bootstrap pins
6*4882a593Smuzhiyun - clock-names: should be "ref"
7*4882a593Smuzhiyun - clocks: OF device-tree clock specification for refclk input. The reference
8*4882a593Smuzhiyun   clock rate must be 13 MHz, 19.2 MHz, 26 MHz, or 38.4 MHz.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunOptional properties:
11*4882a593Smuzhiyun - shutdown-gpios: OF device-tree gpio specification for SD pin
12*4882a593Smuzhiyun                   (active high shutdown input)
13*4882a593Smuzhiyun - reset-gpios: OF device-tree gpio specification for RSTX pin
14*4882a593Smuzhiyun                (active low system reset)
15*4882a593Smuzhiyun - toshiba,hpd-pin: TC358767 GPIO pin number to which HPD is connected to (0 or 1)
16*4882a593Smuzhiyun - ports: the ports node can contain video interface port nodes to connect
17*4882a593Smuzhiyun   to a DPI/DSI source and to an eDP/DP sink according to [1][2]:
18*4882a593Smuzhiyun    - port@0: DSI input port
19*4882a593Smuzhiyun    - port@1: DPI input port
20*4882a593Smuzhiyun    - port@2: eDP/DP output port
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun[1]: Documentation/devicetree/bindings/graph.txt
23*4882a593Smuzhiyun[2]: Documentation/devicetree/bindings/media/video-interfaces.txt
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunExample:
26*4882a593Smuzhiyun	edp-bridge@68 {
27*4882a593Smuzhiyun		compatible = "toshiba,tc358767";
28*4882a593Smuzhiyun		reg = <0x68>;
29*4882a593Smuzhiyun		shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
30*4882a593Smuzhiyun		reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
31*4882a593Smuzhiyun		clock-names = "ref";
32*4882a593Smuzhiyun		clocks = <&edp_refclk>;
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun		ports {
35*4882a593Smuzhiyun			#address-cells = <1>;
36*4882a593Smuzhiyun			#size-cells = <0>;
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun			port@1 {
39*4882a593Smuzhiyun				reg = <1>;
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun				bridge_in: endpoint {
42*4882a593Smuzhiyun					remote-endpoint = <&dpi_out>;
43*4882a593Smuzhiyun				};
44*4882a593Smuzhiyun			};
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun			port@2 {
47*4882a593Smuzhiyun				reg = <2>;
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun				bridge_out: endpoint {
50*4882a593Smuzhiyun					remote-endpoint = <&panel_in>;
51*4882a593Smuzhiyun				};
52*4882a593Smuzhiyun			};
53*4882a593Smuzhiyun		};
54*4882a593Smuzhiyun	};
55