brintos

brintos / linux-shallow public Read only

0
0
Text · 2.6 KiB · be07bbd Raw
84 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/display/mediatek/mediatek,padding.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: MediaTek Display Padding8 9maintainers:10  - Chun-Kuang Hu <chunkuang.hu@kernel.org>11  - Philipp Zabel <p.zabel@pengutronix.de>12 13description:14  Padding provides ability to add pixels to width and height of a layer with15  specified colors. Due to hardware design, Mixer in VDOSYS1 requires16  width of a layer to be 2-pixel-align, or 4-pixel-align when ETHDR is enabled,17  we need Padding to deal with odd width.18  Please notice that even if the Padding is in bypass mode, settings in19  register must be cleared to 0, or undefined behaviors could happen.20 21properties:22  compatible:23    enum:24      - mediatek,mt8188-disp-padding25      - mediatek,mt8195-mdp3-padding26 27  reg:28    maxItems: 129 30  power-domains:31    maxItems: 132 33  clocks:34    items:35      - description: Padding's clocks36 37  mediatek,gce-client-reg:38    description:39      GCE (Global Command Engine) is a multi-core micro processor that helps40      its clients to execute commands without interrupting CPU. This property41      describes GCE client's information that is composed by 4 fields.42      1. Phandle of the GCE (there may be several GCE processors)43      2. Sub-system ID defined in the dt-binding like a user ID44         (Please refer to include/dt-bindings/gce/<chip>-gce.h)45      3. Offset from base address of the subsys you are at46      4. Size of the register the client needs47    $ref: /schemas/types.yaml#/definitions/phandle-array48    items:49      items:50        - description: Phandle of the GCE51        - description: Subsys ID defined in the dt-binding52        - description: Offset from base address of the subsys53        - description: Size of register54    maxItems: 155 56required:57  - compatible58  - reg59  - power-domains60  - clocks61  - mediatek,gce-client-reg62 63additionalProperties: false64 65examples:66  - |67    #include <dt-bindings/interrupt-controller/arm-gic.h>68    #include <dt-bindings/clock/mediatek,mt8188-clk.h>69    #include <dt-bindings/power/mediatek,mt8188-power.h>70    #include <dt-bindings/gce/mt8195-gce.h>71 72    soc {73        #address-cells = <2>;74        #size-cells = <2>;75 76        padding0: padding@1c11d000 {77            compatible = "mediatek,mt8188-disp-padding";78            reg = <0 0x1c11d000 0 0x1000>;79            clocks = <&vdosys1 CLK_VDO1_PADDING0>;80            power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>;81            mediatek,gce-client-reg = <&gce0 SUBSYS_1c11XXXX 0xd000 0x1000>;82        };83    };84