Re: [PATCH v9 09/11] arm64: dts: qcom: ipq5210: Add I2C nodes
From: Konrad Dybcio
Date: Thu Dec 03 2026 - 09:06:17 EST
On 11/12/26 5:36 AM, Varadarajan Narayanan wrote:
> Add the QUPv3 I2C controller nodes for IPQ5210 and enable I2C0 with
> the required pin configuration on RDP504.
>
> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@xxxxxxxxxxxxxxxx>
> ---
> .../arm64/boot/dts/qcom/ipq5210-rdp504-common.dtsi | 16 ++++++++
> arch/arm64/boot/dts/qcom/ipq5210.dtsi | 47 ++++++++++++++++++++++
> 2 files changed, 63 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/ipq5210-rdp504-common.dtsi b/arch/arm64/boot/dts/qcom/ipq5210-rdp504-common.dtsi
> index 87a7e625a2a4..7cbdcf58d946 100644
> --- a/arch/arm64/boot/dts/qcom/ipq5210-rdp504-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/ipq5210-rdp504-common.dtsi
> @@ -59,6 +59,13 @@ vreg_misc_0p925: regulator-usb-0p925 {
> };
> };
>
> +&i2c0 {
> + pinctrl-0 = <&qup_i2c0_default>;
> + pinctrl-names = "default";
This should be assigned in the SoC DTSI, as it's the only valid
configuration
> +
> + status = "okay";
> +};
> +
> &pcie0 {
> pinctrl-0 = <&pcie0_default_state>;
> pinctrl-names = "default";
> @@ -202,6 +209,15 @@ clock-pins {
> };
> };
>
> + qup_i2c0_default: qup-i2c0-default-state {
> + qup-i2c0-pins {
Drop the inner subnode - put the properties directly below
qup_i2c0_default
> + pins = "gpio20", "gpio21";
> + function = "qup_se2";
> + drive-strength = <6>;
> + bias-pull-up;
> + };
> + };
And similarly the state should be moved there
[...]
> + i2c0: i2c@1a88000 {
> + compatible = "qcom,geni-i2c";
> + reg = <0x0 0x01a88000 0x0 0x4000>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&gcc GCC_QUPV3_WRAP_SE2_CLK>;
> + clock-names = "se";
> + clock-frequency = <400000>;
Let's defer setting this value to each board.
> + interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
> + operating-points-v2 = <&i2c_opp_table_32mhz>;
> + status = "disabled";
Let's keep a \n before 'status' for uniformity
Konrad