Re: [PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2017-01-22 Thread Kefeng Wang


On 2016/10/17 20:07, Pan Wen wrote:
> Add dts files for Hi3516CV300 demo board.
> 
> Signed-off-by: Pan Wen 
> ---
>  arch/arm/boot/dts/Makefile |   1 +

[...]

> diff --git a/arch/arm/boot/dts/hi3516cv300.dtsi 
> b/arch/arm/boot/dts/hi3516cv300.dtsi
> new file mode 100644
> index 000..1da41ab
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300.dtsi
> @@ -0,0 +1,397 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * 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.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program.  If not, see .
> + *
> + */
> +
> +#include "skeleton.dtsi"

please drop this include due to commit 9c0da3cc61f1233c ("ARM: dts: explicitly 
mark skeleton.dtsi as deprecated")

Thanks
Kefeng





Re: [PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2017-01-22 Thread Kefeng Wang


On 2016/10/17 20:07, Pan Wen wrote:
> Add dts files for Hi3516CV300 demo board.
> 
> Signed-off-by: Pan Wen 
> ---
>  arch/arm/boot/dts/Makefile |   1 +

[...]

> diff --git a/arch/arm/boot/dts/hi3516cv300.dtsi 
> b/arch/arm/boot/dts/hi3516cv300.dtsi
> new file mode 100644
> index 000..1da41ab
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300.dtsi
> @@ -0,0 +1,397 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * 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.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program.  If not, see .
> + *
> + */
> +
> +#include "skeleton.dtsi"

please drop this include due to commit 9c0da3cc61f1233c ("ARM: dts: explicitly 
mark skeleton.dtsi as deprecated")

Thanks
Kefeng





Re: [PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2017-01-20 Thread Wei Xu
Hi Pan Wen,

On 2016/10/17 13:07, Pan Wen wrote:
> Add dts files for Hi3516CV300 demo board.
> 
> Signed-off-by: Pan Wen 
> ---
>  arch/arm/boot/dts/Makefile |   1 +
>  arch/arm/boot/dts/hi3516cv300-demb.dts | 148 
>  arch/arm/boot/dts/hi3516cv300.dtsi | 397 
> +
>  3 files changed, 546 insertions(+)
>  create mode 100644 arch/arm/boot/dts/hi3516cv300-demb.dts
>  create mode 100644 arch/arm/boot/dts/hi3516cv300.dtsi
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index befcd26..1f25530 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -171,6 +171,7 @@ dtb-$(CONFIG_ARCH_HIP01) += \
>  dtb-$(CONFIG_ARCH_HIP04) += \
>   hip04-d01.dtb
>  dtb-$(CONFIG_ARCH_HISI) += \
> + hi3516cv300-demb.dtb \
>   hi3519-demb.dtb
>  dtb-$(CONFIG_ARCH_HIX5HD2) += \
>   hisi-x5hd2-dkb.dtb
> diff --git a/arch/arm/boot/dts/hi3516cv300-demb.dts 
> b/arch/arm/boot/dts/hi3516cv300-demb.dts
> new file mode 100644
> index 000..6a75cd6
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300-demb.dts
> @@ -0,0 +1,148 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * 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.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program.  If not, see .
> + *
> + */
> +
> +
> +/dts-v1/;
> +#include "hi3516cv300.dtsi"
> +
> +/ {
> + model = "Hisilicon Hi3516CV300 DEMO Board";
> + compatible = "hisilicon,hi3516cv300";
> +
> + aliases {
> + serial0 = 
> + serial1 = 
> + serial2 = 
> + i2c0 = _bus0;
> + i2c1 = _bus1;
> + spi0 = _bus0;
> + spi1 = _bus1;
> + };
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + };
> +
> + memory {
> + device_type = "memory";
> + reg = <0x8000 0x1000>;
> + };
> +};
> +
> +_timer0 {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> +_bus0 {
> + status = "okay";
> + clock-frequency = <10>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus1 {
> + status = "okay";
> + clock-frequency = <10>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus0{
> + status = "disabled";
> + num-cs = <1>;
> + cs-gpios = <_chip0 6 0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus1{
> + status = "okay";
> + num-cs = <2>;
> + cs-gpios = <_chip5 3 0>, <_chip5 4 0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> + {
> + spi-nor@0 {
> + compatible = "jedec,spi-nor";
> + reg = <0>;
> + spi-max-frequency = <16000>;
> + m25p,fast-read;
> + };
> +};
> +
> + {
> + phy0: phy@1 {
> + reg = <1>;
> + };
> +};
> +
> +_femac {
> + mac-address = [00 00 00 00 00 00];
> + phy-mode = "rmii";
> + phy-handle = <>;
> + hisilicon,phy-reset-delays-us = <1 1 15>;
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + i2c0_pmux: i2c0_pmux {
> + pinctrl-single,pins = <
> + 0x2c 0x3
> + 0x30 0x3>;
> + };
> +
> + i2c1_pmux: i2c1_pmux {
> + pinctrl-single,pins = <
> + 0x20 0x1
> + 0x24 0x1>;
> + };
> +
> + spi0_pmux: spi0_pmux {
> + pinctrl-single,pins = <
> + 0x28 0x1
> + 0x2c 0x1
> + 0x30 0x1
> + 0x34 0x1>;
> + };
> +
> + spi1_pmux: spi1_pmux {
> + pinctrl-single,pins = <
> + 0xc4 0x1
> + 0xc8 0x1
> + 0xcc 0x1
> + 0xd0 0x1
> + 0xd4 0x1>;
> + };
> +};
> diff --git a/arch/arm/boot/dts/hi3516cv300.dtsi 
> b/arch/arm/boot/dts/hi3516cv300.dtsi
> new file mode 100644
> index 000..1da41ab
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300.dtsi
> @@ -0,0 +1,397 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * This program is free software; you can redistribute  it and/or modify it

Re: [PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2017-01-20 Thread Wei Xu
Hi Pan Wen,

On 2016/10/17 13:07, Pan Wen wrote:
> Add dts files for Hi3516CV300 demo board.
> 
> Signed-off-by: Pan Wen 
> ---
>  arch/arm/boot/dts/Makefile |   1 +
>  arch/arm/boot/dts/hi3516cv300-demb.dts | 148 
>  arch/arm/boot/dts/hi3516cv300.dtsi | 397 
> +
>  3 files changed, 546 insertions(+)
>  create mode 100644 arch/arm/boot/dts/hi3516cv300-demb.dts
>  create mode 100644 arch/arm/boot/dts/hi3516cv300.dtsi
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index befcd26..1f25530 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -171,6 +171,7 @@ dtb-$(CONFIG_ARCH_HIP01) += \
>  dtb-$(CONFIG_ARCH_HIP04) += \
>   hip04-d01.dtb
>  dtb-$(CONFIG_ARCH_HISI) += \
> + hi3516cv300-demb.dtb \
>   hi3519-demb.dtb
>  dtb-$(CONFIG_ARCH_HIX5HD2) += \
>   hisi-x5hd2-dkb.dtb
> diff --git a/arch/arm/boot/dts/hi3516cv300-demb.dts 
> b/arch/arm/boot/dts/hi3516cv300-demb.dts
> new file mode 100644
> index 000..6a75cd6
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300-demb.dts
> @@ -0,0 +1,148 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * 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.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program.  If not, see .
> + *
> + */
> +
> +
> +/dts-v1/;
> +#include "hi3516cv300.dtsi"
> +
> +/ {
> + model = "Hisilicon Hi3516CV300 DEMO Board";
> + compatible = "hisilicon,hi3516cv300";
> +
> + aliases {
> + serial0 = 
> + serial1 = 
> + serial2 = 
> + i2c0 = _bus0;
> + i2c1 = _bus1;
> + spi0 = _bus0;
> + spi1 = _bus1;
> + };
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + };
> +
> + memory {
> + device_type = "memory";
> + reg = <0x8000 0x1000>;
> + };
> +};
> +
> +_timer0 {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> +_bus0 {
> + status = "okay";
> + clock-frequency = <10>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus1 {
> + status = "okay";
> + clock-frequency = <10>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus0{
> + status = "disabled";
> + num-cs = <1>;
> + cs-gpios = <_chip0 6 0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus1{
> + status = "okay";
> + num-cs = <2>;
> + cs-gpios = <_chip5 3 0>, <_chip5 4 0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> + {
> + spi-nor@0 {
> + compatible = "jedec,spi-nor";
> + reg = <0>;
> + spi-max-frequency = <16000>;
> + m25p,fast-read;
> + };
> +};
> +
> + {
> + phy0: phy@1 {
> + reg = <1>;
> + };
> +};
> +
> +_femac {
> + mac-address = [00 00 00 00 00 00];
> + phy-mode = "rmii";
> + phy-handle = <>;
> + hisilicon,phy-reset-delays-us = <1 1 15>;
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + i2c0_pmux: i2c0_pmux {
> + pinctrl-single,pins = <
> + 0x2c 0x3
> + 0x30 0x3>;
> + };
> +
> + i2c1_pmux: i2c1_pmux {
> + pinctrl-single,pins = <
> + 0x20 0x1
> + 0x24 0x1>;
> + };
> +
> + spi0_pmux: spi0_pmux {
> + pinctrl-single,pins = <
> + 0x28 0x1
> + 0x2c 0x1
> + 0x30 0x1
> + 0x34 0x1>;
> + };
> +
> + spi1_pmux: spi1_pmux {
> + pinctrl-single,pins = <
> + 0xc4 0x1
> + 0xc8 0x1
> + 0xcc 0x1
> + 0xd0 0x1
> + 0xd4 0x1>;
> + };
> +};
> diff --git a/arch/arm/boot/dts/hi3516cv300.dtsi 
> b/arch/arm/boot/dts/hi3516cv300.dtsi
> new file mode 100644
> index 000..1da41ab
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300.dtsi
> @@ -0,0 +1,397 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * This program is free software; you can redistribute  it and/or modify it
> + * under  the 

Re: [PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2016-12-12 Thread Jiancheng Xue

On 2016/10/17 20:07, Pan Wen wrote:
> Add dts files for Hi3516CV300 demo board.
> 
> Signed-off-by: Pan Wen 
> ---

Could you help to review this patch, please?

>  arch/arm/boot/dts/Makefile |   1 +
>  arch/arm/boot/dts/hi3516cv300-demb.dts | 148 
>  arch/arm/boot/dts/hi3516cv300.dtsi | 397 
> +
>  3 files changed, 546 insertions(+)
>  create mode 100644 arch/arm/boot/dts/hi3516cv300-demb.dts
>  create mode 100644 arch/arm/boot/dts/hi3516cv300.dtsi
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index befcd26..1f25530 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -171,6 +171,7 @@ dtb-$(CONFIG_ARCH_HIP01) += \
>  dtb-$(CONFIG_ARCH_HIP04) += \
>   hip04-d01.dtb
>  dtb-$(CONFIG_ARCH_HISI) += \
> + hi3516cv300-demb.dtb \
>   hi3519-demb.dtb
>  dtb-$(CONFIG_ARCH_HIX5HD2) += \
>   hisi-x5hd2-dkb.dtb
> diff --git a/arch/arm/boot/dts/hi3516cv300-demb.dts 
> b/arch/arm/boot/dts/hi3516cv300-demb.dts
> new file mode 100644
> index 000..6a75cd6
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300-demb.dts
> @@ -0,0 +1,148 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * 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.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program.  If not, see .
> + *
> + */
> +
> +
> +/dts-v1/;
> +#include "hi3516cv300.dtsi"
> +
> +/ {
> + model = "Hisilicon Hi3516CV300 DEMO Board";
> + compatible = "hisilicon,hi3516cv300";
> +
> + aliases {
> + serial0 = 
> + serial1 = 
> + serial2 = 
> + i2c0 = _bus0;
> + i2c1 = _bus1;
> + spi0 = _bus0;
> + spi1 = _bus1;
> + };
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + };
> +
> + memory {
> + device_type = "memory";
> + reg = <0x8000 0x1000>;
> + };
> +};
> +
> +_timer0 {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> +_bus0 {
> + status = "okay";
> + clock-frequency = <10>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus1 {
> + status = "okay";
> + clock-frequency = <10>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus0{
> + status = "disabled";
> + num-cs = <1>;
> + cs-gpios = <_chip0 6 0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus1{
> + status = "okay";
> + num-cs = <2>;
> + cs-gpios = <_chip5 3 0>, <_chip5 4 0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> + {
> + spi-nor@0 {
> + compatible = "jedec,spi-nor";
> + reg = <0>;
> + spi-max-frequency = <16000>;
> + m25p,fast-read;
> + };
> +};
> +
> + {
> + phy0: phy@1 {
> + reg = <1>;
> + };
> +};
> +
> +_femac {
> + mac-address = [00 00 00 00 00 00];
> + phy-mode = "rmii";
> + phy-handle = <>;
> + hisilicon,phy-reset-delays-us = <1 1 15>;
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + i2c0_pmux: i2c0_pmux {
> + pinctrl-single,pins = <
> + 0x2c 0x3
> + 0x30 0x3>;
> + };
> +
> + i2c1_pmux: i2c1_pmux {
> + pinctrl-single,pins = <
> + 0x20 0x1
> + 0x24 0x1>;
> + };
> +
> + spi0_pmux: spi0_pmux {
> + pinctrl-single,pins = <
> + 0x28 0x1
> + 0x2c 0x1
> + 0x30 0x1
> + 0x34 0x1>;
> + };
> +
> + spi1_pmux: spi1_pmux {
> + pinctrl-single,pins = <
> + 0xc4 0x1
> + 0xc8 0x1
> + 0xcc 0x1
> + 0xd0 0x1
> + 0xd4 0x1>;
> + };
> +};
> diff --git a/arch/arm/boot/dts/hi3516cv300.dtsi 
> b/arch/arm/boot/dts/hi3516cv300.dtsi
> new file mode 100644
> index 000..1da41ab
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300.dtsi
> @@ -0,0 +1,397 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * This program is free software; you 

Re: [PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2016-12-12 Thread Jiancheng Xue

On 2016/10/17 20:07, Pan Wen wrote:
> Add dts files for Hi3516CV300 demo board.
> 
> Signed-off-by: Pan Wen 
> ---

Could you help to review this patch, please?

>  arch/arm/boot/dts/Makefile |   1 +
>  arch/arm/boot/dts/hi3516cv300-demb.dts | 148 
>  arch/arm/boot/dts/hi3516cv300.dtsi | 397 
> +
>  3 files changed, 546 insertions(+)
>  create mode 100644 arch/arm/boot/dts/hi3516cv300-demb.dts
>  create mode 100644 arch/arm/boot/dts/hi3516cv300.dtsi
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index befcd26..1f25530 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -171,6 +171,7 @@ dtb-$(CONFIG_ARCH_HIP01) += \
>  dtb-$(CONFIG_ARCH_HIP04) += \
>   hip04-d01.dtb
>  dtb-$(CONFIG_ARCH_HISI) += \
> + hi3516cv300-demb.dtb \
>   hi3519-demb.dtb
>  dtb-$(CONFIG_ARCH_HIX5HD2) += \
>   hisi-x5hd2-dkb.dtb
> diff --git a/arch/arm/boot/dts/hi3516cv300-demb.dts 
> b/arch/arm/boot/dts/hi3516cv300-demb.dts
> new file mode 100644
> index 000..6a75cd6
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300-demb.dts
> @@ -0,0 +1,148 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * 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.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program.  If not, see .
> + *
> + */
> +
> +
> +/dts-v1/;
> +#include "hi3516cv300.dtsi"
> +
> +/ {
> + model = "Hisilicon Hi3516CV300 DEMO Board";
> + compatible = "hisilicon,hi3516cv300";
> +
> + aliases {
> + serial0 = 
> + serial1 = 
> + serial2 = 
> + i2c0 = _bus0;
> + i2c1 = _bus1;
> + spi0 = _bus0;
> + spi1 = _bus1;
> + };
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + };
> +
> + memory {
> + device_type = "memory";
> + reg = <0x8000 0x1000>;
> + };
> +};
> +
> +_timer0 {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + status = "okay";
> +};
> +
> +_bus0 {
> + status = "okay";
> + clock-frequency = <10>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus1 {
> + status = "okay";
> + clock-frequency = <10>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus0{
> + status = "disabled";
> + num-cs = <1>;
> + cs-gpios = <_chip0 6 0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> +_bus1{
> + status = "okay";
> + num-cs = <2>;
> + cs-gpios = <_chip5 3 0>, <_chip5 4 0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <_pmux>;
> +};
> +
> + {
> + spi-nor@0 {
> + compatible = "jedec,spi-nor";
> + reg = <0>;
> + spi-max-frequency = <16000>;
> + m25p,fast-read;
> + };
> +};
> +
> + {
> + phy0: phy@1 {
> + reg = <1>;
> + };
> +};
> +
> +_femac {
> + mac-address = [00 00 00 00 00 00];
> + phy-mode = "rmii";
> + phy-handle = <>;
> + hisilicon,phy-reset-delays-us = <1 1 15>;
> +};
> +
> + {
> + status = "okay";
> +};
> +
> + {
> + i2c0_pmux: i2c0_pmux {
> + pinctrl-single,pins = <
> + 0x2c 0x3
> + 0x30 0x3>;
> + };
> +
> + i2c1_pmux: i2c1_pmux {
> + pinctrl-single,pins = <
> + 0x20 0x1
> + 0x24 0x1>;
> + };
> +
> + spi0_pmux: spi0_pmux {
> + pinctrl-single,pins = <
> + 0x28 0x1
> + 0x2c 0x1
> + 0x30 0x1
> + 0x34 0x1>;
> + };
> +
> + spi1_pmux: spi1_pmux {
> + pinctrl-single,pins = <
> + 0xc4 0x1
> + 0xc8 0x1
> + 0xcc 0x1
> + 0xd0 0x1
> + 0xd4 0x1>;
> + };
> +};
> diff --git a/arch/arm/boot/dts/hi3516cv300.dtsi 
> b/arch/arm/boot/dts/hi3516cv300.dtsi
> new file mode 100644
> index 000..1da41ab
> --- /dev/null
> +++ b/arch/arm/boot/dts/hi3516cv300.dtsi
> @@ -0,0 +1,397 @@
> +/*
> + * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
> + *
> + * This program is free software; you can redistribute  it 

[PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2016-10-17 Thread Pan Wen
Add dts files for Hi3516CV300 demo board.

Signed-off-by: Pan Wen 
---
 arch/arm/boot/dts/Makefile |   1 +
 arch/arm/boot/dts/hi3516cv300-demb.dts | 148 
 arch/arm/boot/dts/hi3516cv300.dtsi | 397 +
 3 files changed, 546 insertions(+)
 create mode 100644 arch/arm/boot/dts/hi3516cv300-demb.dts
 create mode 100644 arch/arm/boot/dts/hi3516cv300.dtsi

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index befcd26..1f25530 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -171,6 +171,7 @@ dtb-$(CONFIG_ARCH_HIP01) += \
 dtb-$(CONFIG_ARCH_HIP04) += \
hip04-d01.dtb
 dtb-$(CONFIG_ARCH_HISI) += \
+   hi3516cv300-demb.dtb \
hi3519-demb.dtb
 dtb-$(CONFIG_ARCH_HIX5HD2) += \
hisi-x5hd2-dkb.dtb
diff --git a/arch/arm/boot/dts/hi3516cv300-demb.dts 
b/arch/arm/boot/dts/hi3516cv300-demb.dts
new file mode 100644
index 000..6a75cd6
--- /dev/null
+++ b/arch/arm/boot/dts/hi3516cv300-demb.dts
@@ -0,0 +1,148 @@
+/*
+ * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
+ *
+ * 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.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see .
+ *
+ */
+
+
+/dts-v1/;
+#include "hi3516cv300.dtsi"
+
+/ {
+   model = "Hisilicon Hi3516CV300 DEMO Board";
+   compatible = "hisilicon,hi3516cv300";
+
+   aliases {
+   serial0 = 
+   serial1 = 
+   serial2 = 
+   i2c0 = _bus0;
+   i2c1 = _bus1;
+   spi0 = _bus0;
+   spi1 = _bus1;
+   };
+
+   chosen {
+   stdout-path = "serial0:115200n8";
+   };
+
+   memory {
+   device_type = "memory";
+   reg = <0x8000 0x1000>;
+   };
+};
+
+_timer0 {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
+_bus0 {
+   status = "okay";
+   clock-frequency = <10>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pmux>;
+};
+
+_bus1 {
+   status = "okay";
+   clock-frequency = <10>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pmux>;
+};
+
+_bus0{
+   status = "disabled";
+   num-cs = <1>;
+   cs-gpios = <_chip0 6 0>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pmux>;
+};
+
+_bus1{
+   status = "okay";
+   num-cs = <2>;
+   cs-gpios = <_chip5 3 0>, <_chip5 4 0>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pmux>;
+};
+
+ {
+   spi-nor@0 {
+   compatible = "jedec,spi-nor";
+   reg = <0>;
+   spi-max-frequency = <16000>;
+   m25p,fast-read;
+   };
+};
+
+ {
+   phy0: phy@1 {
+   reg = <1>;
+   };
+};
+
+_femac {
+   mac-address = [00 00 00 00 00 00];
+   phy-mode = "rmii";
+   phy-handle = <>;
+   hisilicon,phy-reset-delays-us = <1 1 15>;
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   i2c0_pmux: i2c0_pmux {
+   pinctrl-single,pins = <
+   0x2c 0x3
+   0x30 0x3>;
+   };
+
+   i2c1_pmux: i2c1_pmux {
+   pinctrl-single,pins = <
+   0x20 0x1
+   0x24 0x1>;
+   };
+
+   spi0_pmux: spi0_pmux {
+   pinctrl-single,pins = <
+   0x28 0x1
+   0x2c 0x1
+   0x30 0x1
+   0x34 0x1>;
+   };
+
+   spi1_pmux: spi1_pmux {
+   pinctrl-single,pins = <
+   0xc4 0x1
+   0xc8 0x1
+   0xcc 0x1
+   0xd0 0x1
+   0xd4 0x1>;
+   };
+};
diff --git a/arch/arm/boot/dts/hi3516cv300.dtsi 
b/arch/arm/boot/dts/hi3516cv300.dtsi
new file mode 100644
index 000..1da41ab
--- /dev/null
+++ b/arch/arm/boot/dts/hi3516cv300.dtsi
@@ -0,0 +1,397 @@
+/*
+ * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
+ *
+ * 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.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but 

[PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2016-10-17 Thread Pan Wen
Add dts files for Hi3516CV300 demo board.

Signed-off-by: Pan Wen 
---
 arch/arm/boot/dts/Makefile |   1 +
 arch/arm/boot/dts/hi3516cv300-demb.dts | 148 
 arch/arm/boot/dts/hi3516cv300.dtsi | 397 +
 3 files changed, 546 insertions(+)
 create mode 100644 arch/arm/boot/dts/hi3516cv300-demb.dts
 create mode 100644 arch/arm/boot/dts/hi3516cv300.dtsi

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index befcd26..1f25530 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -171,6 +171,7 @@ dtb-$(CONFIG_ARCH_HIP01) += \
 dtb-$(CONFIG_ARCH_HIP04) += \
hip04-d01.dtb
 dtb-$(CONFIG_ARCH_HISI) += \
+   hi3516cv300-demb.dtb \
hi3519-demb.dtb
 dtb-$(CONFIG_ARCH_HIX5HD2) += \
hisi-x5hd2-dkb.dtb
diff --git a/arch/arm/boot/dts/hi3516cv300-demb.dts 
b/arch/arm/boot/dts/hi3516cv300-demb.dts
new file mode 100644
index 000..6a75cd6
--- /dev/null
+++ b/arch/arm/boot/dts/hi3516cv300-demb.dts
@@ -0,0 +1,148 @@
+/*
+ * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
+ *
+ * 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.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see .
+ *
+ */
+
+
+/dts-v1/;
+#include "hi3516cv300.dtsi"
+
+/ {
+   model = "Hisilicon Hi3516CV300 DEMO Board";
+   compatible = "hisilicon,hi3516cv300";
+
+   aliases {
+   serial0 = 
+   serial1 = 
+   serial2 = 
+   i2c0 = _bus0;
+   i2c1 = _bus1;
+   spi0 = _bus0;
+   spi1 = _bus1;
+   };
+
+   chosen {
+   stdout-path = "serial0:115200n8";
+   };
+
+   memory {
+   device_type = "memory";
+   reg = <0x8000 0x1000>;
+   };
+};
+
+_timer0 {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
+_bus0 {
+   status = "okay";
+   clock-frequency = <10>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pmux>;
+};
+
+_bus1 {
+   status = "okay";
+   clock-frequency = <10>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pmux>;
+};
+
+_bus0{
+   status = "disabled";
+   num-cs = <1>;
+   cs-gpios = <_chip0 6 0>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pmux>;
+};
+
+_bus1{
+   status = "okay";
+   num-cs = <2>;
+   cs-gpios = <_chip5 3 0>, <_chip5 4 0>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pmux>;
+};
+
+ {
+   spi-nor@0 {
+   compatible = "jedec,spi-nor";
+   reg = <0>;
+   spi-max-frequency = <16000>;
+   m25p,fast-read;
+   };
+};
+
+ {
+   phy0: phy@1 {
+   reg = <1>;
+   };
+};
+
+_femac {
+   mac-address = [00 00 00 00 00 00];
+   phy-mode = "rmii";
+   phy-handle = <>;
+   hisilicon,phy-reset-delays-us = <1 1 15>;
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   i2c0_pmux: i2c0_pmux {
+   pinctrl-single,pins = <
+   0x2c 0x3
+   0x30 0x3>;
+   };
+
+   i2c1_pmux: i2c1_pmux {
+   pinctrl-single,pins = <
+   0x20 0x1
+   0x24 0x1>;
+   };
+
+   spi0_pmux: spi0_pmux {
+   pinctrl-single,pins = <
+   0x28 0x1
+   0x2c 0x1
+   0x30 0x1
+   0x34 0x1>;
+   };
+
+   spi1_pmux: spi1_pmux {
+   pinctrl-single,pins = <
+   0xc4 0x1
+   0xc8 0x1
+   0xcc 0x1
+   0xd0 0x1
+   0xd4 0x1>;
+   };
+};
diff --git a/arch/arm/boot/dts/hi3516cv300.dtsi 
b/arch/arm/boot/dts/hi3516cv300.dtsi
new file mode 100644
index 000..1da41ab
--- /dev/null
+++ b/arch/arm/boot/dts/hi3516cv300.dtsi
@@ -0,0 +1,397 @@
+/*
+ * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
+ *
+ * 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.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY;