Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5753288rwl; Thu, 29 Dec 2022 02:19:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXvb0Tce0f5LLMOJ55h9q187ylyqZODAS3BtOph+slXOld6vIYoyujdzjNBDWaJqEfOqnYZ7 X-Received: by 2002:a17:906:430a:b0:7c1:54b9:c688 with SMTP id j10-20020a170906430a00b007c154b9c688mr22853995ejm.60.1672309149040; Thu, 29 Dec 2022 02:19:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672309149; cv=none; d=google.com; s=arc-20160816; b=GCIggt373M5vIFzTC3c5W0hdl1FqxpICsJn1Ab9R0b6ylWhyseMHxcJkg5+PVY+OGW nTCC5CWPKcMf/OquwjoOlaGwg9fByqRv0UOi/ImtZXjQDKe1uaYAcq0JSzhRE3TCZNQW 3j+1Xt/myGmEH5yXuQsorv4XzmXz6WKqwTaiaW93ABX35xY2OAmaYnsdfPWudpldODhJ mak5YYgQ8cH+us6tUBw0BrGh0dWRn6H0SAaIFsJ+9ksJ27rU8oPURk8ZB/e12U/OLec3 TdXSvRcYMYwnYjdbOMqtqKdSnIyDYTpmj++zZkGELuIeHGaEI+C2xXAJNbpfH1IKCkyt ZDCQ== 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:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=yrMrH+zAEllRQiyZ4imQyuFdt3JAySbiorsThIUkVOY=; b=Gxg4GQBrutZ8CijY4EKEvXhajEd+gktX3cGP1q+v57elrNSTS+64Mik8BPauxOXBhI LVZy2RrCMVcXJKGBYwtyOawO1MkO3oxZJV/gx917x1p098fN0gC4CCvDsgv0QoT8lQYC IU8Cbq+PXdSJvrdo5Vcn0mTa7UpGA90vQANivcXClEr+HS2UN5KI30/sB0DCp/M47HGr ECtdGnssoiILhzDtVGq7xf7f6F68lTTdsIOoEAeqm8o8cYic+db4u/e4fIL+/b+ycK+H gDNqEanafAJ34alWzWu2tOdRt2KkYJSFcktx3b/NT96y09hQzYCOHFHeNNcTYLwM94oh hlTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="P/0QEuXQ"; 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 qf27-20020a1709077f1b00b007bdf57f885esi16958734ejc.37.2022.12.29.02.18.54; Thu, 29 Dec 2022 02:19:09 -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="P/0QEuXQ"; 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 S233151AbiL2KPF (ORCPT + 62 others); Thu, 29 Dec 2022 05:15:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230488AbiL2KMj (ORCPT ); Thu, 29 Dec 2022 05:12:39 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C03E113F7A for ; Thu, 29 Dec 2022 02:04:19 -0800 (PST) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221229100418epoutp016ac1ebd669a03f0b40fb1f8879f14b32~1O4AaZuGP1357313573epoutp01Y for ; Thu, 29 Dec 2022 10:04:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221229100418epoutp016ac1ebd669a03f0b40fb1f8879f14b32~1O4AaZuGP1357313573epoutp01Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1672308258; bh=yrMrH+zAEllRQiyZ4imQyuFdt3JAySbiorsThIUkVOY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P/0QEuXQe2r3g86038BRbd3/qPxkhUBjfqg3yuThldgKwADC5wWc5DfxVGHvrB/eD Kn1twQiUMSXHqItFANaAGdiJtPZ30cvCFqEfJjfw2BrlG628YOuk+rgNCnfNbj6squ 89gWsXauE7W9zx/AMwaJoouX3ibEvryq78MPOmik= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20221229100417epcas2p2b5eb2b3af79011011765ea5ddc2cf7db~1O3-7vx8r1066110661epcas2p2P; Thu, 29 Dec 2022 10:04:17 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.100]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4NjPB91Js1z4x9Py; Thu, 29 Dec 2022 10:04:17 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 56.28.15497.1266DA36; Thu, 29 Dec 2022 19:04:17 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20221229100416epcas2p18f7600737b8f4149a1d75d2d8db3317a~1O3-LFLOT1797217972epcas2p1J; Thu, 29 Dec 2022 10:04:16 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221229100416epsmtrp1748bb5a2d8b4f1b8a8e088f7428482d6~1O3-KNsJz2828628286epsmtrp1C; Thu, 29 Dec 2022 10:04:16 +0000 (GMT) X-AuditID: b6c32a48-225ff70000023c89-91-63ad6621f569 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 16.1F.02211.0266DA36; Thu, 29 Dec 2022 19:04:16 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [10.229.95.128]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221229100416epsmtip2379f4dc3c814cbc84ac01355a185ef29~1O3_7jeuy2157121571epsmtip2Y; Thu, 29 Dec 2022 10:04:16 +0000 (GMT) From: Daehwan Jung To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Thinh Nguyen , Mathias Nyman , Felipe Balbi Cc: linux-usb@vger.kernel.org (open list:USB SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), sc.suh@samsung.com, taehyun.cho@samsung.com, jh0801.jung@samsung.com, eomji.oh@samsung.com, Daehwan Jung Subject: [RFC PATCH v2 3/3] dt-bindings: usb: snps,dwc3: add generic-xhci as child Date: Thu, 29 Dec 2022 18:57:46 +0900 Message-Id: <1672307866-25839-4-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1672307866-25839-1-git-send-email-dh10.jung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgk+LIzCtJLcpLzFFi42LZdljTVFcxbW2ywZ8Z7BbH2p6wW8w/co7V 4s6CaUwWp5YvZLJoXryezeLuwx8sFn0vHjJbXN41h81i0bJWZovmTVNYLVr3HmG36Lp7g9Fi 0kFRi1ULDrA78Hks3vOSyWPTqk42jzvX9rB57J+7ht2jb8sqRo8t+z8zenzeJBfAHpVtk5Ga mJJapJCal5yfkpmXbqvkH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ker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsWy7bCSvK5C2tpkg8dPFC2OtT1ht5h/5Byr xZ0F05gsTi1fyGTRvHg9m8Xdhz9YLPpePGS2uLxrDpvFomWtzBbNm6awWrTuPcJu0XX3BqPF pIOiFqsWHGB34PNYvOclk8emVZ1sHneu7WHz2D93DbtH35ZVjB5b9n9m9Pi8SS6APYrLJiU1 J7MstUjfLoEr4/aE5YwF53gqvs1dzNbAeJazi5GTQ0LARGLHvdOsILaQwG5Gib4XWRBxSYml c2+wQ9jCEvdbjgDVcAHVfGOUODjrAlsXIwcHm4CWxPeFjCBxEYEeJomFU7aygTjMAqeYJG4d f8UE0i0sECTRcacFbBKLgKrE9v+rmEFsXgFXiZZVfVAb5CRunusEi3MKuEm0b/3BAnGRq8SF 7n9sExj5FjAyrGKUTC0ozk3PLTYsMMxLLdcrTswtLs1L10vOz93ECA5nLc0djNtXfdA7xMjE wXiIUYKDWUmEV+Ps6mQh3pTEyqrUovz4otKc1OJDjNIcLErivBe6TsYLCaQnlqRmp6YWpBbB ZJk4OKUamHIzNF6rFnCZbzhY9PK5BItBSOqmvwaWKcc2fN7Y/6L2dfUUx073ZcefPLcxvMK7 pYOfU36h/y4m59MObKr6zBOck90unDCsPyGoGi/F2lnq4um+PHTLaa6zZZcdmlbLR+hNO7Yu 6lr0+n8nVy/8ciznT5hDoHOEz3GRDT133olmZWufbju2kfOytMoktlNRdy8cYLj06PZLuVVL 3+3R+uQ2y8diY98Wm6S7IVt/8639l6n6vlLW7rq1YoBkX3SDZrNO6Kr93cs92lg+XhcPiJFc f3ny2UcJgg67JXwqD32bGN6511XQS7/pnLbQ3l0zOBOyded1+T2cFrymxWh/OefMcwLzzG/t UJDpMJs6Q4mlOCPRUIu5qDgRAAJnJWXWAgAA X-CMS-MailID: 20221229100416epcas2p18f7600737b8f4149a1d75d2d8db3317a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" 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> 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 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. 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 + 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"; + reg = <0x4a200000 0x7fff>; + interrupts = <0 92 4>; + }; + }; ... -- 2.31.1