Commit Graph

165530 Commits

Author SHA1 Message Date
Han Xu c283a3e662 MLK-23588: arm64: dts: enable usbotg on imx8qxp lpddr4 val board for uuu download
Enabled the usbotg ports on imx8qxp lpddr4 val board for uuu download
NAND image.

Signed-off-by: Han Xu <han.xu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
(cherry picked from commit ad81692901)
2020-03-13 15:33:42 -05:00
Silvano di Ninno 9b350b9ff8 arm64: dts: imx8dxl Add caam node
8DXL have a different IRQ mapping compare to
8QM and 8QxP.

Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
(cherry picked from commit 7753837330)
2020-03-13 23:00:28 +01:00
Franck LENORMAND 94ff75adc8 MLK-23421: arch: arm64: imx8dxl: Change IRQ number
On 8dxl, the IRQ numbe ris different than on other 8SoC.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit e4468cd15c)
2020-03-13 23:00:03 +01:00
Franck LENORMAND ebcce7d68d MLK-23421: arm64: imx_v8_defconfig: Enable SECO_MU
Enable the support for SECO_MU by default

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit 6f9d149507)
2020-03-13 22:59:53 +01:00
Franck LENORMAND 2e56e47950 MLK-23421: arm64: dts: Use fast IPC for seco mu
This patch enables all the MU in the security subsystem
and configure them to use FAST IPC.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit 9a91e2843e)
2020-03-13 22:59:42 +01:00
Joakim Zhang 2fe48f817b MLK-23573 arm64: dts: imx8qm/qxp-val: Enable CAN
Enable CAN on i.MX8QM/QXP validation board for test team requirement.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-03-13 16:27:22 +08:00
Liu Ying 5c85400769 MLK-23267-2 arm64: imx8qm-ss-lvds.dtsi: Correct clock property of irqsteer_lvds1 node
The irqsteer_lvds1 node's ipg clock source should be
lvds1_lis_lpcg_ipg_clk, instead of lvds0_lis_lpcg_ipg_clk.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 869d88224b)
2020-03-13 15:50:06 +08:00
Liu Ying 42a5a64801 MLK-23267-1 arm64: imx8qm-ss-lvds.dtsi: Separate ipg clock for lvds0/1 subsystems
Each LVDS subsystem should have ipg clock of their own.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit bf8ae75604)
2020-03-13 15:50:06 +08:00
Silvano di Ninno ad86e208a5 MLK-23561 arm64: dts: imx8-ss-security: fix Secure Memory mapping
Ranges for the security subsystem node is too small and does not include
the caam_sm range.

Fixes: e08b2903ae ("LF-824:  arm64: dts: Add seco mu nodes")
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Tested-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
(cherry picked from commit 534d8537d4)
2020-03-10 18:42:21 +01:00
Viorel Suman 5a7a9220ee MLK-23567-1: dts: arm64: imx8mp-ab2: add SPDIF iomux config
Add SPDIF iomux configuration.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 80aaafd873)
2020-03-10 11:28:50 +02:00
Viorel Suman f9f5b52011 MLK-23566-1: arm64: dts: imx8mp: replace "earc" with "xcvr"
IP module name is AUDIO XCVR, eARC being just one
of the audio interfaces supported by XCVR IP module.
Use IP module name instead of a specific audio interface
in order to avoid confusion.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 2bcdf92a47)
2020-03-10 11:28:50 +02:00
Ye Li 1c83036daa MLK-23552-4 arm64: dts: imx8dxl: Update ADMA subsystem nodes
Remove non-existing ADMA nodes on iMX8DXL, update the edma0 and
enable acm since this parent for some audio lpcg nodes.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 8a35ec5fc3)
2020-03-09 21:10:43 -07:00
Ye Li ad21d4ecd6 MLK-23552-2 arm64: dts: imx8dxl: Remove IMG subsystem
iMX8DXL does not have IMG subsystem, so remove this SS dtsi file
from iMX8DXL

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 4ad83f42e3)
2020-03-09 21:10:41 -07:00
Ye Li 64f8afe492 MLK-23552-1 arm64: dts: imx8dxl: Remove MLB and its lpcg node
iMX8DXL does not have MLB in connectivity subsystem, remove mlb node
and mlb_lpcg node from imx8dxl conn DTSi.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 2bcf70ad60)
2020-03-09 21:10:33 -07:00
Anson Huang 78f3cd5e25 MLK-23556 arm64: dts: imx8dxl: Eliminate error message for audio ss
Disable those audio lpcgs which probe failed to avoid below error message during
kernel boot up:

