Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc

Add dedicated bindings for the Hisilicon Kirin 960 USB OTG Syscon,
to fully document the block and also fix dtbs_check warning:

hi3660-hikey960.dtb: usb3_otg_bc@ff200000: compatible: ['syscon', 'simple-mfd'] is too short

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240518204443.122586-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

+46
+46
Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml
··· 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 + 7 + title: Hisilicon Kirin 960 USB OTG Battery Charging Syscon 8 + 9 + maintainers: 10 + - Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 11 + 12 + properties: 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 + 26 + required: 27 + - compatible 28 + - reg 29 + - usb-phy 30 + 31 + additionalProperties: false 32 + 33 + examples: 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 + };