109453600SMaxime Ripard# SPDX-License-Identifier: GPL-2.0
209453600SMaxime Ripard%YAML 1.2
309453600SMaxime Ripard---
409453600SMaxime Ripard$id: http://devicetree.org/schemas/display/brcm,bcm2835-dsi0.yaml#
509453600SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml#
609453600SMaxime Ripard
709453600SMaxime Ripardtitle: Broadcom VC4 (VideoCore4) DSI Controller
809453600SMaxime Ripard
909453600SMaxime Ripardmaintainers:
1009453600SMaxime Ripard  - Eric Anholt <eric@anholt.net>
1109453600SMaxime Ripard
1209453600SMaxime Ripardproperties:
13fd26eea7SMaxime Ripard  "#clock-cells":
14fd26eea7SMaxime Ripard    const: 1
15fd26eea7SMaxime Ripard
1609453600SMaxime Ripard  compatible:
1709453600SMaxime Ripard    enum:
1809453600SMaxime Ripard      - brcm,bcm2835-dsi0
1909453600SMaxime Ripard      - brcm,bcm2835-dsi1
2009453600SMaxime Ripard
2109453600SMaxime Ripard  reg:
2209453600SMaxime Ripard    maxItems: 1
2309453600SMaxime Ripard
2409453600SMaxime Ripard  clocks:
2509453600SMaxime Ripard    items:
2609453600SMaxime Ripard      - description: The DSI PLL clock feeding the DSI analog PHY
2709453600SMaxime Ripard      - description: The DSI ESC clock
2809453600SMaxime Ripard      - description: The DSI pixel clock
2909453600SMaxime Ripard
30fd26eea7SMaxime Ripard  clock-names:
31fd26eea7SMaxime Ripard    items:
32fd26eea7SMaxime Ripard      - const: phy
33fd26eea7SMaxime Ripard      - const: escape
34fd26eea7SMaxime Ripard      - const: pixel
35fd26eea7SMaxime Ripard
3609453600SMaxime Ripard  clock-output-names: true
3709453600SMaxime Ripard    # FIXME: The meta-schemas don't seem to allow it for now
3809453600SMaxime Ripard    # items:
3909453600SMaxime Ripard    #   - description: The DSI byte clock for the PHY
4009453600SMaxime Ripard    #   - description: The DSI DDR2 clock
4109453600SMaxime Ripard    #   - description: The DSI DDR clock
4209453600SMaxime Ripard
4309453600SMaxime Ripard  interrupts:
4409453600SMaxime Ripard    maxItems: 1
4509453600SMaxime Ripard
4609453600SMaxime Ripardrequired:
47fd26eea7SMaxime Ripard  - "#clock-cells"
4809453600SMaxime Ripard  - compatible
4909453600SMaxime Ripard  - reg
5009453600SMaxime Ripard  - clocks
51fd26eea7SMaxime Ripard  - clock-names
5209453600SMaxime Ripard  - clock-output-names
5309453600SMaxime Ripard  - interrupts
5409453600SMaxime Ripard
5509453600SMaxime RipardunevaluatedProperties: false
5609453600SMaxime Ripard
5709453600SMaxime Ripardexamples:
5809453600SMaxime Ripard  - |
5909453600SMaxime Ripard    #include <dt-bindings/clock/bcm2835.h>
6009453600SMaxime Ripard
6109453600SMaxime Ripard    dsi1: dsi@7e700000 {
6209453600SMaxime Ripard        compatible = "brcm,bcm2835-dsi1";
6309453600SMaxime Ripard        reg = <0x7e700000 0x8c>;
6409453600SMaxime Ripard        interrupts = <2 12>;
6509453600SMaxime Ripard        #address-cells = <1>;
6609453600SMaxime Ripard        #size-cells = <0>;
6709453600SMaxime Ripard        #clock-cells = <1>;
6809453600SMaxime Ripard
6909453600SMaxime Ripard        clocks = <&clocks BCM2835_PLLD_DSI1>,
7009453600SMaxime Ripard                 <&clocks BCM2835_CLOCK_DSI1E>,
7109453600SMaxime Ripard                 <&clocks BCM2835_CLOCK_DSI1P>;
7209453600SMaxime Ripard        clock-names = "phy", "escape", "pixel";
7309453600SMaxime Ripard
7409453600SMaxime Ripard        clock-output-names = "dsi1_byte", "dsi1_ddr2", "dsi1_ddr";
7509453600SMaxime Ripard
7609453600SMaxime Ripard        pitouchscreen: panel@0 {
7709453600SMaxime Ripard            compatible = "raspberrypi,touchscreen";
7809453600SMaxime Ripard            reg = <0>;
7909453600SMaxime Ripard
8009453600SMaxime Ripard            /* ... */
8109453600SMaxime Ripard        };
8209453600SMaxime Ripard    };
8309453600SMaxime Ripard
8409453600SMaxime Ripard...
85