Message ID | 20230118193056.673514-1-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2522826wrn; Wed, 18 Jan 2023 11:33:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXtrbqEWoxbmVR2x7o+8717cUkLxCcN6K0rExiLlhE9lZQaP+4Nas+og4isvRxcjuXw3LI5D X-Received: by 2002:a05:6a20:b721:b0:b8:77dd:6b97 with SMTP id fg33-20020a056a20b72100b000b877dd6b97mr8072737pzb.3.1674070398066; Wed, 18 Jan 2023 11:33:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674070398; cv=none; d=google.com; s=arc-20160816; b=xhAgBR0bo5IQyFHYpn81naFrKXTkcE/faFPKkONsGl+uRJKu3TdDmCicm1rMY4n3P+ DK5C36ebmuiZPZNo4UAMmwt6TjQe+Qhh7pkvZzPSx+mjGudfDr+3D+BuO8e6E7s9L7dZ pxSNgBuNiBhKkrCp/GwfaadysniJNzXyQFnnOX5Y+B295zCerjFJFsz3a/zQzkQvR1Fx G5ZrG+jEGHc3wHTYN375KsDSERanwqrgaQmYU9R2pd/z1E1F0zO2aexvVkVnaDZdzQ2a romV+sJL+PDK4DLtpg7A7kLuq9KtDiHFPu7xIM71JMPMZvg0376np2/ZYT4Sx3ckfh5S KzOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=L0sk6WSE6h2ySUyFVnUkIwye39tqP2uFGs/tVLLc9YM=; b=u5+kSvpZHMnveNQ9cBHHV03JES1Tf9HihO4NpVvq0/3rwlIxDKp3UbA48n42DExMBW rbjYbjHyW3cdH9qWF9UM1dMOaHOfQzSV4YWUHMImfBGMWXU2ePFHhIB2LGG+2ywkX+Pr FZ7sEirLI1bH4VWrZFlb+LeQBsfjduuELQHHiJYyV2lwHWcW2Xb1K+mUz/M7b+5IhdXe T6Asl0pG52NpGCGYkQF84cB2Ij4DtDQLsUu3axO+btwcCuqSv6dTmRO5G1AwSLxbkgDC yKHo/MWDlAFp2GrFHr6A/5rjQpacmh/ldXNCHC7i9kYmd/YqFmCcPJKsUIAy2MN1Aax6 Zkqg== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a170902ce9200b001949b91518esi9010276plg.17.2023.01.18.11.33.03; Wed, 18 Jan 2023 11:33:18 -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; 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 S230050AbjARTbs (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Wed, 18 Jan 2023 14:31:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbjARTbL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Jan 2023 14:31:11 -0500 Received: from mail-oa1-f47.google.com (mail-oa1-f47.google.com [209.85.160.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E90EE5529B; Wed, 18 Jan 2023 11:31:02 -0800 (PST) Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-15eec491b40so14379fac.12; Wed, 18 Jan 2023 11:31:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L0sk6WSE6h2ySUyFVnUkIwye39tqP2uFGs/tVLLc9YM=; b=GbUUEGHKYs7yUxTUj2T6CBo45/8GXSZiZEwaS2E8y3Otjfyap5m91qemhsyKvmKd/9 oGV9GVmm5S/k62QuR63NOkL7Tu5+XU7/I+bTfKwyJaU9d0eNIiB0SUdxAtZBPLbH3zbY nyZKiEZlpQshAkJGD3LtUtqnhvFS7JA+epWquLd+U3WcZhVkuGJS7bjXZSIhDW37jZgA 6wKGyL75NaD2rFVr8DqdVnv0ZhI8NoB63Lkch7fJNScmwadATAA2uU/g0E9tl9V4rJML gqBTnE5UA75Ym3ZCIrru9toaTYH8wt3C1NWMf4oqAEcGlILc9JDj8h0U3ghgg0Lppp57 l6mQ== X-Gm-Message-State: AFqh2krhcHgVxOQ9vulo7NvNqAOQzL6TqswcbnVaBPfuk3JNqkdKv8hv IVRj/0OVDzGfQkRWG1JJDw== X-Received: by 2002:a05:6870:bf0d:b0:148:3440:cfde with SMTP id qh13-20020a056870bf0d00b001483440cfdemr4472842oab.28.1674070262146; Wed, 18 Jan 2023 11:31:02 -0800 (PST) Received: from robh_at_kernel.org ([4.31.143.193]) by smtp.gmail.com with ESMTPSA id f18-20020a056871071200b0014f81d27ce3sm18948186oap.55.2023.01.18.11.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 11:31:01 -0800 (PST) Received: (nullmailer pid 673650 invoked by uid 1000); Wed, 18 Jan 2023 19:31:01 -0000 From: Rob Herring <robh@kernel.org> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Felipe Balbi <balbi@kernel.org> Cc: Johan Jonker <jbx6244@gmail.com>, linux-rockchip@lists.infradead.org, Heiko Stuebner <heiko@sntech.de>, Thinh Nguyen <Thinh.Nguyen@synopsys.com>, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: usb: snps,dwc3: Allow power-domains property Date: Wed, 18 Jan 2023 13:30:55 -0600 Message-Id: <20230118193056.673514-1-robh@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755390041696537280?= X-GMAIL-MSGID: =?utf-8?q?1755390041696537280?= |
Series |
[v2,1/2] dt-bindings: usb: snps,dwc3: Allow power-domains property
|
|
Commit Message
Rob Herring
Jan. 18, 2023, 7:30 p.m. UTC
The Rockchip RK3399 DWC3 node has 'power-domains' 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 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 <robh@kernel.org>
---
v2:
- Allow 2 power domains and explain what they are
---
Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
On Wed, Jan 18, 2023, Rob Herring wrote: > The Rockchip RK3399 DWC3 node has 'power-domains' 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 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 <robh@kernel.org> > --- > v2: > - Allow 2 power domains and explain what they are > --- > Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > index 6d78048c4613..be36956af53b 100644 > --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > @@ -91,6 +91,16 @@ properties: > - usb2-phy > - usb3-phy > > + power-domains: > + description: > + The DWC3 has 2 power-domains. The power management unit (PMU) and > + everything else. The PMU is typically always powered and may not have an > + entry. > + minItems: 1 > + items: > + - description: Core > + - description: Power management unit > + > resets: > minItems: 1 > > -- > 2.39.0 > Reviewed-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Thanks, Thinh
diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml index 6d78048c4613..be36956af53b 100644 --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml @@ -91,6 +91,16 @@ properties: - usb2-phy - usb3-phy + power-domains: + description: + The DWC3 has 2 power-domains. The power management unit (PMU) and + everything else. The PMU is typically always powered and may not have an + entry. + minItems: 1 + items: + - description: Core + - description: Power management unit + resets: minItems: 1