Add documentation for the Image Resizer "RSZ" Scaler block found in the MT8196 SoC and its variants.
Signed-off-by: AngeloGioacchino Del Regno <[email protected]> --- .../display/mediatek/mediatek,mt8196-rsz.yaml | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mt8196-rsz.yaml diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,mt8196-rsz.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,mt8196-rsz.yaml new file mode 100644 index 000000000000..cf6b0ed08bfb --- /dev/null +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,mt8196-rsz.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/mediatek/mediatek,mt8196-rsz.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Display Image Resizer (RSZ) + +maintainers: + - AngeloGioacchino Del Regno <[email protected]> + +description: + The MediaTek Display Image Resizer (RSZ) is a high fidelity scaler block, + with filters and signal enhancers, responsible for performing downscaling + or upscaling of a frame. + +properties: + compatible: + - const: mediatek,mt8196-disp-rsz + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + + port@1: + $ref: /schemas/graph.yaml#/properties/port + + required: + - port@0 + - port@1 + + trigger-sources: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - ports + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/clock/mediatek,mt8196-clock.h> + #include <dt-bindings/power/mediatek,mt8196-power.h> + + scaler@329d0000 { + compatible = "mediatek,mt8196-disp-rsz"; + reg = <0x329d0000 0x1000>; + clocks = <&ovlsys0 CLK_OVL_MDP_RSZ0>; + power-domains = <&hpm_hwv MT8196_POWER_DOMAIN_OVL0_DORMANT>; + trigger-sources = <&ovl0_mutex 26>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + endpoint@0 { + reg = <0>; + remote-endpoint = <&ep_main_out>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + endpoint@0 { + reg = <0>; + remote-endpoint = <&exdma0_2_in>; + }; + }; + }; + }; + +... -- 2.54.0
