RE: [PATCH v4 5/6] arm64: dts: add QorIQ LX2160A SoC support
> -Original Message- > From: devicetree-ow...@vger.kernel.org > On Behalf Of Stephen Boyd > Sent: Monday, October 15, 2018 10:19 PM > To: Shawn Guo ; Vabhav Sharma > > Cc: sudeep.ho...@arm.com; o...@buserror.net; linux-ker...@vger.kernel.org; > devicet...@vger.kernel.org; robh...@kernel.org; mark.rutl...@arm.com; > linuxppc-dev@lists.ozlabs.org; linux-arm-ker...@lists.infradead.org; > mturque...@baylibre.com; r...@rjwysocki.net; viresh.ku...@linaro.org; > linux-...@vger.kernel.org; linux...@vger.kernel.org; linux-kernel- > ow...@vger.kernel.org; catalin.mari...@arm.com; will.dea...@arm.com; > gre...@linuxfoundation.org; a...@arndb.de; > kstew...@linuxfoundation.org; yamada.masah...@socionext.com; Leo Li > ; li...@armlinux.org.uk; Varun Sethi > ; Udit Kumar ; Pankaj Bansal > ; Ramneek Mehresh > ; Ying Zhang ; > Nipun Gupta ; Priyanka Jain > ; Yogesh Narayan Gaur > ; Sriram Dash > Subject: RE: [PATCH v4 5/6] arm64: dts: add QorIQ LX2160A SoC support > > Quoting Vabhav Sharma (2018-10-14 19:58:15) > > > > + > > > > + pmu { > > > > + compatible = "arm,cortex-a72-pmu"; > > > > + interrupts = ; > > > > + }; > > > > + > > > > + psci { > > > > + compatible = "arm,psci-0.2"; > > > > + method = "smc"; > > > > + }; > > > > + > > > > + memory@8000 { > > > > + // DRAM space - 1, size : 2 GB DRAM > > > > + device_type = "memory"; > > > > + reg = <0x 0x8000 0 0x8000>; > > > > + }; > > > > + > > > > + ddr1: memory-controller@108 { > > > > + compatible = "fsl,qoriq-memory-controller"; > > > > + reg = <0x0 0x108 0x0 0x1000>; > > > > + interrupts = ; > > > > + little-endian; > > > > + }; > > > > + > > > > + ddr2: memory-controller@109 { > > > > + compatible = "fsl,qoriq-memory-controller"; > > > > + reg = <0x0 0x109 0x0 0x1000>; > > > > + interrupts = ; > > > > + little-endian; > > > > + }; > > > > + > > > > + sysclk: sysclk { > > > > > > Name the node a bit generic like clock-xxx. > > There is only one clock-unit, Bootloader(U-boot) require sysclk node during > device tree fix-up as different platform support varied platform frequency as > per reset configuration word used. > > Referred other ARM based platform with one clock using name as x: x > > Please add a comment above this node with this information. Newcomers > reading this DTS file won't have any idea why this node is specially named > and a comment will help tremendously here. Sure
RE: [PATCH v4 5/6] arm64: dts: add QorIQ LX2160A SoC support
Quoting Vabhav Sharma (2018-10-14 19:58:15) > > > + > > > + pmu { > > > + compatible = "arm,cortex-a72-pmu"; > > > + interrupts = ; > > > + }; > > > + > > > + psci { > > > + compatible = "arm,psci-0.2"; > > > + method = "smc"; > > > + }; > > > + > > > + memory@8000 { > > > + // DRAM space - 1, size : 2 GB DRAM > > > + device_type = "memory"; > > > + reg = <0x 0x8000 0 0x8000>; > > > + }; > > > + > > > + ddr1: memory-controller@108 { > > > + compatible = "fsl,qoriq-memory-controller"; > > > + reg = <0x0 0x108 0x0 0x1000>; > > > + interrupts = ; > > > + little-endian; > > > + }; > > > + > > > + ddr2: memory-controller@109 { > > > + compatible = "fsl,qoriq-memory-controller"; > > > + reg = <0x0 0x109 0x0 0x1000>; > > > + interrupts = ; > > > + little-endian; > > > + }; > > > + > > > + sysclk: sysclk { > > > > Name the node a bit generic like clock-xxx. > There is only one clock-unit, Bootloader(U-boot) require sysclk node during > device tree fix-up as different platform support varied platform frequency as > per reset configuration word used. > Referred other ARM based platform with one clock using name as x: x Please add a comment above this node with this information. Newcomers reading this DTS file won't have any idea why this node is specially named and a comment will help tremendously here.
RE: [PATCH v4 5/6] arm64: dts: add QorIQ LX2160A SoC support
> -Original Message- > From: Shawn Guo > Sent: Monday, October 8, 2018 11:15 AM > To: Vabhav Sharma > Cc: sudeep.ho...@arm.com; o...@buserror.net; linux-ker...@vger.kernel.org; > devicet...@vger.kernel.org; robh...@kernel.org; mark.rutl...@arm.com; > linuxppc-dev@lists.ozlabs.org; linux-arm-ker...@lists.infradead.org; > mturque...@baylibre.com; sb...@kernel.org; r...@rjwysocki.net; > viresh.ku...@linaro.org; linux-...@vger.kernel.org; linux...@vger.kernel.org; > linux-kernel-ow...@vger.kernel.org; catalin.mari...@arm.com; > will.dea...@arm.com; gre...@linuxfoundation.org; a...@arndb.de; > kstew...@linuxfoundation.org; yamada.masah...@socionext.com; Leo Li > ; li...@armlinux.org.uk; Varun Sethi ; > Udit Kumar ; Pankaj Bansal ; > Ramneek Mehresh ; Ying Zhang > ; Nipun Gupta ; Priyanka > Jain ; Yogesh Narayan Gaur > ; Sriram Dash > Subject: Re: [PATCH v4 5/6] arm64: dts: add QorIQ LX2160A SoC support > > On Thu, Oct 04, 2018 at 06:33:50AM +0530, Vabhav Sharma wrote: > > LX2160A SoC is based on Layerscape Chassis Generation 3.2 Architecture. > > > > LX2160A features an advanced 16 64-bit ARM v8 CortexA72 processor > > cores in 8 cluster, CCN508, GICv3,two 64-bit DDR4 memory controller, 8 > > I2C controllers, 3 dspi, 2 esdhc,2 USB 3.0, mmu 500, 3 SATA, 4 PL011 > > SBSA UARTs etc. > > > > Signed-off-by: Ramneek Mehresh > > Signed-off-by: Zhang Ying-22455 > > Signed-off-by: Nipun Gupta > > Signed-off-by: Priyanka Jain > > Signed-off-by: Yogesh Gaur > > Signed-off-by: Sriram Dash > > Signed-off-by: Vabhav Sharma > > --- > > arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 702 > > + > > 1 file changed, 702 insertions(+) > > create mode 100644 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > > > > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > > b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > > new file mode 100644 > > index 000..c758268 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > > @@ -0,0 +1,702 @@ > > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) // // Device Tree > > +Include file for Layerscape-LX2160A family SoC. > > +// > > +// Copyright 2018 NXP > > + > > +#include > > + > > +/memreserve/ 0x8000 0x0001; > > + > > +/ { > > + compatible = "fsl,lx2160a"; > > + interrupt-parent = <>; > > + #address-cells = <2>; > > + #size-cells = <2>; > > + > > + cpus { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + // 8 clusters having 2 Cortex-A72 cores each > > + cpu@0 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a72"; > > + enable-method = "psci"; > > + reg = <0x0>; > > + clocks = < 1 0>; > > + d-cache-size = <0x8000>; > > + d-cache-line-size = <64>; > > + d-cache-sets = <128>; > > + i-cache-size = <0xC000>; > > + i-cache-line-size = <64>; > > + i-cache-sets = <192>; > > + next-level-cache = <_l2>; > > + }; > > + > > + cpu@1 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a72"; > > + enable-method = "psci"; > > + reg = <0x1>; > > + clocks = < 1 0>; > > + d-cache-size = <0x8000>; > > + d-cache-line-size = <64>; > > + d-cache-sets = <128>; > > + i-cache-size = <0xC000>; > > + i-cache-line-size = <64>; > > + i-cache-sets = <192>; > > + next-level-cache = <_l2>; > > + }; > > + > > + cpu@100 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a72"; > > + enable-method = "psci"; > > + reg = <0x100>; > > + clocks = < 1 1>; > > + d-cache-size = <0x8000>; > > + d-cache-line-size = <64>; > > +
Re: [PATCH v4 5/6] arm64: dts: add QorIQ LX2160A SoC support
On Thu, Oct 04, 2018 at 06:33:50AM +0530, Vabhav Sharma wrote: > LX2160A SoC is based on Layerscape Chassis Generation 3.2 Architecture. > > LX2160A features an advanced 16 64-bit ARM v8 CortexA72 processor cores > in 8 cluster, CCN508, GICv3,two 64-bit DDR4 memory controller, 8 I2C > controllers, 3 dspi, 2 esdhc,2 USB 3.0, mmu 500, 3 SATA, 4 PL011 SBSA > UARTs etc. > > Signed-off-by: Ramneek Mehresh > Signed-off-by: Zhang Ying-22455 > Signed-off-by: Nipun Gupta > Signed-off-by: Priyanka Jain > Signed-off-by: Yogesh Gaur > Signed-off-by: Sriram Dash > Signed-off-by: Vabhav Sharma > --- > arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 702 > + > 1 file changed, 702 insertions(+) > create mode 100644 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > new file mode 100644 > index 000..c758268 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > @@ -0,0 +1,702 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +// > +// Device Tree Include file for Layerscape-LX2160A family SoC. > +// > +// Copyright 2018 NXP > + > +#include > + > +/memreserve/ 0x8000 0x0001; > + > +/ { > + compatible = "fsl,lx2160a"; > + interrupt-parent = <>; > + #address-cells = <2>; > + #size-cells = <2>; > + > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + // 8 clusters having 2 Cortex-A72 cores each > + cpu@0 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + enable-method = "psci"; > + reg = <0x0>; > + clocks = < 1 0>; > + d-cache-size = <0x8000>; > + d-cache-line-size = <64>; > + d-cache-sets = <128>; > + i-cache-size = <0xC000>; > + i-cache-line-size = <64>; > + i-cache-sets = <192>; > + next-level-cache = <_l2>; > + }; > + > + cpu@1 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + enable-method = "psci"; > + reg = <0x1>; > + clocks = < 1 0>; > + d-cache-size = <0x8000>; > + d-cache-line-size = <64>; > + d-cache-sets = <128>; > + i-cache-size = <0xC000>; > + i-cache-line-size = <64>; > + i-cache-sets = <192>; > + next-level-cache = <_l2>; > + }; > + > + cpu@100 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + enable-method = "psci"; > + reg = <0x100>; > + clocks = < 1 1>; > + d-cache-size = <0x8000>; > + d-cache-line-size = <64>; > + d-cache-sets = <128>; > + i-cache-size = <0xC000>; > + i-cache-line-size = <64>; > + i-cache-sets = <192>; > + next-level-cache = <_l2>; > + }; > + > + cpu@101 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + enable-method = "psci"; > + reg = <0x101>; > + clocks = < 1 1>; > + d-cache-size = <0x8000>; > + d-cache-line-size = <64>; > + d-cache-sets = <128>; > + i-cache-size = <0xC000>; > + i-cache-line-size = <64>; > + i-cache-sets = <192>; > + next-level-cache = <_l2>; > + }; > + > + cpu@200 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + enable-method = "psci"; > + reg = <0x200>; > + clocks = < 1 2>; > + d-cache-size = <0x8000>; > + d-cache-line-size = <64>; > + d-cache-sets = <128>; > + i-cache-size = <0xC000>; > + i-cache-line-size = <64>; > + i-cache-sets = <192>; > + next-level-cache = <_l2>; > + }; > + > + cpu@201 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + enable-method = "psci"; > + reg = <0x201>; > + clocks = < 1 2>; > + d-cache-size = <0x8000>; > + d-cache-line-size = <64>; > +
[PATCH v4 5/6] arm64: dts: add QorIQ LX2160A SoC support
LX2160A SoC is based on Layerscape Chassis Generation 3.2 Architecture. LX2160A features an advanced 16 64-bit ARM v8 CortexA72 processor cores in 8 cluster, CCN508, GICv3,two 64-bit DDR4 memory controller, 8 I2C controllers, 3 dspi, 2 esdhc,2 USB 3.0, mmu 500, 3 SATA, 4 PL011 SBSA UARTs etc. Signed-off-by: Ramneek Mehresh Signed-off-by: Zhang Ying-22455 Signed-off-by: Nipun Gupta Signed-off-by: Priyanka Jain Signed-off-by: Yogesh Gaur Signed-off-by: Sriram Dash Signed-off-by: Vabhav Sharma --- arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 702 + 1 file changed, 702 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi new file mode 100644 index 000..c758268 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -0,0 +1,702 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +// +// Device Tree Include file for Layerscape-LX2160A family SoC. +// +// Copyright 2018 NXP + +#include + +/memreserve/ 0x8000 0x0001; + +/ { + compatible = "fsl,lx2160a"; + interrupt-parent = <>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + // 8 clusters having 2 Cortex-A72 cores each + cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + enable-method = "psci"; + reg = <0x0>; + clocks = < 1 0>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + i-cache-size = <0xC000>; + i-cache-line-size = <64>; + i-cache-sets = <192>; + next-level-cache = <_l2>; + }; + + cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + enable-method = "psci"; + reg = <0x1>; + clocks = < 1 0>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + i-cache-size = <0xC000>; + i-cache-line-size = <64>; + i-cache-sets = <192>; + next-level-cache = <_l2>; + }; + + cpu@100 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + enable-method = "psci"; + reg = <0x100>; + clocks = < 1 1>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + i-cache-size = <0xC000>; + i-cache-line-size = <64>; + i-cache-sets = <192>; + next-level-cache = <_l2>; + }; + + cpu@101 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + enable-method = "psci"; + reg = <0x101>; + clocks = < 1 1>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + i-cache-size = <0xC000>; + i-cache-line-size = <64>; + i-cache-sets = <192>; + next-level-cache = <_l2>; + }; + + cpu@200 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + enable-method = "psci"; + reg = <0x200>; + clocks = < 1 2>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + i-cache-size = <0xC000>; + i-cache-line-size = <64>; + i-cache-sets = <192>; + next-level-cache = <_l2>; + }; + + cpu@201 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + enable-method = "psci"; + reg = <0x201>; + clocks = < 1 2>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + i-cache-size = <0xC000>; + i-cache-line-size = <64>; +