diff mbox

[U-Boot,3/7] arm: vf610-twr: Add device tree files

Message ID 1453448992-20178-4-git-send-email-bhuvanchandra.dv@toradex.com
State Superseded
Delegated to: Stefano Babic
Headers show

Commit Message

Bhuvanchandra DV Jan. 22, 2016, 7:49 a.m. UTC
Add device tree files and enable serial support
---
 arch/arm/dts/Makefile          |  3 ++-
 arch/arm/dts/vf610-twr.dts     | 27 +++++++++++++++++++++++++++
 configs/vf610twr_dtb_defconfig | 13 +++++++++++++
 3 files changed, 42 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/vf610-twr.dts
 create mode 100644 configs/vf610twr_dtb_defconfig

Comments

Bin Meng Jan. 22, 2016, 9:52 a.m. UTC | #1
Hi Bhuvanchandra,

On Fri, Jan 22, 2016 at 3:49 PM, Bhuvanchandra DV
<bhuvanchandra.dv@toradex.com> wrote:
> Add device tree files and enable serial support
> ---
>  arch/arm/dts/Makefile          |  3 ++-
>  arch/arm/dts/vf610-twr.dts     | 27 +++++++++++++++++++++++++++
>  configs/vf610twr_dtb_defconfig | 13 +++++++++++++
>  3 files changed, 42 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/dts/vf610-twr.dts
>  create mode 100644 configs/vf610twr_dtb_defconfig
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index f66ff41..c6fb50c 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -190,7 +190,8 @@ dtb-$(CONFIG_MACH_SUN9I) += \
>         sun9i-a80-cubieboard4.dtb
>
>  dtb-$(CONFIG_VF610) += vf500-colibri.dtb \
> -       vf610-colibri.dtb
> +       vf610-colibri.dtb \
> +       vf610-twr.dtb
>
>  dtb-$(CONFIG_SOC_KEYSTONE) += k2hk-evm.dtb \
>         k2l-evm.dtb \
> diff --git a/arch/arm/dts/vf610-twr.dts b/arch/arm/dts/vf610-twr.dts
> new file mode 100644
> index 0000000..8f86a80
> --- /dev/null
> +++ b/arch/arm/dts/vf610-twr.dts
> @@ -0,0 +1,27 @@
> +/*
> + * Copyright 2016 Toradex AG
> + *
> + * SPDX-License-Identifier:     GPL-2.0+ or X11
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + */
> +

Since there is already SPDX license, we can remove the full one.

> +/dts-v1/;
> +#include "vf.dtsi"
> +
> +/ {
> +       model = "VF610 Tower Board";
> +       compatible = "fsl,vf610-twr", "fsl,vf610";
> +
> +       choosen {
> +               stdout-path = &uart1;
> +       };
> +
> +};
> +
> +&uart1 {
> +       status = "okay";
> +};
> diff --git a/configs/vf610twr_dtb_defconfig b/configs/vf610twr_dtb_defconfig

_dtb again?

> new file mode 100644
> index 0000000..24a7223
> --- /dev/null
> +++ b/configs/vf610twr_dtb_defconfig
> @@ -0,0 +1,13 @@
> +CONFIG_ARM=y
> +CONFIG_TARGET_VF610TWR=y
> +CONFIG_DEFAULT_DEVICE_TREE="vf610-twr"
> +CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/vf610twr/imximage.cfg,ENV_IS_IN_MMC"
> +# CONFIG_CMD_IMLS is not set
> +# CONFIG_CMD_SETEXPR is not set
> +CONFIG_NAND_VF610_NFC=y
> +CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
> +CONFIG_SPI_FLASH=y
> +CONFIG_DM=y
> +CONFIG_OF_CONTROL=y
> +CONFIG_DM_SERIAL=y
> +CONFIG_FSL_LPUART=y
> --

Please reorder this via 'make savedefconfig'.

