summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml
blob: 5c77c4925d1931892fd749c329da08c327948e37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Hisilicon Kirin 960 USB OTG Battery Charging Syscon

maintainers:
  - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

properties:
  compatible:
    items:
      - const: hisilicon,hi3660-usb3-otg-bc
      - const: syscon
      - const: simple-mfd

  reg:
    maxItems: 1

  usb-phy:
    $ref: /schemas/phy/hisilicon,hi3660-usb3.yaml
    description: USB Phy node

required:
  - compatible
  - reg
  - usb-phy

additionalProperties: false

examples:
  - |
    syscon@ff200000 {
        compatible = "hisilicon,hi3660-usb3-otg-bc", "syscon", "simple-mfd";
        reg = <0xff200000 0x1000>;

        usb-phy {
            compatible = "hisilicon,hi3660-usb-phy";
            #phy-cells = <0>;
            hisilicon,pericrg-syscon = <&crg_ctrl>;
            hisilicon,pctrl-syscon = <&pctrl>;
            hisilicon,eye-diagram-param = <0x22466e4>;
        };
    };