1*01950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*01950c46SEmmanuel Vadot# Copyright (c) 2023 MediaTek, BayLibre 3*01950c46SEmmanuel Vadot%YAML 1.2 4*01950c46SEmmanuel Vadot--- 5*01950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/mediatek,mt8365-csi-rx.yaml# 6*01950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7*01950c46SEmmanuel Vadot 8*01950c46SEmmanuel Vadottitle: Mediatek Sensor Interface MIPI CSI CD-PHY 9*01950c46SEmmanuel Vadot 10*01950c46SEmmanuel Vadotmaintainers: 11*01950c46SEmmanuel Vadot - Julien Stephan <jstephan@baylibre.com> 12*01950c46SEmmanuel Vadot - Andy Hsieh <andy.hsieh@mediatek.com> 13*01950c46SEmmanuel Vadot 14*01950c46SEmmanuel Vadotdescription: 15*01950c46SEmmanuel Vadot The SENINF CD-PHY is a set of CD-PHY connected to the SENINF CSI-2 16*01950c46SEmmanuel Vadot receivers. The number of PHYs depends on the SoC model. 17*01950c46SEmmanuel Vadot Depending on the SoC model, each PHYs can be either CD-PHY or D-PHY only 18*01950c46SEmmanuel Vadot capable. 19*01950c46SEmmanuel Vadot 20*01950c46SEmmanuel Vadotproperties: 21*01950c46SEmmanuel Vadot compatible: 22*01950c46SEmmanuel Vadot enum: 23*01950c46SEmmanuel Vadot - mediatek,mt8365-csi-rx 24*01950c46SEmmanuel Vadot 25*01950c46SEmmanuel Vadot reg: 26*01950c46SEmmanuel Vadot maxItems: 1 27*01950c46SEmmanuel Vadot 28*01950c46SEmmanuel Vadot num-lanes: 29*01950c46SEmmanuel Vadot enum: [2, 3, 4] 30*01950c46SEmmanuel Vadot 31*01950c46SEmmanuel Vadot '#phy-cells': 32*01950c46SEmmanuel Vadot enum: [0, 1] 33*01950c46SEmmanuel Vadot description: | 34*01950c46SEmmanuel Vadot If the PHY doesn't support mode selection then #phy-cells must be 0 and 35*01950c46SEmmanuel Vadot PHY mode is described using phy-type property. 36*01950c46SEmmanuel Vadot If the PHY supports mode selection, then #phy-cells must be 1 and mode 37*01950c46SEmmanuel Vadot is set in the PHY cells. Supported modes are: 38*01950c46SEmmanuel Vadot - PHY_TYPE_DPHY 39*01950c46SEmmanuel Vadot - PHY_TYPE_CPHY 40*01950c46SEmmanuel Vadot See include/dt-bindings/phy/phy.h for constants. 41*01950c46SEmmanuel Vadot 42*01950c46SEmmanuel Vadot phy-type: 43*01950c46SEmmanuel Vadot description: 44*01950c46SEmmanuel Vadot If the PHY doesn't support mode selection then this set the operating mode. 45*01950c46SEmmanuel Vadot See include/dt-bindings/phy/phy.h for constants. 46*01950c46SEmmanuel Vadot const: 10 47*01950c46SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 48*01950c46SEmmanuel Vadot 49*01950c46SEmmanuel Vadotrequired: 50*01950c46SEmmanuel Vadot - compatible 51*01950c46SEmmanuel Vadot - reg 52*01950c46SEmmanuel Vadot - num-lanes 53*01950c46SEmmanuel Vadot - '#phy-cells' 54*01950c46SEmmanuel Vadot 55*01950c46SEmmanuel VadotadditionalProperties: false 56*01950c46SEmmanuel Vadot 57*01950c46SEmmanuel Vadotexamples: 58*01950c46SEmmanuel Vadot - | 59*01950c46SEmmanuel Vadot #include <dt-bindings/phy/phy.h> 60*01950c46SEmmanuel Vadot soc { 61*01950c46SEmmanuel Vadot #address-cells = <2>; 62*01950c46SEmmanuel Vadot #size-cells = <2>; 63*01950c46SEmmanuel Vadot 64*01950c46SEmmanuel Vadot csi0_rx: phy@11c10000 { 65*01950c46SEmmanuel Vadot compatible = "mediatek,mt8365-csi-rx"; 66*01950c46SEmmanuel Vadot reg = <0 0x11c10000 0 0x2000>; 67*01950c46SEmmanuel Vadot num-lanes = <2>; 68*01950c46SEmmanuel Vadot #phy-cells = <1>; 69*01950c46SEmmanuel Vadot }; 70*01950c46SEmmanuel Vadot 71*01950c46SEmmanuel Vadot csi1_rx: phy@11c12000 { 72*01950c46SEmmanuel Vadot compatible = "mediatek,mt8365-csi-rx"; 73*01950c46SEmmanuel Vadot reg = <0 0x11c12000 0 0x2000>; 74*01950c46SEmmanuel Vadot phy-type = <PHY_TYPE_DPHY>; 75*01950c46SEmmanuel Vadot num-lanes = <2>; 76*01950c46SEmmanuel Vadot #phy-cells = <0>; 77*01950c46SEmmanuel Vadot }; 78*01950c46SEmmanuel Vadot }; 79*01950c46SEmmanuel Vadot... 80