Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp545677lqs; Tue, 5 Mar 2024 09:08:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXwM0sQ+YNN411tHllFCCTX4uk7sxXKls1UDgABbuwb8sQ58duQU0+AEt1+C91z3NCaE3Yueq8blKyivh9mpeQZjmqxmRzQhxHdNIahug== X-Google-Smtp-Source: AGHT+IGfQMiHrkdXRoEjczadunLigwyhE8ZtI55pvBBa3yjBTVXmEc7jJqtJTEwjUMPAredtnakW X-Received: by 2002:a0c:e84d:0:b0:68f:a7ff:1106 with SMTP id l13-20020a0ce84d000000b0068fa7ff1106mr4327365qvo.13.1709658484648; Tue, 05 Mar 2024 09:08:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709658484; cv=pass; d=google.com; s=arc-20160816; b=GxwenLFWqRbAV6QMrMz5aWKXrbmdAYRErGCzqOkkKPu8UvLAekVm/8VhDOfVJnGojK 4bh5CoSzoXz+MgqlVzxbPiMMJALq1Doi5q7YoeNwIyzkeUyJ7Fi4TOFyzpQwLfcviTKl gpWdR70UPERvXCfOi52/5RzsukJMY56oV4WxuoVUyFYadZth3ZHx7Yektoj+gxub/dqN vwSQLGxA34X8DjLJOIblq3/uMYCR43ew+tQm25oQLHI8gFkST5bx9WkQmMehI/L+0un4 RXvszTpfgap53t40LB1C/r9jSs9sXj57MjX5cQ1YhwLWacPQdCiP2oXwvycLWV2VHTjr 8xHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=6qTdpRaahlDa9z2Zha5TherbMQ0/ES+OOUXltLCuc0Q=; fh=N0sZyLZyvGBhoK/lIs0kKBu5r9SNLFR/jIzIuyA6/kc=; b=OLwcU5/hkLqF7CWp10p/XUBLoy9LMi0SA0XYXUwMeioN0fU6XtXplRLB4Z7Q20EMMv CAToQUs40dlShL/bozhzF3CL1NyT/nz83bUnE8Qlcnr7+AibkbgbVnb364CX1Ku6TGmK 9Kxjgun5wH1mcmkCrzIgf6c5roK3bLatG8wfMXBGGGGqQgprVxic//s6Xjae5WMksr9l 2TbFVDzipW3opcXdZ+1XkjFfnmoN6i02kyDfZFGkbLc8877SZAwWml0D2dnPlUMcg9pf ojbTvkAoXrKpQDOLeyl5/BfLIAuaknDj/xOlTEq6vdF8VPEpwX4ngsY6iqZ/EMUOet6P y3UQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WxVV/cxx"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-92738-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92738-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q14-20020a056214194e00b006903ca2ae9fsi12565765qvk.273.2024.03.05.09.08.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 09:08:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92738-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WxVV/cxx"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-92738-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92738-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5142C1C22EAB for ; Tue, 5 Mar 2024 17:08:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CD45171C8; Tue, 5 Mar 2024 17:07:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WxVV/cxx" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D47E14265 for ; Tue, 5 Mar 2024 17:07:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709658456; cv=none; b=lb6yJsuPSswDK+vU9MNXRc0iNnNY9Oel61Zr87ddahZgCar5Tq36sPhYH432E1TblvkMMjnA9UnVgIUNCwVob8ZItLFDDxNzizZhVVGaNz36WSmfIDdMi+5wrW/IJQiMQR5GLLqAufevBjD8B48qIPendoEWumyYocIuPcDjg10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709658456; c=relaxed/simple; bh=azV7+Zmb8h3Ad2kZ67JTx3veTnU4KDUstFIT2BaE0Og=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=Znh+mRLqihiGr4S7ladkLgqez6kgj1vuGEfpe2h0BU2zHnSHCYVmXqedjICuDHdWcMb+bxxSnogaMU+/g81XV1lYBp/z58LrWmubc9DqLGbZovyF6I6//YUyHf7boRvxTvfoaKU1zVMGHOAOcgYoF16Nu2GDfLYe9coI7U8p+GY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=WxVV/cxx; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a293f2280c7so1024732566b.1 for ; Tue, 05 Mar 2024 09:07:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709658452; x=1710263252; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6qTdpRaahlDa9z2Zha5TherbMQ0/ES+OOUXltLCuc0Q=; b=WxVV/cxxZ4H7/Qzj7yDbImosoikH79ap3VUOnFC65D7BZYnsjAXwYSIiLskbvO5hUZ epyROsdEUYnyr7TDBS56CUkgRiJRaaWMCbZMUYDQGoHTSzw6PUzXCbzLDoQL5QLy94aE ZrsPVtT6pf9k++tJrpSkuCiLQBH7OrQXTJolQLC8oDlPqQcW27ByW8a4d9fZ5t962tgE ioeihkUdaHOOZDiezZOM4xpgPydAm6sApVEcD9T8Sn1AhwTNa0NeSWYKYJTVs1lowL28 uyAekIK628WOz9QVxUTSLg3H1Ei4k2v5hNZPsP2hgV5WBHNkXxGZ8VE2NDxiCA/Garxz ZT2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709658452; x=1710263252; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6qTdpRaahlDa9z2Zha5TherbMQ0/ES+OOUXltLCuc0Q=; b=MS3cEy7BUEBUaEQ0Gd0oMZQ2bjOlMzb/MxEp/K+czaYaom0SDzx4Y/U/WQ1EqNrIcg YaS1uRBbglRKqt5g41a47LBXkTLxuClgfGqFUYY8SJwZ9Zk7AmuHn+Qe8qIXOHMLIwbu HzoEAmEsVDKnvFh8yJmLWAxowj1vC1FiHhSd15YS9E48h/IvwrCJIak9pORG46T8Phi/ Gwwhbk3osWRgqWmHeQxB4tIKOp8sU1tp/Sih1mBMPw7dytw13NWiFRaegMoOXR1/lF0c Y2ZT3mp1S405PbeERpb0lN70TN15mBN7rXHncjDKBVjaEYer7Wm8A1VolMqcK7RAYr5j NXVQ== X-Forwarded-Encrypted: i=1; AJvYcCUzYuEzKQQEOAtauNIk8YPLpX97cUYXlJXWsaevkk2v7pZv/F62C7A6UMIsYY/UauoCwiFxd91tFtJDM530HXwDHBKo2lcUFrkP44xW X-Gm-Message-State: AOJu0YwhDCwoUpSN7cnn21/H6Y0+buXKKbS4z/c5x7v5FmlvUI7rgind rNFahYTiQA/WL4B+tC4jvyEZBjGeSq2fqm/03rNPjH6gLx29dQRgKLPHR+3Z6UA= X-Received: by 2002:a17:906:37d6:b0:a45:b1fc:52d with SMTP id o22-20020a17090637d600b00a45b1fc052dmr389723ejc.76.1709658452223; Tue, 05 Mar 2024 09:07:32 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id o26-20020a1709061d5a00b00a44f6ce3e7fsm3709759ejh.77.2024.03.05.09.07.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Mar 2024 09:07:31 -0800 (PST) Message-ID: <86371fc0-ef49-4dc9-b98c-7c5131cd1227@linaro.org> Date: Tue, 5 Mar 2024 18:07:29 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 1/3] dt-bindings: usb: qcom,dwc3: Add support for multiple power-domains Content-Language: en-US To: Sriram Dash , andersson@kernel.org, konrad.dybcio@linaro.org, vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, quic_wcheng@quicinc.com, Thinh.Nguyen@synopsys.com, p.zabel@pengutronix.de, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, quic_psodagud@quicinc.com, quic_nkela@quicinc.com, manivannan.sadhasivam@linaro.org, ulf.hansson@linaro.org, sudeep.holla@arm.com, quic_shazhuss@quicinc.com References: <1709657858-8563-1-git-send-email-quic_sriramd@quicinc.com> <1709657858-8563-2-git-send-email-quic_sriramd@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSn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ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1709657858-8563-2-git-send-email-quic_sriramd@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/03/2024 17:57, Sriram Dash wrote: > Some target systems allow multiple resources to be managed by firmware. > On these targets, tasks related to clocks, regulators, resets, and > interconnects can be delegated to the firmware, while the remaining > responsibilities are handled by Linux. > > To support the management of partial resources in Linux and leave the rest > to firmware, multiple power domains are introduced. Each power domain can > manage one or more resources, depending on the specific use case. > > These power domains handle SCMI calls to the firmware, enabling the > activation and deactivation of firmware-managed resources. > > Signed-off-by: Sriram Dash > --- > .../phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml | 74 ++++++++++++++++------ > .../bindings/phy/qcom,usb-snps-femto-v2.yaml | 49 ++++++++++++-- > .../devicetree/bindings/usb/qcom,dwc3.yaml | 37 ++++++++++- > 3 files changed, 130 insertions(+), 30 deletions(-) > > diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml > index 1e2d4dd..53b9ba9 100644 > --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml > +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml > @@ -44,7 +44,32 @@ properties: > maxItems: 5 > > power-domains: > - maxItems: 1 > + description: specifies a phandle to PM domain provider node Please drop all redundant descriptions. Adding them is not even related to this patch. > + minItems: 1 > + maxItems: 2 > + > + power-domain-names: > + description: > + A list of power domain name strings sorted in the same order as the > + power-domains property. > + > + For platforms where some resource are firmware managed, the name > + corresponding to the index of an SCMI domain provider can be > + "usb_core" or "usb_transfer". > + items: > + - const: usb_core > + - const: usb_transfer How is this related to fw-managed? I fail to see it. Don't mix independent problems in one patch. > + > + qmp,fw-managed: Please do not upstream vendor code directly, but perform basic adjustment to upstream Linux kernel. There is no such company as gmp. Run this first through your internal review process. > + description: > + Some targets allow multiple resources to be managed by firmware. You miss clear mapping between compatibles and this property - allOf restricting it to specific SoCs. Is this different property than qcom,controlled-remotely? Best regards, Krzysztof