[    0.322195] imx8qxp-lpcg-clk 59420000.clock-controller: failed to get clock parent names
[    0.322275] imx8qxp-lpcg-clk: probe of 59420000.clock-controller failed with error -22
[    0.322400] imx8qxp-lpcg-clk 59440000.clock-controller: failed to get clock parent names
[    0.322440] imx8qxp-lpcg-clk: probe of 59440000.clock-controller failed with error -22
[    0.322568] imx8qxp-lpcg-clk 59450000.clock-controller: failed to get clock parent names
[    0.322605] imx8qxp-lpcg-clk: probe of 59450000.clock-controller failed with error -22
[    0.322814] imx8qxp-lpcg-clk 59460000.clock-controller: failed to get clock parent names
[    0.322859] imx8qxp-lpcg-clk: probe of 59460000.clock-controller failed with error -22
[    0.323022] imx8qxp-lpcg-clk 59470000.clock-controller: failed to get clock parent names
[    0.323067] imx8qxp-lpcg-clk: probe of 59470000.clock-controller failed with error -22
[    0.323195] imx8qxp-lpcg-clk 59c50000.clock-controller: failed to get clock parent names
[    0.323236] imx8qxp-lpcg-clk: probe of 59c50000.clock-controller failed with error -22
[    0.324090] imx8qxp-lpcg-clk 59d50000.clock-controller: failed to get clock parent names
[    0.324152] imx8qxp-lpcg-clk: probe of 59d50000.clock-controller failed with error -22
[    0.324257] imx8qxp-lpcg-clk 59d60000.clock-controller: failed to get clock parent names
[    0.324296] imx8qxp-lpcg-clk: probe of 59d60000.clock-controller failed with error -22

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
(cherry picked from commit c5726388aa)
2020-03-09 11:09:42 +08:00
Fugang Duan eb15d3ea94 MLK-23546: dts: arm64: imx8: assign per clk for 8qm/8qxp
SLSLICE[2] cannot be accessed on 8DXL platform since it is
fixed and locked clock, but can be accessed on 8qm/8qxp platforms
who want to assign the clock to 250Mhz.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-06 17:53:22 +08:00
Silvano di Ninno 9fae921adf arm64: dts: imx8mm: align CAAM Job ring node naming
Align i.MX 8mm Job ring node naming
with the rest of the i.MX 8 platforms.

Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
(cherry picked from commit 28a4a2e2fb)
2020-03-05 17:36:17 +01:00
Silvano di Ninno ab5424134e arm64: dts: imx8mn: align CAAM Job ring node naming
Align i.MX 8mn Job ring node naming
with the rest of the i.MX 8 platforms.

Fixes: aad2417502a1 ("arm64: dts: imx8mn: add crypto node")
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
(cherry picked from commit b7ad286ff8)
2020-03-05 17:36:05 +01:00
Silvano di Ninno fb5def8162 arm64: dts: imx8qm:imx8qxp align CAAM Job ring node naming
Align i.MX 8QXP/QM Job ring node naming
with the rest of the i.MX 8 platforms.

Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
(cherry picked from commit e7534bb984)
2020-03-05 17:35:56 +01:00
Fancy Fang 229e3e6c67 MLK-23532 arm64: dts: imx8mp: correct clocks for mediamix-pd
There is a shared gate clock exists after 'IMX8MP_CLK_MEDIA_
AXI_ROOT' and 'IMX8MP_CLK_MEDIA_AXI_ROOT' clocks according to
the clock tree, so correct clock values for 'mediamix-pd' by
using the corresponding gate clocks.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
Tested-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 7caaecd405)
2020-03-05 18:10:15 +08:00
Frank Li df66906854 MLK-23533 dts: dxl fix usb vbus control polarity problem
correct property name. power-active-high
USB OTG2 power pin function set problem is fixed by scfw
848498bf4c6d79b33cc5018969574a5369479bc4

Signed-off-by: Frank Li <Frank.Li@nxp.com>
2020-03-04 19:59:14 -06:00
Joakim Zhang 92701a860f MLK-23418-6 arch: arm64: dts: imx8dxl: add perf device node in DB
Add PMU device node in DB on i.MX8DXL EVK board.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-03-04 09:37:28 +08:00
Joakim Zhang a9883bc4ce MLK-23417-4 arch: arm64: imx8dxl: add perf device node for DRC
Add PMU device node for DRC on i.MX8DXL EVK board.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-03-04 09:36:22 +08:00
Fugang Duan df3d576d53 MLK-23424 arm64: dts: imx8dxl: enable legacy enet0 port
Enable legacy enet0 port to support daughter RGMII AR8031
PHY board.

