summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-14base: soc: Introduce soc_device_match() interfaceArnd Bergmann
We keep running into cases where device drivers want to know the exact version of the a SoC they are currently running on. In the past, this has usually been done through a vendor specific API that can be called by a driver, or by directly accessing some kind of version register that is not part of the device itself but that belongs to a global register area of the chip. Common reasons for doing this include: - A machine is not using devicetree or similar for passing data about on-chip devices, but just announces their presence using boot-time platform devices, and the machine code itself does not care about the revision. - There is existing firmware or boot loaders with existing DT binaries with generic compatible strings that do not identify the particular revision of each device, but the driver knows which SoC revisions include which part. - A prerelease version of a chip has some quirks and we are using the same version of the bootloader and the DT blob on both the prerelease and the final version. An update of the DT binding seems inappropriate because that would involve maintaining multiple copies of the dts and/or bootloader. This patch introduces the soc_device_match() interface that is meant to work like of_match_node() but instead of identifying the version of a device, it identifies the SoC itself using a vendor-agnostic interface. Unlike of_match_node(), we do not do an exact string compare but instead use glob_match() to allow wildcards in strings. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-14core/linux: usb :fsl: Remove USB Errata checking codeNikhil Badola
Remove USB errata checking code from driver. Applicability of erratum is retrieved by reading corresponding property in device tree. This property is written during device tree fixup. Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-07-14core/linux: fsl/usb: Stops USB controller init if PLL fails to lockRamneek Mehresh
USB erratum-A006918 workaround tries to start internal PHY inside uboot (when PLL fails to lock). However, if the workaround also fails, then USB initialization is also stopped inside Linux. Erratum-A006918 workaround failure creates "fsl,erratum_a006918" node in device-tree. Presence of this node in device-tree is used to stop USB controller initialization in Linux Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: Suresh Gupta <suresh.gupta@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-07-14Add USDPAA DTS files for LS1043 and LS1046Roy Pledge
Add USDPAA device trees for LS1043/LS1046 RDB boards Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
2017-07-14arm64: dts: add DPAA 1.x SDK qds dts filesMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-07-14arm64: dts: add ethernet@9Madalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-07-14dtb: add DPAA 1.x SDK dts filesMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-07-14dts: SDK QBMan nodesMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-07-14dts: SDK FMan nodesMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-07-14arm64: dts: ls1046: add DPAA FMan nodesMadalin Bucur
Add the DPAA 1.x FMan device tree nodes for LS1046A boards. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-07-14arm64: dts: ls1043: add DPAA FMan supportMadalin Bucur
Add the DPAA 1.x FMan device tree nodes for LS1043A boards. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-07-14arm64: dts: fsl: add DPAA FMan nodesMadalin Bucur
Add the DPAA 1.x FMan nodes for the ARM based platforms. Using separate files for each port as not all ports are used on all devices. Different numbering of ports is also possible on different devices. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-07-14arm64: dts: ls1046: add DPAA QBMan nodesMadalin Bucur
commit bb18179284750ab91ef70172e87a722fcef9e1f4 [context adjustment] Add the QBMan device tree nodes for LS1046A devices. Signed-off-by: Roy Pledge <roy.pledge@nxp.com> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-07-14arm64: dts: ls1043: add DPAA QBMan nodesMadalin Bucur
Add the DPAA 1.x QMan and BMan nodes in the LS1043A device tree. Signed-off-by: Roy Pledge <roy.pledge@nxp.com> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-07-14arm64: dts: add DPAA QBMan portalsMadalin Bucur
Add the DPAA 1.x DPAA QMan and BMan portal nodes. Signed-off-by: Roy Pledge <roy.pledge@nxp.com> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-07-14arm64: dts: ls1088ardb: correct the base address of watchdogZhang Ying-22455
The base address of watchdog unit is incorrect lead to the watchdog timer is not registered. Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm: dts: ls1021a: correct the register range of dcfgZhang Ying-22455
Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm64: dts: ls1043a/ls1046a: correct the register range of dcfgZhang Ying-22455
Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm64: dts: ls1088a: add esdhc nodeYangbo Lu
Add esdhc node for ls1088a and enable it on both RDB and QDS boards. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-07-14arm64: dts: ls208xa: disable SD UHS-I modes by default on RDByinbo.zhu
Currently SD UHS-I modes were enabled by default on LS208xARDB boards, but the new LS2088ARDB RevF board didn't support them any more since SDHC circuit had been reworked. This patch is to disable SD UHS-I modes by default in case of any issue on LS2088ARDB RevF Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com> Acked-by: Yangbo Lu <yangbo.lu@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
2017-07-14arm64: dts: ls1088a: update sata nodeYuantian Tang
1. Remove ls1043a compatible string from node 2. Fix the sata ecc register address error Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-07-14arm64: dts: freescale: ls208xa: add crypto nodeHoria Geantă
LS208xA has a SEC v5.1 security engine. Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
2017-07-14arm64: dts: freescale: ls208xa: share aliases nodeHoria Geantă
aliases node is identical for all boards, thus move it to the common file ls208xa.dtsi. Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
2017-07-14arm64: dts: freescale: ls1088a: add crypto nodeHoria Geantă
LS1088A has a SEC v5.3 security engine. Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
2017-07-14ls1088a: DTS:Added dcfg node in ls1088aAmrita Kumari
Signed-off-by: Amrita Kumari <amrita.kumari@nxp.com>
2017-07-14arm64: dts: fsl/ls1088,ls208x: Add mdio and phy nodesBogdan Purcareata
Add mdio and phy nodes for the following FSL platforms: - LS1088A RDB - LS2080A QDS & RDB - LS2088A QDS, RDB & simu Contains contributions from patches by the following authors: Signed-off-by: Shaohui Xie <Shaohui.Xie@nxp.com> Signed-off-by: Rai Harninder <harninder.rai@nxp.com> Signed-off-by: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com> Signed-off-by: Raghav Dogra <raghav.dogra@nxp.com> Signed-off-by: Santan Kumar <santan.kumar@nxp.com> Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com> Signed-off-by: Ashish Kumar <ashish.kumar@nxp.com> Signed-off-by: Abhimanyu Saini <abhimanyu.saini@nxp.com> Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
2017-07-14arm64: dts: fsl-ls2088: Add mdio/phy devicescosti
Signed-off-by: Constantin Tudor <constantin.tudor@nxp.com>
2017-07-14arm:dts:ls1043a : Add configure-gfladj property to USB3 nodeRajesh Bhagat
Add "configure-gfladj" boolean property to USB3 node. This property is used to determine whether frame length adjustent is required or not Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com>
2017-07-14USB3/DWC3: Add property "snps,dma-snooping" to enable snoopingChangming Huang
Some DWC3 platform has DMA snooping feature. Therefore, add property "snps,dma-snooping" to enable it. Signed-off-by: Changming Huang <jerry.huang@nxp.com>
2017-07-14USB3: DWC3: Add property snps incr burst type adjustment for INCR burst typeChangming Huang
Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-07-14arm64: dts: ls1088a: add DT node of watchdogMeng Yi
There are eight cores in ls1088a and each core has an watchdog, ls1088a can use sp805-wdt driver, so we just add DT node for it. Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm64: dts: ls208xa: add ftm0 nodesZhang Ying-22455
Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm64: dts: ls1088a: add ftm0 nodesZhang Ying-22455
Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm64: dts: ls1046a: add ftm0 nodeChenhui Zhao
Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm64: dts: ls1043a: add ftm0 nodesWang Dongsheng
Add rcpm and ftm0 nodes. The Power Management related features need these nodes. Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm: dts: ls1021a: add ftm0 nodeWang Dongsheng
Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm64: dts: ls1012a: add ftm0 nodeChenhui Zhao
Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm64: dts: ls208x: add property for PCA954x Mux deviceZhang Ying-22455
PCA954x Mux device should never be turned-off after power-on. if device tree contians "i2c-mux-never-disable" property for pca954x device node, it can ensure that skip disabling PCA954x Mux device. Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-07-14arm64: dts: ls1046a: enable dma coherency for sataYuantian Tang
Signed-off-by: Tang Yuantian <andy.tang@nxp.com> `
2017-07-14arm64: dts: ls1088a: update sata nodeYuantian Tang
update sata node to add the ecc register address and dma-coherent properties. Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-07-14arm64: dts: ls1088a: add tmu node supportYuantian Tang
Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-07-14arm64: dts: Add coreclk for ls1012aYuantian Tang
ls1012a has separate input root clocks for core PLLs versus the platform PLL, with the latter described as sysclk in the hw docs. Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-07-14dts: ls1088a: correct the PCIe config space addrZhao Qiang
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-07-14arm64: dts: ls1088a: Add QSPI node for QDS, RDBAlison Wang
This is temporary patch, will rewrite for open source Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
2017-07-14arm64: dts: ls1012a: add the DTS node for QSPI supportAlison Wang
There is a s25fs512s qspi flash on QDS, RDB and FRDM board. Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
2017-07-14dts/ls1021a-twr: optimize fast-mode to quad modeYunhui Cui
The field "m25p,fast-read" means that flash works at fast-read mode. Now Quad read mode is supported, So we remove the field, and the quad read mode is enabled by default. Signed-off-by: Yunhui Cui <yunhui.cui@nxp.com>
2017-07-14dts: ls1021a: Add the DTS for QSPI supportAlison Wang
This patch adds dts nodes for QSPI on LS1021A. Signed-off-by: Yuan Yao <yao.yuan@nxp.com> Signed-off-by: Alison Wang <alison.wang@nxp.com>
2017-07-14dts: ls1088a: add PCIe controller DT nodesHou Zhiqiang
LS1088a implements 3 PCIe 3.0 controllers. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-07-14dts/ls1088a: add ranges to gic nodeZhao Qiang
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-07-14dts: ls2088a: add pcie supportHou Zhiqiang
The physical memory map address and CCSR registers map address are different between LS2088A and other LS2080A series SoCs. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>