[U-Boot] [PATCH v1 11/21] ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052.dts)

2019-01-14 Thread Lukasz Majewski
This commit provides update to the bk4r1.dts file with
more on SoC HW description.
Moreover, a new vf610-pcm052.drsi file has been introduced
to reuse the common code between devices based on Phytec's
pcm052 modules.
Ported from Linux kernel - v4.20 (tag)

Signed-off-by: Lukasz Majewski 
---

 arch/arm/dts/bk4r1.dts | 108 -
 arch/arm/dts/pcm052.dts|   6 +-
 arch/arm/dts/vf610-pcm052.dtsi | 266 +
 3 files changed, 346 insertions(+), 34 deletions(-)
 create mode 100644 arch/arm/dts/vf610-pcm052.dtsi

diff --git a/arch/arm/dts/bk4r1.dts b/arch/arm/dts/bk4r1.dts
index 866b80e0b0..55cd53384a 100644
--- a/arch/arm/dts/bk4r1.dts
+++ b/arch/arm/dts/bk4r1.dts
@@ -1,47 +1,97 @@
 // SPDX-License-Identifier: GPL-2.0+ OR X11
 /*
+ * (C) Copyright 2018
+ * Lukasz Majewski, DENX Software Engineering, lu...@denx.de.
+ *
  * Copyright 2016 Toradex AG
  */
 
 /dts-v1/;
-#include "vf.dtsi"
+#include "vf610-pcm052.dtsi"
+#include "vf610-pinfunc.h"
 
 / {
-   model = "Phytec phyCORE-Vybrid";
-   compatible = "phytec,pcm052", "fsl,vf610";
+   model = "Liebherr (LVF) BK4 Vybrid Board";
+   compatible = "lvf,bk4", "fsl,vf610";
 
-   chosen {
-   stdout-path = &uart1;
-   };
+   leds {
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_gpio_leds>;
 
-   aliases {
-   spi0 = &qspi0;
-   };
+   compatible = "gpio-leds";
 
-};
+   /* PTE15 PORT3[24] H6 green */
+   led@0 {
+   label = "0";
+   gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   };
+
+   /* PTA12 PORT0[5] H5 green */
+   led@1 {
+   label = "1";
+   gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   };
+
+   /* PTE20 PORT3[39] H4 green */
+   led@2 {
+   label = "2";
+   gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   };
 
-&uart1 {
-   status = "okay";
+   /* PTE12 PORT3[21] H3 green */
+   led@3 {
+   label = "3";
+   gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   };
+
+   /* LED6 is now PRESET ETH -> PTA16 PORT0[6]  H6 red */
+   /* PTE9  PORT3[18] H5 red */
+   led@4 {
+   label = "5";
+   gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   };
+
+   /* PTE23 PORT4[0]  H4 red */
+   led@5 {
+   label = "6";
+   gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   };
+
+   /* PTE16 PORT3[25] H3 red */
+   led@6 {
+   label = "7";
+   gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   };
+   };
 };
 
