Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp690380pxm; Fri, 25 Feb 2022 17:22:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOBBeHORAasz+D0yg50+3QXVj19U9ooqTVBVVaPiOZgKFhXnCQq6b5UHYDogmPBEpGOfCH X-Received: by 2002:a65:5bc3:0:b0:378:4f82:d73d with SMTP id o3-20020a655bc3000000b003784f82d73dmr2942139pgr.191.1645838524012; Fri, 25 Feb 2022 17:22:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645838524; cv=none; d=google.com; s=arc-20160816; b=dDVfkmjyJCZ14LLUvoB6wzg7q62ys69V//VYXdR0t0rcsyKb5Ojfm978hVUwQaLIZB uSUXd4h5ulYFvNVywUepzFXZSDmo4wdOR8uQH/xIiQ0i5JWAubvsq+C5qEeltTHLboTj vgBuoFVeXMtoULkCpFwbbLLd2zZkt3G/aGsx/oVsXdwiCk39GbAddmKwS+pisFNQeH7E oM+CUadH+Vb3OYY6w1Gjh2NEDUw0k96h0zVHz+T+NPfEWN8zNg14/gu8GSBv3kRHR0kC qqUXvo3T2QC4y1BZbvz/yfeoAhU04DfESoTiKs/sC39LgJNeJFtn70N+KCMvc0F1upL0 HAbA== 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=KojlstE2lgoa7NRwY6/3wf4IDjFuyhSCMnLIbiB/VXw=; b=DNbvCMFiC/V8R1+0MdjJPnhk5HPEC7uAmjgL8lWYS805oMA+daJ8/o4JJIcJMeh5QE Jculx0tw8UCZjxSEwSBdHaTvb3/8kO6c9RiZ+mjPKNKuBugpuP+k2UPeSI52WeJ7hvAJ GhVjY7yDdKzlOZfsoLnKUU4zTsAdp9jXiVpDVFNI/TyXXB487xNE4Oq9utDumboEXYSQ xVkBnEb7iDjeeGH1cmWJrujQcCCcfKcarvwfiw+XQ+rFjDBzI4RjqFq3gtjHJJ0+uWxv NfnfRWLrzkvDsO/9c2qXJxPAdr2oalGmpbkGzDbPHSCLAT1Y/DifSabDqeADlbn8Uz+v VWEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YsJOaByG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id nl11-20020a17090b384b00b001bd0370f744si2064787pjb.0.2022.02.25.17.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:22:03 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YsJOaByG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA2282325C5; Fri, 25 Feb 2022 17:22:01 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232614AbiBYSFQ (ORCPT + 99 others); Fri, 25 Feb 2022 13:05:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232720AbiBYSFN (ORCPT ); Fri, 25 Feb 2022 13:05:13 -0500 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9526B1E6E91; Fri, 25 Feb 2022 10:04:22 -0800 (PST) Received: by mail-yb1-xb2d.google.com with SMTP id y189so7429840ybe.4; Fri, 25 Feb 2022 10:04:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KojlstE2lgoa7NRwY6/3wf4IDjFuyhSCMnLIbiB/VXw=; b=YsJOaByGxkVsWmlo3S060z6DNQE5Lpo0T52+WHe1QFVq1Np/PzH3I0i2xuV7aTMy/u Q1kmPlvlBiL69lnqJu3XUV9IHW/Y6GcTXKhgAM1qqT6wqsIj5rTBMmRmp21nuQFG5MpD iNDjQwEKh+b1yixh5b2jucpDw07D4LnYEuF4EtPK1iwjS7YEAgim+pnTWQT4rzvu5NL8 bCGymTsqjS6dXsUCatOsKzhYDnZN9c/0eSSoQEMulK5c5H8EhwhsC1SKteesQcz9uWMN vazLu5uvqbP7OcmwtOu9xS+UARj3g9EIIvGU+mCXuoaLWkhMFQXOoBhGr1GnHmDWLZHl qXwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KojlstE2lgoa7NRwY6/3wf4IDjFuyhSCMnLIbiB/VXw=; b=kQLUpWTLKrkj92oFTMuFEFdeISYTIlNu1Vl+XDDEPMoKHj6iJoRxeVig54iq9qM9Um 5TxXq6CiFtL8mtPYs4B271rDpQj48wDVBIKxx5MsevNrmIiigVAwbKQfB77LfF7pPehK cdUDcPvCO83EG4SDyifZ8cBV9k/aI/LfVpLdXrPU7TYz7n9vjo12yfAZ7daclHSAh9d9 DnpjD5pGqy/t5WTf10sIcsr68NbnDO1mRl2NSCo/Wb2JDSTQZCwQrDbIL1oPNhb1bGi9 nfwD9j8yTs21gyemfRM/qZ6TfKOD9x1+sArdQJwjNTjjN8T2gpHfjtw5nOxD1Cu1XU5C qKMg== X-Gm-Message-State: AOAM532kpGQmDYS8sGmBN4PX7m4FGBygpNbfHwLWI5f2k0wS4ynz9IHd MWj/HL4C3MofEHKwBdw0+9ApRfH7LzTqkF14Pck= X-Received: by 2002:a25:5d0:0:b0:61d:932b:6fc0 with SMTP id 199-20020a2505d0000000b0061d932b6fc0mr8506142ybf.585.1645812261673; Fri, 25 Feb 2022 10:04:21 -0800 (PST) MIME-Version: 1.0 References: <20220225145432.422130-1-pgwipeout@gmail.com> <20220225145432.422130-3-pgwipeout@gmail.com> <5cca79dc-619c-a162-e850-b3efd4dc746d@gmail.com> In-Reply-To: <5cca79dc-619c-a162-e850-b3efd4dc746d@gmail.com> From: Peter Geis Date: Fri, 25 Feb 2022 13:04:10 -0500 Message-ID: Subject: Re: [PATCH v1 2/8] dt-bindings: usb: dwc3: add description for rk3568 To: Johan Jonker Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , linux-usb@vger.kernel.org, devicetree , arm-mail-list , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List , Michael Riesch Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Feb 25, 2022 at 11:07 AM Johan Jonker wrote: > > Hi Peter, > > Lots of USB series all of a sudden. > Combine possible? > > On 2/25/22 15:54, Peter Geis wrote: > > The rk3568 dwc3 controllers are backwards compatible with the rk3399. > > Add the device tree description for it. > > > > Signed-off-by: Peter Geis > > --- > > Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml | 7 ++++++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml b/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml > > index 04077f2d7faf..e3044e81cc72 100644 > > --- a/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml > > +++ b/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml > > @@ -30,6 +30,7 @@ select: > > enum: > > - rockchip,rk3328-dwc3 > > - rockchip,rk3399-dwc3 > > + - rockchip,rk3568-dwc3 > > required: > > - compatible > > > > @@ -39,6 +40,7 @@ properties: > > - enum: > > - rockchip,rk3328-dwc3 > > - rockchip,rk3399-dwc3 > > + - rockchip,rk3568-dwc3 > > - const: snps,dwc3 > > > > reg: > > @@ -75,7 +77,10 @@ properties: > > maxItems: 1 > > > he > > reset-names: > > - const: usb3-otg > > + items: > > + - enum: > > + - usb3-otg > > + - usb3-host > > The use of reset-names is "sort of" only related to the rk3399 legacy > node. Still using this sub node DT to not to break older existing boot > loaders. > > https://github.com/torvalds/linux/search?q=usb3-otg > > It's only mentioned as comment in dwc3-of-simple.c but not used: > > simple->resets = of_reset_control_array_get(np, false, true, > true); > core.c uses something similar. > > dwc->reset = devm_reset_control_array_get_optional_shared(dev); > if (IS_ERR(dwc->reset)) > return PTR_ERR(dwc->reset); > > > Up to the maintainers, but I wouldn't add another variant/name for the > same thing as it also optional(= not required) and no longer needed. I left these named separately since they are different reset signals, but if it isn't an issue I don't mind having them both be usb3-otg. > > Johan > > === > > Maybe drop PCLK_PIPE as well to reduce notifications. I'll be conducting testing to determine if we need PCLK_PIPE here, and as long as it isn't working simply because it's enabled by someone else I'll drop it. Ideally, it would be nice to have a proper clock map for these chips, but currently that's not in the TRM. > > See example: > https://lore.kernel.org/linux-rockchip/20220225131602.2283499-4-michael.riesch@wolfvision.net/T/#u > > > > > unevaluatedProperties: false > > Thanks for the review!