1c25b84c0SMaxime Ripard# SPDX-License-Identifier: GPL-2.0 2c25b84c0SMaxime Ripard%YAML 1.2 3c25b84c0SMaxime Ripard--- 4e1ff7390SRob Herring$id: http://devicetree.org/schemas/phy/allwinner,sun6i-a31-mipi-dphy.yaml# 5c25b84c0SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml# 6c25b84c0SMaxime Ripard 7*dd3cb467SAndrew Lunntitle: Allwinner A31 MIPI D-PHY Controller 8c25b84c0SMaxime Ripard 9c25b84c0SMaxime Ripardmaintainers: 10c25b84c0SMaxime Ripard - Chen-Yu Tsai <wens@csie.org> 115c7404bbSMaxime Ripard - Maxime Ripard <mripard@kernel.org> 12c25b84c0SMaxime Ripard 13c25b84c0SMaxime Ripardproperties: 14c25b84c0SMaxime Ripard "#phy-cells": 15c25b84c0SMaxime Ripard const: 0 16c25b84c0SMaxime Ripard 17c25b84c0SMaxime Ripard compatible: 18db08ca5aSJagan Teki oneOf: 19db08ca5aSJagan Teki - const: allwinner,sun6i-a31-mipi-dphy 20db08ca5aSJagan Teki - items: 21db08ca5aSJagan Teki - const: allwinner,sun50i-a64-mipi-dphy 22db08ca5aSJagan Teki - const: allwinner,sun6i-a31-mipi-dphy 23c25b84c0SMaxime Ripard 24c25b84c0SMaxime Ripard reg: 25c25b84c0SMaxime Ripard maxItems: 1 26c25b84c0SMaxime Ripard 27c25b84c0SMaxime Ripard clocks: 28c25b84c0SMaxime Ripard items: 29c25b84c0SMaxime Ripard - description: Bus Clock 30c25b84c0SMaxime Ripard - description: Module Clock 31c25b84c0SMaxime Ripard 32c25b84c0SMaxime Ripard clock-names: 33c25b84c0SMaxime Ripard items: 34c25b84c0SMaxime Ripard - const: bus 35c25b84c0SMaxime Ripard - const: mod 36c25b84c0SMaxime Ripard 37c25b84c0SMaxime Ripard resets: 38c25b84c0SMaxime Ripard maxItems: 1 39c25b84c0SMaxime Ripard 40c20f80d0SPaul Kocialkowski allwinner,direction: 41c20f80d0SPaul Kocialkowski $ref: '/schemas/types.yaml#/definitions/string' 42c20f80d0SPaul Kocialkowski description: | 43c20f80d0SPaul Kocialkowski Direction of the D-PHY: 44c20f80d0SPaul Kocialkowski - "rx" for receiving (e.g. when used with MIPI CSI-2); 45c20f80d0SPaul Kocialkowski - "tx" for transmitting (e.g. when used with MIPI DSI). 46c20f80d0SPaul Kocialkowski 47c20f80d0SPaul Kocialkowski enum: 48c20f80d0SPaul Kocialkowski - tx 49c20f80d0SPaul Kocialkowski - rx 50c20f80d0SPaul Kocialkowski default: tx 51c20f80d0SPaul Kocialkowski 52c25b84c0SMaxime Ripardrequired: 53c25b84c0SMaxime Ripard - "#phy-cells" 54c25b84c0SMaxime Ripard - compatible 55c25b84c0SMaxime Ripard - reg 56c25b84c0SMaxime Ripard - clocks 57c25b84c0SMaxime Ripard - clock-names 58c25b84c0SMaxime Ripard - resets 59c25b84c0SMaxime Ripard 60c25b84c0SMaxime RipardadditionalProperties: false 61c25b84c0SMaxime Ripard 62c25b84c0SMaxime Ripardexamples: 63c25b84c0SMaxime Ripard - | 64c25b84c0SMaxime Ripard dphy0: d-phy@1ca1000 { 65c25b84c0SMaxime Ripard compatible = "allwinner,sun6i-a31-mipi-dphy"; 66c25b84c0SMaxime Ripard reg = <0x01ca1000 0x1000>; 67c25b84c0SMaxime Ripard clocks = <&ccu 23>, <&ccu 97>; 68c25b84c0SMaxime Ripard clock-names = "bus", "mod"; 69c25b84c0SMaxime Ripard resets = <&ccu 4>; 70c25b84c0SMaxime Ripard #phy-cells = <0>; 71c25b84c0SMaxime Ripard }; 72c25b84c0SMaxime Ripard 73c25b84c0SMaxime Ripard... 74