xref: /freebsd/sys/contrib/device-tree/Bindings/display/tegra/nvidia,tegra114-mipi.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2b97ee269SEmmanuel Vadot%YAML 1.2
3b97ee269SEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra114-mipi.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6b97ee269SEmmanuel Vadot
7b97ee269SEmmanuel Vadottitle: NVIDIA Tegra MIPI pad calibration controller
8b97ee269SEmmanuel Vadot
9b97ee269SEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Thierry Reding <thierry.reding@gmail.com>
11b97ee269SEmmanuel Vadot  - Jon Hunter <jonathanh@nvidia.com>
12b97ee269SEmmanuel Vadot
13b97ee269SEmmanuel Vadotproperties:
14b97ee269SEmmanuel Vadot  $nodename:
15b97ee269SEmmanuel Vadot    pattern: "^mipi@[0-9a-f]+$"
16b97ee269SEmmanuel Vadot
17b97ee269SEmmanuel Vadot  compatible:
18b97ee269SEmmanuel Vadot    enum:
19b97ee269SEmmanuel Vadot      - nvidia,tegra114-mipi
20b97ee269SEmmanuel Vadot      - nvidia,tegra210-mipi
21b97ee269SEmmanuel Vadot      - nvidia,tegra186-mipi
22b97ee269SEmmanuel Vadot
23b97ee269SEmmanuel Vadot  reg:
24b97ee269SEmmanuel Vadot    maxItems: 1
25b97ee269SEmmanuel Vadot
26b97ee269SEmmanuel Vadot  clocks:
27b97ee269SEmmanuel Vadot    items:
28b97ee269SEmmanuel Vadot      - description: module clock
29b97ee269SEmmanuel Vadot
30b97ee269SEmmanuel Vadot  clock-names:
31b97ee269SEmmanuel Vadot    items:
32b97ee269SEmmanuel Vadot      - const: mipi-cal
33b97ee269SEmmanuel Vadot
34b97ee269SEmmanuel Vadot  power-domains:
35b97ee269SEmmanuel Vadot    maxItems: 1
36b97ee269SEmmanuel Vadot
37b97ee269SEmmanuel Vadot  "#nvidia,mipi-calibrate-cells":
38b97ee269SEmmanuel Vadot    description: The number of cells in a MIPI calibration specifier.
39b97ee269SEmmanuel Vadot      Should be 1. The single cell specifies a bitmask of the pads that
40b97ee269SEmmanuel Vadot      need to be calibrated for a given device.
41*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
42b97ee269SEmmanuel Vadot    const: 1
43b97ee269SEmmanuel Vadot
44b97ee269SEmmanuel VadotadditionalProperties: false
45b97ee269SEmmanuel Vadot
46b97ee269SEmmanuel Vadotrequired:
47b97ee269SEmmanuel Vadot  - compatible
48b97ee269SEmmanuel Vadot  - reg
49b97ee269SEmmanuel Vadot  - clocks
50b97ee269SEmmanuel Vadot  - "#nvidia,mipi-calibrate-cells"
51b97ee269SEmmanuel Vadot
52b97ee269SEmmanuel Vadotexamples:
53b97ee269SEmmanuel Vadot  - |
54b97ee269SEmmanuel Vadot    #include <dt-bindings/clock/tegra114-car.h>
55b97ee269SEmmanuel Vadot
56b97ee269SEmmanuel Vadot    mipi@700e3000 {
57b97ee269SEmmanuel Vadot        compatible = "nvidia,tegra114-mipi";
58b97ee269SEmmanuel Vadot        reg = <0x700e3000 0x100>;
59b97ee269SEmmanuel Vadot        clocks = <&tegra_car TEGRA114_CLK_MIPI_CAL>;
60b97ee269SEmmanuel Vadot        clock-names = "mipi-cal";
61b97ee269SEmmanuel Vadot        #nvidia,mipi-calibrate-cells = <1>;
62b97ee269SEmmanuel Vadot    };
63b97ee269SEmmanuel Vadot
64b97ee269SEmmanuel Vadot    dsia: dsi@54300000 {
65b97ee269SEmmanuel Vadot        compatible = "nvidia,tegra114-dsi";
66b97ee269SEmmanuel Vadot        reg = <0x54300000 0x00040000>;
67b97ee269SEmmanuel Vadot        clocks = <&tegra_car TEGRA114_CLK_DSIA>,
68b97ee269SEmmanuel Vadot                 <&tegra_car TEGRA114_CLK_DSIALP>,
69b97ee269SEmmanuel Vadot                 <&tegra_car TEGRA114_CLK_PLL_D_OUT0>;
70b97ee269SEmmanuel Vadot        clock-names = "dsi", "lp", "parent";
71b97ee269SEmmanuel Vadot        resets = <&tegra_car 48>;
72b97ee269SEmmanuel Vadot        reset-names = "dsi";
73b97ee269SEmmanuel Vadot        nvidia,mipi-calibrate = <&mipi 0x060>; /* DSIA & DSIB pads */
74b97ee269SEmmanuel Vadot    };
75