[linux-yocto] [PATCH 29/29] ARM: dts: am335x-boneblack: configure i2c1 and 2

Paul Gortmaker paul.gortmaker at windriver.com
Sun Feb 7 14:50:15 PST 2016


[[linux-yocto] [PATCH 29/29] ARM: dts: am335x-boneblack: configure i2c1 and 2] On 05/02/2016 (Fri 06:53) Saul Wold wrote:

> From: Nishanth Menon <nm at ti.com>
> 
> Configure i2c1 and 2 at 400KHz.

Incomplete commit log.   It should say why this is required and for what
hardware.  As it is fairly hardware specific, I'd also wonder why it is
required for the G Gen2 board.

> 
> Signed-off-by: Nishanth Menon <nm at ti.com>
> Signed-off-by: Saul Wold <sgw at linux.intel.com>

....and no status again.

P.
--

> ---
>  arch/arm/boot/dts/am335x-boneblack.dts | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts
> index 901739f..a441804 100644
> --- a/arch/arm/boot/dts/am335x-boneblack.dts
> +++ b/arch/arm/boot/dts/am335x-boneblack.dts
> @@ -64,12 +64,42 @@
>  			0x1b0 0x03      /* xdma_event_intr0, OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
>  		>;
>  	};
> +
> +	i2c1_pins: pinmux_i2c1_pins {
> +		pinctrl-single,pins = <
> +			0x158 (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_d1.i2c1_sda */
> +			0x15c (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_cs0.i2c1_scl */
> +		>;
> +	};
> +
> +	i2c2_pins: pinmux_i2c2_pins {
> +		pinctrl-single,pins = <
> +			0x178 (PIN_INPUT_PULLUP | MUX_MODE3)	/* uart1_ctsn.i2c2_sda */
> +			0x17c (PIN_INPUT_PULLUP | MUX_MODE3)	/* uart1_rtsn.i2c2_scl */
> +		>;
> +	};
>  };
>  
>  &lcdc {
>  	status = "okay";
>  };
>  
> +&i2c1 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c1_pins>;
> +
> +	status = "okay";
> +	clock-frequency = <400000>;
> +};
> +
> +&i2c2 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c2_pins>;
> +
> +	status = "okay";
> +	clock-frequency = <400000>;
> +};
> +
>  / {
>  	hdmi {
>  		compatible = "ti,tilcdc,slave";
> -- 
> 2.5.0
> 
> -- 
> _______________________________________________
> linux-yocto mailing list
> linux-yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/linux-yocto


More information about the linux-yocto mailing list