Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp43381rdg; Wed, 11 Oct 2023 20:21:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3S37hKQvwKraJFYsZ3bRCjVEsEQAFZpz649pLM6Ak/TSOEDLzkRoulmygQNv1G1XbjGyy X-Received: by 2002:a05:6871:520a:b0:1e9:809e:edee with SMTP id ht10-20020a056871520a00b001e9809eedeemr6757945oac.30.1697080871813; Wed, 11 Oct 2023 20:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697080871; cv=none; d=google.com; s=arc-20160816; b=qy194E96EPd0mTQZOjQqD41UkMgrwDdkRg29C4dcUPjW5cliT1e7sdLYLhItEYtnnO Yzcr2Fn14BBN5SY2tr2jVvpYV7pNYXxJmzwr9bF3S2oIc5OFdoQIzn+VlHuMVSd/ZueN 4Q69tGmkKhGV5yevl+gAVsA6NvqFOtA4AgjwPywlG3nMgxiymp8d1hQ/Hb3ocFd1jEA4 MUYpETKrBFxLvwLYLOx+YYe0cZDueiHK079ZWQSOScg6rCdgdeRGjirQhffT451NkkOe okTY5m+wQX2KRAWLHPDWNrc8LeVfRsQHtYzfcbNeJ4a6sIN0WliriaU4m58dtAGzmfAl /RbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vNG7kOTp0E3II+uSMqFswlod5Ow+9hu5BlR/XYnJYVI=; fh=VyruGEacOTSPeKTC57qf+uPA0yJPNFXvNONKsL3z+VY=; b=zg7As+aGQa7lLAr3xKwSz78YE5e4WEa4I6qn1iywkn2WrKojjR95gPN9xx5yCoNZLS XPuJ6o9Bn2V7BhAdlxXyVQcANcOvXllMyAHGPu2tnZvzMCZXYnLx99r80LrT6gIm6ghS reBPH7iElJIrUMhxbLIIhGaC9Lw1+e265LTEfA9OPhDDQKGjkMnPllthY96L0l0bA9dY G3j5xyNfsPFz1Xiq+mFXb+XG6QbUSRJUiq3j8Q9XfrYhz1sUjGeYF+WCBSkapXGL4aBV tjI8MgDsibRcP7HMojIY7LRbfjYklXm2EqKvu+gSR7fy3XPQXe0ywZQc07tOYNho9eNh 3VDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="VQAj9/3J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x185-20020a6386c2000000b005775e2a7951si1154388pgd.345.2023.10.11.20.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 20:21:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="VQAj9/3J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7823A80613A0; Wed, 11 Oct 2023 20:21:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234053AbjJLDUy (ORCPT + 99 others); Wed, 11 Oct 2023 23:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjJLDUw (ORCPT ); Wed, 11 Oct 2023 23:20:52 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA339E; Wed, 11 Oct 2023 20:20:50 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6c4f1f0774dso356036a34.2; Wed, 11 Oct 2023 20:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697080850; x=1697685650; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vNG7kOTp0E3II+uSMqFswlod5Ow+9hu5BlR/XYnJYVI=; b=VQAj9/3JS7nnukClMdEZCbOmHZMrJG59uqVEwjVoaDvGf9+5kw0XD71QWVA9NlfCu8 lrvtm8MGXZq4ksChLMoju2ljyDvxsYpCWcen/fqFGfu+QDGLHanXkvRUsUR7GDUVnY4Z QVxMx4IWPDbS7m8jdB7Bc6ZqIuHX/oxJtfopADyE1MiQksuKezb8w01CGi2CEaLVwazO dk+vhPqhP6o901xq2pIGtMIXeTgmXkHGT6acT0s447CRVRZGuuQxUBRHGJYt4QO6CY6u WA3Nm4UZFJ4ueMYBuP/EGq62BMQlCcfP8ePrqJNhT1O7/OfUHNrBxUtiZdtRFqMD8lj5 gbWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697080850; x=1697685650; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vNG7kOTp0E3II+uSMqFswlod5Ow+9hu5BlR/XYnJYVI=; b=n3yHOXgNcxl0EavIiBDmJr6ENMB2V0LxJ/gbxx6HMfcfJh5JUBpRoom9ESiSzrug/1 cKXKATFMH4+bV5H5epKvbJEj87dZa3FFXmuNX6+b3YN+aogikkXwUOF0cwNI6CtS26Gi f6OYEjwge8rnqUl0HDL1Yg5Y/h+dVQWWHCXTQA3GV+lH6uvAQvsy18rTxRIsYYiUVj7O bsnseBvg1sMD3WMa/px5ZVI3sn60CJBpSsEdYxubd+WQU0A3XLmbciEszkzJbqk1ghAX qqYPmSS0mHXvDO00k2Hi+iyYNnDdm5SmpNwJO15HQrHc0qWIE9owee4SshoKKrCPLApt cBwQ== X-Gm-Message-State: AOJu0Yx/Rv3FpDXentfdzQ9wW6x885cxCNabfuKHE1U/wLr925pQwsR7 YLUqj+DZqc7CesiQXQsgp1z+vrz/CIoUQRoteM1h4sj4eyk= X-Received: by 2002:a9d:4e91:0:b0:6b8:f588:2c79 with SMTP id v17-20020a9d4e91000000b006b8f5882c79mr25179667otk.1.1697080850001; Wed, 11 Oct 2023 20:20:50 -0700 (PDT) MIME-Version: 1.0 References: <20231011051152.133257-1-linux.amoon@gmail.com> <169700589265.2911018.855796610271678067.robh@kernel.org> In-Reply-To: <169700589265.2911018.855796610271678067.robh@kernel.org> From: Anand Moon Date: Thu, 12 Oct 2023 08:50:33 +0530 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: usb: Add the binding example for the Genesys Logic GL3523 hub To: Rob Herring Cc: Icenowy Zheng , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Rob Herring , devicetree@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 20:21:09 -0700 (PDT) Hi Rob, On Wed, 11 Oct 2023 at 12:01, Rob Herring wrote: > > > On Wed, 11 Oct 2023 10:41:48 +0530, Anand Moon wrote: > > Add the binding example for the USB3.1 Genesys Logic GL3523 > > integrates with USB 3.1 Gen 1 Super Speed and USB 2.0 High-Speed > > hub. > > > > Signed-off-by: Anand Moon > > --- > > New patch. > > --- > > .../bindings/usb/genesys,gl850g.yaml | 28 +++++++++++++++++-- > > 1 file changed, 25 insertions(+), 3 deletions(-) > > > > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' > on your patch (DT_CHECKER_FLAGS is new in v5.13): > > yamllint warnings/errors: > > dtschema/dtc warnings/errors: > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/usb/usb-hcd.example.dtb: hub@1: 'reset-gpios' is a required property > from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/usb/usb-hcd.example.dtb: hub@1: 'vdd-supply' is a required property > from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/usb/usb-hcd.example.dtb: hub@1: 'peer-hub' is a required property > from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/usb/usb-device.example.dtb: hub@1: 'reset-gpios' is a required property > from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/usb/usb-device.example.dtb: hub@1: 'vdd-supply' is a required property > from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/usb/usb-device.example.dtb: hub@1: 'peer-hub' is a required property > from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# > > doc reference errors (make refcheckdocs): > > See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20231011051152.133257-1-linux.amoon@gmail.com > > The base for the series is generally the latest rc1. A different dependency > should be noted in *this* patch. > > If you already ran 'make dt_binding_check' and didn't see the above > error(s), then make sure 'yamllint' is installed and dt-schema is up to > date: > > pip3 install dtschema --upgrade > > Please check and re-submit after running the above command yourself. Note > that DT_SCHEMA_FILES can be set to your schema file to speed up checking > your schema. However, it must be unset to test all examples with your schema. > Can you share an example to add two examples in this binding? one for usb5e3,608 and other for usb5e3,610, usb5e3,620, I have tried but I got an error for duplicate I have tried to modify it with the following example +allOf: + - if: + properties: + compatible: + contains: + const: usb5e3,608 + then: + properties: + reset-gpios: true + vdd-supply: false + peer-hub: false + else: + $ref: usb-device.yaml + required: + - peer-hub but it still shows me his warning, DTC_CHK Documentation/devicetree/bindings/usb/usb-hcd.example.dtb /home/amoon/mainline/linux-amlogic-6.y-devel/Documentation/devicetree/bindings/usb/usb-hcd.example.dtb: hub@1: 'peer-hub' is a required property from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# I could not find any binding which supports these properties. - reset-gpios - vdd-supply - peer-hub Please suggest to me how to resolve this warning. Thanks -Anand