Re: [PATCH 2/2] arm64: dts: stratix10: add i2c pins for pinctrl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23/01/2023 20:27, Dinh Nguyen wrote:
> Add the I2C pins definition to the Stratix10 devkit. This allows for the
> I2C driver to use pinctrl on the pins to allow for GPIO recovery.
> 
> Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxx>
> ---
>  .../dts/altera/socfpga_stratix10_socdk.dts    | 23 +++++++++++++++++++
>  1 file changed, 23 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
> index 17752ca743e5..beda04b9380b 100644
> --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
> +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
> @@ -65,6 +65,22 @@ sdmmca-ecc@ff8c8c00 {
>  	};
>  };
>  
> +&pinctrl0 {
> +	i2c1_pmx_func: i2c1_pmx_func {

No underscores in node names.

> +		pinctrl-single,pins = <
> +			0x78   0x4   /* I2C1_SDA (IO6-B) PIN30SEL) */
> +			0x7c   0x4   /* I2C1_SCL (IO7-B) PIN31SEL */
> +		>;
> +	};
> +
> +	i2c1_pmx_func_gpio: i2c1_pmx_func_gpio {

Same here.

> +		pinctrl-single,pins = <
> +			0x78   0x8   /* I2C1_SDA (IO6-B) PIN30SEL) */
> +			0x7c   0x8   /* I2C1_SCL (IO7-B) PIN31SEL */
> +		>;
> +	};
> +};
> +
>  &gpio1 {
Best regards,
Krzysztof




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux