All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Zapolskiy <vz@kernel.org>
To: Loic Poulain <loic.poulain@oss.qualcomm.com>
Cc: Robert Foss <rfoss@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>,
	Andi Shyti <andi.shyti@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH 2/3] arm64: dts: qcom: sm8350: Add CCI device tree nodes
Date: Sat, 7 Nov 2026 20:12:19 +0200	[thread overview]
Message-ID: <a3be2e35-13ee-4e8a-b231-5aa0326f6933@kernel.org> (raw)
In-Reply-To: <CAFEp6-3x9P7Q3+RESpMo7mKNYqn6ed0XswSJhhr1nFyHg-w22g@mail.gmail.com>

Hi Loic.

On 11/5/26 10:37, Loic Poulain wrote:
> On Thu, Nov 5, 2026 at 12:05 AM Vladimir Zapolskiy <vz@kernel.org> wrote:
>>
>> Add Camera Control Interface (CCI) controller device tree nodes and pin
>> configurations of the I2C busses to SM8350 SoC dtsi.
>>
>> Signed-off-by: Vladimir Zapolskiy <vz@kernel.org>
>> ---
>>   arch/arm64/boot/dts/qcom/sm8350.dtsi | 147 +++++++++++++++++++++++++++
>>   1 file changed, 147 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi
>> index a51942c99f8a..41dff3736061 100644
>> --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi
>> @@ -10,6 +10,7 @@
>>   #include <dt-bindings/clock/qcom,gcc-sm8350.h>
>>   #include <dt-bindings/clock/qcom,gpucc-sm8350.h>
>>   #include <dt-bindings/clock/qcom,rpmh.h>
>> +#include <dt-bindings/clock/qcom,sm8350-camcc.h>
>>   #include <dt-bindings/clock/qcom,sm8350-videocc.h>
>>   #include <dt-bindings/dma/qcom-gpi.h>
>>   #include <dt-bindings/firmware/qcom,scm.h>
>> @@ -2830,6 +2831,88 @@ videocc: clock-controller@abf0000 {
>>                          #power-domain-cells = <1>;
>>                  };
>>
>> +               cci0: cci@ac4f000 {
>> +                       compatible = "qcom,sm8350-cci", "qcom,msm8996-cci";
>> +                       reg = <0 0x0ac4f000 0 0x1000>;
>> +                       interrupts = <GIC_SPI 460 IRQ_TYPE_EDGE_RISING>;
>> +                       power-domains = <&camcc TITAN_TOP_GDSC>;
>> +
>> +                       clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>,
>> +                                <&camcc CAM_CC_SLOW_AHB_CLK_SRC>,
>> +                                <&camcc CAM_CC_CPAS_AHB_CLK>,
>> +                                <&camcc CAM_CC_CCI_0_CLK>,
>> +                                <&camcc CAM_CC_CCI_0_CLK_SRC>;
>> +                       clock-names = "camnoc_axi",
>> +                                     "slow_ahb_src",
>> +                                     "cpas_ahb",
>> +                                     "cci",
>> +                                     "cci_src";
>> +
>> +                       pinctrl-0 = <&cci0_0_default &cci0_1_default>;
>> +                       pinctrl-1 = <&cci0_0_sleep &cci0_1_sleep>;
>> +                       pinctrl-names = "default", "sleep";
>> +
>> +                       #address-cells = <1>;
>> +                       #size-cells = <0>;
>> +
>> +                       status = "disabled";
>> +
>> +                       cci0_i2c0: i2c-bus@0 {
>> +                               reg = <0>;
>> +                               clock-frequency = <1000000>;
>> +                               #address-cells = <1>;
>> +                               #size-cells = <0>;
>> +                       };
>> +
>> +                       cci0_i2c1: i2c-bus@1 {
>> +                               reg = <1>;
>> +                               clock-frequency = <1000000>;
>> +                               #address-cells = <1>;
>> +                               #size-cells = <0>;
>> +                       };
>> +               };
>> +
>> +               cci1: cci@ac50000 {
>> +                       compatible = "qcom,sm8350-cci", "qcom,msm8996-cci";
>> +                       reg = <0 0x0ac50000 0 0x1000>;
>> +                       interrupts = <GIC_SPI 271 IRQ_TYPE_EDGE_RISING>;
>> +                       power-domains = <&camcc TITAN_TOP_GDSC>;
>> +
>> +                       clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>,
>> +                                <&camcc CAM_CC_SLOW_AHB_CLK_SRC>,
>> +                                <&camcc CAM_CC_CPAS_AHB_CLK>,
>> +                                <&camcc CAM_CC_CCI_1_CLK>,
>> +                                <&camcc CAM_CC_CCI_1_CLK_SRC>;
>> +                       clock-names = "camnoc_axi",
>> +                                     "slow_ahb_src",
>> +                                     "cpas_ahb",
>> +                                     "cci",
>> +                                     "cci_src";
>> +
>> +                       pinctrl-0 = <&cci1_0_default &cci1_1_default>;
>> +                       pinctrl-1 = <&cci1_0_sleep &cci1_1_sleep>;
>> +                       pinctrl-names = "default", "sleep";
>> +
>> +                       #address-cells = <1>;
>> +                       #size-cells = <0>;
>> +
>> +                       status = "disabled";
>> +
>> +                       cci1_i2c0: i2c-bus@0 {
>> +                               reg = <0>;
>> +                               clock-frequency = <1000000>;
>> +                               #address-cells = <1>;
>> +                               #size-cells = <0>;
>> +                       };
>> +
>> +                       cci1_i2c1: i2c-bus@1 {
>> +                               reg = <1>;
>> +                               clock-frequency = <1000000>;
>> +                               #address-cells = <1>;
>> +                               #size-cells = <0>;
>> +                       };
>> +               };
>> +
>>                  camcc: clock-controller@ad00000 {
>>                          compatible = "qcom,sm8350-camcc";
>>                          reg = <0 0x0ad00000 0 0x10000>;
>> @@ -3348,6 +3431,70 @@ tlmm: pinctrl@f100000 {
>>                          gpio-ranges = <&tlmm 0 0 204>;
>>                          wakeup-parent = <&pdc>;
>>
>> +                       cci0_0_default: cci0-0-default-state {
>> +                               /* SDA, SCL */
>> +                               pins = "gpio107", "gpio108";
>> +                               function = "cci_i2c";
>> +                               drive-strength = <2>;
>> +                               bias-pull-up;
> 
> I had similar comments on a different platform, but why pull-up here
> (for SCL/SDA)?

Here the setting was literally copied from the downstream pad configuration
of CCI SDA/SCL lines, likely the same has been done for other platforms too.

> Do we expect boards to lack the external pull-ups
> required by I2C?

The I2C spec requires pull-ups, but I believe it does not require external
pull-ups explicitly, so there should be no contradiction with the spec.

> If not, enabling the internal pull-ups seems
> unnecessary. Also, what is their effective resistance on these
> platforms? Aren't they typically too weak to meet the rise-time
> requirements of most I2C modes anyway?

Likely you are right that the internal pull-ups alone are too weak to get
the I2C bus functional on higher bus speeds.

What's your preference on this subject, do you wish to see 'bias-disabled'
instead? I won't have objections against it.

-- 
Best wishes,
Vladimir

  reply	other threads:[~2026-11-07 18:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04 23:05 [PATCH 0/3] arm64: dts: qcom: sm8350: Add CCI and camera MCLK pins Vladimir Zapolskiy
2026-11-04 23:05 ` [PATCH 1/3] dt-bindings: i2c: qcom-cci: Document SM8350 compatible Vladimir Zapolskiy
2026-11-05  8:38   ` Loic Poulain
2026-11-07 14:27   ` Wolfram Sang
2026-11-04 23:05 ` [PATCH 2/3] arm64: dts: qcom: sm8350: Add CCI device tree nodes Vladimir Zapolskiy
2026-11-05  8:37   ` Loic Poulain
2026-11-07 18:12     ` Vladimir Zapolskiy [this message]
2026-11-09  8:46       ` Loic Poulain
2026-11-04 23:05 ` [PATCH 3/3] arm64: dts: qcom: sm8350: Add camera MCLK pinctrl states Vladimir Zapolskiy
2026-11-05  8:56   ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a3be2e35-13ee-4e8a-b231-5aa0326f6933@kernel.org \
    --to=vz@kernel.org \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=andi.shyti@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=rfoss@kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.