Add the sm6150 CCI device string compatible.
Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
---
.../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
index a3fe1eea6aece9685674feaa5ec53765c1ce23d8..cb5e6fd5b2ad1de79a9b29d54869d093c952d778 100644
--- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
+++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
@@ -33,6 +33,7 @@ properties:
- qcom,sc8280xp-cci
- qcom,sdm670-cci
- qcom,sdm845-cci
+ - qcom,sm6150-cci
- qcom,sm6350-cci
- qcom,sm8250-cci
- qcom,sm8450-cci
@@ -263,6 +264,23 @@ allOf:
- const: cpas_ahb
- const: cci
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sm6150-cci
+ then:
+ properties:
+ clocks:
+ minItems: 3
+ maxItems: 3
+ clock-names:
+ items:
+ - const: soc_ahb
+ - const: cpas_ahb
+ - const: cci
+
additionalProperties: false
examples:
--
2.34.1
On 22/12/2025 09:44, Wenmeng Liu wrote: > Add the sm6150 CCI device string compatible. > > Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com> > --- > .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml > index a3fe1eea6aece9685674feaa5ec53765c1ce23d8..cb5e6fd5b2ad1de79a9b29d54869d093c952d778 100644 > --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml > +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml > @@ -33,6 +33,7 @@ properties: > - qcom,sc8280xp-cci > - qcom,sdm670-cci > - qcom,sdm845-cci > + - qcom,sm6150-cci > - qcom,sm6350-cci > - qcom,sm8250-cci > - qcom,sm8450-cci > @@ -263,6 +264,23 @@ allOf: > - const: cpas_ahb > - const: cci > > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,sm6150-cci > + then: > + properties: > + clocks: > + minItems: 3 > + maxItems: 3 > + clock-names: > + items: > + - const: soc_ahb Isn't this just camnoc_axi for this device (pay attention: to this device)? Best regards, Krzysztof
On 12/22/2025 4:58 PM, Krzysztof Kozlowski wrote:
> On 22/12/2025 09:44, Wenmeng Liu wrote:
>> Add the sm6150 CCI device string compatible.
>>
>> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
>> ---
>> .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 18 ++++++++++++++++++
>> 1 file changed, 18 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
>> index a3fe1eea6aece9685674feaa5ec53765c1ce23d8..cb5e6fd5b2ad1de79a9b29d54869d093c952d778 100644
>> --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
>> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
>> @@ -33,6 +33,7 @@ properties:
>> - qcom,sc8280xp-cci
>> - qcom,sdm670-cci
>> - qcom,sdm845-cci
>> + - qcom,sm6150-cci
>> - qcom,sm6350-cci
>> - qcom,sm8250-cci
>> - qcom,sm8450-cci
>> @@ -263,6 +264,23 @@ allOf:
>> - const: cpas_ahb
>> - const: cci
>>
>> + - if:
>> + properties:
>> + compatible:
>> + contains:
>> + enum:
>> + - qcom,sm6150-cci
>> + then:
>> + properties:
>> + clocks:
>> + minItems: 3
>> + maxItems: 3
>> + clock-names:
>> + items:
>> + - const: soc_ahb
>
>
> Isn't this just camnoc_axi for this device (pay attention: to this device)?
>
On this SOC, both soc_ahb and camnoc_axi exist.
Is it suggested that I use the existing ones below?
- if:
properties:
compatible:
contains:
enum:
- qcom,sdm670-cci
then:
properties:
clocks:
minItems: 4
maxItems: 4
clock-names:
items:
- const: camnoc_axi
- const: soc_ahb
- const: cpas_ahb
- const: cci
Thanks,
Wenmeng
On 12/22/25 10:13 AM, Wenmeng Liu wrote: > > > On 12/22/2025 4:58 PM, Krzysztof Kozlowski wrote: >> On 22/12/2025 09:44, Wenmeng Liu wrote: >>> Add the sm6150 CCI device string compatible. >>> >>> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com> >>> --- >>> .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 18 ++++++++++++++++++ >>> 1 file changed, 18 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>> index a3fe1eea6aece9685674feaa5ec53765c1ce23d8..cb5e6fd5b2ad1de79a9b29d54869d093c952d778 100644 >>> --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>> @@ -33,6 +33,7 @@ properties: >>> - qcom,sc8280xp-cci >>> - qcom,sdm670-cci >>> - qcom,sdm845-cci >>> + - qcom,sm6150-cci >>> - qcom,sm6350-cci >>> - qcom,sm8250-cci >>> - qcom,sm8450-cci >>> @@ -263,6 +264,23 @@ allOf: >>> - const: cpas_ahb >>> - const: cci >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + enum: >>> + - qcom,sm6150-cci >>> + then: >>> + properties: >>> + clocks: >>> + minItems: 3 >>> + maxItems: 3 >>> + clock-names: >>> + items: >>> + - const: soc_ahb >> >> >> Isn't this just camnoc_axi for this device (pay attention: to this device)? >> > > On this SOC, both soc_ahb and camnoc_axi exist. > Is it suggested that I use the existing ones below? > - if: > properties: > compatible: > contains: > enum: > - qcom,sdm670-cci > then: > properties: > clocks: > minItems: 4 > maxItems: 4 > clock-names: > items: > - const: camnoc_axi > - const: soc_ahb > - const: cpas_ahb > - const: cci Are both AXI and the two AHB clocks necessary for the CCI to operate? It wasn't the case on other similarly-aged platforms Konrad
On 12/22/2025 5:49 PM, Konrad Dybcio wrote: > On 12/22/25 10:13 AM, Wenmeng Liu wrote: >> >> >> On 12/22/2025 4:58 PM, Krzysztof Kozlowski wrote: >>> On 22/12/2025 09:44, Wenmeng Liu wrote: >>>> Add the sm6150 CCI device string compatible. >>>> >>>> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com> >>>> --- >>>> .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 18 ++++++++++++++++++ >>>> 1 file changed, 18 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>>> index a3fe1eea6aece9685674feaa5ec53765c1ce23d8..cb5e6fd5b2ad1de79a9b29d54869d093c952d778 100644 >>>> --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>>> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>>> @@ -33,6 +33,7 @@ properties: >>>> - qcom,sc8280xp-cci >>>> - qcom,sdm670-cci >>>> - qcom,sdm845-cci >>>> + - qcom,sm6150-cci >>>> - qcom,sm6350-cci >>>> - qcom,sm8250-cci >>>> - qcom,sm8450-cci >>>> @@ -263,6 +264,23 @@ allOf: >>>> - const: cpas_ahb >>>> - const: cci >>>> + - if: >>>> + properties: >>>> + compatible: >>>> + contains: >>>> + enum: >>>> + - qcom,sm6150-cci >>>> + then: >>>> + properties: >>>> + clocks: >>>> + minItems: 3 >>>> + maxItems: 3 >>>> + clock-names: >>>> + items: >>>> + - const: soc_ahb >>> >>> >>> Isn't this just camnoc_axi for this device (pay attention: to this device)? >>> >> >> On this SOC, both soc_ahb and camnoc_axi exist. >> Is it suggested that I use the existing ones below? >> - if: >> properties: >> compatible: >> contains: >> enum: >> - qcom,sdm670-cci >> then: >> properties: >> clocks: >> minItems: 4 >> maxItems: 4 >> clock-names: >> items: >> - const: camnoc_axi >> - const: soc_ahb >> - const: cpas_ahb >> - const: cci > > Are both AXI and the two AHB clocks necessary for the CCI to operate? > It wasn't the case on other similarly-aged platforms > > Konrad The test conclusion indicates that all three clocks are necessary. all of them are necessary. Thanks, Wenmeng
On 22/12/2025 10:13, Wenmeng Liu wrote: > > > On 12/22/2025 4:58 PM, Krzysztof Kozlowski wrote: >> On 22/12/2025 09:44, Wenmeng Liu wrote: >>> Add the sm6150 CCI device string compatible. >>> >>> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com> >>> --- >>> .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 18 ++++++++++++++++++ >>> 1 file changed, 18 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>> index a3fe1eea6aece9685674feaa5ec53765c1ce23d8..cb5e6fd5b2ad1de79a9b29d54869d093c952d778 100644 >>> --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>> @@ -33,6 +33,7 @@ properties: >>> - qcom,sc8280xp-cci >>> - qcom,sdm670-cci >>> - qcom,sdm845-cci >>> + - qcom,sm6150-cci >>> - qcom,sm6350-cci >>> - qcom,sm8250-cci >>> - qcom,sm8450-cci >>> @@ -263,6 +264,23 @@ allOf: >>> - const: cpas_ahb >>> - const: cci >>> >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + enum: >>> + - qcom,sm6150-cci >>> + then: >>> + properties: >>> + clocks: >>> + minItems: 3 >>> + maxItems: 3 >>> + clock-names: >>> + items: >>> + - const: soc_ahb >> >> >> Isn't this just camnoc_axi for this device (pay attention: to this device)? >> > > On this SOC, both soc_ahb and camnoc_axi exist. Hm? That's not the question. Pay attention to the part called "pay attention". I emphasized it on purpose and you just ignored it. Best regards, Krzysztof
On 12/22/2025 7:58 PM, Krzysztof Kozlowski wrote: > On 22/12/2025 10:13, Wenmeng Liu wrote: >> >> >> On 12/22/2025 4:58 PM, Krzysztof Kozlowski wrote: >>> On 22/12/2025 09:44, Wenmeng Liu wrote: >>>> Add the sm6150 CCI device string compatible. >>>> >>>> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com> >>>> --- >>>> .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 18 ++++++++++++++++++ >>>> 1 file changed, 18 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>>> index a3fe1eea6aece9685674feaa5ec53765c1ce23d8..cb5e6fd5b2ad1de79a9b29d54869d093c952d778 100644 >>>> --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>>> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>>> @@ -33,6 +33,7 @@ properties: >>>> - qcom,sc8280xp-cci >>>> - qcom,sdm670-cci >>>> - qcom,sdm845-cci >>>> + - qcom,sm6150-cci >>>> - qcom,sm6350-cci >>>> - qcom,sm8250-cci >>>> - qcom,sm8450-cci >>>> @@ -263,6 +264,23 @@ allOf: >>>> - const: cpas_ahb >>>> - const: cci >>>> >>>> + - if: >>>> + properties: >>>> + compatible: >>>> + contains: >>>> + enum: >>>> + - qcom,sm6150-cci >>>> + then: >>>> + properties: >>>> + clocks: >>>> + minItems: 3 >>>> + maxItems: 3 >>>> + clock-names: >>>> + items: >>>> + - const: soc_ahb >>> >>> >>> Isn't this just camnoc_axi for this device (pay attention: to this device)? >>> >> >> On this SOC, both soc_ahb and camnoc_axi exist. > > Hm? That's not the question. Pay attention to the part called "pay > attention". I emphasized it on purpose and you just ignored it. --- Isn't this just camnoc_axi for this device (pay attention: to this device)? For this, yes, I think so. Also tested replacing soc_ahb with camnoc_axi for the CCI device, but the hardware did not function correctly with that configuration. Thanks Wenmeng
© 2016 - 2026 Red Hat, Inc.