0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/phy/allwinner,sun6i-a31-mipi-dphy.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A31 MIPI D-PHY Controller Device Tree Bindings
0008
0009 maintainers:
0010 - Chen-Yu Tsai <wens@csie.org>
0011 - Maxime Ripard <mripard@kernel.org>
0012
0013 properties:
0014 "#phy-cells":
0015 const: 0
0016
0017 compatible:
0018 oneOf:
0019 - const: allwinner,sun6i-a31-mipi-dphy
0020 - items:
0021 - const: allwinner,sun50i-a64-mipi-dphy
0022 - const: allwinner,sun6i-a31-mipi-dphy
0023
0024 reg:
0025 maxItems: 1
0026
0027 clocks:
0028 items:
0029 - description: Bus Clock
0030 - description: Module Clock
0031
0032 clock-names:
0033 items:
0034 - const: bus
0035 - const: mod
0036
0037 resets:
0038 maxItems: 1
0039
0040 allwinner,direction:
0041 $ref: '/schemas/types.yaml#/definitions/string'
0042 description: |
0043 Direction of the D-PHY:
0044 - "rx" for receiving (e.g. when used with MIPI CSI-2);
0045 - "tx" for transmitting (e.g. when used with MIPI DSI).
0046
0047 enum:
0048 - tx
0049 - rx
0050 default: tx
0051
0052 required:
0053 - "#phy-cells"
0054 - compatible
0055 - reg
0056 - clocks
0057 - clock-names
0058 - resets
0059
0060 additionalProperties: false
0061
0062 examples:
0063 - |
0064 dphy0: d-phy@1ca1000 {
0065 compatible = "allwinner,sun6i-a31-mipi-dphy";
0066 reg = <0x01ca1000 0x1000>;
0067 clocks = <&ccu 23>, <&ccu 97>;
0068 clock-names = "bus", "mod";
0069 resets = <&ccu 4>;
0070 #phy-cells = <0>;
0071 };
0072
0073 ...