xref: /freebsd/sys/contrib/device-tree/Bindings/display/brcm,bcm2835-dsi0.yaml (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/brcm,bcm2835-dsi0.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Broadcom VC4 (VideoCore4) DSI Controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Eric Anholt <eric@anholt.net>
11c66ec88fSEmmanuel Vadot
126be33864SEmmanuel VadotallOf:
136be33864SEmmanuel Vadot  - $ref: dsi-controller.yaml#
146be33864SEmmanuel Vadot
15c66ec88fSEmmanuel Vadotproperties:
16c66ec88fSEmmanuel Vadot  "#clock-cells":
17c66ec88fSEmmanuel Vadot    const: 1
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadot  compatible:
20c66ec88fSEmmanuel Vadot    enum:
215def4c47SEmmanuel Vadot      - brcm,bcm2711-dsi1
22c66ec88fSEmmanuel Vadot      - brcm,bcm2835-dsi0
23c66ec88fSEmmanuel Vadot      - brcm,bcm2835-dsi1
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  reg:
26c66ec88fSEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  clocks:
29c66ec88fSEmmanuel Vadot    items:
30c66ec88fSEmmanuel Vadot      - description: The DSI PLL clock feeding the DSI analog PHY
31c66ec88fSEmmanuel Vadot      - description: The DSI ESC clock
32c66ec88fSEmmanuel Vadot      - description: The DSI pixel clock
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel Vadot  clock-names:
35c66ec88fSEmmanuel Vadot    items:
36c66ec88fSEmmanuel Vadot      - const: phy
37c66ec88fSEmmanuel Vadot      - const: escape
38c66ec88fSEmmanuel Vadot      - const: pixel
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot  clock-output-names: true
41c66ec88fSEmmanuel Vadot    # FIXME: The meta-schemas don't seem to allow it for now
42c66ec88fSEmmanuel Vadot    # items:
43c66ec88fSEmmanuel Vadot    #   - description: The DSI byte clock for the PHY
44c66ec88fSEmmanuel Vadot    #   - description: The DSI DDR2 clock
45c66ec88fSEmmanuel Vadot    #   - description: The DSI DDR clock
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  interrupts:
48c66ec88fSEmmanuel Vadot    maxItems: 1
49c66ec88fSEmmanuel Vadot
50*8cc087a1SEmmanuel Vadot  power-domains:
51*8cc087a1SEmmanuel Vadot    maxItems: 1
52*8cc087a1SEmmanuel Vadot
53c66ec88fSEmmanuel Vadotrequired:
54c66ec88fSEmmanuel Vadot  - "#clock-cells"
55c66ec88fSEmmanuel Vadot  - compatible
56c66ec88fSEmmanuel Vadot  - reg
57c66ec88fSEmmanuel Vadot  - clocks
58c66ec88fSEmmanuel Vadot  - clock-names
59c66ec88fSEmmanuel Vadot  - clock-output-names
60c66ec88fSEmmanuel Vadot  - interrupts
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel VadotunevaluatedProperties: false
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel Vadotexamples:
65c66ec88fSEmmanuel Vadot  - |
66c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/bcm2835.h>
67c66ec88fSEmmanuel Vadot
68c66ec88fSEmmanuel Vadot    dsi1: dsi@7e700000 {
69c66ec88fSEmmanuel Vadot        compatible = "brcm,bcm2835-dsi1";
70c66ec88fSEmmanuel Vadot        reg = <0x7e700000 0x8c>;
71c66ec88fSEmmanuel Vadot        interrupts = <2 12>;
72c66ec88fSEmmanuel Vadot        #address-cells = <1>;
73c66ec88fSEmmanuel Vadot        #size-cells = <0>;
74c66ec88fSEmmanuel Vadot        #clock-cells = <1>;
75c66ec88fSEmmanuel Vadot
76c66ec88fSEmmanuel Vadot        clocks = <&clocks BCM2835_PLLD_DSI1>,
77c66ec88fSEmmanuel Vadot                 <&clocks BCM2835_CLOCK_DSI1E>,
78c66ec88fSEmmanuel Vadot                 <&clocks BCM2835_CLOCK_DSI1P>;
79c66ec88fSEmmanuel Vadot        clock-names = "phy", "escape", "pixel";
80c66ec88fSEmmanuel Vadot
81c66ec88fSEmmanuel Vadot        clock-output-names = "dsi1_byte", "dsi1_ddr2", "dsi1_ddr";
82c66ec88fSEmmanuel Vadot
83c66ec88fSEmmanuel Vadot    };
84c66ec88fSEmmanuel Vadot
85c66ec88fSEmmanuel Vadot...
86