From patchwork Thu Dec 29 09:57:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jung Daehwan X-Patchwork-Id: 13083395 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8C9BC4332F for ; Thu, 29 Dec 2022 10:15:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233288AbiL2KOk (ORCPT ); Thu, 29 Dec 2022 05:14:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230272AbiL2KMg (ORCPT ); Thu, 29 Dec 2022 05:12:36 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA91413F79 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 20221229100418epoutp0164a2c51af6b4df1458dee7c721804c43~1O4Aabt3R1118911189epoutp01U for ; Thu, 29 Dec 2022 10:04:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221229100418epoutp0164a2c51af6b4df1458dee7c721804c43~1O4Aabt3R1118911189epoutp01U 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 mJJapJCal5yfkpmXbqvkHRzvHG9qZmCoa2hpYa6kkJeYm2qr5OIToOuWmQN0spJCWWJOKVAo ILG4WEnfzqYov7QkVSEjv7jEVim1ICWnwLxArzgxt7g0L10vL7XEytDAwMgUqDAhO+P2hOWM Bed4Kr7NXczWwHiWs4uRk0NCwETi1fI5zF2MXBxCAjsYJT5cncAO4XxilPg8+yQLhPONUWLN ltVsMC077p1mhUjsZZRY/uElVMsPRomeVw+AWjg42AS0JL4vZASJiwh0MUlsu/MVbBSzwBEm iY0zTjGCjBIWCJFoOtXHBGKzCKhKbP+/ihnE5hVwlWhZ1ccOsU5O4ua5TrA4p4CbRPvWH2CD JAQ6OSTuHT0OdZOLxJGrM1khbGGJV8e3QDVLSbzsb4OysyWuf+tmgbArJFbshbGNJWY9a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Ab5CRunusEi3MKuEm0b/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 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> Precedence: bulk List-ID: X-Mailing-List: linux-usb@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>; + }; + }; ...