[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <50ce8e71-613e-1ef5-0c23-67a2f6f78949@linaro.org>
Date: Thu, 24 Aug 2023 08:26:58 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Stanley Chang[昌育德]
<stanley_chang@...ltek.com>,
MyungJoo Ham <myungjoo.ham@...sung.com>
Cc: Chanwoo Choi <cw00.choi@...sung.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
Subject: Re: [PATCH v1 2/2] dt-bindings: extcon: Add Realtek DHC RTD SoC
Type-C
On 24/08/2023 08:03, Stanley Chang[昌育德] wrote:
> Hi Krzysztof,
>
>> On 22/08/2023 12:28, Stanley Chang wrote:
>>> Document the device-tree bindings for Realtek SoCs Type-C.
>>> Realtek DHC (digital home center) RTD SoCs support a Type-C module.
>>>
>>> Signed-off-by: Stanley Chang <stanley_chang@...ltek.com>
>>> ---
>>> .../bindings/extcon/extcon-rtk-type-c.yaml | 77 +++++++++++++++++++
>>> 1 file changed, 77 insertions(+)
>>> create mode 100644
>>> Documentation/devicetree/bindings/extcon/extcon-rtk-type-c.yaml
>>
>> Filename like compatible.
>
> I will rename.
>
>>>
>>> diff --git
>>> a/Documentation/devicetree/bindings/extcon/extcon-rtk-type-c.yaml
>>> b/Documentation/devicetree/bindings/extcon/extcon-rtk-type-c.yaml
>>> new file mode 100644
>>> index 000000000000..d14b9ee544b9
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/extcon/extcon-rtk-type-c.yaml
>>> @@ -0,0 +1,77 @@
>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) # Copyright
>>> +2023 Realtek Semiconductor Corporation %YAML 1.2
>>> +---
>>> +$id: http://devicetree.org/schemas/extcon/extcon-rtk-type-c.yaml#
>>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>>> +
>>> +title: Realtek DHC RTD SoCs USB Type-C detection
>>
>> Type-c usually go to usb directory.
>
> This binding is not for a type-c controller.
> It is an extcon device for type-c connector detection.
> So I put it at extcon directory.
If this is not a type-c controller, then what is it? Explain me please
what is an "extcon device" without using any Linux subsystem naming.
>
> And I will add “connector” to the title.
> title: Realtek DHC RTD SoCs USB Type-C Connector detection
So usb...
>>
>>> +
>>> + realtek,rd-ctrl-gpio:
>>> + description: The gpio node to control external Rd on board.
>>
>> The names are always "gpios".
>
> Do you mean "realtek,rd-ctrl-gpios" ?
Yes, like all of such properties in DTS and bindings. Everywhere.
>>
>>> + maxItems: 1
>>> +
>>
>> You miss here connector. Probably also VBUS supply and other supplies.
>>
> Ok, I will add connector.
>
>>> +required:
>>> + - compatible
>>> + - reg
>>> + - interrupts
>>> +
>>> +additionalProperties: false
>>> +
>>> +examples:
>>> + - |
>>> + type-c@...0 {
>>> + compatible = "realtek,rtd1619b-type-c";
>>> + reg = <0x7220 0x20>;
>>> + interrupts = <0 60 4>;
>>
>> Use proper defines for common constants.
>
> Ok, I will revise this.
>
>>> +
>>> + pinctrl-names = "default";
>>> + pinctrl-0 = <&usb_cc1_pins>, <&usb_cc2_pins>;
>
> You mention that the property of pinctrl not need in doc.
> Do I need to add the property of pintrl in example?
Does not matter.
Best regards,
Krzysztof
Powered by blists - more mailing lists