Allwinner A31 MIPI D-PHY Controller

Schema identifier ($id): "http://devicetree.org/schemas/phy/allwinner,sun6i-a31-mipi-dphy.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

#phy-cells — required here #

Exact value (const): 0

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun6i-a31-mipi-dphy"

Rule 2

Exact value (const): "allwinner,sun50i-a100-mipi-dphy"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun50i-a64-mipi-dphy"

Item 2

Exact value (const): "allwinner,sun6i-a31-mipi-dphy"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun20i-d1-mipi-dphy"

Item 2

Exact value (const): "allwinner,sun50i-a100-mipi-dphy"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Bus Clock

Item 2

Module Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "mod"

resets — required here #

Maximum number of items (maxItems): 1

allwinner,direction — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Direction of the D-PHY: - "rx" for receiving (e.g. when used with MIPI CSI-2); - "tx" for transmitting (e.g. when used with MIPI DSI).

Allowed values (enum): "tx", "rx"

Default value (default): "tx"

Required in this object (required): "#phy-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "resets"

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>

dphy0: d-phy@1ca1000 {
    compatible = "allwinner,sun6i-a31-mipi-dphy";
    reg = <0x01ca1000 0x1000>;
    interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ccu 23>, <&ccu 97>;
    clock-names = "bus", "mod";
    resets = <&ccu 4>;
    #phy-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page