Regards,
Bin
Bhuvanchandra DV Jan. 22, 2016, 12:21 p.m. UTC | #2
On 01/22/2016 03:22 PM, Bin Meng wrote:
> Hi Bhuvanchandra,
>
> On Fri, Jan 22, 2016 at 3:49 PM, Bhuvanchandra DV
> <bhuvanchandra.dv@toradex.com> wrote:
>> Add device tree files and enable serial support
>> ---
>>   arch/arm/dts/Makefile          |  3 ++-
>>   arch/arm/dts/vf610-twr.dts     | 27 +++++++++++++++++++++++++++
>>   configs/vf610twr_dtb_defconfig | 13 +++++++++++++
>>   3 files changed, 42 insertions(+), 1 deletion(-)
>>   create mode 100644 arch/arm/dts/vf610-twr.dts
>>   create mode 100644 configs/vf610twr_dtb_defconfig
>>
>> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
>> index f66ff41..c6fb50c 100644
>> --- a/arch/arm/dts/Makefile
>> +++ b/arch/arm/dts/Makefile
>> @@ -190,7 +190,8 @@ dtb-$(CONFIG_MACH_SUN9I) += \
>>          sun9i-a80-cubieboard4.dtb
>>
>>   dtb-$(CONFIG_VF610) += vf500-colibri.dtb \
>> -       vf610-colibri.dtb
>> +       vf610-colibri.dtb \
>> +       vf610-twr.dtb
>>
>>   dtb-$(CONFIG_SOC_KEYSTONE) += k2hk-evm.dtb \
>>          k2l-evm.dtb \
>> diff --git a/arch/arm/dts/vf610-twr.dts b/arch/arm/dts/vf610-twr.dts
>> new file mode 100644
>> index 0000000..8f86a80
>> --- /dev/null
>> +++ b/arch/arm/dts/vf610-twr.dts
>> @@ -0,0 +1,27 @@
>> +/*
>> + * Copyright 2016 Toradex AG
>> + *
>> + * SPDX-License-Identifier:     GPL-2.0+ or X11
>> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License as published by
>> + * the Free Software Foundation; either version 2 of the License, or
>> + * (at your option) any later version.
>> + */
>> +
>
> Since there is already SPDX license, we can remove the full one.

Okay.

>
>> +/dts-v1/;
>> +#include "vf.dtsi"
>> +
>> +/ {
>> +       model = "VF610 Tower Board";
>> +       compatible = "fsl,vf610-twr", "fsl,vf610";
>> +
>> +       choosen {
>> +               stdout-path = &uart1;
>> +       };
>> +
>> +};
>> +
>> +&uart1 {
>> +       status = "okay";
>> +};
>> diff --git a/configs/vf610twr_dtb_defconfig b/configs/vf610twr_dtb_defconfig
>
> _dtb again?
>
>> new file mode 100644
>> index 0000000..24a7223
>> --- /dev/null
>> +++ b/configs/vf610twr_dtb_defconfig
>> @@ -0,0 +1,13 @@
>> +CONFIG_ARM=y
>> +CONFIG_TARGET_VF610TWR=y
>> +CONFIG_DEFAULT_DEVICE_TREE="vf610-twr"
>> +CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/vf610twr/imximage.cfg,ENV_IS_IN_MMC"
>> +# CONFIG_CMD_IMLS is not set
>> +# CONFIG_CMD_SETEXPR is not set
>> +CONFIG_NAND_VF610_NFC=y
>> +CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
>> +CONFIG_SPI_FLASH=y
>> +CONFIG_DM=y
>> +CONFIG_OF_CONTROL=y
>> +CONFIG_DM_SERIAL=y
>> +CONFIG_FSL_LPUART=y
>> --
>
> Please reorder this via 'make savedefconfig'.
>
> Regards,
> Bin
>
diff mbox

Patch

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index f66ff41..c6fb50c 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -190,7 +190,8 @@  dtb-$(CONFIG_MACH_SUN9I) += \
 	sun9i-a80-cubieboard4.dtb
 
 dtb-$(CONFIG_VF610) += vf500-colibri.dtb \
-	vf610-colibri.dtb
+	vf610-colibri.dtb \
+	vf610-twr.dtb
 
 dtb-$(CONFIG_SOC_KEYSTONE) += k2hk-evm.dtb \
 	k2l-evm.dtb \
diff --git a/arch/arm/dts/vf610-twr.dts b/arch/arm/dts/vf610-twr.dts
new file mode 100644
index 0000000..8f86a80
--- /dev/null
+++ b/arch/arm/dts/vf610-twr.dts
@@ -0,0 +1,27 @@ 
+/*
+ * Copyright 2016 Toradex AG
+ *
+ * SPDX-License-Identifier:     GPL-2.0+ or X11
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+/dts-v1/;
+#include "vf.dtsi"
+
+/ {
+	model = "VF610 Tower Board";
+	compatible = "fsl,vf610-twr", "fsl,vf610";
+
+	choosen {
+		stdout-path = &uart1;
+	};
+
+};
+
+&uart1 {
+	status = "okay";
+};
diff --git a/configs/vf610twr_dtb_defconfig b/configs/vf610twr_dtb_defconfig
new file mode 100644
index 0000000..24a7223
--- /dev/null
+++ b/configs/vf610twr_dtb_defconfig
@@ -0,0 +1,13 @@ 
+CONFIG_ARM=y
+CONFIG_TARGET_VF610TWR=y
+CONFIG_DEFAULT_DEVICE_TREE="vf610-twr"
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/vf610twr/imximage.cfg,ENV_IS_IN_MMC"
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_NAND_VF610_NFC=y
+CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
+CONFIG_SPI_FLASH=y
+CONFIG_DM=y
+CONFIG_OF_CONTROL=y
+CONFIG_DM_SERIAL=y
+CONFIG_FSL_LPUART=y