Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10278144rwl; Sun, 1 Jan 2023 22:50:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXuOsuK7lBwIr7tHNcLiYFBquAB5De2yRiEpepVebsmS6ixwptfiFrJzWXQpYy7WQ+pIu+cA X-Received: by 2002:a05:6a20:28a7:b0:ad:db18:94b9 with SMTP id q39-20020a056a2028a700b000addb1894b9mr39771510pzf.6.1672642212763; Sun, 01 Jan 2023 22:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672642212; cv=none; d=google.com; s=arc-20160816; b=LTAKi0mCVQoH+Bac/RYlzdxltHv70aj8jYGnrAyAMEq8rpuG2mVUFZa+fx87wjgBwk rYjEnW/ADJnI4PpsWR265lrmhTHXyq/2t4d2q+a4L9wgmylmPbOQjbXvs6G0v5nv2L7y 5TQ7EDlIN7Ad3zMQAaVXoZievcRdjcpLN3XNkBAXf7HD5JIQgB08uJeuCmikcK+9EbS0 NH1crq/heJTsc8jUt5qmN9fYHOau0looLk3vQpiGGnsLCw0nGQZFNfyzKxy8fkOsYFJ0 FS2+d7vwMxQ/0vusdnNoUU4YJQvmVEe6t6sXMbF+4nkdJnSK5yJ/p+K5tfPtvrrdx+MN JYVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:user-agent :in-reply-to:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=BMMDvKaXow6XQx0xLyroErL+Z2f6ROn3AyW0pu+OnGo=; b=TTj+/vWnXAcgLBfgcYSwx4w+SVBbxVN6NG8fuomH5WPdQo1V3j4vn+fuUydqLiYW/1 51eACY/tSBiFikFbRn/wXbW686G3ZnAQaQ3NvbsGLEfk461bfxrFs4/Bdv4ViVToIi3o AQKIl6dtHq4pq2Ho7tBQrGQWFT2TNEV/BnacMs9hkTOMY7L40BioXFQ1t/9Y6vcL6LFf v7Uvfzo70AzDz3Uv8r1aevDpnJ4E+JaKEQd6OnWeCZt7gyln9NUsL7sXB2dKZISKk8+a Whj6CKmUy9l1NY0VBgH3k8Z5BvXN3bMwVCYPFu3Y2wlASstB+XNKncjDggE+WmA5z7IQ Yarw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=QrOcbOvh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 135-20020a63018d000000b004782c6e304bsi28039468pgb.256.2023.01.01.22.50.05; Sun, 01 Jan 2023 22:50:12 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=QrOcbOvh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230118AbjABFvj (ORCPT + 59 others); Mon, 2 Jan 2023 00:51:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbjABFvg (ORCPT ); Mon, 2 Jan 2023 00:51:36 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 374351FB for ; Sun, 1 Jan 2023 21:51:33 -0800 (PST) Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230102055130epoutp01980b3d9e533df64e7c9a8c8914cae2eb~2aAcA1qxz0801808018epoutp01W for ; Mon, 2 Jan 2023 05:51:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230102055130epoutp01980b3d9e533df64e7c9a8c8914cae2eb~2aAcA1qxz0801808018epoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1672638690; bh=BMMDvKaXow6XQx0xLyroErL+Z2f6ROn3AyW0pu+OnGo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QrOcbOvhw8pVc5yMftSf6JiN4Tzo653YsKEYJ857zp08aTzFY8raGQ3ZMz+djEc6/ DjdFFPT7tSLSU+PQ3QZvzMd98+OwJdFIdY5WfpecOZwvROJ1UFnRFZSZUGK2OBhG1t 4XmZDUcUAsuLvvjvQV8fVEZ02BeGFptUAsdmqehs= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20230102055129epcas2p332e505345029cd511e53407530208ca1~2aAatrdFl2478524785epcas2p3e; Mon, 2 Jan 2023 05:51:29 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.91]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4NllNd13RJz4x9Q9; Mon, 2 Jan 2023 05:51:29 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id F7.B4.61831.0E072B36; Mon, 2 Jan 2023 14:51:28 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20230102055128epcas2p3b07590114310fc6f40d4955bf953dfec~2aAZXCBYU3264832648epcas2p3S; Mon, 2 Jan 2023 05:51:28 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230102055128epsmtrp17e33fe8817bbfe730488b30b7285fe80~2aAZWH_QA0349603496epsmtrp1a; Mon, 2 Jan 2023 05:51:28 +0000 (GMT) X-AuditID: b6c32a47-619ff7000000f187-79-63b270e05c23 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 4E.AD.10542.FD072B36; Mon, 2 Jan 2023 14:51:27 +0900 (KST) Received: from ubuntu (unknown [10.229.95.128]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230102055127epsmtip1f808733f10ce4b7aca80b853fd9477ef~2aAZHNdjo2947229472epsmtip1h; Mon, 2 Jan 2023 05:51:27 +0000 (GMT) Date: Mon, 2 Jan 2023 14:45:17 +0900 From: Jung Daehwan To: Krzysztof Kozlowski Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Thinh Nguyen , Mathias Nyman , Felipe Balbi , "open list:USB SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , sc.suh@samsung.com, taehyun.cho@samsung.com, jh0801.jung@samsung.com, eomji.oh@samsung.com Subject: Re: [RFC PATCH v2 3/3] dt-bindings: usb: snps,dwc3: add generic-xhci as child Message-ID: <20230102054517.GB74470@ubuntu> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIJsWRmVeSWpSXmKPExsWy7bCmue7Dgk3JBse8LI61PWG3mH/kHKvF qeULmSyaF69ns7j78AeLRd+Lh8wWe19vZbe4vGsOm8WiZa3MFs2bprBatO49wm7RdfcGo8Wk g6IWqxYcYHfg81i85yWTx6ZVnWwed67tYfPYP3cNu0ffllWMHlv2f2b0+LxJLoA9KtsmIzUx JbVIITUvOT8lMy/dVsk7ON453tTMwFDX0NLCXEkhLzE31VbJxSdA1y0zB+hiJYWyxJxSoFBA YnGxk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: CA Content-Type: multipart/mixed; boundary="----HOtZ9yd3N7yF5SFbHINLR7X-T_3piWaZJDYS8aWXhrzmidxZ=_e44a6_" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221229100416epcas2p18f7600737b8f4149a1d75d2d8db3317a References: <1672307866-25839-1-git-send-email-dh10.jung@samsung.com> <1672307866-25839-4-git-send-email-dh10.jung@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 ------HOtZ9yd3N7yF5SFbHINLR7X-T_3piWaZJDYS8aWXhrzmidxZ=_e44a6_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Thu, Dec 29, 2022 at 11:23:02AM +0100, Krzysztof Kozlowski wrote: > On 29/12/2022 10:57, Daehwan Jung wrote: > > Currently, dwc3 invokes just xhci platform driver(generic-xhci) without > > DT schema even though xhci works as child of dwc3. It makes sense to add > > xhci as child of dwc3 with DT schema. It also supports to use another > > compatible in xhci platform driver. > > You use some driver as an argument for hardware description, which is > not what we need. Describe the hardware. > OK. I will it on next submission. > > > > Signed-off-by: Daehwan Jung > > --- > > .../devicetree/bindings/usb/snps,dwc3.yaml | 29 +++++++++++++++++++ > > 1 file changed, 29 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > index 6d78048c4613..83ed7c526dba 100644 > > --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > @@ -360,8 +360,22 @@ properties: > > description: > > Enable USB remote wakeup. > > > > + "#address-cells": > > + enum: [ 1, 2 ] > > + > > + "#size-cells": > > + enum: [ 1, 2 ] > > + > > + ranges: true > > + > > unevaluatedProperties: false > > > > +# Required child node: > > +patternProperties: > > + "^usb@[0-9a-f]+$": > > + $ref: generic-xhci.yaml# > > + description: Required child node > > DWC does not have another piece of controller as child... DWC is the > controller. Not mentioning that you now affect several other devices > without describing the total hardware picture (just some drivers which > is not that relevant). > DWC controller supports USB Host mode and it uses same resource and really works as a child. I guess it's same on many SOCs, especially mobile.. I just want to modify it to work with DT schema (dwc3 -> xhci-plat). I think it needs to dicuss more.. Best Regards, Jung Daehwan. > > + > > required: > > - compatible > > - reg > > @@ -388,4 +402,19 @@ examples: > > snps,dis_u2_susphy_quirk; > > snps,dis_enblslpm_quirk; > > }; > > + - | > > + usb@4a200000 { > > + compatible = "snps,dwc3"; > > + reg = <0x4a200000 0xcfff>; > > + interrupts = <0 92 4>; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + ranges; > > + > > + xhci: usb@4a200000 { > > + compatible = "generic-xhci"; > > There are no such device... > > > + reg = <0x4a200000 0x7fff>; > > + interrupts = <0 92 4>; > > + }; > > + }; > > ... > > Best regards, > Krzysztof > > ------HOtZ9yd3N7yF5SFbHINLR7X-T_3piWaZJDYS8aWXhrzmidxZ=_e44a6_ Content-Type: text/plain; charset="utf-8" ------HOtZ9yd3N7yF5SFbHINLR7X-T_3piWaZJDYS8aWXhrzmidxZ=_e44a6_--