Path: blob/main/sys/contrib/device-tree/Bindings/display/bridge/samsung,mipi-dsim.yaml
48406 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/display/bridge/samsung,mipi-dsim.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Samsung MIPI DSIM bridge controller78maintainers:9- Inki Dae <inki.dae@samsung.com>10- Jagan Teki <jagan@amarulasolutions.com>11- Marek Szyprowski <m.szyprowski@samsung.com>1213description: |14Samsung MIPI DSIM bridge controller can be found it on Exynos15and i.MX8M Mini/Nano/Plus SoC's.1617properties:18compatible:19oneOf:20- enum:21- samsung,exynos3250-mipi-dsi22- samsung,exynos4210-mipi-dsi23- samsung,exynos5410-mipi-dsi24- samsung,exynos5422-mipi-dsi25- samsung,exynos5433-mipi-dsi26- fsl,imx8mm-mipi-dsim27- fsl,imx8mp-mipi-dsim28- items:29- const: fsl,imx8mn-mipi-dsim30- const: fsl,imx8mm-mipi-dsim3132reg:33maxItems: 13435interrupts:36maxItems: 13738'#address-cells':39const: 14041'#size-cells':42const: 04344clocks:45minItems: 246maxItems: 54748clock-names:49minItems: 250maxItems: 55152samsung,phy-type:53$ref: /schemas/types.yaml#/definitions/uint3254description: phandle to the samsung phy-type5556power-domains:57maxItems: 15859samsung,power-domain:60$ref: /schemas/types.yaml#/definitions/phandle61description: phandle to the associated samsung power domain6263vddcore-supply:64description: MIPI DSIM Core voltage supply (e.g. 1.1V)6566vddio-supply:67description: MIPI DSIM I/O and PLL voltage supply (e.g. 1.8V)6869samsung,burst-clock-frequency:70$ref: /schemas/types.yaml#/definitions/uint3271description:72DSIM high speed burst mode frequency. If absent,73the pixel clock from the attached device or bridge74will be used instead.7576samsung,esc-clock-frequency:77$ref: /schemas/types.yaml#/definitions/uint3278description:79DSIM escape mode frequency.8081samsung,pll-clock-frequency:82$ref: /schemas/types.yaml#/definitions/uint3283description:84DSIM oscillator clock frequency. If absent, the clock frequency85of sclk_mipi will be used instead.8687phys:88maxItems: 18990phy-names:91const: dsim9293ports:94$ref: /schemas/graph.yaml#/properties/ports9596properties:97port@0:98$ref: /schemas/graph.yaml#/properties/port99description:100Input port node to receive pixel data from the101display controller. Exactly one endpoint must be102specified.103104port@1:105$ref: /schemas/graph.yaml#/$defs/port-base106unevaluatedProperties: false107description:108DSI output port node to the panel or the next bridge109in the chain.110111properties:112endpoint:113$ref: /schemas/media/video-interfaces.yaml#114unevaluatedProperties: false115116properties:117data-lanes:118minItems: 1119maxItems: 4120uniqueItems: true121items:122enum: [ 1, 2, 3, 4 ]123124lane-polarities:125minItems: 1126maxItems: 5127description:128The Samsung MIPI DSI IP requires that all the data lanes have129the same polarity.130131dependencies:132lane-polarities: [data-lanes]133134required:135- clock-names136- clocks137- compatible138- interrupts139- reg140- samsung,esc-clock-frequency141142allOf:143- $ref: ../dsi-controller.yaml#144- if:145properties:146compatible:147contains:148const: samsung,exynos5433-mipi-dsi149150then:151properties:152clocks:153minItems: 5154155clock-names:156items:157- const: bus_clk158- const: phyclk_mipidphy0_bitclkdiv8159- const: phyclk_mipidphy0_rxclkesc0160- const: sclk_rgb_vclk_to_dsim0161- const: sclk_mipi162163ports:164required:165- port@0166167required:168- ports169- vddcore-supply170- vddio-supply171172- if:173properties:174compatible:175contains:176const: samsung,exynos5410-mipi-dsi177178then:179properties:180clocks:181minItems: 2182183clock-names:184items:185- const: bus_clk186- const: pll_clk187188required:189- vddcore-supply190- vddio-supply191192- if:193properties:194compatible:195contains:196const: samsung,exynos4210-mipi-dsi197198then:199properties:200clocks:201minItems: 2202203clock-names:204items:205- const: bus_clk206- const: sclk_mipi207208required:209- vddcore-supply210- vddio-supply211212- if:213properties:214compatible:215contains:216const: samsung,exynos3250-mipi-dsi217218then:219properties:220clocks:221minItems: 2222223clock-names:224items:225- const: bus_clk226- const: pll_clk227228required:229- vddcore-supply230- vddio-supply231- samsung,phy-type232233additionalProperties:234type: object235236examples:237- |238#include <dt-bindings/clock/exynos5433.h>239#include <dt-bindings/gpio/gpio.h>240#include <dt-bindings/interrupt-controller/arm-gic.h>241242dsi@13900000 {243compatible = "samsung,exynos5433-mipi-dsi";244reg = <0x13900000 0xC0>;245interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;246phys = <&mipi_phy 1>;247phy-names = "dsim";248clocks = <&cmu_disp CLK_PCLK_DSIM0>,249<&cmu_disp CLK_PHYCLK_MIPIDPHY0_BITCLKDIV8>,250<&cmu_disp CLK_PHYCLK_MIPIDPHY0_RXCLKESC0>,251<&cmu_disp CLK_SCLK_RGB_VCLK_TO_DSIM0>,252<&cmu_disp CLK_SCLK_DSIM0>;253clock-names = "bus_clk",254"phyclk_mipidphy0_bitclkdiv8",255"phyclk_mipidphy0_rxclkesc0",256"sclk_rgb_vclk_to_dsim0",257"sclk_mipi";258power-domains = <&pd_disp>;259vddcore-supply = <&ldo6_reg>;260vddio-supply = <&ldo7_reg>;261samsung,burst-clock-frequency = <512000000>;262samsung,esc-clock-frequency = <16000000>;263samsung,pll-clock-frequency = <24000000>;264pinctrl-names = "default";265pinctrl-0 = <&te_irq>;266267ports {268#address-cells = <1>;269#size-cells = <0>;270271port@0 {272reg = <0>;273274dsi_to_mic: endpoint {275remote-endpoint = <&mic_to_dsi>;276};277};278};279};280281282