Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5773180rwl; Thu, 29 Dec 2022 02:43:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXvhZsKUuauxEhA3s7thwYX1OERSKjZiECAZ6/B7Lwh/EMgbWiGMD8cmta1s1NgjvRGCvAF+ X-Received: by 2002:a05:6a20:7faa:b0:b3:8808:b93d with SMTP id d42-20020a056a207faa00b000b38808b93dmr12253535pzj.62.1672310616811; Thu, 29 Dec 2022 02:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672310616; cv=none; d=google.com; s=arc-20160816; b=tlFGNPvreffGRomv683yKViBk2d5XUaBDym2yzBepa4/j4R2G349TWImN3Cy4BIATG Vqgd+EFBZnqgxKz4ubCE89eP4glbKehX4mKdccNeN2QNGkTt9hoGWJHXzStFH5D0LIdp ICNBJBLzAEwFciKT8O9b+ImAxtIKaShupjamZA3Tm/WIqwYY0jZ9vy6Y9nCCV1PXQ+rk Eq0RHQo9E4JO3zYwuyBB3N9/CcZsf3sq/Yafn4QgCIciuFQzGrfX7oxYD96VawWbkplC cP+T2iSuH1dOzNmeNDPsAe5c8xvNKNmjqtoMi/tRtGcQSVDlltdVk8DmUB6ozrO0iDW5 HQRw== 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:dkim-signature; bh=xT1pcIHoVC+1Kb3uKk2wZih8Ww6QX+aLdKaotJW20mU=; b=D5jilmMivoZvKW6bKvt0LTCipfNKNcbD/JeVqXwiqyGLuAtI+Zy5OEaxGiRXigTl6o +b1PKEJ29ONQtbkOq12YHyf2YTlimNADiYiyBhguINVn1z2U52oP5et7yAzdUR4004T9 QB4JNJEJ0rSleu+a3VRRFHBmMFmglUkXJSF7HGCDGHUUxFNdYZ5H+SH4NThxNyuLTbkx C+fmR3dtpif5i/9NpvvUsLAJqxcz4E3hE5+8ZCoSRwVsuV7nLuWJejjXw5CzL3HVRFQm 3YoPHknSH3LESO0DvOh63M0joJHKIqfBx9ZS1OcOuBxRkRb1jJdRmbKuciJOSgIGl9Xk F+8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NxVs//1r"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f35-20020a631023000000b00478c222548csi18508264pgl.435.2022.12.29.02.43.28; Thu, 29 Dec 2022 02:43:36 -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=@linaro.org header.s=google header.b="NxVs//1r"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233383AbiL2KZH (ORCPT + 63 others); Thu, 29 Dec 2022 05:25:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233201AbiL2KYi (ORCPT ); Thu, 29 Dec 2022 05:24:38 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 685A713DEC for ; Thu, 29 Dec 2022 02:23:05 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id j17so17438483lfr.3 for ; Thu, 29 Dec 2022 02:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xT1pcIHoVC+1Kb3uKk2wZih8Ww6QX+aLdKaotJW20mU=; b=NxVs//1rsJfC8Xq6Fxx8I/9s10fHxROXpoiHgzhOwM/wFk2aGYViA9Bd8tVJ1z9wXF rUljgrbdKizmoFK4g105uBaUZKD9tDjMeSLM6/jKe3ZNUi1aPLmyU+/F7gZF5xbedLny R8oKCUwJ3qA2GQMEGU5wbsBte813yqJs6TSdHqoms0VJmgIS8oqdCuH73svzQxrD/et2 anJFvY02Pt8ZQ9NKYGXkSysMzxdWyH99OAmqOroNRKsm1zKv1/0O2IqL/lJOqzujtM+u O9baICV29kw4+NcAPMXjJ+ybVRv1dKNnBe4+PDcNyUxcVeb3y+F86uBSVx32iEWW5cuc PCZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xT1pcIHoVC+1Kb3uKk2wZih8Ww6QX+aLdKaotJW20mU=; b=CgJt1PzKwLr9rtSywUbxzDKIeIrQPBBbP05I0kHi8ZL26amtdbo0gqh1ziCOUrnYFy pE+p/H33RAiYFDCPX9XWOMtjJT9LmzZCo1kc652e4bxFAOcIm704a5koc/lRe/mcVhSU h8bYje4WVMr3wNFeLkpCXFN2yJs+JamLDfusOh3Bi3pGfEyLMkDimr6mb18Kse8RrCAX 3GsQc7YVJXr3dcYrnW4VwFkX2fj1daSbaNNvCJ2L68mFmDwXI55snnl9u9LSmX1yN5r/ Rtl2iU3a6AvydniIr5Xe66XRNFDe+s2fA5x7BGIEEbqe5HNWi4TyiI7E2cOhSCw0112M bdJQ== X-Gm-Message-State: AFqh2krbRNF4J1M5SPUOgXhJ2/7ycrO0K+Fi4BusBi97tJUosI/GrBwm YfAm/hZz076UBAtYMryM939viJkOCqcPvcKD X-Received: by 2002:a05:6512:4005:b0:4b5:9183:5ad0 with SMTP id br5-20020a056512400500b004b591835ad0mr10354256lfb.63.1672309383759; Thu, 29 Dec 2022 02:23:03 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id s16-20020a056512203000b004b4a0482a53sm2986603lfs.231.2022.12.29.02.23.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Dec 2022 02:23:03 -0800 (PST) Message-ID: Date: Thu, 29 Dec 2022 11:23:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RFC PATCH v2 3/3] dt-bindings: usb: snps,dwc3: add generic-xhci as child Content-Language: en-US To: Daehwan Jung , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Thinh Nguyen , Mathias Nyman , Felipe Balbi Cc: "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 References: <1672307866-25839-1-git-send-email-dh10.jung@samsung.com> <1672307866-25839-4-git-send-email-dh10.jung@samsung.com> From: Krzysztof Kozlowski In-Reply-To: <1672307866-25839-4-git-send-email-dh10.jung@samsung.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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. > > 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). > + > 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