xref: /linux/Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Hisilicon Kirin 960 USB OTG Battery Charging Syscon
8
9maintainers:
10  - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
11
12properties:
13  compatible:
14    items:
15      - const: hisilicon,hi3660-usb3-otg-bc
16      - const: syscon
17      - const: simple-mfd
18
19  reg:
20    maxItems: 1
21
22  usb-phy:
23    $ref: /schemas/phy/hisilicon,hi3660-usb3.yaml
24    description: USB Phy node
25
26required:
27  - compatible
28  - reg
29  - usb-phy
30
31additionalProperties: false
32
33examples:
34  - |
35    syscon@ff200000 {
36        compatible = "hisilicon,hi3660-usb3-otg-bc", "syscon", "simple-mfd";
37        reg = <0xff200000 0x1000>;
38
39        usb-phy {
40            compatible = "hisilicon,hi3660-usb-phy";
41            #phy-cells = <0>;
42            hisilicon,pericrg-syscon = <&crg_ctrl>;
43            hisilicon,pctrl-syscon = <&pctrl>;
44            hisilicon,eye-diagram-param = <0x22466e4>;
45        };
46    };
47