1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/allwinner,sun6i-a31-mipi-dphy.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 77ef62cebSEmmanuel Vadottitle: Allwinner A31 MIPI D-PHY Controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Chen-Yu Tsai <wens@csie.org> 11c66ec88fSEmmanuel Vadot - Maxime Ripard <mripard@kernel.org> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotproperties: 14c66ec88fSEmmanuel Vadot "#phy-cells": 15c66ec88fSEmmanuel Vadot const: 0 16c66ec88fSEmmanuel Vadot 17c66ec88fSEmmanuel Vadot compatible: 18c66ec88fSEmmanuel Vadot oneOf: 19c66ec88fSEmmanuel Vadot - const: allwinner,sun6i-a31-mipi-dphy 208bab661aSEmmanuel Vadot - const: allwinner,sun50i-a100-mipi-dphy 21c66ec88fSEmmanuel Vadot - items: 22c66ec88fSEmmanuel Vadot - const: allwinner,sun50i-a64-mipi-dphy 23c66ec88fSEmmanuel Vadot - const: allwinner,sun6i-a31-mipi-dphy 248bab661aSEmmanuel Vadot - items: 258bab661aSEmmanuel Vadot - const: allwinner,sun20i-d1-mipi-dphy 268bab661aSEmmanuel Vadot - const: allwinner,sun50i-a100-mipi-dphy 27c66ec88fSEmmanuel Vadot 28c66ec88fSEmmanuel Vadot reg: 29c66ec88fSEmmanuel Vadot maxItems: 1 30c66ec88fSEmmanuel Vadot 318bab661aSEmmanuel Vadot interrupts: 328bab661aSEmmanuel Vadot maxItems: 1 338bab661aSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot clocks: 35c66ec88fSEmmanuel Vadot items: 36c66ec88fSEmmanuel Vadot - description: Bus Clock 37c66ec88fSEmmanuel Vadot - description: Module Clock 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot clock-names: 40c66ec88fSEmmanuel Vadot items: 41c66ec88fSEmmanuel Vadot - const: bus 42c66ec88fSEmmanuel Vadot - const: mod 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadot resets: 45c66ec88fSEmmanuel Vadot maxItems: 1 46c66ec88fSEmmanuel Vadot 47d5b0e70fSEmmanuel Vadot allwinner,direction: 48*fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/string 49d5b0e70fSEmmanuel Vadot description: | 50d5b0e70fSEmmanuel Vadot Direction of the D-PHY: 51d5b0e70fSEmmanuel Vadot - "rx" for receiving (e.g. when used with MIPI CSI-2); 52d5b0e70fSEmmanuel Vadot - "tx" for transmitting (e.g. when used with MIPI DSI). 53d5b0e70fSEmmanuel Vadot 54d5b0e70fSEmmanuel Vadot enum: 55d5b0e70fSEmmanuel Vadot - tx 56d5b0e70fSEmmanuel Vadot - rx 57d5b0e70fSEmmanuel Vadot default: tx 58d5b0e70fSEmmanuel Vadot 59c66ec88fSEmmanuel Vadotrequired: 60c66ec88fSEmmanuel Vadot - "#phy-cells" 61c66ec88fSEmmanuel Vadot - compatible 62c66ec88fSEmmanuel Vadot - reg 638bab661aSEmmanuel Vadot - interrupts 64c66ec88fSEmmanuel Vadot - clocks 65c66ec88fSEmmanuel Vadot - clock-names 66c66ec88fSEmmanuel Vadot - resets 67c66ec88fSEmmanuel Vadot 68c66ec88fSEmmanuel VadotadditionalProperties: false 69c66ec88fSEmmanuel Vadot 70c66ec88fSEmmanuel Vadotexamples: 71c66ec88fSEmmanuel Vadot - | 728bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 738bab661aSEmmanuel Vadot 74c66ec88fSEmmanuel Vadot dphy0: d-phy@1ca1000 { 75c66ec88fSEmmanuel Vadot compatible = "allwinner,sun6i-a31-mipi-dphy"; 76c66ec88fSEmmanuel Vadot reg = <0x01ca1000 0x1000>; 778bab661aSEmmanuel Vadot interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; 78c66ec88fSEmmanuel Vadot clocks = <&ccu 23>, <&ccu 97>; 79c66ec88fSEmmanuel Vadot clock-names = "bus", "mod"; 80c66ec88fSEmmanuel Vadot resets = <&ccu 4>; 81c66ec88fSEmmanuel Vadot #phy-cells = <0>; 82c66ec88fSEmmanuel Vadot }; 83c66ec88fSEmmanuel Vadot 84c66ec88fSEmmanuel Vadot... 85