[meta-xilinx] [PATCH] microzed-zynq7.dts: Enabled i2c controller
Nathan Rossi
nathan at nathanrossi.com
Sun Aug 7 07:32:32 PDT 2016
On Sun, Aug 7, 2016 at 9:44 PM, Thomas Koeller
<thomas at koeller.dyndns.org> wrote:
> While support for the cadence i2c controller was enabled in the kernel
> configuration, it was disabled in devicetree.
Microzed is an interesting target because none of the IOs on the
JX1/JX2 connectors are specifically tied as I2C (and there are no i2c
devices on the board). This means that the default pinmux for the
board does not setup the I2C controllers to be exposed on any MIOs or
EMIOs. If you need the i2c controllers you will also need to configure
the pinmux either in the dts or in the ps7_init, which is not done in
the current microzed setup (for either the dts or the ps7_init) in
meta-xilinx.
So this patch is fine, but it targets the configuration you have setup
for your microzed. In this case you selected a pair of i2c pins based
on what works for your design, other users may not even use the i2c's
in their design. The setup in meta-xilinx tries to be generic with
these SOM style boards (microzed, picozed), the idea is for it to be a
reference.
Regards,
Nathan
>
> Signed-off-by: Thomas Koeller <thomas at koeller.dyndns.org>
> ---
> recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts b/recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts
> index f0de60e..7063df8 100644
> --- a/recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts
> +++ b/recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts
> @@ -54,6 +54,14 @@
> usb-phy = <&usb_phy0>;
> };
>
> +&i2c0 {
> + status = "okay";
> +};
> +
> +&i2c1 {
> + status = "okay";
> +};
> +
> &qspi {
> status = "okay";
> primary_flash: ps7-qspi at 0 {
> --
> 2.5.5
>
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
More information about the meta-xilinx
mailing list