Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 1 | Exynos MIPI DSI Master |
| 2 | |
| 3 | Required properties: |
YoungJun Cho | 88dc66c | 2014-07-17 18:01:22 +0900 | [diff] [blame] | 4 | - compatible: value should be one of the following |
Inki Dae | 473462a | 2014-08-13 17:09:12 +0900 | [diff] [blame] | 5 | "samsung,exynos3250-mipi-dsi" /* for Exynos3250/3472 SoCs */ |
YoungJun Cho | 88dc66c | 2014-07-17 18:01:22 +0900 | [diff] [blame] | 6 | "samsung,exynos4210-mipi-dsi" /* for Exynos4 SoCs */ |
YoungJun Cho | 4bc6d64 | 2014-11-07 15:12:24 +0900 | [diff] [blame] | 7 | "samsung,exynos4415-mipi-dsi" /* for Exynos4415 SoC */ |
YoungJun Cho | 88dc66c | 2014-07-17 18:01:22 +0900 | [diff] [blame] | 8 | "samsung,exynos5410-mipi-dsi" /* for Exynos5410/5420/5440 SoCs */ |
Chanho Park | fdc2e10 | 2016-01-30 23:11:50 +0900 | [diff] [blame] | 9 | "samsung,exynos5422-mipi-dsi" /* for Exynos5422/5800 SoCs */ |
Hyungwon Hwang | e6f988a | 2015-06-12 21:59:07 +0900 | [diff] [blame] | 10 | "samsung,exynos5433-mipi-dsi" /* for Exynos5433 SoCs */ |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 11 | - reg: physical base address and length of the registers set for the device |
| 12 | - interrupts: should contain DSI interrupt |
| 13 | - clocks: list of clock specifiers, must contain an entry for each required |
| 14 | entry in clock-names |
Hyungwon Hwang | 26269af | 2015-06-12 21:59:03 +0900 | [diff] [blame] | 15 | - clock-names: should include "bus_clk"and "sclk_mipi" entries |
| 16 | the use of "pll_clk" is deprecated |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 17 | - phys: list of phy specifiers, must contain an entry for each required |
| 18 | entry in phy-names |
| 19 | - phy-names: should include "dsim" entry |
| 20 | - vddcore-supply: MIPI DSIM Core voltage supply (e.g. 1.1V) |
| 21 | - vddio-supply: MIPI DSIM I/O and PLL voltage supply (e.g. 1.8V) |
Hyungwon Hwang | 26269af | 2015-06-12 21:59:03 +0900 | [diff] [blame] | 22 | - samsung,pll-clock-frequency: specifies frequency of the oscillator clock |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 23 | - #address-cells, #size-cells: should be set respectively to <1> and <0> |
| 24 | according to DSI host bindings (see MIPI DSI bindings [1]) |
| 25 | |
| 26 | Optional properties: |
Marek Szyprowski | 0da6587 | 2015-01-24 13:16:15 +0900 | [diff] [blame] | 27 | - power-domains: a phandle to DSIM power domain node |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 28 | |
| 29 | Child nodes: |
| 30 | Should contain DSI peripheral nodes (see MIPI DSI bindings [1]). |
| 31 | |
| 32 | Video interfaces: |
| 33 | Device node can contain video interface port nodes according to [2]. |
| 34 | The following are properties specific to those nodes: |
| 35 | |
Hyungwon Hwang | f5f3b9b | 2015-06-12 21:59:08 +0900 | [diff] [blame] | 36 | port node inbound: |
| 37 | - reg: (required) must be 0. |
| 38 | port node outbound: |
| 39 | - reg: (required) must be 1. |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 40 | |
Hyungwon Hwang | f5f3b9b | 2015-06-12 21:59:08 +0900 | [diff] [blame] | 41 | endpoint node connected from mic node (reg = 0): |
| 42 | - remote-endpoint: specifies the endpoint in mic node. This node is required |
| 43 | for Exynos5433 mipi dsi. So mic can access to panel node |
Eric Engestrom | bfcfb84 | 2016-04-25 01:24:07 +0100 | [diff] [blame] | 44 | throughout this dsi node. |
Hyungwon Hwang | f5f3b9b | 2015-06-12 21:59:08 +0900 | [diff] [blame] | 45 | endpoint node connected to panel node (reg = 1): |
| 46 | - remote-endpoint: specifies the endpoint in panel node. This node is |
| 47 | required in all kinds of exynos mipi dsi to represent |
| 48 | the connection between mipi dsi and panel. |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 49 | - samsung,burst-clock-frequency: specifies DSI frequency in high-speed burst |
| 50 | mode |
| 51 | - samsung,esc-clock-frequency: specifies DSI frequency in escape mode |
| 52 | |
Rob Herring | efdbd73 | 2015-09-21 10:51:09 -0500 | [diff] [blame] | 53 | [1]: Documentation/devicetree/bindings/display/mipi-dsi-bus.txt |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 54 | [2]: Documentation/devicetree/bindings/media/video-interfaces.txt |
| 55 | |
| 56 | Example: |
| 57 | |
| 58 | dsi@11C80000 { |
| 59 | compatible = "samsung,exynos4210-mipi-dsi"; |
| 60 | reg = <0x11C80000 0x10000>; |
| 61 | interrupts = <0 79 0>; |
| 62 | clocks = <&clock 286>, <&clock 143>; |
Hyungwon Hwang | 26269af | 2015-06-12 21:59:03 +0900 | [diff] [blame] | 63 | clock-names = "bus_clk", "sclk_mipi"; |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 64 | phys = <&mipi_phy 1>; |
| 65 | phy-names = "dsim"; |
| 66 | vddcore-supply = <&vusb_reg>; |
| 67 | vddio-supply = <&vmipi_reg>; |
Marek Szyprowski | 0da6587 | 2015-01-24 13:16:15 +0900 | [diff] [blame] | 68 | power-domains = <&pd_lcd0>; |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 69 | #address-cells = <1>; |
| 70 | #size-cells = <0>; |
| 71 | samsung,pll-clock-frequency = <24000000>; |
| 72 | |
| 73 | panel@1 { |
| 74 | reg = <0>; |
| 75 | ... |
| 76 | port { |
| 77 | panel_ep: endpoint { |
| 78 | remote-endpoint = <&dsi_ep>; |
| 79 | }; |
| 80 | }; |
| 81 | }; |
| 82 | |
| 83 | ports { |
| 84 | #address-cells = <1>; |
| 85 | #size-cells = <0>; |
| 86 | |
Hyungwon Hwang | f5f3b9b | 2015-06-12 21:59:08 +0900 | [diff] [blame] | 87 | port@0 { |
| 88 | reg = <0>; |
| 89 | decon_to_mic: endpoint { |
| 90 | remote-endpoint = <&mic_to_decon>; |
| 91 | }; |
| 92 | }; |
| 93 | |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 94 | port@1 { |
Hyungwon Hwang | f5f3b9b | 2015-06-12 21:59:08 +0900 | [diff] [blame] | 95 | reg = <1>; |
Andrzej Hajda | 670935b | 2014-03-28 12:52:39 +0100 | [diff] [blame] | 96 | dsi_ep: endpoint { |
| 97 | reg = <0>; |
| 98 | samsung,burst-clock-frequency = <500000000>; |
| 99 | samsung,esc-clock-frequency = <20000000>; |
| 100 | remote-endpoint = <&panel_ep>; |
| 101 | }; |
| 102 | }; |
| 103 | }; |
| 104 | }; |