devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc
@ 2024-05-18 20:44 Krzysztof Kozlowski
  2024-05-18 20:44 ` [PATCH 2/2] arm64: dts: hisilicon: hi3660: add dedicated hi3660-usb3-otg-bc compatible Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-18 20:44 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Wei Xu,
	Carvalho Chehab, devicetree, linux-kernel, linux-arm-kernel
  Cc: Krzysztof Kozlowski, Jiaxun Yang

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

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 .../hisilicon,hi3660-usb3-otg-bc.yaml         | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml

diff --git a/Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml b/Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml
new file mode 100644
index 000000000000..2e26637a4711
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml
@@ -0,0 +1,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 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>;
+        };
+    };
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] arm64: dts: hisilicon: hi3660: add dedicated hi3660-usb3-otg-bc compatible
  2024-05-18 20:44 [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc Krzysztof Kozlowski
@ 2024-05-18 20:44 ` Krzysztof Kozlowski
  2024-05-20 17:10 ` [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc Conor Dooley
  2024-06-23 12:27 ` Krzysztof Kozlowski
  2 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-18 20:44 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Wei Xu,
	Carvalho Chehab, devicetree, linux-kernel, linux-arm-kernel
  Cc: Krzysztof Kozlowski, Jiaxun Yang

Each syscon node must come with a dedicated/specific compatible, which
is also reported by dtbs_check:

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

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
index 7e137a884ae5..957a1b41f19b 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
@@ -1161,7 +1161,7 @@ map1 {
 		};
 
 		usb3_otg_bc: usb3_otg_bc@ff200000 {
-			compatible = "syscon", "simple-mfd";
+			compatible = "hisilicon,hi3660-usb3-otg-bc", "syscon", "simple-mfd";
 			reg = <0x0 0xff200000 0x0 0x1000>;
 
 			usb_phy: usb-phy {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc
  2024-05-18 20:44 [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc Krzysztof Kozlowski
  2024-05-18 20:44 ` [PATCH 2/2] arm64: dts: hisilicon: hi3660: add dedicated hi3660-usb3-otg-bc compatible Krzysztof Kozlowski
@ 2024-05-20 17:10 ` Conor Dooley
  2024-05-21  1:32   ` Wei Xu
  2024-06-23 12:27 ` Krzysztof Kozlowski
  2 siblings, 1 reply; 6+ messages in thread
From: Conor Dooley @ 2024-05-20 17:10 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Wei Xu,
	Carvalho Chehab, devicetree, linux-kernel, linux-arm-kernel,
	Jiaxun Yang

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

On Sat, May 18, 2024 at 10:44:42PM +0200, Krzysztof Kozlowski wrote:
> 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

> +title: Hisilicon Kirin 960 USB OTG Syscon
> +      - const: hisilicon,hi3660-usb3-otg-bc

I know you got it from the node name, what does "bc" mean here?
Otherwise,
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc
  2024-05-20 17:10 ` [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc Conor Dooley
@ 2024-05-21  1:32   ` Wei Xu
  0 siblings, 0 replies; 6+ messages in thread
From: Wei Xu @ 2024-05-21  1:32 UTC (permalink / raw)
  To: Conor Dooley, Krzysztof Kozlowski
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Carvalho Chehab,
	devicetree, linux-kernel, linux-arm-kernel, Jiaxun Yang

Hi Conor,

On 2024/5/21 1:10, Conor Dooley wrote:
> On Sat, May 18, 2024 at 10:44:42PM +0200, Krzysztof Kozlowski wrote:
>> 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
> 
>> +title: Hisilicon Kirin 960 USB OTG Syscon
>> +      - const: hisilicon,hi3660-usb3-otg-bc
> 
> I know you got it from the node name, what does "bc" mean here?

I think it might be the USB Battery Charging Specification.

Best Regards,
Wei

> Otherwise,
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc
  2024-05-18 20:44 [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc Krzysztof Kozlowski
  2024-05-18 20:44 ` [PATCH 2/2] arm64: dts: hisilicon: hi3660: add dedicated hi3660-usb3-otg-bc compatible Krzysztof Kozlowski
  2024-05-20 17:10 ` [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc Conor Dooley
@ 2024-06-23 12:27 ` Krzysztof Kozlowski
  2024-06-24  0:34   ` Wei Xu
  2 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-23 12:27 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Wei Xu,
	Carvalho Chehab, devicetree, linux-kernel, linux-arm-kernel,
	Krzysztof Kozlowski
  Cc: Jiaxun Yang


On Sat, 18 May 2024 22:44:42 +0200, Krzysztof Kozlowski wrote:
> 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
> 
> 

One month waiting, so I'll take this one as well.

Applied, thanks!

[1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc
      https://git.kernel.org/krzk/linux-dt/c/7613195d37d69ff92c9bc55599037615212ce19c
[2/2] arm64: dts: hisilicon: hi3660: add dedicated hi3660-usb3-otg-bc compatible
      https://git.kernel.org/krzk/linux-dt/c/bc9ec165d066af29661ece91f9cbf74e18ec0a5a

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc
  2024-06-23 12:27 ` Krzysztof Kozlowski
@ 2024-06-24  0:34   ` Wei Xu
  0 siblings, 0 replies; 6+ messages in thread
From: Wei Xu @ 2024-06-24  0:34 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Carvalho Chehab, devicetree, linux-kernel,
	linux-arm-kernel
  Cc: Jiaxun Yang

Hi Krzysztof,

On 2024/6/23 20:27, Krzysztof Kozlowski wrote:
> 
> On Sat, 18 May 2024 22:44:42 +0200, Krzysztof Kozlowski wrote:
>> 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
>>
>>
> 
> One month waiting, so I'll take this one as well.
> 
> Applied, thanks!

Fine to me.
Thanks!

Best Regards,
Wei

> 
> [1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc
>       https://git.kernel.org/krzk/linux-dt/c/7613195d37d69ff92c9bc55599037615212ce19c
> [2/2] arm64: dts: hisilicon: hi3660: add dedicated hi3660-usb3-otg-bc compatible
>       https://git.kernel.org/krzk/linux-dt/c/bc9ec165d066af29661ece91f9cbf74e18ec0a5a
> 
> Best regards,
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-24  0:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-18 20:44 [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc Krzysztof Kozlowski
2024-05-18 20:44 ` [PATCH 2/2] arm64: dts: hisilicon: hi3660: add dedicated hi3660-usb3-otg-bc compatible Krzysztof Kozlowski
2024-05-20 17:10 ` [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc Conor Dooley
2024-05-21  1:32   ` Wei Xu
2024-06-23 12:27 ` Krzysztof Kozlowski
2024-06-24  0:34   ` Wei Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).