Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-25 Thread Stefano Babic
On 25/04/19 09:31, Jun Nie wrote:
>>
>> I merged Joris' series and build is in progress.
>>
>> Regards,
>> Stefano
>>
> Great! I will prepare my patch based on that. But I cannot find latest
> pico patch on denx master repo.

Right.

> Did you merge it to your own repo and
> pulled to denx master later, just like linux work flow?

Yes.

> I am not
> familiar with u-boot work flow yet.

Because PR are rejected if not verified by Travis, I push first to
https://github.com/sbabic/u-boot-imx (-next branch). If report from
Travis is ok (this is needed in PR), I push to git.denx.de/u-boot-imx
(-master).

Regards,
Stefano

-- 
=
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-25 Thread Jun Nie
>
> I merged Joris' series and build is in progress.
>
> Regards,
> Stefano
>
Great! I will prepare my patch based on that. But I cannot find latest
pico patch on denx master repo. Did you merge it to your own repo and
pulled to denx master later, just like linux work flow? I am not
familiar with u-boot work flow yet. Thanks for point the repo in
advance!

Jun
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-25 Thread Stefano Babic
On 25/04/19 04:56, Jun Nie wrote:
> Fabio Estevam  于2019年4月24日周三 下午6:31写道:
>>
>> On Wed, Apr 24, 2019 at 1:00 AM Jun Nie  wrote:
>>>
>>> Copy device tree files from Linux directly.
>>>
>>> Signed-off-by: Jun Nie 
>>
>> There is a series from Joris that does the pico-mx7d DM conversion.
> 
> When is that series expected to be merged?
> 

I merged Joris' series and build is in progress.

Regards,
Stefano

-- 
=
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-24 Thread Jun Nie
Fabio Estevam  于2019年4月24日周三 下午6:31写道:
>
> On Wed, Apr 24, 2019 at 1:00 AM Jun Nie  wrote:
> >
> > Copy device tree files from Linux directly.
> >
> > Signed-off-by: Jun Nie 
>
> There is a series from Joris that does the pico-mx7d DM conversion.

When is that series expected to be merged?
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-24 Thread Fabio Estevam
On Wed, Apr 24, 2019 at 1:00 AM Jun Nie  wrote:
>
> Copy device tree files from Linux directly.
>
> Signed-off-by: Jun Nie 

There is a series from Joris that does the pico-mx7d DM conversion.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-23 Thread Peng Fan