imx8dxl evk board rework:
- Remove U30, R181, R182
- Connect U30.2 -U30.7
- Connect U30.3 ->U30.6
- Change R178/R179 to 1.5K

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-03 14:23:20 +08:00
Silvano di Ninno 987140ce78 TEE-518 arm64: dts: imx8mp: Increase alloc range for CMA.
With the reserved memory for optee, Linux is no
longer able to allocate CMA within the allocation
range defined in the dtb.
Increase the alloc-range so that Linux can allocate in the 4G
address range (in case some DMA are not able to address more).

Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Reviewed-by: Jian Li <jian.li@nxp.com>
(cherry picked from commit 16ea12e66c)
2020-02-29 14:49:22 +01:00
Fugang Duan cd3b40fc53 MLK-23406 arm64: dts: imx8dxl: enable wireless HIF
Enable HIF PCIe for wlan, uart for bluetooth.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-02-28 15:43:05 +08:00
Jacky Bai 435d0024f5 MLK-23404 arm64: dts: imx8mp: Correct the hdmi irqsteer's interrupt controller parent
Correct the HDMI irqsteer's interrupt controller parent, otherwise the HDMI
irq can NOT wakeup the cpu core from idle timely, then HDMI performance
will be impacted.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 349e4ee942)
2020-02-28 14:54:39 +08:00
Peter Chen 5818e1021d
MLK-23349-5 ARM64: dts: imx8-ss-conn: specific USB3 clocks rate
IC confirmed the both imx8qm and imx8qxp could use 250M as usb3_clk
and no performance drop.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-02-28 11:19:27 +08:00
Robin Gong f41f82ee9e MLK-23400-2 ARM64: dts: freescale: imx8mp: add new 'imx8mp-sdma' type for sdma2/sdma3
Add new compatible 'imx8mp-sdma' for sdma2/sdma3 to support resume back after
audiomix off.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit ed2a39826e)
2020-02-28 19:16:54 +08:00
Frank Li 3f6dafa83e MLK-23403-3: i.MX8DXL: Change board name to EVK from MEK
Correct board name

Signed-off-by: Frank Li <Frank.Li@nxp.com>
(cherry picked from commit 8faceabaae)
2020-02-27 14:12:57 -06:00
Daniel Baluta a5da0e2ec2 MLK-23350-7 arm64: dts: imx8mp-evk-sof: Use imx8mp dedicated topology
Topology is similar with the one for i.MX8QXP but now we really
use correct name for SAI: sai3 instead of sai1.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-02-26 18:59:00 +02:00
Peng Fan a0e5b474df MLK-23373-2 ARM64: dts: imx8mp-evk-root: fix jailhouse root dts
Fix jailhouse root dts to make it boot again.

