arm64: dts: add QorIQ LS1046A SoC and boards support
Subsystems (2)
cover arm64: dts: add QorIQ LS1046A SoC and boards support
From: Shaohui Xie <[email protected]>
This patchest adds support for QorIQ LS1046A SoC which is based on ARMv8 architecture, also adds LS1046A-RDB and LS1046A-QDS board support.
Mingkai Hu (2):
arm64: dts: add QorIQ LS1046A SoC support
arm64: dts: add LS1046A-RDB board support
Shaohui Xie (3):
Documentation: DT: Add entry for QorIQ LS1046A-RDB board
Documentation: DT: Add entry for QorIQ LS1046A-QDS board
arm64: dts: add LS1046A-QDS board support
Documentation/devicetree/bindings/arm/fsl.txt | 8 + arch/arm64/boot/dts/freescale/Makefile | 2 + arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 209 ++++++++ arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 138 ++++++ arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 549 ++++++++++++++++++++++ 5 files changed, 906 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
Signature · 1 line
2.1.0.27.g96db324
PATCH 1/5 arm64: dts: add QorIQ LS1046A SoC support
From: Mingkai Hu <[email protected]>
LS1046A is an SoC with 4 ARMv8 A72 cores and most other IP blocks are similar to LS1043A which also complies to Freescale Chassis 2.1 spec.
Created LS1046A SoC DTSI file to be included by board level DTS files.
--- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 549 +++++++++++++++++++++++++ 1 file changed, 549 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +549 -0
@@ -0,0 +1,549 @@ +/* + * Device Tree Include file for Freescale Layerscape-1046A family SoC. + * + * Copyright 2016, Freescale Semiconductor, Inc. + * + * Mingkai Hu <[email protected]> + * + * This file is dual-licensed: you can use it either under the terms + * of the GPLv2 or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This library 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 library 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. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/ { + compatible = "fsl,ls1046a"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu at 0 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + reg = <0x0>; + clocks = <&clockgen 1 0>; + next-level-cache = <&l2>; + }; + + cpu1: cpu at 1 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + reg = <0x1>; + clocks = <&clockgen 1 0>; + next-level-cache = <&l2>; + }; + + cpu2: cpu at 2 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + reg = <0x2>; + clocks = <&clockgen 1 0>; + next-level-cache = <&l2>; + }; + + cpu3: cpu at 3 { + device_type = "cpu"; + compatible = "arm,cortex-a72"; + reg = <0x3>; + clocks = <&clockgen 1 0>; + next-level-cache = <&l2>; + }; + + l2: l2-cache { + compatible = "cache"; + }; + }; + + memory at 80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0 0x80000000>; + /* DRAM space 1, size: 2GiB DRAM */ + }; + + sysclk: sysclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + clock-output-names = "sysclk"; + }; + + reboot { + compatible ="syscon-reboot"; + regmap = <&dcfg>; + offset = <0xb0>; + mask = <0x02>; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <1 13 0x1>, /* Physical Secure PPI */ + <1 14 0x1>, /* Physical Non-Secure PPI */ + <1 11 0x1>, /* Virtual PPI */ + <1 10 0x1>; /* Hypervisor PPI */ + }; + + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = <0 106 0x4>, + <0 107 0x4>, + <0 95 0x4>, + <0 97 0x4>; + interrupt-affinity = <&cpu0>, + <&cpu1>, + <&cpu2>, + <&cpu3>; + }; + + gic: interrupt-controller at 1400000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x0 0x1410000 0 0x10000>, /* GICD */ + <0x0 0x1420000 0 0x20000>, /* GICC */ + <0x0 0x1440000 0 0x20000>, /* GICH */ + <0x0 0x1460000 0 0x20000>; /* GICV */ + interrupts = <1 9 0xf08>; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clockgen: clocking at 1ee1000 { + compatible = "fsl,ls1046a-clockgen"; + reg = <0x0 0x1ee1000 0x0 0x1000>; + #clock-cells = <2>; + clocks = <&sysclk>; + }; + + scfg: scfg at 1570000 { + compatible = "fsl,ls1046a-scfg", "syscon"; + reg = <0x0 0x1570000 0x0 0x10000>; + big-endian; + }; + + dcfg: dcfg at 1ee0000 { + compatible = "fsl,ls1046a-dcfg", "syscon"; + reg = <0x0 0x1ee0000 0x0 0x10000>; + big-endian; + }; + + rcpm: rcpm at 1ee2000 { + compatible = "fsl,ls1046a-rcpm", "fsl,qoriq-rcpm-2.1"; + reg = <0x0 0x1ee2000 0x0 0x10000>; + }; + + ifc: ifc at 1530000 { + compatible = "fsl,ifc", "simple-bus"; + reg = <0x0 0x1530000 0x0 0x10000>; + interrupts = <0 43 0x4>; + }; + + esdhc: esdhc at 1560000 { + compatible = "fsl,ls1046a-esdhc", "fsl,esdhc"; + reg = <0x0 0x1560000 0x0 0x10000>; + interrupts = <0 62 0x4>; + clock-frequency = <0>; + voltage-ranges = <1800 1800 3300 3300>; + sdhci,auto-cmd12; + big-endian; + bus-width = <4>; + }; + + dspi: dspi at 2100000 { + compatible = "fsl,ls1046a-dspi", "fsl,ls1021a-v1.0-dspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x2100000 0x0 0x10000>; + interrupts = <0 64 0x4>; + clock-names = "dspi"; + clocks = <&clockgen 4 1>; + spi-num-chipselects = <5>; + big-endian; + status = "disabled"; + }; + + qspi: quadspi at 1550000 { + compatible = "fsl,ls1046a-qspi", "fsl,ls1021a-qspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x1550000 0x0 0x10000>, + <0x0 0x40000000 0x0 0x10000000>; + reg-names = "QuadSPI", "QuadSPI-memory"; + interrupts = <0 99 0x4>; + clock-names = "qspi_en", "qspi"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + fsl,qspi-has-second-chip; + status = "disabled"; + }; + + i2c0: i2c at 2180000 { + compatible = "fsl,vf610-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x2180000 0x0 0x10000>; + interrupts = <0 56 0x4>; + clock-names = "i2c"; + clocks = <&clockgen 4 1>; + dmas = <&edma0 1 39>, + <&edma0 1 38>; + dma-names = "tx", "rx"; + status = "disabled"; + }; + + i2c1: i2c at 2190000 { + compatible = "fsl,vf610-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x2190000 0x0 0x10000>; + interrupts = <0 57 0x4>; + clock-names = "i2c"; + clocks = <&clockgen 4 1>; + status = "disabled"; + }; + + i2c2: i2c at 21a0000 { + compatible = "fsl,vf610-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x21a0000 0x0 0x10000>; + interrupts = <0 58 0x4>; + clock-names = "i2c"; + clocks = <&clockgen 4 1>; + status = "disabled"; + }; + + i2c3: i2c at 21b0000 { + compatible = "fsl,vf610-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x21b0000 0x0 0x10000>; + interrupts = <0 59 0x4>; + clock-names = "i2c"; + clocks = <&clockgen 4 1>; + status = "disabled"; + }; + + duart0: serial at 21c0500 { + compatible = "fsl,ns16550", "ns16550a"; + reg = <0x00 0x21c0500 0x0 0x100>; + interrupts = <0 54 0x4>; + clocks = <&clockgen 4 1>; + }; + + duart1: serial at 21c0600 { + compatible = "fsl,ns16550", "ns16550a"; + reg = <0x00 0x21c0600 0x0 0x100>; + interrupts = <0 54 0x4>; + clocks = <&clockgen 4 1>; + }; + + duart2: serial at 21d0500 { + compatible = "fsl,ns16550", "ns16550a"; + reg = <0x0 0x21d0500 0x0 0x100>; + interrupts = <0 55 0x4>; + clocks = <&clockgen 4 1>; + }; + + duart3: serial at 21d0600 { + compatible = "fsl,ns16550", "ns16550a"; + reg = <0x0 0x21d0600 0x0 0x100>; + interrupts = <0 55 0x4>; + clocks = <&clockgen 4 1>; + }; + + gpio0: gpio at 2300000 { + compatible = "fsl,ls1046a-gpio"; + reg = <0x0 0x2300000 0x0 0x10000>; + interrupts = <0 66 0x4>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio1: gpio at 2310000 { + compatible = "fsl,ls1046a-gpio"; + reg = <0x0 0x2310000 0x0 0x10000>; + interrupts = <0 67 0x4>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio2: gpio at 2320000 { + compatible = "fsl,ls1046a-gpio"; + reg = <0x0 0x2320000 0x0 0x10000>; + interrupts = <0 68 0x4>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio3: gpio at 2330000 { + compatible = "fsl,ls1046a-gpio"; + reg = <0x0 0x2330000 0x0 0x10000>; + interrupts = <0 134 0x4>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + lpuart0: serial at 2950000 { + compatible = "fsl,ls1021a-lpuart"; + reg = <0x0 0x2950000 0x0 0x1000>; + interrupts = <0 48 0x4>; + clocks = <&clockgen 0 0>; + clock-names = "ipg"; + status = "disabled"; + }; + + lpuart1: serial at 2960000 { + compatible = "fsl,ls1021a-lpuart"; + reg = <0x0 0x2960000 0x0 0x1000>; + interrupts = <0 49 0x4>; + clocks = <&clockgen 4 1>; + clock-names = "ipg"; + status = "disabled"; + }; + + lpuart2: serial at 2970000 { + compatible = "fsl,ls1021a-lpuart"; + reg = <0x0 0x2970000 0x0 0x1000>; + interrupts = <0 50 0x4>; + clocks = <&clockgen 4 1>; + clock-names = "ipg"; + status = "disabled"; + }; + + lpuart3: serial at 2980000 { + compatible = "fsl,ls1021a-lpuart"; + reg = <0x0 0x2980000 0x0 0x1000>; + interrupts = <0 51 0x4>; + clocks = <&clockgen 4 1>; + clock-names = "ipg"; + status = "disabled"; + }; + + lpuart4: serial at 2990000 { + compatible = "fsl,ls1021a-lpuart"; + reg = <0x0 0x2990000 0x0 0x1000>; + interrupts = <0 52 0x4>; + clocks = <&clockgen 4 1>; + clock-names = "ipg"; + status = "disabled"; + }; + + lpuart5: serial at 29a0000 { + compatible = "fsl,ls1021a-lpuart"; + reg = <0x0 0x29a0000 0x0 0x1000>; + interrupts = <0 53 0x4>; + clocks = <&clockgen 4 1>; + clock-names = "ipg"; + status = "disabled"; + }; + + wdog0: wdog at 2ad0000 { + compatible = "fsl,ls1046a-wdt", "fsl,imx21-wdt"; + reg = <0x0 0x2ad0000 0x0 0x10000>; + interrupts = <0 83 0x4>; + clocks = <&clockgen 4 1>; + clock-names = "wdog"; + big-endian; + }; + + edma0: edma at 2c00000 { + #dma-cells = <2>; + compatible = "fsl,vf610-edma"; + reg = <0x0 0x2c00000 0x0 0x10000>, + <0x0 0x2c10000 0x0 0x10000>, + <0x0 0x2c20000 0x0 0x10000>; + interrupts = <0 103 0x4>, + <0 103 0x4>; + interrupt-names = "edma-tx", "edma-err"; + dma-channels = <32>; + big-endian; + clock-names = "dmamux0", "dmamux1"; + clocks = <&clockgen 4 1>, + <&clockgen 4 1>; + }; + + usb0: usb3 at 2f00000 { + compatible = "snps,dwc3"; + reg = <0x0 0x2f00000 0x0 0x10000>; + interrupts = <0 60 0x4>; + dr_mode = "host"; + snps,quirk-frame-length-adjustment = <0x20>; + }; + + usb1: usb3 at 3000000 { + compatible = "snps,dwc3"; + reg = <0x0 0x3000000 0x0 0x10000>; + interrupts = <0 61 0x4>; + dr_mode = "host"; + snps,quirk-frame-length-adjustment = <0x20>; + }; + + usb2: usb3 at 3100000 { + compatible = "snps,dwc3"; + reg = <0x0 0x3100000 0x0 0x10000>; + interrupts = <0 63 0x4>; + dr_mode = "host"; + snps,quirk-frame-length-adjustment = <0x20>; + }; + + sata: sata at 3200000 { + compatible = "fsl,ls1046a-ahci", "fsl,ls1021a-ahci"; + reg = <0x0 0x3200000 0x0 0x10000>; + interrupts = <0 69 0x4>; + clocks = <&clockgen 4 1>; + }; + + msi: msi-controller at 1580000 { + compatible = "fsl,ls1046a-msi"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + msi-controller; + msi-bank at 1580000 { + reg = <0x0 0x1580000 0x0 0x10000>; + interrupts = <0 116 0x4>, + <0 111 0x4>, + <0 112 0x4>, + <0 113 0x4>; + + }; + + msi-bank at 1590000 { + reg = <0x0 0x1590000 0x0 0x10000>; + interrupts = <0 126 0x4>, + <0 121 0x4>, + <0 122 0x4>, + <0 123 0x4>; + }; + + msi-bank at 15a0000 { + reg = <0x0 0x15a0000 0x0 0x10000>; + interrupts = <0 160 0x4>, + <0 155 0x4>, + <0 156 0x4>, + <0 157 0x4>; + }; + }; + + pcie at 3400000 { + compatible = "fsl,ls1046a-pcie", "snps,dw-pcie"; + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */ + 0x40 0x00000000 0x0 0x00002000>; /* configuration space */ + reg-names = "regs", "config"; + interrupts = <0 118 0x4>, /* controller interrupt */ + <0 117 0x4>; /* PME interrupt */ + interrupt-names = "intr", "pme"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + num-lanes = <4>; + bus-range = <0x0 0xff>; + ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */ + 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ + msi-parent = <&msi>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0000 0 0 1 &gic 0 110 0x4>, + <0000 0 0 2 &gic 0 110 0x4>, + <0000 0 0 3 &gic 0 110 0x4>, + <0000 0 0 4 &gic 0 110 0x4>; + }; + + pcie at 3500000 { + compatible = "fsl,ls1046a-pcie", "snps,dw-pcie"; + reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */ + 0x48 0x00000000 0x0 0x00002000>; /* configuration space */ + reg-names = "regs", "config"; + interrupts = <0 128 0x4>, + <0 127 0x4>; + interrupt-names = "intr", "pme"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + num-lanes = <2>; + bus-range = <0x0 0xff>; + ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */ + 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ + msi-parent = <&msi>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0000 0 0 1 &gic 0 120 0x4>, + <0000 0 0 2 &gic 0 120 0x4>, + <0000 0 0 3 &gic 0 120 0x4>, + <0000 0 0 4 &gic 0 120 0x4>; + }; + + pcie at 3600000 { + compatible = "fsl,ls1046a-pcie", "snps,dw-pcie"; + reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */ + 0x50 0x00000000 0x0 0x00002000>; /* configuration space */ + reg-names = "regs", "config"; + interrupts = <0 162 0x4>, + <0 161 0x4>; + interrupt-names = "intr", "pme"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + num-lanes = <2>; + bus-range = <0x0 0xff>; + ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000 /* downstream I/O */ + 0x82000000 0x0 0x40000000 0x50 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ + msi-parent = <&msi>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0000 0 0 1 &gic 0 154 0x4>, + <0000 0 0 2 &gic 0 154 0x4>, + <0000 0 0 3 &gic 0 154 0x4>, + <0000 0 0 4 &gic 0 154 0x4>; + }; + }; +};
Signature · 1 line
2.1.0.27.g96db324
PATCH 1/5 arm64: dts: add QorIQ LS1046A SoC support
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 98
Quoted 6 lines · CEST shh.xie at gmail.com
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +6
-0+ + memory at 80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0 0x80000000>; + /* DRAM space 1, size: 2GiB DRAM */ + };
The memory size is usually in the .dts file, unless this is on-chip eDRAM.
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 165
Quoted 8 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +6
-0+ clockgen: clocking at 1ee1000 { + compatible = "fsl,ls1046a-clockgen"; + scfg: scfg at 1570000 { + compatible = "fsl,ls1046a-scfg", "syscon"; + dcfg: dcfg at 1ee0000 { + compatible = "fsl,ls1046a-dcfg", "syscon";
None of the fsl,ls1046a-* devices seem to have any binding documentation.
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 389
Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +1
-0+ wdog0: wdog at 2ad0000 {
watchdog at 2ad0000
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 414
Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +1
-0+ usb0: usb3 at 2f00000 {
usb at 2f00000
Quoted 5 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +5
-0+ pcie at 3400000 { + compatible = "fsl,ls1046a-pcie", "snps,dw-pcie"; + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */ + 0x40 0x00000000 0x0 0x00002000>; /* configuration space */ + reg-names = "regs", "config";
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 491
Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +10
-0+ interrupts = <0 118 0x4>, /* controller interrupt */ + <0 117 0x4>; /* PME interrupt */ + interrupt-names = "intr", "pme"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + num-lanes = <4>; + bus-range = <0x0 0xff>; + ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */ + 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
No prefetchable memory area?
Review
Quoted 1 line
(quoted diff) +1
-0+ msi-parent = <&msi>;
You seem to have a gic-400, could you use that as the MSI sink instead?
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 499
Quoted 8 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +7
-0+ #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0000 0 0 1 &gic 0 110 0x4>, + <0000 0 0 2 &gic 0 110 0x4>, + <0000 0 0 3 &gic 0 110 0x4>, + <0000 0 0 4 &gic 0 110 0x4>; + };
If the four interrupts are all the same, why do you have separate entries?
Arnd
PATCH 1/5 arm64: dts: add QorIQ LS1046A SoC support
Hello Arnd,
Thank you for reviewing!
I'm seriously Sorry for the late response! I was on business travel on a project and had been very busy for a long time.
Please see inline.
Regards,
Shaohui
Quoted 14 lines
-----Original Message-----
From: Arnd Bergmann [mailto:arnd at arndb.de]
Sent: Friday, July 08, 2016 8:00 PM
To: shh.xie at gmail.com
Cc: devicetree at vger.kernel.org; robh+dt at kernel.org; mark.rutland at arm.com; pawel.moll at arm.com; ijc+devicetree at hellion.org.uk; galak at codeaurora.org; linux-arm-kernel at lists.infradead.org; catalin.marinas at arm.com; will.deacon at arm.com; Mingkai Hu <[email protected]>; Mihai Emilian Bantea <[email protected]>; Qianyu Gong <[email protected]>; Minghuan Lian <[email protected]>; Zhiqiang Hou <[email protected]>; Shaohui Xie <[email protected]>
Subject: Re: [PATCH 1/5] arm64: dts: add QorIQ LS1046A SoC supportOn Friday, July 8, 2016 6:15:40 PM CEST shh.xie at gmail.com wrote:
Quoted 8 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 98
Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +6
-0+ + memory at 80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0 0x80000000>; + /* DRAM space 1, size: 2GiB DRAM */ + };The memory size is usually in the .dts file, unless this is on-chip eDRAM.
[S.H] The memory size will be fixup by U-boot, if it's not proper to have it in .dtsti, How about remove it?
Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 165
Quoted 8 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +6
-0+ clockgen: clocking at 1ee1000 { + compatible = "fsl,ls1046a-clockgen"; + scfg: scfg at 1570000 { + compatible = "fsl,ls1046a-scfg", "syscon"; + dcfg: dcfg at 1ee0000 { + compatible = "fsl,ls1046a-dcfg", "syscon";None of the fsl,ls1046a-* devices seem to have any binding documentation.
[S.H] Will update binding for fsl,ls1046-* devices in next version.
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 389
Quoted 2 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +1
-0+ wdog0: wdog at 2ad0000 {watchdog at 2ad0000
[S.H] Will fix it.
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 414
Quoted 2 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +1
-0+ usb0: usb3 at 2f00000 {usb at 2f00000
[S.H] Will fix it.
Quoted 28 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +3
-0+ pcie at 3400000 { + compatible = "fsl,ls1046a-pcie", "snps,dw-pcie"; + reg = <0x00 0x03400000 0x0 0x00100000 /* controllerregisters */
Review
Quoted 1 line
(quoted diff) +1
-0+ 0x40 0x00000000 0x0 0x00002000>; /* configurationspace */
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +10
-0+ reg-names = "regs", "config"; + interrupts = <0 118 0x4>, /* controller interrupt */ + <0 117 0x4>; /* PME interrupt */ + interrupt-names = "intr", "pme"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + num-lanes = <4>; + bus-range = <0x0 0xff>; + ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000
0x00x00010000/* downstream I/O */Review
Quoted 1 line
(quoted diff) +1
-0+ 0x82000000 0x0 0x40000000 0x40 0x40000000
0x00x40000000>; /*Quoted 1 line
+non-prefetchable memory */
No prefetchable memory area?
Review
Quoted 1 line
(quoted diff) +1
-0+ msi-parent = <&msi>;You seem to have a gic-400, could you use that as the MSI sink instead?
Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi line 499
Quoted 8 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +7
-0+ #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0000 0 0 1 &gic 0 110 0x4>, + <0000 0 0 2 &gic 0 110 0x4>, + <0000 0 0 3 &gic 0 110 0x4>, + <0000 0 0 4 &gic 0 110 0x4>; + };If the four interrupts are all the same, why do you have separate entries?
[S.H] We are working on refining the MSI driver and the MSI node will also be changed, so the MSI and PCIe node will be added together with the MSI driver updates. In the next version, I will drop the MSI node and PCIe node.
Thank you!
PATCH 1/5 arm64: dts: add QorIQ LS1046A SoC support
Quoted 5 lines · CEST Shaohui Xie
Hello Arnd,
Thank you for reviewing!
I'm seriously Sorry for the late response! I was on business travel on a project and had been very busy for a long time.
No worries.
Quoted 11 lines
Quoted 11 lines
-----Original Message-----
From: Arnd Bergmann [mailto:arnd at arndb.de]
Sent: Friday, July 08, 2016 8:00 PMQuoted 6 lines · CEST shh.xie at gmail.com
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi new file +6
-0+ + memory at 80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0 0x80000000>; + /* DRAM space 1, size: 2GiB DRAM */ + };
Quoted 4 lines
Quoted 1 line
The memory size is usually in the .dts file, unless this is on-chip eDRAM.
[S.H] The memory size will be fixup by U-boot, if it's not proper to have it in .dtsti, How about remove it?
Sounds fine to me. A lot of board specific files have a memory node regardless of the override, but I don't see a reason to require it.
Arnd
PATCH 2/5 Documentation: DT: Add entry for QorIQ LS1046A-RDB board
In reply to shh.xie at gmail.comFrom: Shaohui Xie <[email protected]>
--- Documentation/devicetree/bindings/arm/fsl.txt | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/fsl.txt +4 -0
@@ -139,6 +139,10 @@ LS1043A ARMv8 based QDS Board Required root node properties: - compatible = "fsl,ls1043a-qds", "fsl,ls1043a"; +LS1046A ARMv8 based RDB Board +Required root node properties: + - compatible = "fsl,ls1046a-rdb", "fsl,ls1046a"; + LS2080A ARMv8 based Simulator model Required root node properties: - compatible = "fsl,ls2080a-simu", "fsl,ls2080a";
Signature · 1 line
2.1.0.27.g96db324
Rob Herring
maintainerPATCH 2/5 Documentation: DT: Add entry for QorIQ LS1046A-RDB board
Quoted 6 lines · shh.xie at gmail.com
From: Shaohui Xie <[email protected]>
Signed-off-by Shaohui Xie <[email protected]>--- Documentation/devicetree/bindings/arm/fsl.txt | 4 ++++ 1 file changed, 4 insertions(+)
PATCH 3/5 arm64: dts: add LS1046A-RDB board support
In reply to shh.xie at gmail.comFrom: Mingkai Hu <[email protected]>
The LS1046A reference design board (RDB) is a high-performance computing, evaluation, and development platform that supports the LS1046A SoC.
--- arch/arm64/boot/dts/freescale/Makefile | 1 + arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 138 ++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
arch/arm64/boot/dts/freescale/Makefile +1 -0
@@ -1,5 +1,6 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts new file +138 -0
138 lines not on this page · raw message
Signature · 1 line
2.1.0.27.g96db324
PATCH 4/5 Documentation: DT: Add entry for QorIQ LS1046A-QDS board
In reply to shh.xie at gmail.comFrom: Shaohui Xie <[email protected]>
--- Documentation/devicetree/bindings/arm/fsl.txt | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/fsl.txt +4 -0
@@ -139,6 +139,10 @@ LS1043A ARMv8 based QDS Board Required root node properties: - compatible = "fsl,ls1043a-qds", "fsl,ls1043a"; +LS1046A ARMv8 based QDS Board +Required root node properties: + - compatible = "fsl,ls1046a-qds", "fsl,ls1046a"; + LS1046A ARMv8 based RDB Board Required root node properties: - compatible = "fsl,ls1046a-rdb", "fsl,ls1046a";
Signature · 1 line
2.1.0.27.g96db324
Rob Herring
maintainerPATCH 4/5 Documentation: DT: Add entry for QorIQ LS1046A-QDS board
Quoted 6 lines · shh.xie at gmail.com
From: Shaohui Xie <[email protected]>
Signed-off-by Shaohui Xie <[email protected]>--- Documentation/devicetree/bindings/arm/fsl.txt | 4 ++++ 1 file changed, 4 insertions(+)
PATCH 5/5 arm64: dts: add LS1046A-QDS board support
In reply to shh.xie at gmail.comFrom: Shaohui Xie <[email protected]>
The LS1046A QorIQ development system (QDS) board is a high-performance computing, evaluation, development, and test platform supporting the LS1046A SoC.
--- arch/arm64/boot/dts/freescale/Makefile | 1 + arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 209 ++++++++++++++++++++++ 2 files changed, 210 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts
arch/arm64/boot/dts/freescale/Makefile +1 -0
@@ -1,5 +1,6 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb
arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts new file +209 -0
209 lines not on this page · raw message
Signature · 1 line
2.1.0.27.g96db324