MediaTek DISP_PWM Controller
Schema identifier ($id): "http://devicetree.org/schemas/pwm/mediatek,pwm-disp.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jitao Shi <jitao.shi@mediatek.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pwm.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"mediatek,mt2701-disp-pwm","mediatek,mt6595-disp-pwm","mediatek,mt8173-disp-pwm","mediatek,mt8183-disp-pwm"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt6795-disp-pwm","mediatek,mt8167-disp-pwm"Item 2
Exact value (
const):"mediatek,mt8173-disp-pwm"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt6893-disp-pwm","mediatek,mt8186-disp-pwm","mediatek,mt8188-disp-pwm","mediatek,mt8192-disp-pwm","mediatek,mt8195-disp-pwm","mediatek,mt8365-disp-pwm"Item 2
Exact value (
const):"mediatek,mt8183-disp-pwm"
reg — required here #
Maximum number of items (maxItems): 1
#pwm-cells — not listed as required here #
Exact value (const): 2
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Main Clock
Item 2
Mm Clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"main"
Item 2
Exact value (
const):"mm"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/interrupt-controller/irq.h>
pwm0: pwm@1401e000 {
compatible = "mediatek,mt8173-disp-pwm";
reg = <0x1401e000 0x1000>;
#pwm-cells = <2>;
clocks = <&mmsys CLK_MM_DISP_PWM026M>,
<&mmsys CLK_MM_DISP_PWM0MM>;
clock-names = "main", "mm";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)