From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 D4AED1DE2A0 for ; Sat, 26 Apr 2025 14:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745676214; cv=none; b=bIMAwG1CErhxqOp2ApTuA21dBIIhTT0i60aqxHwAGPzoQmAVIhu4Ogo/RA+vST5suMWSgFcu3mVD19acnEXXLWBH9LdORs6F3dt/LwyT97a1ploQPp5Vmj9TekORG0bMJicU5FEedI+bQw974XBkzifR99+6LKNGXAcQEBQH0PU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745676214; c=relaxed/simple; bh=+/XlGJ40QyLJ1yxLqAsymj/3uMv2LvI3xGqt6JlJRkY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uGm74YtJoJ4pCWu/XP8kp5N1TtYzzDzdbp9WnvV2bmkZdPgWkjCT29g9N4ex3wg8lAy3mP/SwInhKN+CZ58KNDPX/7mm9feEIE97u2MbbKwvR6/JmAA/5Y3efWcqnuKmgNVNLpGe1MwLEucLOx2Sm5Sb77PcwmpVaOnUZAeBNcE= 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=axSbnKP0; arc=none smtp.client-ip=209.85.167.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="axSbnKP0" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-54d4ff564c5so502060e87.3 for ; Sat, 26 Apr 2025 07:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1745676211; x=1746281011; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vw+DsU15ptDiXJLxLZqHIzjz8lENUeO28XhBBnI/KzU=; b=axSbnKP0wzkqrG+zVQ4JMEx9nZm/UAJm+bWflfONPHvMKBEks3/n6M8P3IHkF1GTsD yRUGnayeerAJ4He7XxhCsDK+FWoel0bpLHpfILKT3nBBdzj0jenAfs65uYGGo6hHtZxS Ns6ZJ3SOC6pEvCd4Z8yDsAmIsbtaiEDyKWo3bSC4Xex9D2JN6nEhIk55D9+v3R7f5Xxw RrSqqMHpXjJXLBokbDwlOfpynUmtriP5IEjuUJNW5v+ZXM5tL7AzsmsDQz2MMLevGRuh Mz8K5kcC5kYuvM0U+zQDIhhqQzr8qDKj5CgehznFpK3/XCUhJJVvjypAYG4p0JADtGXH ZF7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745676211; x=1746281011; h=content-transfer-encoding:in-reply-to:from:references:cc: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=vw+DsU15ptDiXJLxLZqHIzjz8lENUeO28XhBBnI/KzU=; b=gZ0/Qu9cWowf0J7Aj+NaGxgsnIb6GNVctaAi6lr8kFegEEFQJEX5cQRNILLBvLuHls d29Wh9SU7TFLoCGfvCnijd/j3P8TNeu8N29qIpQ6DC6RhLmPsQEiTlub+yPZgleF2YxP CibeMnxU2v13pvUv6uM9PO13/ePzT7iC1+xqhnf8VHv7ySliAduQyMz65zqbJi/5wbAO x6J2obGOi7lpdLuC9uGLQkOyFj3GVQKVpQGvfRwoD9yN+wMwHnYblrh+daTKEcuv6n1V PZF77Ei3USl+Xz3Zg925WUV3/PdakiMR09BlQPO9CUqpU93zIycTI8HBui9JKISuoh5k oUUA== X-Forwarded-Encrypted: i=1; AJvYcCULznpESWrMpdwA+sYViZLRqs6QKozye3919QnTDj5rOvf9j/75kor0ptBJtXX2240Lx+3v183xqtRfeUk=@vger.kernel.org X-Gm-Message-State: AOJu0YzXfcZe2I6DJUtK07Y3yOsW/R7y7J0AQfV7oPqw0Pjz1ori6NAF RNKDrzEsLqJNp1sQqQe1sxRT9SOcoTbLfq7pFwgQE9HAtjTZ9wEh4N+kS997e6k= X-Gm-Gg: ASbGncuJnObisDd7bkCL9Kt4ZMvwQOFj1nVpuDt4pE1719DBkYe9s98CZ9qIltHIaY0 0YcH8cu6qpT+lWBAKhjhFQGG/vlEoWWwDoZ8SYSlCAD+cYTmRK7cKvQbWbuRNY00updhl1A6aKH VHYLFH1av2EMgN0dP5rMFsmhLT8llwIa6lM37OH+6WOa/zShO2G5gCvuV+bKi6utzBrEyRjJOMC uFlXz3Y8uroVLYDbKLpd0fCS368kqXp5loVPORyYhL8fdFOJ9ln/9Z53HTAd01ifnmenWd8kVlb InpMPnq0sMKeH4OznTEyCxuX9eBaQLSTeZ8gceq2gJmaH39Dab8A28Qx6hRSssF+o6JxAovDn6o Whw9wCtmXTEtTg3KzwfM6IaQMVrTErw== X-Google-Smtp-Source: AGHT+IF1Ip7CcXoeKnygcwDIVwoNCBJjRB68C/jdSo6GKg66tIbe4aPB/aVZwdQypXq6CJVRBvutGQ== X-Received: by 2002:a05:6512:3d9f:b0:549:8b24:9884 with SMTP id 2adb3069b0e04-54e8cbd53d5mr523947e87.4.1745676210813; Sat, 26 Apr 2025 07:03:30 -0700 (PDT) Received: from [192.168.1.4] (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54e7cb2633asm1000722e87.10.2025.04.26.07.03.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Apr 2025 07:03:30 -0700 (PDT) Message-ID: Date: Sat, 26 Apr 2025 17:03:29 +0300 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: [PATCH 1/3] dt-bindings: clock: Add Qualcomm SC8180X Camera clock controller Content-Language: ru-RU To: Satya Priya Kakitapalli , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: Ajit Pandey , Imran Shaik , Taniya Das , Jagadeesh Kona , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250422-sc8180x-camcc-support-v1-0-691614d13f06@quicinc.com> <20250422-sc8180x-camcc-support-v1-1-691614d13f06@quicinc.com> From: Vladimir Zapolskiy In-Reply-To: <20250422-sc8180x-camcc-support-v1-1-691614d13f06@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/22/25 08:42, Satya Priya Kakitapalli wrote: > Add device tree bindings for the camera clock controller on > Qualcomm SC8180X platform. > > Signed-off-by: Satya Priya Kakitapalli > --- > .../bindings/clock/qcom,sc8180x-camcc.yaml | 65 ++++++++ > include/dt-bindings/clock/qcom,sc8180x-camcc.h | 181 +++++++++++++++++++++ > 2 files changed, 246 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/qcom,sc8180x-camcc.yaml b/Documentation/devicetree/bindings/clock/qcom,sc8180x-camcc.yaml > new file mode 100644 > index 0000000000000000000000000000000000000000..b17f40ee53a3002b2942869d60773dbecd764134 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/qcom,sc8180x-camcc.yaml > @@ -0,0 +1,65 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/qcom,sc8180x-camcc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Camera Clock & Reset Controller on SC8180X > + > +maintainers: > + - Satya Priya Kakitapalli > + > +description: | > + Qualcomm camera clock control module provides the clocks, resets and > + power domains on SC8180X. > + > + See also: include/dt-bindings/clock/qcom,sc8180x-camcc.h > + > +properties: > + compatible: > + const: qcom,sc8180x-camcc > + > + clocks: > + items: > + - description: Board XO source From sc8180x_rpmh_clocks[] in clk/qcom/clk-rpmh.c I get that there is RPMH_CXO_CLK_A clock also, shall it be added to this list then? If yes, and taking into account Konrad's ask for GCC_CAMERA_AHB_CLK, it implies that the new dt bindings can be omitted, instead please consider to add the 'qcom,sc8180x-camcc' compatible into qcom,sa8775p-camcc.yaml. However still there is a difference, qcom,sa8775p-camcc and qcom,qcs8300-camcc does not contain 'required-opps' property, it might be an omission over there though, please double check it. The ultimate goal would be to get a shorter list of different camcc dt bindings. > + - description: Sleep clock source > + > + power-domains: > + maxItems: 1 > + description: > + A phandle and PM domain specifier for the MMCX power domain. > + > + required-opps: > + maxItems: 1 > + description: > + A phandle to an OPP node describing required MMCX performance point. > + > +allOf: > + - $ref: qcom,gcc.yaml# > + > +required: > + - compatible > + - clocks > + - power-domains > + - required-opps > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + clock-controller@ad00000 { > + compatible = "qcom,sc8180x-camcc"; > + reg = <0x0ad00000 0x20000>; > + clocks = <&rpmhcc RPMH_CXO_CLK>, > + <&sleep_clk>; > + power-domains = <&rpmhpd SC8180X_MMCX>; > + required-opps = <&rpmhpd_opp_low_svs>; > + > + #clock-cells = <1>; > + #reset-cells = <1>; > + #power-domain-cells = <1>; > + }; > +... -- Best wishes, Vladimir