18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/phy/rockchip-mipi-dphy-rx0.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: Rockchip SoC MIPI RX0 D-PHY Device Tree Bindings
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Helen Koike <helen.koike@collabora.com>
118c2ecf20Sopenharmony_ci  - Ezequiel Garcia <ezequiel@collabora.com>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_cidescription: |
148c2ecf20Sopenharmony_ci  The Rockchip SoC has a MIPI D-PHY bus with an RX0 entry which connects to
158c2ecf20Sopenharmony_ci  the ISP1 (Image Signal Processing unit v1.0) for CSI cameras.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciproperties:
188c2ecf20Sopenharmony_ci  compatible:
198c2ecf20Sopenharmony_ci    const: rockchip,rk3399-mipi-dphy-rx0
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci  clocks:
228c2ecf20Sopenharmony_ci    items:
238c2ecf20Sopenharmony_ci      - description: MIPI D-PHY ref clock
248c2ecf20Sopenharmony_ci      - description: MIPI D-PHY RX0 cfg clock
258c2ecf20Sopenharmony_ci      - description: Video in/out general register file clock
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci  clock-names:
288c2ecf20Sopenharmony_ci    items:
298c2ecf20Sopenharmony_ci      - const: dphy-ref
308c2ecf20Sopenharmony_ci      - const: dphy-cfg
318c2ecf20Sopenharmony_ci      - const: grf
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci  '#phy-cells':
348c2ecf20Sopenharmony_ci    const: 0
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci  power-domains:
378c2ecf20Sopenharmony_ci    description: Video in/out power domain.
388c2ecf20Sopenharmony_ci    maxItems: 1
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_cirequired:
418c2ecf20Sopenharmony_ci  - compatible
428c2ecf20Sopenharmony_ci  - clocks
438c2ecf20Sopenharmony_ci  - clock-names
448c2ecf20Sopenharmony_ci  - '#phy-cells'
458c2ecf20Sopenharmony_ci  - power-domains
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ciadditionalProperties: false
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ciexamples:
508c2ecf20Sopenharmony_ci  - |
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci    /*
538c2ecf20Sopenharmony_ci     * MIPI D-PHY RX0 use registers in "general register files", it
548c2ecf20Sopenharmony_ci     * should be a child of the GRF.
558c2ecf20Sopenharmony_ci     *
568c2ecf20Sopenharmony_ci     * grf: syscon@ff770000 {
578c2ecf20Sopenharmony_ci     *  compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
588c2ecf20Sopenharmony_ci     *  ...
598c2ecf20Sopenharmony_ci     * };
608c2ecf20Sopenharmony_ci     */
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci    #include <dt-bindings/clock/rk3399-cru.h>
638c2ecf20Sopenharmony_ci    #include <dt-bindings/power/rk3399-power.h>
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci    mipi_dphy_rx0: mipi-dphy-rx0 {
668c2ecf20Sopenharmony_ci        compatible = "rockchip,rk3399-mipi-dphy-rx0";
678c2ecf20Sopenharmony_ci        clocks = <&cru SCLK_MIPIDPHY_REF>,
688c2ecf20Sopenharmony_ci                 <&cru SCLK_DPHY_RX0_CFG>,
698c2ecf20Sopenharmony_ci                 <&cru PCLK_VIO_GRF>;
708c2ecf20Sopenharmony_ci        clock-names = "dphy-ref", "dphy-cfg", "grf";
718c2ecf20Sopenharmony_ci        power-domains = <&power RK3399_PD_VIO>;
728c2ecf20Sopenharmony_ci        #phy-cells = <0>;
738c2ecf20Sopenharmony_ci    };
74