xref: /freebsd/sys/contrib/device-tree/Bindings/display/ti/ti,k2g-dss.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot# Copyright 2019 Texas Instruments Incorporated
3c66ec88fSEmmanuel Vadot%YAML 1.2
4c66ec88fSEmmanuel Vadot---
5*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/display/ti/ti,k2g-dss.yaml#
6*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadottitle: Texas Instruments K2G Display Subsystem
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadotmaintainers:
11c66ec88fSEmmanuel Vadot  - Jyri Sarha <jsarha@ti.com>
12c66ec88fSEmmanuel Vadot  - Tomi Valkeinen <tomi.valkeinen@ti.com>
13c66ec88fSEmmanuel Vadot
14c66ec88fSEmmanuel Vadotdescription: |
15c66ec88fSEmmanuel Vadot  The K2G DSS is an ultra-light version of TI Keystone Display
16c66ec88fSEmmanuel Vadot  SubSystem. It has only one output port and video plane. The
17c66ec88fSEmmanuel Vadot  output is DPI.
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadotproperties:
20c66ec88fSEmmanuel Vadot  compatible:
21c66ec88fSEmmanuel Vadot    const: ti,k2g-dss
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot  reg:
24c66ec88fSEmmanuel Vadot    items:
25c66ec88fSEmmanuel Vadot      - description: cfg DSS top level
26c66ec88fSEmmanuel Vadot      - description: common DISPC common
27c66ec88fSEmmanuel Vadot      - description: VID1 video plane 1
28c66ec88fSEmmanuel Vadot      - description: OVR1 overlay manager for vp1
29c66ec88fSEmmanuel Vadot      - description: VP1 video port 1
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  reg-names:
32c66ec88fSEmmanuel Vadot    items:
33c66ec88fSEmmanuel Vadot      - const: cfg
34c66ec88fSEmmanuel Vadot      - const: common
35c66ec88fSEmmanuel Vadot      - const: vid1
36c66ec88fSEmmanuel Vadot      - const: ovr1
37c66ec88fSEmmanuel Vadot      - const: vp1
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot  clocks:
40c66ec88fSEmmanuel Vadot    items:
41c66ec88fSEmmanuel Vadot      - description: fck DSS functional clock
42c66ec88fSEmmanuel Vadot      - description: vp1 Video Port 1 pixel clock
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot  clock-names:
45c66ec88fSEmmanuel Vadot    items:
46c66ec88fSEmmanuel Vadot      - const: fck
47c66ec88fSEmmanuel Vadot      - const: vp1
48c66ec88fSEmmanuel Vadot
49c66ec88fSEmmanuel Vadot  interrupts:
50c66ec88fSEmmanuel Vadot    maxItems: 1
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel Vadot  power-domains:
53c66ec88fSEmmanuel Vadot    maxItems: 1
54c66ec88fSEmmanuel Vadot    description: phandle to the associated power domain
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot  port:
575def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/port
58c66ec88fSEmmanuel Vadot    description:
59c66ec88fSEmmanuel Vadot      The DSS DPI output port node
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadot  max-memory-bandwidth:
62c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
63c66ec88fSEmmanuel Vadot    description:
64c66ec88fSEmmanuel Vadot      Input memory (from main memory to dispc) bandwidth limit in
65c66ec88fSEmmanuel Vadot      bytes per second
66c66ec88fSEmmanuel Vadot
67c66ec88fSEmmanuel Vadotrequired:
68c66ec88fSEmmanuel Vadot  - compatible
69c66ec88fSEmmanuel Vadot  - reg
70c66ec88fSEmmanuel Vadot  - reg-names
71c66ec88fSEmmanuel Vadot  - clocks
72c66ec88fSEmmanuel Vadot  - clock-names
73c66ec88fSEmmanuel Vadot  - interrupts
74c66ec88fSEmmanuel Vadot  - port
75c66ec88fSEmmanuel Vadot
76c66ec88fSEmmanuel VadotadditionalProperties: false
77c66ec88fSEmmanuel Vadot
78c66ec88fSEmmanuel Vadotexamples:
79c66ec88fSEmmanuel Vadot  - |
80c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
81c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
82c66ec88fSEmmanuel Vadot
83c66ec88fSEmmanuel Vadot    dss: dss@2540000 {
84c66ec88fSEmmanuel Vadot            compatible = "ti,k2g-dss";
85c66ec88fSEmmanuel Vadot            reg =   <0x02540000 0x400>,
86c66ec88fSEmmanuel Vadot                    <0x02550000 0x1000>,
87c66ec88fSEmmanuel Vadot                    <0x02557000 0x1000>,
88c66ec88fSEmmanuel Vadot                    <0x0255a800 0x100>,
89c66ec88fSEmmanuel Vadot                    <0x0255ac00 0x100>;
90c66ec88fSEmmanuel Vadot            reg-names = "cfg", "common", "vid1", "ovr1", "vp1";
91c66ec88fSEmmanuel Vadot            clocks =        <&k2g_clks 0x2 0>,
92c66ec88fSEmmanuel Vadot                            <&k2g_clks 0x2 1>;
93c66ec88fSEmmanuel Vadot            clock-names = "fck", "vp1";
94c66ec88fSEmmanuel Vadot            interrupts = <GIC_SPI 247 IRQ_TYPE_EDGE_RISING>;
95c66ec88fSEmmanuel Vadot
96c66ec88fSEmmanuel Vadot            power-domains = <&k2g_pds 0x2>;
97c66ec88fSEmmanuel Vadot
98c66ec88fSEmmanuel Vadot            max-memory-bandwidth = <230000000>;
99c66ec88fSEmmanuel Vadot
100c66ec88fSEmmanuel Vadot            port {
101c66ec88fSEmmanuel Vadot                    dpi_out: endpoint {
102c66ec88fSEmmanuel Vadot                            remote-endpoint = <&sii9022_in>;
103c66ec88fSEmmanuel Vadot                    };
104c66ec88fSEmmanuel Vadot            };
105c66ec88fSEmmanuel Vadot    };
106