From: Siva Durga Prasad Paladugu Date: Thu, 19 Nov 2015 10:00:47 +0000 (+0530) Subject: dts: zynqmp: mini: Create separate dts file for zynqmp mini X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a5b62a8778457f128faa24fc697a8b5dc5f0956;p=thirdparty%2Fu-boot.git dts: zynqmp: mini: Create separate dts file for zynqmp mini Create a separate dts file for zynqmp mini qspi as we dont need all peripherals. This saves the memory. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 61348d30276..20a43b4e000 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -59,7 +59,8 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-ep108.dtb \ zynqmp-zcu102.dtb \ zynqmp-zc1751-xm015-dc1.dtb \ zynqmp-zc1751-xm016-dc2.dtb \ - zynqmp-zc1751-xm019-dc5.dtb + zynqmp-zc1751-xm019-dc5.dtb \ + zynqmp-mini-qspi.dtb dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += \ diff --git a/arch/arm/dts/zynqmp-mini-qspi.dts b/arch/arm/dts/zynqmp-mini-qspi.dts new file mode 100644 index 00000000000..5becb5f300a --- /dev/null +++ b/arch/arm/dts/zynqmp-mini-qspi.dts @@ -0,0 +1,99 @@ +/* + * dts file for Xilinx ZynqMP Mini Configuration + * + * (C) Copyright 2015, Xilinx, Inc. + * + * Siva Durga Prasad + * Michal Simek + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/dts-v1/; + +/ { + model = "ZynqMP MINI QSPI"; + compatible = "xlnx,zynqmp"; + #address-cells = <2>; + #size-cells = <1>; + + aliases { + serial0 = &uart0; + spi0 = &qspi; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + device_type = "memory"; + reg = <0x0 0x0 0x40000000>; + }; + + amba: amba { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <1>; + ranges; + + qspi: spi@ff0f0000 { + compatible = "xlnx,zynqmp-qspi-1.0"; + status = "disabled"; + clock-names = "ref_clk", "pclk"; + clocks = <&misc_clk &misc_clk>; + num-cs = <1>; + reg = <0x0 0xff0f0000 0x1000 0x0 0xc0000000 0x8000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + + uart0: serial@ff000000 { + compatible = "cdns,uart-r1p12"; + status = "disabled"; + reg = <0x0 0xff000000 0x1000>; + clock-names = "uart_clk", "pclk"; + clocks = <&misc_clk &misc_clk>; + }; + + misc_clk: misc_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + }; + + }; +}; + +&qspi { + status = "okay"; + flash@0 { + compatible = "n25q512a11"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <4>; + spi-max-frequency = <10000000>; + partition@qspi-fsbl-uboot { /* for testing purpose */ + label = "qspi-fsbl-uboot"; + reg = <0x0 0x100000>; + }; + partition@qspi-linux { /* for testing purpose */ + label = "qspi-linux"; + reg = <0x100000 0x500000>; + }; + partition@qspi-device-tree { /* for testing purpose */ + label = "qspi-device-tree"; + reg = <0x600000 0x20000>; + }; + partition@qspi-rootfs { /* for testing purpose */ + label = "qspi-rootfs"; + reg = <0x620000 0x5E0000>; + }; + }; +}; + +&uart0 { + status = "okay"; +}; diff --git a/configs/xilinx_zynqmp_mini_qspi_defconfig b/configs/xilinx_zynqmp_mini_qspi_defconfig index 2465241b140..b01c6c73219 100644 --- a/configs/xilinx_zynqmp_mini_qspi_defconfig +++ b/configs/xilinx_zynqmp_mini_qspi_defconfig @@ -4,7 +4,7 @@ CONFIG_TARGET_ZYNQMP_MINI=y CONFIG_SECURE_IOU=y CONFIG_ZYNQMP_QSPI=y CONFIG_SYS_TEXT_BASE=0xFFFC0000 -CONFIG_DEFAULT_DEVICE_TREE="zynqmp-ep108" +CONFIG_DEFAULT_DEVICE_TREE="zynqmp-mini-qspi" CONFIG_FIT=y CONFIG_SYS_EXTRA_OPTIONS="MINI_QSPI" # CONFIG_CMD_BDI is not set