[PATCH 4/6] arm: dts: k3-am642-r5-evm: Add I2C0 and Card detect GPIOs

Nishanth Menon nm at ti.com
Thu Jul 6 14:38:21 CEST 2023


On 21:10-20230704, Roger Quadros wrote:
> Card detect GPIOs are on I2C GPIO Expander on I2C0.
> Enable I2C0 and GPIO Expander for r5-evm.
> 
> Signed-off-by: Roger Quadros <rogerq at kernel.org>
> ---
>  arch/arm/dts/k3-am642-r5-evm.dts | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/arch/arm/dts/k3-am642-r5-evm.dts b/arch/arm/dts/k3-am642-r5-evm.dts
> index e870492a69..01b4a61852 100644
> --- a/arch/arm/dts/k3-am642-r5-evm.dts
> +++ b/arch/arm/dts/k3-am642-r5-evm.dts
> @@ -209,6 +209,13 @@
>  			AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_CTL */
>  		>;
>  	};
> +
> +	main_i2c0_pins_default: main-i2c0-default-pins {
> +		pinctrl-single,pins = <
> +			AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */
> +			AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */
> +		>;
> +	};
>  };
>  
>  &dmsc {
> @@ -267,6 +274,18 @@
>  /* EEPROM might be read before SYSFW is available */
>  &main_i2c0 {
>  	/delete-property/ power-domains;
> +	status = "okay";
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&main_i2c0_pins_default>;
> +	clock-frequency = <400000>;
> +
> +	tca9554: gpio at 38 {
> +		 /* TCA9554 */
> +		 compatible = "nxp,pca9554";
> +		 reg = <0x38>;
> +		 gpio-controller;
> +		#gpio-cells = <2>;
> +	 };
>  };
>  
>  &usbss0 {
> -- 
> 2.34.1
> 
NAK - Upstream kernel first please, we should get this change as part of
sync from kernel.

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


More information about the U-Boot mailing list