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