Remove gpc
Disable cpuidle
Fix pinctrl
Add IMX8MP_CLK_HSIO_ROOT follow imx8mp-evk.dts

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
(cherry picked from commit 3bea10bd31)
2020-02-26 15:46:17 +08:00
Peng Fan e36341d1e3 MLK-23373-1 ARM64: dts: imx8mp: correct interrupt parent
With GPC as interrupt parent, need set edac and irqsteer interrupt
parent as gpc.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
(cherry picked from commit b027bfd918)
2020-02-26 15:46:12 +08:00
Ye Li 1b92fc8eb4 MLK-23393 arm64: dts: imx8dxl-evk: Change CMA size to 320M
iMX8DXL EVK board only has 1GB DDR, so it can't allocate 960MB CMA.
Change the CMA size to 320M to align with 8DX.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
(cherry picked from commit 80ef9839d8)
2020-02-25 22:04:21 -08:00
Silvano di Ninno f38bba50cc TEE-502 arch: arm64: dts: imx8dxl:imx8dx:imx8mp reserved BL32 memory
BL32 base address is set within the first 1GByte of DDR.
As a new rule it will be set at base address + 0x16000000.
This new position will relax current dependency of the OPTEE
base address on the size of the DDR.

Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
(cherry picked from commit ad460e81a4)
2020-02-25 22:03:37 -08:00
Alex Marginean b0fdec09c9 LF-980 arch/arm64: use TKT340553_SW_WORKAROUND only for IMX_SCU_SOC
The patch fixes a linkage issue if IMX is not enabled in config.  The
definition of TKT340553_SW_WORKAROUND depends on CONFIG_IMX_SCU_SOC, but
its usage in arch/arm64 code did not.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Reviewed-by: Horia Geanta <horia.geanta@nxp.com>
Tested-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
Acked-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
(cherry picked from commit 272cb97a03)
2020-02-26 04:54:32 +08:00
Camelia Alexandra Groza 81a0fd4a15 arm64: lsdk.config: lower the default NR_CPUS to 16
The default NR_CPUS was increased in 846a415 ("arm64: default NR_CPUS to
256"). This change caused performance degradations of up to 40% in IP
forwarding scenarios for DPAA1 platforms.

Lower the default to 16, the maximum number of cores available on NXP ARM
platforms supported by the LSDK.

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Acked-by: Li Yang <leoyang.li@nxp.com>
Tested-by: X.f.Ren <xiaofeng.ren@nxp.com>
(cherry picked from commit a60ce25d4a)
2020-02-26 04:54:30 +08:00
Michael Ellerman 3ea667a633 of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc
There's an OF helper called of_dma_is_coherent(), which checks if a
device has a "dma-coherent" property to see if the device is coherent
for DMA.

But on some platforms devices are coherent by default, and on some
platforms it's not possible to update existing device trees to add the
"dma-coherent" property.

So add a Kconfig symbol to allow arch code to tell
of_dma_is_coherent() that devices are coherent by default, regardless
of the presence of the property.

Select that symbol on powerpc when NOT_COHERENT_CACHE is not set, ie.
when the system has a coherent cache.

Fixes: 92ea637ede ("of: introduce of_dma_is_coherent() helper")
Cc: stable@vger.kernel.org # v3.16+
Reported-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
(cherry picked from commit dabf6b36b83a18d57e3d4b9d50544ed040d86255)
(cherry picked from commit 43557841be)
2020-02-26 04:54:28 +08:00
Robert Chiras fbd7910e21 LF-842-1: drm/bridge: nwl-dsi: Change mipi clocks re-parenting
The MIPI clock parenting is made in dts file, causing the MIPI clocks to
be parented even if that specific MIPI node is needed or not, causing
issues to the LVDS block (which has a shared PHY with MIPI on 8QXP).
In order to avoid these problems with the shared PHY on 8QXP, store the
MIPI parent clock for phy and escape clocks, along with their rates and
do the re-parenting in the MIPI driver only when a bridge (or panel) is
attached to it.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Dong Aisheng <aisheng.dong@nxp.com>
[Aisheng: Tested on MX8QM/QXP with single LVDS-HDMI or MIPI panel]
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>

(cherry picked from commit 2f794bb2f8)
2020-02-26 04:54:26 +08:00
Robin Gong 0ec19adc3e LF857-3: ARM: dts: imx6sx-sdb-m4: correct base address of m4_reserved
Correct base address of m4_reserved node.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
(cherry picked from commit d26a53b10b)
2020-02-26 04:54:26 +08:00
Gagandeep Singh 229922bf08 LF-881: arm64: dts: add a dts file for dpdk
A new device tree file fsl-ls1028a-rdb-dpdk.dts is added
for user space networking.

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Reviewed-by: Alex Marginean <alexandru.marginean@nxp.com>
Reviewed-by: Li Yang <leoyang.li@nxp.com>
(cherry picked from commit 5c1ec7a8a4)
2020-02-26 04:54:24 +08:00
Robert Chiras 41326b37ca LF-810: arm64: dts: imx8mq: Add support for dual-display
Add dts file to support dual-display on imx8mq-evk:
1. DCSS + onboard HDMI
2. LCDIF + DSI-HDMI converter: ADV7535

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
(cherry picked from commit f46b5624b3)
2020-02-26 04:54:23 +08:00
Dong Aisheng a4364d7b24 LF-789-2 arm64: dts: add overlay support for ls1028a-qds
Now seems only ls1028a-qds using overlay by adding fragment dtbs.
Add their support in Makefile.

This is one of approach suggested by DT maintainer Rob here:
https://lore.kernel.org/patchwork/patch/821645/

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
Reviewed-by: Alex Marginean <alexandru.marginean@nxp.com>
Tested-by: Alex Marginean <alexandru.marginean@nxp.com>
(cherry picked from commit 7220fa2e1a)
2020-02-26 04:54:21 +08:00
Bhupesh Sharma 7edbdde629 LF-419 arm64/crash_core: Export TCR_EL1.T1SZ in vmcoreinfo
vabits_actual variable on arm64 indicates the actual VA space size,
and allows a single binary to support both 48-bit and 52-bit VA
spaces.

If the ARMv8.2-LVA optional feature is present, and we are running
with a 64KB page size; then it is possible to use 52-bits of address
space for both userspace and kernel addresses. However, any kernel
binary that supports 52-bit must also be able to fall back to 48-bit
at early boot time if the hardware feature is not present.

Since TCR_EL1.T1SZ indicates the size offset of the memory region
addressed by TTBR1_EL1 (and hence can be used for determining the
vabits_actual value) it makes more sense to export the same in
vmcoreinfo rather than vabits_actual variable, as the name of the
variable can change in future kernel versions, but the architectural
constructs like TCR_EL1.T1SZ can be used better to indicate intended
specific fields to user-space.

User-space utilities like makedumpfile and crash-utility, need to
read/write this value from/to vmcoreinfo for determining if a virtual
address lies in the linear map range.

The user-space computation for determining whether an address lies in
the linear map range is the same as we have in kernel-space:

  #define __is_lm_address(addr)	(!(((u64)addr) & BIT(vabits_actual - 1)))

I have sent out user-space patches for makedumpfile and crash-utility
to add features for obtaining vabits_actual value from TCR_EL1.T1SZ (see
[0] and [1]).

Akashi reported that he was able to use this patchset and the user-space
changes to get user-space working fine with the 52-bit kernel VA
changes (see [2]).

[0]. http://lists.infradead.org/pipermail/kexec/2019-November/023966.html
[1]. http://lists.infradead.org/pipermail/kexec/2019-November/024006.html
[2]. http://lists.infradead.org/pipermail/kexec/2019-November/023992.html

Cc: James Morse <james.morse@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Steve Capper <steve.capper@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Dave Anderson <anderson@redhat.com>
Cc: Kazuhito Hagio <k-hagio@ab.jp.nec.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: kexec@lists.infradead.org
Signed-off-by: Bhupesh Sharma <bhsharma@redhat.com>
Tested-by: Poonam Aggrwal <poonam.aggrwal@nxp.com>
Acked-by: Li Yang <leoyang.li@nxp.com>
(cherry picked from commit 9b27020c75)
2020-02-26 04:54:19 +08:00
Clark Wang 9046403e1c LF-749 ARM: dts: imx6qdl: add bus recovery for i2c buses
Add bus recovery for all i2c buses to avoid bus dead lock.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit d1300cec8a)
2020-02-26 04:54:18 +08:00
Alex Marginean f90e653cd3 arm64: dts: fsl-ls1028a: add labels to Ethernet switch ports
Labels are used to name switch port net devices in Linux, use more
convenient names to make it simpler for users.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
(cherry picked from commit 3ad82375cf)
2020-02-26 04:54:12 +08:00
Alex Marginean 3c11d0c90b arm64: dts: fsl-ls1028a-qds: Add overlays for various serdes protocols
Adds overlays for various serdes protocols on LS1028A QDS board using
different PHY cards.  These should be applied at boot, based on serdes
configuration.  If no overlay is applied, only the RGMII interface on
the QDS is available in Linux.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
(cherry picked from commit 779c69e4ae)
2020-02-26 04:54:08 +08:00
Alex Marginean 27363b1bee arm64: dts: fsl-ls1028a: prepare dts for overlay
Named the ports node of the Felix Eth switch so it can be used in DT
overlays to associate the ports with proper PHYs.
Ports are now by default disabled in dtsi, so if the board dts doesn't
do anything about them they stay disabled.
Updated RDB and QDS dts files to match.
Replaced all 'phy-connection-type' with 'phy-mode'.
The set-up for protocol 7777 on QDS was changed to a single quad port card
in slot 1.  This requires a QDS board with no lane B rework and a AQR412
or similar PHY card without any lane rework done on it.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
(cherry picked from commit 0462421755)
2020-02-26 04:54:08 +08:00
Alex Marginean a8fda00e5d arm64: dts: fsl-ls1028a-rdb: fix QSGMII PHY node names
Use ethernet-phy@ADDR, previously the numbers were wrong.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
(cherry picked from commit 4085dc8534)
2020-02-26 04:54:07 +08:00
Vladimir Oltean ba44f8cd18 arm64: dts: ls1028a: Disable swp5 by default
This was missed when moving the CPU port and disabling eno3.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
(cherry picked from commit b180bb294e)
2020-02-26 04:54:06 +08:00