> Subject: [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d
> 
> Copy device tree files from Linux directly.

Please describe which specific commit from Linux kernel upstream

Regards,
Peng.

> 
> Signed-off-by: Jun Nie 
> ---
>  arch/arm/dts/Makefile  |   1 +
>  arch/arm/dts/imx7d-pico-pi.dts |  93 +++
>  arch/arm/dts/imx7d-pico.dtsi   | 585
> +
>  3 files changed, 679 insertions(+)
>  create mode 100644 arch/arm/dts/imx7d-pico-pi.dts  create mode 100644
> arch/arm/dts/imx7d-pico.dtsi
> 
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index
> 0aee8df..e6cb1d3 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -555,6 +555,7 @@ dtb-$(CONFIG_ARCH_MX6) += \
> 
>  dtb-$(CONFIG_MX7) += imx7d-sdb.dtb \
>   imx7d-sdb-qspi.dtb \
> + imx7d-pico-pi.dtb \
>   imx7-colibri-emmc.dtb \
>   imx7-colibri-rawnand.dtb \
>   imx7s-warp.dtb
> diff --git a/arch/arm/dts/imx7d-pico-pi.dts b/arch/arm/dts/imx7d-pico-pi.dts
> new file mode 100644 index 000..70bea95
> --- /dev/null
> +++ b/arch/arm/dts/imx7d-pico-pi.dts
> @@ -0,0 +1,93 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) // // Copyright 2017 NXP
> +
> +#include "imx7d-pico.dtsi"
> +
> +/ {
> + model = "TechNexion PICO-IMX7D Board and PI baseboard";
> + compatible = "technexion,imx7d-pico-pi", "fsl,imx7d";
> +
> + leds {
> + compatible = "gpio-leds";
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_gpio_leds>;
> +
> + led {
> + label = "gpio-led";
> + gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
> + };
> + };
> +
> + sound {
> + compatible = "simple-audio-card";
> + simple-audio-card,name = "imx7-sgtl5000";
> + simple-audio-card,format = "i2s";
> + simple-audio-card,bitclock-master = <&dailink_master>;
> + simple-audio-card,frame-master = <&dailink_master>;
> + simple-audio-card,cpu {
> + sound-dai = <&sai1>;
> + };
> +
> + dailink_master: simple-audio-card,codec {
> + sound-dai = <&sgtl5000>;
> + clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
> + };
> + };
> +};
> +
> +&i2c1 {
> + sgtl5000: codec@a {
> + #sound-dai-cells = <0>;
> + reg = <0x0a>;
> + compatible = "fsl,sgtl5000";
> + clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
> + VDDA-supply = <®_2p5v>;
> + VDDIO-supply = <®_vref_1v8>;
> + };
> +};
> +
> +&i2c4 {
> + polytouch: touchscreen@38 {
> + compatible = "edt,edt-ft5x06";
> + reg = <0x38>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_touchscreen>;
> + interrupt-parent = <&gpio2>;
> + interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
> + reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
> + touchscreen-size-x = <800>;
> + touchscreen-size-y = <480>;
> + };
> +};
> +
> +&iomuxc {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_hog>;
> +
> + pinctrl_hog: hoggrp {
> + fsl,pins = <
> + MX7D_PAD_EPDC_DATA00__GPIO2_IO0 0x14
> + MX7D_PAD_EPDC_DATA01__GPIO2_IO1 0x14
> + MX7D_PAD_EPDC_DATA02__GPIO2_IO2 0x14
> + MX7D_PAD_EPDC_DATA03__GPIO2_IO3 0x14
> + MX7D_PAD_EPDC_DATA05__GPIO2_IO5 0x14
> + MX7D_PAD_EPDC_DATA12__GPIO2_IO120x14
> + MX7D_PAD_EPDC_DATA07__GPIO2_IO7 0x14
> + >;
> + };
> +
> + pinctrl_gpio_leds: gpioledsgrp {
> + fsl,pins = <
> + MX7D_PAD_EPDC_DATA06__GPIO2_IO6 0x14
> + >;
> + };
> +
> + pinctrl_touchscreen: touchscreengrp {
> + fsl,pins = <
> + MX7D_PAD_EPDC_DATA04__GPIO2_IO4 0x14
> + MX7D_PAD_EPDC_DATA13__GPIO2_IO130x14
> + >;
> + };
> +
> +};
> diff --git a/arch/arm/dts/imx7d-pico.dtsi b/arch/arm/dts/imx7d-pico.dtsi new
> file mode 100644 index 000..3fd595a
> --- /dev/null
> +++ b/arch/arm/dts/imx7d-pico.dtsi
> @@ -0,0 +1,585 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) // // Copyright 2017 NXP
> +
> +/dts-v1/;
> +
> +#include "imx7d.dtsi"
> +
> +/ {
> + /* Will be filled by the bootloader */
> + memory@8000 {
> + device_type = "memory";
> + reg = <0x8000 0>;
> + };
> +
> + reg_wlreg_on: regulator-wlreg_on {
> + compatible = "regulator-fixed";
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_reg_wlreg_on>;
> + regulator-name = "wlreg_on";
> + regulator-min-

[U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-23 Thread Jun Nie
Copy device tree files from Linux directly.

Signed-off-by: Jun Nie 
---
 arch/arm/dts/Makefile  |   1 +
 arch/arm/dts/imx7d-pico-pi.dts |  93 +++
 arch/arm/dts/imx7d-pico.dtsi   | 585 +
 3 files changed, 679 insertions(+)
 create mode 100644 arch/arm/dts/imx7d-pico-pi.dts
 create mode 100644 arch/arm/dts/imx7d-pico.dtsi

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 0aee8df..e6cb1d3 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -555,6 +555,7 @@ dtb-$(CONFIG_ARCH_MX6) += \
 
 dtb-$(CONFIG_MX7) += imx7d-sdb.dtb \
imx7d-sdb-qspi.dtb \
+   imx7d-pico-pi.dtb \
imx7-colibri-emmc.dtb \
imx7-colibri-rawnand.dtb \
imx7s-warp.dtb
diff --git a/arch/arm/dts/imx7d-pico-pi.dts b/arch/arm/dts/imx7d-pico-pi.dts
new file mode 100644
index 000..70bea95
--- /dev/null
+++ b/arch/arm/dts/imx7d-pico-pi.dts
@@ -0,0 +1,93 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+//
+// Copyright 2017 NXP
+
+#include "imx7d-pico.dtsi"
+
+/ {
+   model = "TechNexion PICO-IMX7D Board and PI baseboard";
+   compatible = "technexion,imx7d-pico-pi", "fsl,imx7d";
+
+   leds {
+   compatible = "gpio-leds";
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_gpio_leds>;
+
+   led {
+   label = "gpio-led";
+   gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
+   };
+   };
+
+   sound {
+   compatible = "simple-audio-card";
+   simple-audio-card,name = "imx7-sgtl5000";
+   simple-audio-card,format = "i2s";
+   simple-audio-card,bitclock-master = <&dailink_master>;
+   simple-audio-card,frame-master = <&dailink_master>;
+   simple-audio-card,cpu {
+   sound-dai = <&sai1>;
+   };
+
+   dailink_master: simple-audio-card,codec {
+   sound-dai = <&sgtl5000>;
+   clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+   };
+   };
+};
+
+&i2c1 {
+   sgtl5000: codec@a {
+   #sound-dai-cells = <0>;
+   reg = <0x0a>;
+   compatible = "fsl,sgtl5000";
+   clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+   VDDA-supply = <®_2p5v>;
+   VDDIO-supply = <®_vref_1v8>;
+   };
+};
+
+&i2c4 {
+   polytouch: touchscreen@38 {
+   compatible = "edt,edt-ft5x06";
+   reg = <0x38>;
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_touchscreen>;
+   interrupt-parent = <&gpio2>;
+   interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+   reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
+   touchscreen-size-x = <800>;
+   touchscreen-size-y = <480>;
+   };
+};
+
+&iomuxc {
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_hog>;
+
+   pinctrl_hog: hoggrp {
+   fsl,pins = <
+   MX7D_PAD_EPDC_DATA00__GPIO2_IO0 0x14
+   MX7D_PAD_EPDC_DATA01__GPIO2_IO1 0x14
+   MX7D_PAD_EPDC_DATA02__GPIO2_IO2 0x14
+   MX7D_PAD_EPDC_DATA03__GPIO2_IO3 0x14
+   MX7D_PAD_EPDC_DATA05__GPIO2_IO5 0x14
+   MX7D_PAD_EPDC_DATA12__GPIO2_IO120x14
+   MX7D_PAD_EPDC_DATA07__GPIO2_IO7 0x14
+   >;
+   };
+
+   pinctrl_gpio_leds: gpioledsgrp {
+   fsl,pins = <
+   MX7D_PAD_EPDC_DATA06__GPIO2_IO6 0x14
+   >;
+   };
+
+   pinctrl_touchscreen: touchscreengrp {
+   fsl,pins = <
+   MX7D_PAD_EPDC_DATA04__GPIO2_IO4 0x14
+   MX7D_PAD_EPDC_DATA13__GPIO2_IO130x14
+   >;
+   };
+
+};
diff --git a/arch/arm/dts/imx7d-pico.dtsi b/arch/arm/dts/imx7d-pico.dtsi
new file mode 100644
index 000..3fd595a
--- /dev/null
+++ b/arch/arm/dts/imx7d-pico.dtsi
@@ -0,0 +1,585 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+//
+// Copyright 2017 NXP
+
+/dts-v1/;
+
+#include "imx7d.dtsi"
+
+/ {
+   /* Will be filled by the bootloader */
+   memory@8000 {
+   device_type = "memory";
+   reg = <0x8000 0>;
+   };
+
+   reg_wlreg_on: regulator-wlreg_on {
+   compatible = "regulator-fixed";
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_reg_wlreg_on>;
+   regulator-name = "wlreg_on";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+   gpio = <&gpio4 16 GPIO_ACTIVE_HIGH>;
+   enable-active-high;
+   };
+
+   reg_2p5v: regulator-2p5v {
+   compatible = "regulator-fixed";
+