Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6963182rwl; Fri, 30 Dec 2022 01:04:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXsRVzhqsbXitkRC2/2hIyZJw9UI6C43wjUe3QzLaUV5sWx9SxcAZLC/y1JLuLLJRHNLUneD X-Received: by 2002:a17:90a:1957:b0:225:a78a:942f with SMTP id 23-20020a17090a195700b00225a78a942fmr33892435pjh.5.1672391060168; Fri, 30 Dec 2022 01:04:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672391060; cv=none; d=google.com; s=arc-20160816; b=OIZ+IuaF5RWMZtYVfDugQ5PgGY3Fn1GSJIpScafJhx+iKEYm4LSF2zbCfBTozsw5t5 C7X5/a3TqRZkWlkOrIH8zPQ8fnuBvHPI3LbbfE7GoIIP9S5jw6DGggfOhfoN31XHoh77 lfcGBPfizUiI3HK0GZEpYvWR2xCT/GpeqHf8hRoAXL9J86yEp7BIP8ZAaOw+j2vzYVox O5OyHFDP+4Gc7qdlace8c5RLtN4SUWbgrjK3aXKqEWbxMdkpBtzEC/THW2AjT/ONkDhi YxocPp9Sqrz+6E0aZj+H6W5HQOotN0NQy6cBPnf39C55rs6BWNNqDAJ5Pn/oA9Q4ZDRj edoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=2rZQoWDkCniqJREpRoUJmEShL/unXZdDtCWyDztVSg8=; b=RkYfawS1mDnw/78vCE7HXx2M+OntmBfVgzW5RoXRz19544ixnJGOS164LgYQq84JEC efJM5NPrWWLIPE0t4zmjjx6O9yGoomHRXwnaXFjGDafcHMSgC+n26QwecZW8LR2LfCeU q223KVSggQ33ic/BqKeXnhu9UeY4LG7ndQ2SNmKTf+9MYEoSt+0ynQkojtBwU0mKJGD8 km2wCbkge/cON3x4SJZTaUrgt8ll3G7yIBUEBk6nE95argwo2x2BYwJPSDoR3ocfbfsJ AAsEWdMtMTX8EzMdn4LVUau29lcia33rVbUiA7yakiAO3EbsZ73mcfpyyjtLHO8n7pVC PTlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=roDK69Sf; 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 l7-20020a17090b078700b00219c87a6928si19709263pjz.90.2022.12.30.01.04.11; Fri, 30 Dec 2022 01:04:20 -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=roDK69Sf; 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 S234837AbiL3Inz (ORCPT + 64 others); Fri, 30 Dec 2022 03:43:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230316AbiL3Inw (ORCPT ); Fri, 30 Dec 2022 03:43:52 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60B4918E36; Fri, 30 Dec 2022 00:43: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 dfw.source.kernel.org (Postfix) with ESMTPS id E5FBB61A0D; Fri, 30 Dec 2022 08:43:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D86AC433D2; Fri, 30 Dec 2022 08:43:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672389830; bh=oxPX55GSzrEg4Xut6zu5HPxj2Ni8vtV2mF93cd30lns=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=roDK69SfgitggRUmVYhS1zUe2p+s9s47eId7r7uDqmn66uyeyQS7KtAAgRa1c8/OO Wl26PgoSJLBGjFFLhssXINx0Wz7ZM5ueJIvqltcGObsUGXUCLeDATQZn7lxDWsOdhu qhtYL+x7ynbWQj5eCAE63YIAXkN7PQWC13jfG0fTgWagj0LhwbtzLAL/cBDw1YnLtg Y+6jYrOa7UTTB3JkKQIpoV76+3fBhJc/JEa0BO/xvlpmBq+T4Z/54tou5W/e1VO/f8 qN+nan6MDluay6Hl3ME4LQmmYow8WdR5YalsUzIl8eCJe/e9PQ2fMenyJqIwmJe4ro guFTz/dtfpyeQ== From: Felipe Balbi To: Rob Herring , Thinh Nguyen Cc: 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" Subject: Re: [PATCH 1/2] dt-bindings: usb: snps,dwc3: Allow power-domains property In-Reply-To: References: <20221219191038.1973807-1-robh@kernel.org> <87edsua5q4.fsf@balbi.sh> <878riy9ztm.fsf@balbi.sh> <20221223235712.h54lggnjjuu3weol@synopsys.com> Date: Fri, 30 Dec 2022 10:43:44 +0200 Message-ID: <87o7rlffi7.fsf@balbi.sh> MIME-Version: 1.0 Content-Type: text/plain 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 Hi, Rob Herring writes: > On Fri, Dec 23, 2022 at 5:57 PM Thinh Nguyen wrote: >> > 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. Isn't the snps,dwc3.yaml document supposed to document dwc3's view of the world? In that case, dwc3 expects 2 power domains. It just so happens that in rk3399 they are fed from the same power supply, but dwc3' still thinks there are two of them. No? It's a similar situation when you have multiple clock domains with the same parent clock. -- balbi