Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2212817rwj; Sat, 24 Dec 2022 10:40:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXtC3wGysj7auB+y+2B4moTXyUDFE9z1dlBtI4cnMT9ehdBwYDe/o3AA3XBrov6wZq3ZtFjz X-Received: by 2002:a17:907:d407:b0:7ad:f962:dba1 with SMTP id vi7-20020a170907d40700b007adf962dba1mr13148432ejc.53.1671907254076; Sat, 24 Dec 2022 10:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671907254; cv=none; d=google.com; s=arc-20160816; b=Nl1LyvoDij5ip0bypTVHP4qBnC86n56CT6brhx88UFxNt0TW83qTxR04VXAVWrOiRx JnqxfxkO6svKpdKk7NnBBGgirwI+BJnlRgNQGjidA7GocoBBPgkYn31qaY/64E7gL8jp CzfL9nSPAKhdnzBR45pSupBvCS7N/aen5y4j8qWMtriUF7FnbQnT/prxfLTfpO0ePPVY 3ehHGiI2vmDr5Kp+m5UnHKHbG1Q0xrWsQtkbFv9qs74CjPZiBYZZo+8M8oWjJHRoW0ud qQ7hzi91FbnhzsM6rb1koEUmIES1TS5WPTse/M39gdQvPDoFN23ea1F4trfXONc78Jns Y69w== 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=hKAhdqDQc36oPlbGRzOxcQUNmEt1xQYKXsGLt45iZ9U=; b=fy3fvB4aNXWQxV7wEaLE6muR3tnF9fohJY5efaAl/45uYa6RQhnqdCIDleZTzSa8tj H5inGuVC29q3VXNG5Aqv0b8Bk8SS5+fgOyL1i2tNE4N/eVKtSI7bfMscP5HFl83QKAHk 84FezTsx44ChZb8KRe4iXtjtzTH1zbJZEuE3CoV3J2a/paYO+dYN1+1yHUa5lsYIbiEY 9dXqFtNgP0qBKWu3cCsuN07T80YmYoMb2svyKTGIdct+tk99MbqMkSaDJNqXR3Y+bZje LcCh/sCBAuGv8zUoIEyRNzA5MI2AFR/z5jf1SJkzQHWUQHxj2D+04/Y/Lt2O/wohgRGl SY3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I0oe+9V1; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xc1-20020a170907074100b007c14e6f3ae8si5099197ejb.473.2022.12.24.10.40.29; Sat, 24 Dec 2022 10:40:54 -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=@kernel.org header.s=k20201202 header.b=I0oe+9V1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231406AbiLXRhz (ORCPT + 67 others); Sat, 24 Dec 2022 12:37:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbiLXRhx (ORCPT ); Sat, 24 Dec 2022 12:37:53 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 386ADB495; Sat, 24 Dec 2022 09:37:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 650AAB8016A; Sat, 24 Dec 2022 17:37:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FE2EC433EF; Sat, 24 Dec 2022 17:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671903468; bh=nYcWuSjcESsZ5VXztzLbQ7LJL41H+JOcVMbwnylZLtg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=I0oe+9V1xS1zeEMkIdc2aXawFTFIA/31l/cmCGZJvHg+mQAP97w/P+vTQ0yGyZ2Dx mPsYePJweuwyrz44F+JqAYl9K6Vvnlx7K7U5TMbOZDQQ7ZGAa3jeoL7i90Sj4VlQE1 CXGK/8PJzpw3hRmZG/pTvbkGpD8Qw6UTzaV6q0A8QvuI27X4eRs2mgTQqG1rwIR54O dFf2iwhA25N62OG0W/1HAwrWVNmOuyQiVe8YsqkMDo8M/Uwa9ALxmKM8BKWlLOCUrX xjdx0aqODD0RuqhjeLh3TsPeoXgyCleLJDryf9paD+n0Rv/OMJMUHeD31gDfA7e6rh JcY+sioFWx60g== Received: by mail-vs1-f41.google.com with SMTP id a66so7113933vsa.6; Sat, 24 Dec 2022 09:37:48 -0800 (PST) X-Gm-Message-State: AFqh2kpHYMXCmyOZn68wL8ttc8Ku4GWR6uz6hQeKYGTkyC3uKK/oSzfv enNU/EHp2p9Wo9KOvBBINmMOUeS5PLLWXn2lRg== X-Received: by 2002:a67:fb05:0:b0:3bf:754b:15c5 with SMTP id d5-20020a67fb05000000b003bf754b15c5mr1661989vsr.85.1671903467016; Sat, 24 Dec 2022 09:37:47 -0800 (PST) MIME-Version: 1.0 References: <20221219191038.1973807-1-robh@kernel.org> <87edsua5q4.fsf@balbi.sh> <878riy9ztm.fsf@balbi.sh> <20221223235712.h54lggnjjuu3weol@synopsys.com> In-Reply-To: <20221223235712.h54lggnjjuu3weol@synopsys.com> From: Rob Herring Date: Sat, 24 Dec 2022 11:37:35 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: usb: snps,dwc3: Allow power-domains property To: Thinh Nguyen Cc: Felipe Balbi , Heiko Stuebner , Greg Kroah-Hartman , Krzysztof Kozlowski , "linux-rockchip@lists.infradead.org" , Johan Jonker , "linux-arm-kernel@lists.infradead.org" , "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 On Fri, Dec 23, 2022 at 5:57 PM Thinh Nguyen wrote: > > Hi, > > On Fri, Dec 23, 2022, Felipe Balbi wrote: > > > > Hi, > > > > Rob Herring writes: > > >> > The Rockchip RK3399 DWC3 node has 'power-domain' property which isn't > > >> > allowed by the schema: > > >> > > > >> > usb@fe900000: Unevaluated properties are not allowed ('power-domains' was unexpected) > > >> > > > >> > Allow DWC3 nodes to have a single power-domains entry. We could instead > > >> > move the power-domains property to the parent wrapper node, but the > > >> > could be an ABI break (Linux shouldn't care). Also, we don't want to > > >> > encourage the pattern of wrapper nodes just to define resources such as > > >> > clocks, resets, power-domains, etc. when not necessary. > > >> > > > >> > Signed-off-by: Rob Herring > > >> > --- > > >> > Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 3 +++ > > >> > 1 file changed, 3 insertions(+) > > >> > > > >> > diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > >> > index 6d78048c4613..bcefd1c2410a 100644 > > >> > --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > >> > +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > >> > @@ -91,6 +91,9 @@ properties: > > >> > - usb2-phy > > >> > - usb3-phy > > >> > > > >> > + power-domains: > > >> > + maxItems: 1 > > >> > > >> AFAICT this can be incorrect. Also, you could have Cc the dwc3 > > >> maintainer to get comments. > > Felipe is correct. We have 2 power-domains: Core domain and PMU. Power management unit? Performance management unit? That doesn't change that the rk3399 is 1 and we're stuck with it. So I can say 1 or 2 domains, or we add the 2nd domain when someone needs it. Rob