From patchwork Sat Dec 30 00:05:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 183960 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp2856124dyb; Fri, 29 Dec 2023 16:06:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYvm3D+S5f6iEyNdxKeGeY9HVcgI4sxq6nKHLPm1FIjMxataYcYqBOrZvvRWFDHQv2mI5D X-Received: by 2002:a05:6870:b28a:b0:1fb:75c:400a with SMTP id c10-20020a056870b28a00b001fb075c400amr15919178oao.106.1703894772719; Fri, 29 Dec 2023 16:06:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703894772; cv=none; d=google.com; s=arc-20160816; b=RNBHPCZf4cbkRt0j4a/MW3/0W4VfS+LIKyXpjM/A0NdBZHCRTcGqe7NuDulfr3uIU7 5RfsB8T8CuKX1x8LJwEDAuDHAWrxoNgzVCs1VJvEBwPzPm5IYjbr2D2wiW6aNNe07XGf AM2SVktZDyVNwY8e44JxnCn5nuzX4bUSggS0oUa2QcjQ+IyWAcqCxrkCLsfqQFbouTPS QatWR44smZtoEydwI81bH61H3e6QIUM0Xw9ASUgj4GeNQyqZgRBajQcxDjuYunaCIKYW hWLsx9Lhm6hW5R2wasmNEG0JhHl6I1UGwpCXultoSFD6QUzRZZqWA9H2Oyu2CrQNjuPc YvMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=8FrB087Wxc7YUxgxR36o8RYypzFH7Y/v8MFiKZG/oMY=; fh=5QK1rh7VGKoSXX39AsKq/sVNxj7melNvWk3JL5hTkXg=; b=LsxR5BO3ZiRzBsvl9GYOtiCO7wFPqTV+TYx8SC5HlWGWuSeCjLUMqi8Qg9nN19buSp LJmG3xNd0Sad0k+NfWlBZsI0iD+iTivYgdD4npl6qlMjtpCHxj6jnm1vfqwjr2llpNtw 77oLlVcoesfPwNDQBNuxZ7WSkfO4NPmJ1I7g6Fal5LpDIDgv78dCxWL9KA0YQA3gTr/+ 9BJcN2eTi4FhATlsp68Agop0DD8Na/eZSrZ9PZfCQuIAtzBUjPuIaDRTKAG1fz9q+qRs 6o57Hn7JTkSRBnidFEifyeS0U3QoDbfzCAwxNMwyeBbTNdNKGEKZLG9EOS6ccfGt2lp7 SsCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wRqi7/e3"; spf=pass (google.com: domain of linux-kernel+bounces-13283-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13283-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e4-20020a63d944000000b005ce00b1ef79si11511200pgj.289.2023.12.29.16.06.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:06:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13283-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wRqi7/e3"; spf=pass (google.com: domain of linux-kernel+bounces-13283-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13283-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 55637B2223A for ; Sat, 30 Dec 2023 00:05:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D99493FE3; Sat, 30 Dec 2023 00:05:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wRqi7/e3" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 B31C739E for ; Sat, 30 Dec 2023 00:05:09 +0000 (UTC) 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-lj1-f181.google.com with SMTP id 38308e7fff4ca-2ccbbb5eb77so49512161fa.2 for ; Fri, 29 Dec 2023 16:05:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894708; x=1704499508; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8FrB087Wxc7YUxgxR36o8RYypzFH7Y/v8MFiKZG/oMY=; b=wRqi7/e38kjNV/EzDUt/RgHSrSgjecukZtMXqGIX47uJdmWvxyTY/8o/+31sj/r1ZH ZX/1h2Ti5tLzTMcJx77QGEmQVRMehUKreOHQN5Mx0HlMoN9ZxpbW3dPxwLrKrqpYXlju AeALO5JDAE/q+sBh3mcPymKOk6AtPMHqfUlxlJEBjpfa8yDmkBCqeDWmCpkXkGMfqppp FCTbWpCeY0vJHKDPNiE1MiWtwvOHq5U9FUlI5csVDyRa3HMAasFH4gDLRqXfqNqqD5VW VFcwaFqAZf+/JXikgP7HP1JionaMs7eCSicKFY5RqfvuMJLlPQmmjMtjgx4p8B/+T3B+ BUAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894708; x=1704499508; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8FrB087Wxc7YUxgxR36o8RYypzFH7Y/v8MFiKZG/oMY=; b=hzYcrMKTyfiN5pR4l0fCfH97lURuBRNUka8l4xuKQ3HEBBbLb6/wMY33089qGt3k/1 xR+bdGmJ5sPwE9klqTwvbsfELf1Jt4fwASMIME8y9/V9Hc5fAh2x0ue1I3eI+nzSckiE ZAOVS+WBObQGJs/v4CRSodc8bGgTgIoswtt35BYQDFW09NMVoEHfLetAqvTBYyc61XLD EdMW/TSB/ZxWjI8fXILF2GGgvaKWr1lWD2T7Rj6mQVwzX9zXtbluEAOjjlVypTA8KbxY 77QcfVcF1335Jq/mXSbHay9yreEy7drTTgJISA7sBHlEbKyHo+nPnQQEC1juPZNRtYOH 652w== X-Gm-Message-State: AOJu0YyrwAf80kRMuP50u8j6onpqIdgo7GcmzzcIGslKXZ9HlkDkdEMU YlAhUins4BJtuBVRGVlHp71NhCV7xDS7XQ== X-Received: by 2002:ac2:4c4e:0:b0:50e:885d:4d1a with SMTP id o14-20020ac24c4e000000b0050e885d4d1amr2495677lfk.93.1703894707814; Fri, 29 Dec 2023 16:05:07 -0800 (PST) Received: from [10.167.154.1] (178235179036.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.36]) by smtp.gmail.com with ESMTPSA id wj6-20020a170907050600b00a26a0145c5esm8609623ejb.116.2023.12.29.16.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:07 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:02 +0100 Subject: [PATCH 01/10] dt-bindings: clock: gcc-sc8180x: Add the missing CX power domain Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231230-topic-8180_more_fixes-v1-1-93b5c107ed43@linaro.org> References: <20231230-topic-8180_more_fixes-v1-0-93b5c107ed43@linaro.org> In-Reply-To: <20231230-topic-8180_more_fixes-v1-0-93b5c107ed43@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1703894704; l=1455; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=EUFmaZVLsy2eKPdw1XRmfhHY9zTvCfCahSEoyNR/DAs=; b=I2aj2RRwuDf5hoAahsDQJFfeq4V502Q5JD7r0SaMt3xBsmDWkIWZd6hWvHdvWZwKgad5/5ihT tLvzdi/rb+kCweiPlNERqaQcMo5yjGj0bjq5A3JAPNayy3DAn1Xj529 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786663165151373715 X-GMAIL-MSGID: 1786663165151373715 The GCC block is (mostly) powered by the VDD_CX rail. Allow specifying it in power-domains. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml index 6c4846b34e4b..a1085ef4fd05 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml @@ -31,10 +31,15 @@ properties: - const: bi_tcxo_ao - const: sleep_clk + power-domains: + items: + - description: CX domain + required: - compatible - clocks - clock-names + - power-domains allOf: - $ref: qcom,gcc.yaml# @@ -44,6 +49,7 @@ unevaluatedProperties: false examples: - | #include + #include clock-controller@100000 { compatible = "qcom,gcc-sc8180x"; reg = <0x00100000 0x1f0000>; @@ -51,6 +57,7 @@ examples: <&rpmhcc RPMH_CXO_CLK_A>, <&sleep_clk>; clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk"; + power-domains = <&rpmhpd SC8180X_CX>; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>;