[U-Boot] [PATCH v1 14/14] ARM: dts: colibri-imx6ull: update device tree

Marcel Ziswiler marcel.ziswiler at toradex.com
Tue Apr 9 14:22:36 UTC 2019


On Wed, 2019-04-03 at 08:24 +0000, Igor Opaniuk wrote:
> Hi Marcel,
> 
> Reviewed-by: Igor Opaniuk <igor.opaniuk at toradex.com>
> 
> Please also check my comments below, thanks!
> 
> On Fri, Mar 29, 2019 at 1:41 PM Marcel Ziswiler <marcel at ziswiler.com>
> wrote:
> > From: Marcel Ziswiler <marcel.ziswiler at toradex.com>
> > 
> > Fix compatible node to use regular Toradex notation.
> > Annotate device tree with standard Colibri pin muxing comments.
> > Use open-drain I2C pin muxings.
> > Alphabetically re-order iomuxc nodes.
> > Rename  snvs-ad7879-int-grp touch interrupt node as per Linux
> > device tree.
> > 
> > Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
> > 
> > ---
> > 
> >  arch/arm/dts/imx6ull-colibri.dts | 91 ++++++++++++++++++--------
> > ------
> >  1 file changed, 52 insertions(+), 39 deletions(-)
> > 
> > diff --git a/arch/arm/dts/imx6ull-colibri.dts
> > b/arch/arm/dts/imx6ull-colibri.dts
> > index 84f70deaa1..4196cbdf22 100644
> > --- a/arch/arm/dts/imx6ull-colibri.dts
> > +++ b/arch/arm/dts/imx6ull-colibri.dts
> > @@ -9,7 +9,7 @@
> > 
> >  / {
> >         model = "Toradex Colibri iMX6ULL";
> > -       compatible = "toradex,imx6ull-colibri", "fsl,imx6ull";
> > +       compatible = "toradex,colibri-imx6ull", "fsl,imx6ull";
> Just FYI: still there is some devergance in naming this particular
> platform:
> 
> $:~/toradex/reps/u-boot-imx.git$ grep -e imx6ull-colibri -r ./
> ./board/toradex/colibri-imx6ull/MAINTAINERS:F: arch/arm/dts/imx6ull-
> colibri.dts
> ./include/configs/colibri-imx6ull.h:#define FDT_FILE
> "imx6ull-colibri${variant}-${fdt_board}.dtb"
> ./arch/arm/dts/imx6ull-colibri.dts: compatible =
> "toradex,imx6ull-colibri", "fsl,imx6ull";
> ./arch/arm/dts/Makefile: imx6ull-colibri.dtb \
> ./configs/colibri-
> imx6ull_defconfig:CONFIG_DEFAULT_DEVICE_TREE="imx6ull-colibri"

That is really just device tree naming convention where the SoC
architecture gets used as a pre-fix. I guess we could also call it
imx6ull-colibri-imx6ull.dts but that would be kind of silly as well. So
a long time ago we decided to just drop the second SoC architecture
part in this case which is what we have been doing ever since.

> $:~/toradex/reps/u-boot-imx.git$ grep -e colibri-imx6ull -r ./
> ./board/toradex/colibri-imx6ull/Kconfig: default "colibri-imx6ull"
> ./board/toradex/colibri-imx6ull/Kconfig: default "colibri-imx6ull"
> ./board/toradex/colibri-imx6ull/MAINTAINERS:F: board/toradex/colibri-
> imx6ull/
> ./board/toradex/colibri-imx6ull/MAINTAINERS:F: configs/colibri-
> imx6ull_defconfig
> ./board/toradex/colibri-imx6ull/MAINTAINERS:F:
> include/configs/colibri-imx6ull.h
> ./board/toradex/colibri-imx6ull/Makefile:obj-y  := colibri-imx6ull.o
> ./include/config/auto.conf.cmd: board/toradex/colibri-imx6ull/Kconfig 
> \
> ./arch/arm/mach-imx/mx6/Kconfig:source "board/toradex/colibri-
> imx6ull/Kconfig"
> ./configs/colibri-
> imx6ull_defconfig:CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/toradex/
> colibri-imx6ull/imximage.cfg,MX6ULL,IMX_NAND"

Everywhere else we use colibri-imx6ull which is really what our product
is called.

> So probably it should be renamed in many places as possible (and
> stick
> to colibri-imx6ull in all cases)
> >         aliases {
> >                 mmc0 = &usdhc1;
> > @@ -100,6 +100,7 @@
> >         };
> >  };
> > 
> > +/* NAND */
> >  &gpmi {
> >         pinctrl-names = "default";
> >         pinctrl-0 = <&pinctrl_gpmi_nand>;
> > @@ -110,21 +111,28 @@
> >         status = "okay";
> >  };
> > 
> > +/*
> > + * I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board)
> > + */
> >  &i2c1 {
> >         pinctrl-names = "default", "gpio";
> >         pinctrl-0 = <&pinctrl_i2c1>;
> >         pinctrl-1 = <&pinctrl_i2c1_gpio>;
> > -       sda-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
> > -       scl-gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
> > +       sda-gpios = <&gpio1 29 (GPIO_ACTIVE_HIGH |
> > GPIO_OPEN_DRAIN)>;
> > +       scl-gpios = <&gpio1 28 (GPIO_ACTIVE_HIGH |
> > GPIO_OPEN_DRAIN)>;
> >         status = "okay";
> >  };
> > 
> > +/*
> > + * PWR_I2C: power I2C to audio codec, PMIC, temperature sensor and
> > + * touch screen controller
> > + */
> >  &i2c2 {
> >         pinctrl-names = "default", "gpio";
> >         pinctrl-0 = <&pinctrl_i2c2>;
> >         pinctrl-1 = <&pinctrl_i2c2_gpio>;
> > -       sda-gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
> > -       scl-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
> > +       sda-gpios = <&gpio1 31 (GPIO_ACTIVE_HIGH |
> > GPIO_OPEN_DRAIN)>;
> > +       scl-gpios = <&gpio1 30 (GPIO_ACTIVE_HIGH |
> > GPIO_OPEN_DRAIN)>;
> >         status = "okay";
> > 
> >         ad7879 at 2c {
> > @@ -150,24 +158,28 @@
> >                      &pinctrl_lcdif_ctrl>;
> >  };
> > 
> > +/* PWM <A> */
> >  &pwm4 {
> >         pinctrl-names = "default";
> >         pinctrl-0 = <&pinctrl_pwm4>;
> >         #pwm-cells = <3>;
> >  };
> > 
> > +/* PWM <B> */
> >  &pwm5 {
> >         pinctrl-names = "default";
> >         pinctrl-0 = <&pinctrl_pwm5>;
> >         #pwm-cells = <3>;
> >  };
> > 
> > +/* PWM <C> */
> >  &pwm6 {
> >         pinctrl-names = "default";
> >         pinctrl-0 = <&pinctrl_pwm6>;
> >         #pwm-cells = <3>;
> >  };
> > 
> > +/* PWM <D> */
> >  &pwm7 {
> >         pinctrl-names = "default";
> >         pinctrl-0 = <&pinctrl_pwm7>;
> > @@ -237,6 +249,13 @@
> >  };
> > 
> >  &iomuxc {
> > +       pinctrl_can_int: canint-grp {
> > +               fsl,pins = <
> > +                       /* SODIMM 73 */
> > +                       MX6UL_PAD_ENET1_TX_DATA1__GPIO2_IO04    0X1
> > 4
> > +               >;
> > +       };
> > +
> >         pinctrl_enet2: enet2-grp {
> >                 fsl,pins = <
> >                         MX6UL_PAD_GPIO1_IO06__ENET2_MDIO        0x1
> > b0b0
> > @@ -252,6 +271,33 @@
> >                 >;
> >         };
> > 
> > +       pinctrl_ecspi1_cs: ecspi1-cs-grp {
> > +               fsl,pins = <
> > +                       MX6UL_PAD_LCD_DATA21__GPIO3_IO26        0x0
> > 00a0
> > +               >;
> > +       };
> > +
> > +       pinctrl_ecspi1: ecspi1-grp {
> > +               fsl,pins = <
> > +                       MX6UL_PAD_LCD_DATA20__ECSPI1_SCLK       0x0
> > 00a0
> > +                       MX6UL_PAD_LCD_DATA22__ECSPI1_MOSI       0x0
> > 00a0
> > +                       MX6UL_PAD_LCD_DATA23__ECSPI1_MISO       0x1
> > 00a0
> > +               >;
> > +       };
> > +
> > +       pinctrl_flexcan2: flexcan2-grp {
> > +               fsl,pins = <
> > +                       MX6UL_PAD_ENET1_TX_DATA0__FLEXCAN2_RX   0x1
> > b020
> > +                       MX6UL_PAD_ENET1_RX_EN__FLEXCAN2_TX      0x1
> > b020
> > +               >;
> > +       };
> > +
> > +       pinctrl_gpio_bl_on: gpio-bl-on-grp {
> > +               fsl,pins = <
> > +                       MX6UL_PAD_JTAG_TMS__GPIO1_IO11          0x0
> > 00a0
> > +               >;
> > +       };
> > +
> >         pinctrl_gpio1: gpio1-grp {
> >                 fsl,pins = <
> >                         MX6UL_PAD_ENET1_RX_DATA0__GPIO2_IO00    0x7
> > 4 /* SODIMM 55 */
> > @@ -308,39 +354,6 @@
> >                 >;
> >         };
> > 
> > -       pinctrl_can_int: canint-grp {
> > -               fsl,pins = <
> > -                       MX6UL_PAD_ENET1_TX_DATA1__GPIO2_IO04    0X1
> > 4 /* SODIMM 73 */
> > -               >;
> > -       };
> > -
> > -       pinctrl_ecspi1_cs: ecspi1-cs-grp {
> > -               fsl,pins = <
> > -                       MX6UL_PAD_LCD_DATA21__GPIO3_IO26        0x0
> > 00a0
> > -               >;
> > -       };
> > -
> > -       pinctrl_ecspi1: ecspi1-grp {
> > -               fsl,pins = <
> > -                       MX6UL_PAD_LCD_DATA20__ECSPI1_SCLK       0x0
> > 00a0
> > -                       MX6UL_PAD_LCD_DATA22__ECSPI1_MOSI       0x0
> > 00a0
> > -                       MX6UL_PAD_LCD_DATA23__ECSPI1_MISO       0x1
> > 00a0
> > -               >;
> > -       };
> > -
> > -       pinctrl_flexcan2: flexcan2-grp {
> > -               fsl,pins = <
> > -                       MX6UL_PAD_ENET1_TX_DATA0__FLEXCAN2_RX   0x1
> > b020
> > -                       MX6UL_PAD_ENET1_RX_EN__FLEXCAN2_TX      0x1
> > b020
> > -               >;
> > -       };
> > -
> > -       pinctrl_gpio_bl_on: gpio-bl-on-grp {
> > -               fsl,pins = <
> > -                       MX6UL_PAD_JTAG_TMS__GPIO1_IO11          0x0
> > 00a0
> > -               >;
> > -       };
> > -
> >         pinctrl_gpmi_nand: gpmi-nand-grp {
> >                 fsl,pins = <
> >                         MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00   0x1
> > 00a9
> > @@ -553,7 +566,7 @@
> >                 >;
> >         };
> > 
> > -       pinctrl_snvs_ad7879_int: snvs-ad7879-int { /* TOUCH
> > Interrupt */
> > +       pinctrl_snvs_ad7879_int: snvs-ad7879-int-grp { /* TOUCH
> > Interrupt */
> >                 fsl,pins = <
> >                         MX6ULL_PAD_SNVS_TAMPER7__GPIO5_IO07     0x1
> > b0b0
> >                 >;
> > --
> > 2.20.1
> > 
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> > https://lists.denx.de/listinfo/u-boot
> 
> 
> -- 
> Best regards - Freundliche GrĂ¼sse - Meilleures salutations
> 
> Senior Development Engineer,
> Igor Opaniuk
> 
> Toradex AG
> Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48
> 00 (main line)


More information about the U-Boot mailing list