xref: /linux/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
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
7dd3cb467SAndrew 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
20e7a83869SSamuel Holland      - const: allwinner,sun50i-a100-mipi-dphy
21db08ca5aSJagan Teki      - items:
22db08ca5aSJagan Teki          - const: allwinner,sun50i-a64-mipi-dphy
23db08ca5aSJagan Teki          - const: allwinner,sun6i-a31-mipi-dphy
24e7a83869SSamuel Holland      - items:
25e7a83869SSamuel Holland          - const: allwinner,sun20i-d1-mipi-dphy
26e7a83869SSamuel Holland          - const: allwinner,sun50i-a100-mipi-dphy
27c25b84c0SMaxime Ripard
28c25b84c0SMaxime Ripard  reg:
29c25b84c0SMaxime Ripard    maxItems: 1
30c25b84c0SMaxime Ripard
315a0d2df4SSamuel Holland  interrupts:
325a0d2df4SSamuel Holland    maxItems: 1
335a0d2df4SSamuel Holland
34c25b84c0SMaxime Ripard  clocks:
35c25b84c0SMaxime Ripard    items:
36c25b84c0SMaxime Ripard      - description: Bus Clock
37c25b84c0SMaxime Ripard      - description: Module Clock
38c25b84c0SMaxime Ripard
39c25b84c0SMaxime Ripard  clock-names:
40c25b84c0SMaxime Ripard    items:
41c25b84c0SMaxime Ripard      - const: bus
42c25b84c0SMaxime Ripard      - const: mod
43c25b84c0SMaxime Ripard
44c25b84c0SMaxime Ripard  resets:
45c25b84c0SMaxime Ripard    maxItems: 1
46c25b84c0SMaxime Ripard
47c20f80d0SPaul Kocialkowski  allwinner,direction:
48*e43462c1SRob Herring    $ref: /schemas/types.yaml#/definitions/string
49c20f80d0SPaul Kocialkowski    description: |
50c20f80d0SPaul Kocialkowski      Direction of the D-PHY:
51c20f80d0SPaul Kocialkowski      - "rx" for receiving (e.g. when used with MIPI CSI-2);
52c20f80d0SPaul Kocialkowski      - "tx" for transmitting (e.g. when used with MIPI DSI).
53c20f80d0SPaul Kocialkowski
54c20f80d0SPaul Kocialkowski    enum:
55c20f80d0SPaul Kocialkowski      - tx
56c20f80d0SPaul Kocialkowski      - rx
57c20f80d0SPaul Kocialkowski    default: tx
58c20f80d0SPaul Kocialkowski
59c25b84c0SMaxime Ripardrequired:
60c25b84c0SMaxime Ripard  - "#phy-cells"
61c25b84c0SMaxime Ripard  - compatible
62c25b84c0SMaxime Ripard  - reg
635a0d2df4SSamuel Holland  - interrupts
64c25b84c0SMaxime Ripard  - clocks
65c25b84c0SMaxime Ripard  - clock-names
66c25b84c0SMaxime Ripard  - resets
67c25b84c0SMaxime Ripard
68c25b84c0SMaxime RipardadditionalProperties: false
69c25b84c0SMaxime Ripard
70c25b84c0SMaxime Ripardexamples:
71c25b84c0SMaxime Ripard  - |
725a0d2df4SSamuel Holland    #include <dt-bindings/interrupt-controller/arm-gic.h>
735a0d2df4SSamuel Holland
74c25b84c0SMaxime Ripard    dphy0: d-phy@1ca1000 {
75c25b84c0SMaxime Ripard        compatible = "allwinner,sun6i-a31-mipi-dphy";
76c25b84c0SMaxime Ripard        reg = <0x01ca1000 0x1000>;
775a0d2df4SSamuel Holland        interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
78c25b84c0SMaxime Ripard        clocks = <&ccu 23>, <&ccu 97>;
79c25b84c0SMaxime Ripard        clock-names = "bus", "mod";
80c25b84c0SMaxime Ripard        resets = <&ccu 4>;
81c25b84c0SMaxime Ripard        #phy-cells = <0>;
82c25b84c0SMaxime Ripard    };
83c25b84c0SMaxime Ripard
84c25b84c0SMaxime Ripard...
85