-&qspi0 {
-   bus-num = <0>;
-   num-cs = <2>;
-   status = "okay";
-
-   qflash0: spi_flash@0 {
-   #address-cells = <1>;
-   #size-cells = <1>;
-   compatible = "spi-flash";
-   spi-max-frequency = <10800>;
-   reg = <0>;
+&iomuxc {
+   pinctrl-0 = <&pinctrl_ddr &pinctrl_hog>;
+
+   pinctrl_hog: hoggrp {
+   fsl,pins = <
+   /* ETH control pins */
+   VF610_PAD_PTE17__GPIO_122   0x1183
+   VF610_PAD_PTA16__GPIO_6 0x1183
+   >;
};
 
-   qflash1: spi_flash@1 {
-   #address-cells = <1>;
-   #size-cells = <1>;
-   compatible = "spi-flash";
-   spi-max-frequency = <6600>;
-   reg = <1>;
+   pinctrl_gpio_leds: gpioledsgrp {
+   fsl,pins = <
+   /* LEDS */
+   VF610_PAD_PTE15__GPIO_120   0x1183
+   VF610_PAD_PTA12__GPIO_5 0x1183
+   VF610_PAD_PTE9__GPIO_1140x1183
+   VF610_PAD_PTE20__GPIO_125   0x1183
+   VF610_PAD_PTE23__GPIO_128   0x1183
+   VF610_PAD_PTE16__GPIO_121   0x1183
+   >;
};
 };
diff --git a/arch/arm/dts/pcm052.dts b/arch/arm/dts/pcm052.dts
index 6489fdc6f4..22026024ea 100644
--- a/arch/arm/dts/pcm052.dts
+++ b/arch/arm/dts/pcm052.dts
@@ -4,7 +4,7 @@
  */
 
 /dts-v1/;
-#include "vf.dtsi"
+#include "vf610-pcm052.dtsi"
 
 / {
model = "Phytec phyCORE-Vybrid";
@@ -15,7 +15,3 @@
};
 
 };
-
-&uart1 {
-   status = "okay";
-};
diff -

Re: [U-Boot] [PATCH v1 11/21] ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052.dts)

2019-01-14 Thread Tom Rini
On Mon, Jan 14, 2019 at 03:17:30PM +0100, Lukasz Majewski wrote:
> This commit provides update to the bk4r1.dts file with
> more on SoC HW description.
> Moreover, a new vf610-pcm052.drsi file has been introduced
> to reuse the common code between devices based on Phytec's
> pcm052 modules.
> Ported from Linux kernel - v4.20 (tag)
> 
> Signed-off-by: Lukasz Majewski 
> ---
> 
>  arch/arm/dts/bk4r1.dts | 108 -
>  arch/arm/dts/pcm052.dts|   6 +-
>  arch/arm/dts/vf610-pcm052.dtsi | 266 
> +
>  3 files changed, 346 insertions(+), 34 deletions(-)
>  create mode 100644 arch/arm/dts/vf610-pcm052.dtsi
> 
> diff --git a/arch/arm/dts/bk4r1.dts b/arch/arm/dts/bk4r1.dts
> index 866b80e0b0..55cd53384a 100644
> --- a/arch/arm/dts/bk4r1.dts
> +++ b/arch/arm/dts/bk4r1.dts
> @@ -1,47 +1,97 @@
>  // SPDX-License-Identifier: GPL-2.0+ OR X11
>  /*
> + * (C) Copyright 2018
> + * Lukasz Majewski, DENX Software Engineering, lu...@denx.de.
> + *
>   * Copyright 2016 Toradex AG
>   */
>  
>  /dts-v1/;
> -#include "vf.dtsi"
> +#include "vf610-pcm052.dtsi"
> +#include "vf610-pinfunc.h"
>  
>  / {
> - model = "Phytec phyCORE-Vybrid";
> - compatible = "phytec,pcm052", "fsl,vf610";
> + model = "Liebherr (LVF) BK4 Vybrid Board";
> + compatible = "lvf,bk4", "fsl,vf610";
>  
> - chosen {
> - stdout-path = &uart1;
> - };
> + leds {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_gpio_leds>;
>  
> - aliases {
> - spi0 = &qspi0;
> - };
> + compatible = "gpio-leds";
>  
> -};
> + /* PTE15 PORT3[24] H6 green */
> + led@0 {
> + label = "0";
> + gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
> + default-state = "off";
> + };
> +
> + /* PTA12 PORT0[5] H5 green */
> + led@1 {
> + label = "1";
> + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
> + default-state = "off";
> + };
> +
> + /* PTE20 PORT3[39] H4 green */
> + led@2 {
> + label = "2";
> + gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
> + default-state = "off";
> + };
>  
> -&uart1 {
> - status = "okay";
> + /* PTE12 PORT3[21] H3 green */
> + led@3 {
> + label = "3";
> + gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
> + default-state = "off";
> + };
> +
> + /* LED6 is now PRESET ETH -> PTA16 PORT0[6]  H6 red */
> + /* PTE9  PORT3[18] H5 red */
> + led@4 {
> + label = "5";
> + gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
> + default-state = "off";
> + };
> +
> + /* PTE23 PORT4[0]  H4 red */
> + led@5 {
> + label = "6";
> + gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
> + default-state = "off";
> + };
> +
> + /* PTE16 PORT3[25] H3 red */
> + led@6 {
> + label = "7";
> + gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
> + default-state = "off";
> + };
> + };
>  };
>  
> -&qspi0 {
> - bus-num = <0>;
> - num-cs = <2>;
> - status = "okay";
> -
> - qflash0: spi_flash@0 {
> - #address-cells = <1>;
> - #size-cells = <1>;
> - compatible = "spi-flash";
> - spi-max-frequency = <10800>;
> - reg = <0>;
> +&iomuxc {
> + pinctrl-0 = <&pinctrl_ddr &pinctrl_hog>;
> +
> + pinctrl_hog: hoggrp {
> + fsl,pins = <
> + /* ETH control pins */
> + VF610_PAD_PTE17__GPIO_122   0x1183
> + VF610_PAD_PTA16__GPIO_6 0x1183
> + >;
>   };
>  
> - qflash1: spi_flash@1 {
> - #address-cells = <1>;
> - #size-cells = <1>;
> - compatible = "spi-flash";
> - spi-max-frequency = <6600>;
> - reg = <1>;
> + pinctrl_gpio_leds: gpioledsgrp {
> + fsl,pins = <
> + /* LEDS */
> + VF610_PAD_PTE15__GPIO_120   0x1183
> + VF610_PAD_PTA12__GPIO_5 0x1183
> + VF610_PAD_PTE9__GPIO_1140x1183
> + VF610_PAD_PTE20__GPIO_125   0x1183
> + VF610_PAD_PTE23__GPIO_128   0x1183
> + VF610_PAD_PTE16__GPIO_121   0x1183
> + >;
>   };
>  };
> diff --git a/arch/arm/dts/pcm052.dts b/arch/arm/dts/pcm052.dts
> index 6489fdc6f4..22026024ea 100644
> --- a/arch/arm/dts/pcm052.dts
> +++ b/arch/arm/dts/pcm052.dts
> @@ -4,7 +4,7 @@
>   */
>  
>

Re: [U-Boot] [PATCH v1 11/21] ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052.dts)

2019-01-15 Thread Lukasz Majewski
Hi Tom,

> On Mon, Jan 14, 2019 at 03:17:30PM +0100, Lukasz Majewski wrote:
> > This commit provides update to the bk4r1.dts file with
> > more on SoC HW description.
> > Moreover, a new vf610-pcm052.drsi file has been introduced
> > to reuse the common code between devices based on Phytec's
> > pcm052 modules.
> > Ported from Linux kernel - v4.20 (tag)
> > 
> > Signed-off-by: Lukasz Majewski 
> > ---
> > 
> >  arch/arm/dts/bk4r1.dts | 108 -
> >  arch/arm/dts/pcm052.dts|   6 +-
> >  arch/arm/dts/vf610-pcm052.dtsi | 266
> > + 3 files changed, 346
> > insertions(+), 34 deletions(-) create mode 100644
> > arch/arm/dts/vf610-pcm052.dtsi
> > 
> > diff --git a/arch/arm/dts/bk4r1.dts b/arch/arm/dts/bk4r1.dts
> > index 866b80e0b0..55cd53384a 100644
> > --- a/arch/arm/dts/bk4r1.dts
> > +++ b/arch/arm/dts/bk4r1.dts
> > @@ -1,47 +1,97 @@
> >  // SPDX-License-Identifier: GPL-2.0+ OR X11
> >  /*
> > + * (C) Copyright 2018
> > + * Lukasz Majewski, DENX Software Engineering, lu...@denx.de.
> > + *
> >   * Copyright 2016 Toradex AG
> >   */
> >  
> >  /dts-v1/;
> > -#include "vf.dtsi"
> > +#include "vf610-pcm052.dtsi"
> > +#include "vf610-pinfunc.h"
> >  
> >  / {
> > -   model = "Phytec phyCORE-Vybrid";
> > -   compatible = "phytec,pcm052", "fsl,vf610";
> > +   model = "Liebherr (LVF) BK4 Vybrid Board";
> > +   compatible = "lvf,bk4", "fsl,vf610";
> >  
> > -   chosen {
> > -   stdout-path = &uart1;
> > -   };
> > +   leds {
> > +   pinctrl-names = "default";
> > +   pinctrl-0 = <&pinctrl_gpio_leds>;
> >  
> > -   aliases {
> > -   spi0 = &qspi0;
> > -   };
> > +   compatible = "gpio-leds";
> >  
> > -};
> > +   /* PTE15 PORT3[24] H6 green */
> > +   led@0 {
> > +   label = "0";
> > +   gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
> > +   default-state = "off";
> > +   };
> > +
> > +   /* PTA12 PORT0[5] H5 green */
> > +   led@1 {
> > +   label = "1";
> > +   gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
> > +   default-state = "off";
> > +   };
> > +
> > +   /* PTE20 PORT3[39] H4 green */
> > +   led@2 {
> > +   label = "2";
> > +   gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
> > +   default-state = "off";
> > +   };
> >  
> > -&uart1 {
> > -   status = "okay";
> > +   /* PTE12 PORT3[21] H3 green */
> > +   led@3 {
> > +   label = "3";
> > +   gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
> > +   default-state = "off";
> > +   };
> > +
> > +   /* LED6 is now PRESET ETH -> PTA16 PORT0[6]  H6
> > red */
> > +   /* PTE9  PORT3[18] H5 red */
> > +   led@4 {
> > +   label = "5";
> > +   gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
> > +   default-state = "off";
> > +   };
> > +
> > +   /* PTE23 PORT4[0]  H4 red */
> > +   led@5 {
> > +   label = "6";
> > +   gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
> > +   default-state = "off";
> > +   };
> > +
> > +   /* PTE16 PORT3[25] H3 red */
> > +   led@6 {
> > +   label = "7";
> > +   gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
> > +   default-state = "off";
> > +   };
> > +   };
> >  };
> >  
> > -&qspi0 {
> > -   bus-num = <0>;
> > -   num-cs = <2>;
> > -   status = "okay";
> > -
> > -   qflash0: spi_flash@0 {
> > -   #address-cells = <1>;
> > -   #size-cells = <1>;
> > -   compatible = "spi-flash";
> > -   spi-max-frequency = <10800>;
> > -   reg = <0>;
> > +&iomuxc {
> > +   pinctrl-0 = <&pinctrl_ddr &pinctrl_hog>;
> > +
> > +   pinctrl_hog: hoggrp {
> > +   fsl,pins = <
> > +   /* ETH control pins */
> > +   VF610_PAD_PTE17__GPIO_122
> > 0x1183
> > +   VF610_PAD_PTA16__GPIO_6 0x1183
> > +   >;
> > };
> >  
> > -   qflash1: spi_flash@1 {
> > -   #address-cells = <1>;
> > -   #size-cells = <1>;
> > -   compatible = "spi-flash";
> > -   spi-max-frequency = <6600>;
> > -   reg = <1>;
> > +   pinctrl_gpio_leds: gpioledsgrp {
> > +   fsl,pins = <
> > +   /* LEDS */
> > +   VF610_PAD_PTE15__GPIO_120   0x1183
> > +   VF610_PAD_PTA12__GPIO_5 0x1183
> > +   VF610_PAD_PTE9__GPIO_1140x1183
> > +   VF610_PAD_PTE20__GPIO_125   0x1183
> > +   VF610_PAD_PTE23__GPIO_128   0x1183
> > +   VF610_PAD_PTE16__GPIO_121   0x1183
> > +   >;
> > };
> >  };
> > diff --git a/arch/arm/dts/pcm052.dts b/arch/arm/dts/pcm052.dts
> > index 6489fdc6

Re: [U-Boot] [PATCH v1 11/21] ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052.dts)

2019-01-15 Thread Tom Rini
On Tue, Jan 15, 2019 at 09:20:16AM +0100, Lukasz Majewski wrote:
> Hi Tom,
> 
> > On Mon, Jan 14, 2019 at 03:17:30PM +0100, Lukasz Majewski wrote:
> > > This commit provides update to the bk4r1.dts file with
> > > more on SoC HW description.
> > > Moreover, a new vf610-pcm052.drsi file has been introduced
> > > to reuse the common code between devices based on Phytec's
> > > pcm052 modules.
> > > Ported from Linux kernel - v4.20 (tag)
> > > 
> > > Signed-off-by: Lukasz Majewski 
> > > ---
> > > 
> > >  arch/arm/dts/bk4r1.dts | 108 -
> > >  arch/arm/dts/pcm052.dts|   6 +-
> > >  arch/arm/dts/vf610-pcm052.dtsi | 266
> > > + 3 files changed, 346
> > > insertions(+), 34 deletions(-) create mode 100644
> > > arch/arm/dts/vf610-pcm052.dtsi
> > > 
> > > diff --git a/arch/arm/dts/bk4r1.dts b/arch/arm/dts/bk4r1.dts
> > > index 866b80e0b0..55cd53384a 100644
> > > --- a/arch/arm/dts/bk4r1.dts
> > > +++ b/arch/arm/dts/bk4r1.dts
> > > @@ -1,47 +1,97 @@
> > >  // SPDX-License-Identifier: GPL-2.0+ OR X11
> > >  /*
> > > + * (C) Copyright 2018
> > > + * Lukasz Majewski, DENX Software Engineering, lu...@denx.de.
> > > + *
> > >   * Copyright 2016 Toradex AG
> > >   */
> > >  
> > >  /dts-v1/;
> > > -#include "vf.dtsi"
> > > +#include "vf610-pcm052.dtsi"
> > > +#include "vf610-pinfunc.h"
> > >  
> > >  / {
> > > - model = "Phytec phyCORE-Vybrid";
> > > - compatible = "phytec,pcm052", "fsl,vf610";
> > > + model = "Liebherr (LVF) BK4 Vybrid Board";
> > > + compatible = "lvf,bk4", "fsl,vf610";
> > >  
> > > - chosen {
> > > - stdout-path = &uart1;
> > > - };
> > > + leds {
> > > + pinctrl-names = "default";
> > > + pinctrl-0 = <&pinctrl_gpio_leds>;
> > >  
> > > - aliases {
> > > - spi0 = &qspi0;
> > > - };
> > > + compatible = "gpio-leds";
> > >  
> > > -};
> > > + /* PTE15 PORT3[24] H6 green */
> > > + led@0 {
> > > + label = "0";
> > > + gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
> > > + default-state = "off";
> > > + };
> > > +
> > > + /* PTA12 PORT0[5] H5 green */
> > > + led@1 {
> > > + label = "1";
> > > + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
> > > + default-state = "off";
> > > + };
> > > +
> > > + /* PTE20 PORT3[39] H4 green */
> > > + led@2 {
> > > + label = "2";
> > > + gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
> > > + default-state = "off";
> > > + };
> > >  
> > > -&uart1 {
> > > - status = "okay";
> > > + /* PTE12 PORT3[21] H3 green */
> > > + led@3 {
> > > + label = "3";
> > > + gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
> > > + default-state = "off";
> > > + };
> > > +
> > > + /* LED6 is now PRESET ETH -> PTA16 PORT0[6]  H6
> > > red */
> > > + /* PTE9  PORT3[18] H5 red */
> > > + led@4 {
> > > + label = "5";
> > > + gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
> > > + default-state = "off";
> > > + };
> > > +
> > > + /* PTE23 PORT4[0]  H4 red */
> > > + led@5 {
> > > + label = "6";
> > > + gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
> > > + default-state = "off";
> > > + };
> > > +
> > > + /* PTE16 PORT3[25] H3 red */
> > > + led@6 {
> > > + label = "7";
> > > + gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
> > > + default-state = "off";
> > > + };
> > > + };
> > >  };
> > >  
> > > -&qspi0 {
> > > - bus-num = <0>;
> > > - num-cs = <2>;
> > > - status = "okay";
> > > -
> > > - qflash0: spi_flash@0 {
> > > - #address-cells = <1>;
> > > - #size-cells = <1>;
> > > - compatible = "spi-flash";
> > > - spi-max-frequency = <10800>;
> > > - reg = <0>;
> > > +&iomuxc {
> > > + pinctrl-0 = <&pinctrl_ddr &pinctrl_hog>;
> > > +
> > > + pinctrl_hog: hoggrp {
> > > + fsl,pins = <
> > > + /* ETH control pins */
> > > + VF610_PAD_PTE17__GPIO_122
> > > 0x1183
> > > + VF610_PAD_PTA16__GPIO_6 0x1183
> > > + >;
> > >   };
> > >  
> > > - qflash1: spi_flash@1 {
> > > - #address-cells = <1>;
> > > - #size-cells = <1>;
> > > - compatible = "spi-flash";
> > > - spi-max-frequency = <6600>;
> > > - reg = <1>;
> > > + pinctrl_gpio_leds: gpioledsgrp {
> > > + fsl,pins = <
> > > + /* LEDS */
> > > + VF610_PAD_PTE15__GPIO_120   0x1183
> > > + VF610_PAD_PTA12__GPIO_5 0x1183
> > > + VF610_PAD_PTE9__GPIO_1140x1183
> > > + VF610_PAD_PTE20__GPIO_125   0x1183
> > > + VF610_PAD_PTE23__GPIO_128   0x1183
> >

Re: [U-Boot] [PATCH v1 11/21] ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052.dts)

2019-01-15 Thread Lukasz Majewski
Hi Tom,

> On Tue, Jan 15, 2019 at 09:20:16AM +0100, Lukasz Majewski wrote:
> > Hi Tom,
> >   
> > > On Mon, Jan 14, 2019 at 03:17:30PM +0100, Lukasz Majewski wrote:  
> > > > This commit provides update to the bk4r1.dts file with
> > > > more on SoC HW description.
> > > > Moreover, a new vf610-pcm052.drsi file has been introduced
> > > > to reuse the common code between devices based on Phytec's
> > > > pcm052 modules.
> > > > Ported from Linux kernel - v4.20 (tag)
> > > > 
> > > > Signed-off-by: Lukasz Majewski 
> > > > ---
> > > > 
> > > >  arch/arm/dts/bk4r1.dts | 108 -
> > > >  arch/arm/dts/pcm052.dts|   6 +-
> > > >  arch/arm/dts/vf610-pcm052.dtsi | 266
> > > > + 3 files changed, 346
> > > > insertions(+), 34 deletions(-) create mode 100644
> > > > arch/arm/dts/vf610-pcm052.dtsi
> > > > 
> > > > diff --git a/arch/arm/dts/bk4r1.dts b/arch/arm/dts/bk4r1.dts
> > > > index 866b80e0b0..55cd53384a 100644
> > > > --- a/arch/arm/dts/bk4r1.dts
> > > > +++ b/arch/arm/dts/bk4r1.dts
> > > > @@ -1,47 +1,97 @@
> > > >  // SPDX-License-Identifier: GPL-2.0+ OR X11
> > > >  /*
> > > > + * (C) Copyright 2018
> > > > + * Lukasz Majewski, DENX Software Engineering, lu...@denx.de.
> > > > + *
> > > >   * Copyright 2016 Toradex AG
> > > >   */
> > > >  
> > > >  /dts-v1/;
> > > > -#include "vf.dtsi"
> > > > +#include "vf610-pcm052.dtsi"
> > > > +#include "vf610-pinfunc.h"
> > > >  
> > > >  / {
> > > > -   model = "Phytec phyCORE-Vybrid";
> > > > -   compatible = "phytec,pcm052", "fsl,vf610";
> > > > +   model = "Liebherr (LVF) BK4 Vybrid Board";
> > > > +   compatible = "lvf,bk4", "fsl,vf610";
> > > >  
> > > > -   chosen {
> > > > -   stdout-path = &uart1;
> > > > -   };
> > > > +   leds {
> > > > +   pinctrl-names = "default";
> > > > +   pinctrl-0 = <&pinctrl_gpio_leds>;
> > > >  
> > > > -   aliases {
> > > > -   spi0 = &qspi0;
> > > > -   };
> > > > +   compatible = "gpio-leds";
> > > >  
> > > > -};
> > > > +   /* PTE15 PORT3[24] H6 green */
> > > > +   led@0 {
> > > > +   label = "0";
> > > > +   gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
> > > > +   default-state = "off";
> > > > +   };
> > > > +
> > > > +   /* PTA12 PORT0[5] H5 green */
> > > > +   led@1 {
> > > > +   label = "1";
> > > > +   gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
> > > > +   default-state = "off";
> > > > +   };
> > > > +
> > > > +   /* PTE20 PORT3[39] H4 green */
> > > > +   led@2 {
> > > > +   label = "2";
> > > > +   gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
> > > > +   default-state = "off";
> > > > +   };
> > > >  
> > > > -&uart1 {
> > > > -   status = "okay";
> > > > +   /* PTE12 PORT3[21] H3 green */
> > > > +   led@3 {
> > > > +   label = "3";
> > > > +   gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
> > > > +   default-state = "off";
> > > > +   };
> > > > +
> > > > +   /* LED6 is now PRESET ETH -> PTA16 PORT0[6]  H6
> > > > red */
> > > > +   /* PTE9  PORT3[18] H5 red */
> > > > +   led@4 {
> > > > +   label = "5";
> > > > +   gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
> > > > +   default-state = "off";
> > > > +   };
> > > > +
> > > > +   /* PTE23 PORT4[0]  H4 red */
> > > > +   led@5 {
> > > > +   label = "6";
> > > > +   gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
> > > > +   default-state = "off";
> > > > +   };
> > > > +
> > > > +   /* PTE16 PORT3[25] H3 red */
> > > > +   led@6 {
> > > > +   label = "7";
> > > > +   gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
> > > > +   default-state = "off";
> > > > +   };
> > > > +   };
> > > >  };
> > > >  
> > > > -&qspi0 {
> > > > -   bus-num = <0>;
> > > > -   num-cs = <2>;
> > > > -   status = "okay";
> > > > -
> > > > -   qflash0: spi_flash@0 {
> > > > -   #address-cells = <1>;
> > > > -   #size-cells = <1>;
> > > > -   compatible = "spi-flash";
> > > > -   spi-max-frequency = <10800>;
> > > > -   reg = <0>;
> > > > +&iomuxc {
> > > > +   pinctrl-0 = <&pinctrl_ddr &pinctrl_hog>;
> > > > +
> > > > +   pinctrl_hog: hoggrp {
> > > > +   fsl,pins = <
> > > > +   /* ETH control pins */
> > > > +   VF610_PAD_PTE17__GPIO_122
> > > > 0x1183
> > > > +