Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2039109rwb; Wed, 30 Nov 2022 01:12:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5WnbvwO/Gi27af4OTURY7HP7zPS7c/kQSG3H1wN2Ja6xgX7ePQQtb6pcMxw5e6ZqKJeBbU X-Received: by 2002:a17:907:c08a:b0:7c0:7b21:c5e4 with SMTP id st10-20020a170907c08a00b007c07b21c5e4mr9763023ejc.317.1669799562490; Wed, 30 Nov 2022 01:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669799562; cv=none; d=google.com; s=arc-20160816; b=0V+mFiJakN4TLdOTuSieZEww2YrNHrbSiifQoeppdhIZmYqyuE3Xs+H8RjMKnSzN7e Rvl9C+s7dSl63uAXD+trSc7D+/EsOZxki3tV2ljSCDE4CsrokVUD7Q0YuO4Sce800owJ hm8EF53LH1l1vHag5UBbqQwWGulcpSBl0hiGo5DsvFip/1IB1kycxnOJGTGU6f8rh5gN r5PzO44wZ/xC6sqIID4XGBCuHyG8O4UddY3hClY6W1WXfngQjrAzdeKaqWIo1mCPUJni qU5j+jtOfQizDRe3Pg+y3MZY4oSDjhe8ZxNifs63MRC2qXDcdEWwtOIavpnh1M2Nr2kH Ov+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=1yMefKFA9mo2Hjja7pVuNymyTU38wdAOmGPnJGMzDvk=; b=wAGStbUdTvUntwjimEyqaKGEKC4teut3OorJDxwmrqXOLeroG9WniwaAMihIfa8xu/ SgDObOovIjjkNiaUB9VIBEdIT9qrUHlIQr4g3J9lorYuLtUKXrg3VlUdK/JP03avqc3l DD+k0Sb015AEMTqvg1ryqVN3i00NimIX1nqOzab1iicAthRdJCQ5wvR++u557UlXbcuU he/nyEWAEIazGlHDMXjelAtKspoXdiRF1RnRAgsjLtkQJ2mCr2bpvqdDTmVr2yDs+YV8 dhEEmJ4Y75UUQoXlM0oohCddN+FC4GmP7lVSk8Q/R4+SvjmmN4E1rbxA7o8MQNVFfimj 0Hxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020aa7c2c9000000b0046ad8e026e1si865480edp.69.2022.11.30.01.12.21; Wed, 30 Nov 2022 01:12:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235074AbiK3JA3 (ORCPT + 84 others); Wed, 30 Nov 2022 04:00:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234151AbiK3JA1 (ORCPT ); Wed, 30 Nov 2022 04:00:27 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E199C429A2; Wed, 30 Nov 2022 01:00:25 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 30 Nov 2022 18:00:25 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 536DF205D901; Wed, 30 Nov 2022 18:00:25 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 30 Nov 2022 18:00:25 +0900 Received: from [10.212.156.209] (unknown [10.212.156.209]) by kinkan2.css.socionext.com (Postfix) with ESMTP id D3F3FA855B; Wed, 30 Nov 2022 18:00:24 +0900 (JST) Message-ID: Date: Wed, 30 Nov 2022 18:00:24 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 7/8] dt-bindings: soc: socionext: Add UniPhier DWC3 USB glue layer Content-Language: en-US To: Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221129103509.9958-1-hayashi.kunihiko@socionext.com> <20221129103509.9958-8-hayashi.kunihiko@socionext.com> <12a98c77-5464-0f25-9081-13217f396484@linaro.org> From: Kunihiko Hayashi In-Reply-To: <12a98c77-5464-0f25-9081-13217f396484@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On 2022/11/29 23:52, Krzysztof Kozlowski wrote: > On 29/11/2022 11:35, Kunihiko Hayashi wrote: >> Add DT binding schema for components belonging to the platform-specific >> DWC3 USB glue layer implemented in UniPhier SoCs. >> >> This USB glue layer works as a sideband logic for the host controller, >> including core reset, vbus control, PHYs, and some signals to the >> controller. >> >> Signed-off-by: Kunihiko Hayashi >> --- >> .../socionext,uniphier-dwc3-glue.yaml | 106 ++++++++++++++++++ >> 1 file changed, 106 insertions(+) >> create mode 100644 >> Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-dwc3-glue.yaml >> >> diff --git >> a/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-dwc3-glue.yaml >> b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-dwc3-glue.yaml >> new file mode 100644 >> index 000000000000..66f8786dd305 >> --- /dev/null >> +++ >> b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-dwc3-glue.yaml >> @@ -0,0 +1,106 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: >> http://devicetree.org/schemas/soc/socionext/socionext,uniphier-dwc3-glue.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Socionext UniPhier SoC DWC3 USB3.0 glue layer >> + >> +maintainers: >> + - Kunihiko Hayashi >> + >> +description: |+ >> + DWC3 USB3.0 glue layer implemented on Socionext UniPhier SoCs is >> + a sideband logic handling signals to DWC3 host controller inside >> + USB3.0 component. >> + >> +properties: >> + compatible: >> + items: >> + - enum: >> + - socionext,uniphier-pro4-dwc3-glue >> + - socionext,uniphier-pro5-dwc3-glue >> + - socionext,uniphier-pxs2-dwc3-glue >> + - socionext,uniphier-ld20-dwc3-glue >> + - socionext,uniphier-pxs3-dwc3-glue >> + - socionext,uniphier-nx1-dwc3-glue >> + - const: simple-mfd >> + >> + reg: >> + maxItems: 1 >> + >> + '#address-cells': >> + const: 1 >> + >> + '#size-cells': >> + const: 1 >> + >> + ranges: true >> + >> +patternProperties: >> + "^reset-controller@[0-9a-f]+$": >> + $ref: /schemas/reset/socionext,uniphier-glue-reset.yaml# >> + >> + "^regulator@[0-9a-f]+$": >> + $ref: /schemas/regulator/socionext,uniphier-regulator.yaml# >> + >> + "^phy@[0-9a-f]+$": >> + oneOf: >> + - $ref: /schemas/phy/socionext,uniphier-usb3hs-phy.yaml# >> + - $ref: /schemas/phy/socionext,uniphier-usb3ss-phy.yaml# >> + >> +required: >> + - compatible >> + - reg >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + usb-controller@65b00000 { > > Node name: usb. There is no usage of "usb-controller". I'm confusing about that. This is an interface logic and doesn't have USB functions by itself. Surely there is a USB host controller node "usb@..." in the same SoC. Can this node be renamed to "usb"? I've renamed the dts node name once in commit 4cc752a88ca9 ("arm64: dts: uniphier: Rename usb-glue node for USB3 to usb-controller"). >> + compatible = "socionext,uniphier-ld20-dwc3-glue", "simple-mfd"; >> + reg = <0x65b00000 0x400>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges = <0 0x65b00000 0x400>; >> + >> + reset-controller@0 { >> + compatible = "socionext,uniphier-ld20-usb3-reset"; >> + reg = <0x0 0x4>; > > So now I see the unit addresses, which means none of your previous > patches needed them. This raises next question - why this device is > special and does not use syscon but own unit address? The glue layer has a fixed register address for each child unlike the previous patch. This layer has also the other registers for USB core outside the child nodes, however, there is no parent device that manages these registers, so this layer node itself should take care of these registers. > Are the children here - regulator, reset controller and phys - related > to the USB? Yes, this "glue layer" is an interface of the USB controller, so these children are only used for the USB controller. Thank you, --- Best Regards Kunihiko Hayashi