1
0
Fork 0
Commit Graph

12997 Commits (redonkable)

Author SHA1 Message Date
Peng Fan 749435ba3d MLK-24226 arm64: dts: imx8qm: domu: add mu alias
Add mu alias to make power key driver could probe successfully,
otherwise it might use wrong resource number to enable irq group
which cause failure.

Reviewed-by: zhang sanshan <pete.zhang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 31f7e2b7fed10b72b2e4fe7c28284c79e4889481)
2020-06-01 09:59:42 +08:00
Peng Fan d60d1df535 MLK-24224-2 arm64: imx_v8_defconfig: select xen watchdog
Without this, domu will not able to use wdog function.

Reviewed-by: zhang sanshan <pete.zhang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-30 15:24:35 +08:00
Peng Fan 18421a4580 MLK-24224-1 arm64: dts: imx8qm-dom0: fix resources assign
The VPU ENC is removed from smmu, it will cause smmu abort.
Drop the PI resources, it is not able to assign and report fail.

Reviewed-by: zhang sanshan <pete.zhang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-30 15:24:35 +08:00
Peng Fan ca81e31265 MLK-24218 arm64: dts: imx8qm: give domu gpio1-19 access
DomU mipi dsi needs this, so give access, otherwise domu crash

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 8a6cd912c31d69e043b78e1b054cc8aa3472f66f)
2020-05-29 19:27:08 +08:00
Peng Fan 395d3943ba MLK-24216 arm64: dts: dom0: fix audio for domu
Give SAI0 pad to domu and audio sys reg space.

Reviewed-by: zhang sanshan <pete.zhang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 817b83494247ef5b43287d27ca6331348d960e1e)
2020-05-29 19:27:00 +08:00
Shengjiu Wang eadf1405d5 MLK-24215: arm64: dts: imx8mm-evk-rpmsg: Disable bt-sco
There is a limitation on imx8mm when SAI shared with A core
and M core, and M core is in stop mode, SAI can't be accessed.
So we disable SAI2 node which is newly added to avoid
compatible issue.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-05-29 18:09:50 +08:00
Viorel Suman 7d635d2084 MLK-24139-2 arm64: dts: imx8mp: xcvr: define resources for ram, regs and fifos
Define XCVR resources for RAM, regs and FIFOs.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-05-29 12:40:39 +03:00
Jacky Bai fe0e7065a5 MLK-24089 arm64: dts: freescale: Correct the interrupt parent of pmu on imx8mp
The interrupt parent of PMU node should be gic, so correct it to fix the pmu
no sampling/overflow interrupt issue.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2020-05-29 17:34:26 +08:00
Peng Fan 9812b346b7 MLK-24005 arm64: dts: imx8qm: fix gpio usage for xen
GPIO4/3 needs to be given access for DomU for otg usb.
MIPI GPIO needs to be passthrough DOmU
LSIO_GPIO1 interrupts gives to DomU, dom0 not need the interrupt
currently.

Reviewed-by: zhang sanshan <pete.zhang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 1615076996096b26353baefd79211f24e6aa835e)
2020-05-29 12:05:32 +08:00
Peng Fan 9f160e20cf MLK-24199 arm64: dts: imx8m: add psci node for inmate dts
Add psci node for inmate dts, otherwise secondary cpus could
not be booted up.

Reviewed-by: Alice Guo <alice.guo@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 028306eb6a60c51769156755c7526b8512b8ff38)
2020-05-29 12:05:24 +08:00
Keno Fischer 53683907ef arm64: Fix PTRACE_SYSEMU semantics
commit 1cf6022bd9 upstream.

Quoth the man page:
```
       If the tracee was restarted by PTRACE_SYSCALL or PTRACE_SYSEMU, the
       tracee enters syscall-enter-stop just prior to entering any system
       call (which will not be executed if the restart was using
       PTRACE_SYSEMU, regardless of any change made to registers at this
       point or how the tracee is restarted after this stop).
```

The parenthetical comment is currently true on x86 and powerpc,
but not currently true on arm64. arm64 re-checks the _TIF_SYSCALL_EMU
flag after the syscall entry ptrace stop. However, at this point,
it reflects which method was used to re-start the syscall
at the entry stop, rather than the method that was used to reach it.
Fix that by recording the original flag before performing the ptrace
stop, bringing the behavior in line with documentation and x86/powerpc.

Fixes: f086f67485 ("arm64: ptrace: add support for syscall emulation")
Cc: <stable@vger.kernel.org> # 5.3.x-
Signed-off-by: Keno Fischer <keno@juliacomputing.com>
Acked-by: Will Deacon <will@kernel.org>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Bin Lu <Bin.Lu@arm.com>
[catalin.marinas@arm.com: moved 'flags' bit masking]
[catalin.marinas@arm.com: changed 'flags' type to unsigned long]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-27 17:46:40 +02:00
Clark Wang 883777aba5 MLK-24176-2 ARM64: dts: imx8dxl: add new property to fix the CS issue
Add property fsl,spi-only-use-cs1-sel to mark this board only uses
CS1 without CS0.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-05-27 18:15:36 +08:00
Fugang Duan 48daa0ca63 MLK-24174-04 arm64: dts: imx8: standardize the tja110x phy address
Some tja1100 cards phy address is 0x2, some cards is 0x5.
tja1101 cards phy address is 0x2.

To make thing simple, and to support tja1100 and tja1101
cards by one dts file, we define the tja110x card phy
address to 0x2 in default bsp.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-05-27 08:37:17 +00:00
Fugang Duan 7725151e50 MLK-24174-02 dts: arm64: imx8dx-mek: add tja110x card support for enet2 port
Add tja1100/tja1101 card support for enet2 port.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-05-27 08:36:48 +00:00
Fugang Duan 555af78715 MLK-24174-01 arm64: dts: imx8dxl-evk: add tja1100 phy support
When imx8dxl enet1 is fused as below, enet1 doesn't support
RGMII mode, so add tja1100 RMII phy support.

ENET1 otp fuse: word 0xa, bit1

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-05-27 08:36:40 +00:00
Peng Fan 4574beb107 MLK-24165 arm64: dts: imx8qm: xen: passthrough devices to domu
passthrough vpu/esai/pcie/edma and etc to domu, to let domu
could use more functions which is a must for android auto in
domu.

Reviewed-by: zhang sanshan <pete.zhang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-27 10:29:09 +08:00
Peng Fan 0268df6bb3 MLK-24140 arm64: dts: imx8m: enable wdog
Enable wdog for rpmsg dts to make wdog function could work properly.

Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-26 09:57:53 +08:00
Anson Huang 65918e1b15 MLK-24133 arm64: dts: imx8mp: Update pinfunc.h
Update i.MX8MP pinfunc.h according to latest RM Rev C.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
2020-05-23 08:42:23 +08:00
Robert Chiras f9a5c2a86f LF-811-7: arm64: imx_v8_defconfig: enable SEIKO_43WVFIG panel
Enable the Seiko 43WVFIG panel needed for lcdif use-case.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2020-05-22 15:26:48 +03:00
Peng Fan 1f49d90eba MLK-24093 arm64: dts: imx8mn: disable flexspi for rpmsg dts
When M4 boots from flexspi, linux should not use that, otherwise
M4 will hang.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-22 16:58:00 +08:00
Robert Chiras 98ca809def LF-811-6: arm64: defconfig: Enable parallel display SEIKO 43WVF1G
Add the required configs to enable the parallel display SEIKO 43WVF1G.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2020-05-22 11:10:41 +03:00
Robert Chiras 6dd8bdb302 LF-811-5: arm64: dts: imx8qxp: Add dts file for lcdif use-case
Create imx8qxp-mek-lcdif.dts and imx8qxp-mek-lcdif-rpmsg.dts files for
the display use-case of LCDIF.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2020-05-22 11:10:41 +03:00
Robert Chiras 02bfa9904b LF-811-4: arm64: dts: imx8qxp: Add lcdif subsystem
Add the lcdif nodes for the LCDIF Display Controller subsystem.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2020-05-22 11:10:40 +03:00
Han Xu ba8559b45b MLK-24061: arm64: dts: rename the imx8dxl ddr3 evk to ddr3 val
Rename the i.mx8dxl ddr3 evk to i.mx8dxl ddr3 val as it is only a
validation board.

Signed-off-by: Han Xu <han.xu@nxp.com>
2020-05-21 11:20:13 -05:00
Alice Guo 0c2a3e5783 MLK-24064-5: arm64: dts: imx8dxl: enable and disable cm40_lpuart in dts
files

Enable cm40 lpuart in imx8dxl-evk.dts and disable it in
imx8dxl-evk-rpmsg.dts.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2020-05-22 01:29:03 +08:00
Alice Guo 3cf73c962d MLK-24064-4: arm64: dts: imx8dxl: fix cm4 intmux interrupt number
Redefine cm4 intmux interrupt number.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2020-05-22 01:29:03 +08:00
Alice Guo 07eea77e16 MLK-24064-3: arm64: dts: imx8dxl: add lpuart device in cm40 subsystem
Adding lpuart device in cm40 subsystem needs to add cm40_lpuart node and
Low-Power Clock Gating which is used for uart. Add serial4 alias for 8dxl.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2020-05-22 01:29:03 +08:00
Yoshihiro Shimoda cd8ae9b732 arm64: dts: renesas: r8a77980: Fix IPMMU VIP[01] nodes
commit f4d71c6ea9 upstream.

Missing the renesas,ipmmu-main property on ipmmu_vip[01] nodes.

Fixes: 55697cbb44 ("arm64: dts: renesas: r8a779{65,80,90}: Add IPMMU devices nodes)
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/1587108543-23786-1-git-send-email-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-20 08:20:39 +02:00
Adam Ford 8972721aea arm64: dts: imx8mn: Change SDMA1 ahb clock for imx8mn
commit 15ddc3e17a upstream.

Using SDMA1 with UART1 is causing a "Timeout waiting for CH0" error.
This patch changes to ahb clock from SDMA1_ROOT to AHB which fixes the
timeout error.

Fixes: 6c3debcbae ("arm64: dts: freescale: Add i.MX8MN dtsi support")

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-20 08:20:38 +02:00
Chen-Yu Tsai 7647156151 arm64: dts: rockchip: Rename dwc3 device nodes on rk3399 to make dtc happy
commit 190c7f6fd4 upstream.

The device tree compiler complains that the dwc3 nodes have regs
properties but no matching unit addresses.

Add the unit addresses to the device node name. While at it, also rename
the nodes from "dwc3" to "usb", as guidelines require device nodes have
generic names.

Fixes: 7144224f2c ("arm64: dts: rockchip: support dwc3 USB for rk3399")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20200327030414.5903-7-wens@kernel.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-20 08:20:38 +02:00
Chen-Yu Tsai 64ad7ef3a6 arm64: dts: rockchip: Replace RK805 PMIC node name with "pmic" on rk3328 boards
commit 83b994129f upstream.

In some board device tree files, "rk805" was used for the RK805 PMIC's
node name. However the policy for device trees is that generic names
should be used.

Replace the "rk805" node name with the generic "pmic" name.

Fixes: 1e28037ec8 ("arm64: dts: rockchip: add rk805 node for rk3328-evb")
Fixes: 955bebde05 ("arm64: dts: rockchip: add rk3328-rock64 board")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20200327030414.5903-3-wens@kernel.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-20 08:20:38 +02:00
Neil Armstrong af518b5b77 arm64: dts: meson-g12-common: fix dwc2 clock names
commit e4f634d812 upstream.

Use the correct dwc2 clock name.

Fixes: 9baf7d6be7 ("arm64: dts: meson: g12a: Add G12A USB nodes")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20200326160857.11929-3-narmstrong@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-20 08:20:37 +02:00
Neil Armstrong 9b9c52752a arm64: dts: meson-g12b-khadas-vim3: add missing frddr_a status property
commit 5ac0869fb3 upstream.

In the process of moving the VIM3 audio nodes to a G12B specific dtsi
for enabling the SM1 based VIM3L, the frddr_a status = "okay" property
got dropped.
This re-enables the frddr_a node to fix audio support.

Fixes: 4f26cc1c96 ("arm64: dts: khadas-vim3: move common nodes into meson-khadas-vim3.dtsi")
Reported-by: Christian Hewitt <christianshewitt@gmail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20191018140216.4257-1-narmstrong@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-20 08:20:37 +02:00
Christoph Hellwig ea7c4d9e54 arm64: fix the flush_icache_range arguments in machine_kexec
[ Upstream commit d51c214541 ]

The second argument is the end "pointer", not the length.

Fixes: d28f6df130 ("arm64/kexec: Add core kexec support")
Cc: <stable@vger.kernel.org> # 4.8.x-
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-05-20 08:20:24 +02:00
Adrian Alonso fb4856a872 MLK-24060-2: dts: arm64: freescale: imx8mn ab2 fix sai3 pads
Fix SAI3 pads for ak5552 ADC support; add multi
clock entries to support all sample rates
Use fsl,imx-audio-ak5552 for asoc machine driver

Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2020-05-19 13:51:00 -05:00
Adrian Alonso 2c6742bbe5 MLK-24060-1: dts: arm64: freescale: imx8mm ab2 fix sai3 pads
Fix SAI3 pads for ak5552 dac support, add multi
clock entries to support all sample rates
Use fsl,imx-audio-ak5552 and disable ak4458_3 to
follow default config

Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2020-05-19 13:51:00 -05:00
Adrian Alonso 0622c744ed MLK-24058: dts: arm64: freescale: imx8mm ab2 fix fec phy
Correct fec phy reg id, allow to use nfsroot
Fixes: mdio_bus 30be0000.ethernet-1: MDIO device at
address 1 is missing.

Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2020-05-19 13:51:00 -05:00
Shengjiu Wang c012f4ddbc MLK-24066: arm64: dts: imx8mn: always enable reg_audio_board for spdif
The spdif capture need the power supply be enabled on audio board,
otherwise the input signal can't be transferred to chip.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-05-19 18:53:41 +08:00
Fancy Fang 04ff1b1c58 MLK-24063 arm64: dts: imx8mp: add power-domains for lcdif3
The LCDIF3 is included in the HDMIMIX block, so it is
necessary to enable hdmimix power domain for LCDIF3 to
avoid any potential hang issue.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2020-05-19 14:29:09 +08:00
Shengjiu Wang f2678ec35d MLK-23593: arm64: dts: imx8qm: sof: correct the resource id for edma0
Correct the resource id for edma0.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-05-18 15:28:22 +08:00
Fugang Duan ed9e9c7312 MLK-24054 arm64: dts: imx8mq-evk: enable usdhc2 bus on M.2 interface
By default, usdhc2 is for SD boot.

The patch is to enable usdhc2 on M.2 interface for SDIO wlan,
then it requires users use eMMC boot instead of SD boot.

The HW rework:
- install R1429 - R1436
- remove R1617 - R1621, R1603

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-05-18 13:29:44 +08:00
Peng Fan 7ef35dc3f9 MLK-24046 arm64: dts: imx8mq: add mmc alias
Add mmc alias, otherwise when sdhc0 disable in dts, sdhc1 will be detected
as mmc0, however uboot still pass mmcblk1p2 as root storage and
not able to find rootfs, so add alias for sdhc

Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Reported-by: Alice Guo <alice.guo@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-15 19:35:54 +08:00
Viorel Suman aeffa77173 MLK-23146-2: arm64: dts: imx8mq: use "fsl,imx8mm-spdif" compat
Use "fsl,imx8mm-spdif" compat for SPDIF nodes.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-05-15 11:46:31 +03:00
Mark Rutland 0eae1647f1 arm64: hugetlb: avoid potential NULL dereference
commit 027d0c7101 upstream.

The static analyzer in GCC 10 spotted that in huge_pte_alloc() we may
pass a NULL pmdp into pte_alloc_map() when pmd_alloc() returns NULL:

|   CC      arch/arm64/mm/pageattr.o
|   CC      arch/arm64/mm/hugetlbpage.o
|                  from arch/arm64/mm/hugetlbpage.c:10:
| arch/arm64/mm/hugetlbpage.c: In function ‘huge_pte_alloc’:
| ./arch/arm64/include/asm/pgtable-types.h:28:24: warning: dereference of NULL ‘pmdp’ [CWE-690] [-Wanalyzer-null-dereference]
| ./arch/arm64/include/asm/pgtable.h:436:26: note: in expansion of macro ‘pmd_val’
| arch/arm64/mm/hugetlbpage.c:242:10: note: in expansion of macro ‘pte_alloc_map’
|     |arch/arm64/mm/hugetlbpage.c:232:10:
|     |./arch/arm64/include/asm/pgtable-types.h:28:24:
| ./arch/arm64/include/asm/pgtable.h:436:26: note: in expansion of macro ‘pmd_val’
| arch/arm64/mm/hugetlbpage.c:242:10: note: in expansion of macro ‘pte_alloc_map’

This can only occur when the kernel cannot allocate a page, and so is
unlikely to happen in practice before other systems start failing.

We can avoid this by bailing out if pmd_alloc() fails, as we do earlier
in the function if pud_alloc() fails.

Fixes: 66b3923a1a ("arm64: hugetlb: add support for PTE contiguous bit")
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: Kyrill Tkachov <kyrylo.tkachov@arm.com>
Cc: <stable@vger.kernel.org> # 4.5.x-
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-14 07:58:26 +02:00
Marc Zyngier e983c6064a KVM: arm64: Fix 32bit PC wrap-around
commit 0225fd5e0a upstream.

In the unlikely event that a 32bit vcpu traps into the hypervisor
on an instruction that is located right at the end of the 32bit
range, the emulation of that instruction is going to increment
PC past the 32bit range. This isn't great, as userspace can then
observe this value and get a bit confused.

Conversly, userspace can do things like (in the context of a 64bit
guest that is capable of 32bit EL0) setting PSTATE to AArch64-EL0,
set PC to a 64bit value, change PSTATE to AArch32-USR, and observe
that PC hasn't been truncated. More confusion.

Fix both by:
- truncating PC increments for 32bit guests
- sanitizing all 32bit regs every time a core reg is changed by
  userspace, and that PSTATE indicates a 32bit mode.

Cc: stable@vger.kernel.org
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-14 07:58:26 +02:00
Jason A. Donenfeld eb0373fc38 crypto: arch/nhpoly1305 - process in explicit 4k chunks
commit a9a8ba90fa upstream.

Rather than chunking via PAGE_SIZE, this commit changes the arch
implementations to chunk in explicit 4k parts, so that calculations on
maximum acceptable latency don't suddenly become invalid on platforms
where PAGE_SIZE isn't 4k, such as arm64.

Fixes: 0f961f9f67 ("crypto: x86/nhpoly1305 - add AVX2 accelerated NHPoly1305")
Fixes: 012c82388c ("crypto: x86/nhpoly1305 - add SSE2 accelerated NHPoly1305")
Fixes: a00fa0c887 ("crypto: arm64/nhpoly1305 - add NEON-accelerated NHPoly1305")
Fixes: 16aae3595a ("crypto: arm/nhpoly1305 - add NEON-accelerated NHPoly1305")
Cc: stable@vger.kernel.org
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-14 07:58:25 +02:00
Liu Ying 0735da29ed MLK-23981 arm64: imx8x-mek.dtsi: Enable adma_pwm node in display specific DT file
The current DT file for the i.MX8x MEK platform has a pin conflict for
IMX8QXP_SPI0_CS1 bewteen the sai1 node and the adma_pwm node(as needed
by the parallel display panel backlight control).  This patch enables
the adma_pwm node in display specific DT file to avoid the conflict.
Also, the lcdif_backlight is moved to display specific as it is
referencing the adma_pwm node.

Fixes: 62408b1461 ("LF-1189-13 arm64: dts: imx8qxp-mek: Add adma_pwm support")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-05-14 09:19:03 +08:00
Adrian Alonso 1d631c17d7 MLK-23925: dts: arm64: freescale: imx8mn audio board
iMX8MN DDR4 and LPDDR4 SOM on Audio Board 2.0
enable base support, ADC and SPDIF.

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2020-05-12 13:23:03 -05:00
Adrian Alonso 6f6ce7b7ad MLK-23924: dts: arm64: freescale: imx8mm audio board
iMX8MM LPDDR4 SOM on Audio Board 2.0 enable base support
SPDIF, ADC and dual DAC

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2020-05-12 13:22:45 -05:00
Adrian Alonso 66a3ff6507 MLK-23923: dts: arm64: freescale: imx8mm sai mclk0 dummy clk
Add missing sai mclk0 dummy clk expected by SAI
driver, fix error:
fsl-sai 30020000.sai: failed to get mclk0 clock: -2

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2020-05-12 13:21:51 -05:00
Adrian Alonso 6feb394010 MLK-23922-2: dts: arm64: freescale: imx8mm evk 8mic swpdm
imx8mm EVK 8mic Rev E PDM to PCM software
decimation support MIC capture on SAI5

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2020-05-12 13:21:09 -05:00
Adrian Alonso 1c0d6cc131 MLK-23922-1: dts: arm64: freescale: imx8mm evk 8mic revE
Add support for 8mic rev E PDM mic array board
support for gpio leds and software keys events:

SW1: KEY_F9 Factory reset for Android
SW2: VOLUME_MUTE
SW3: VOLUME_UP
SW4: VOLUME_DOWN

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2020-05-12 13:20:50 -05:00
Adrian Alonso 710953489d MLK-23920: dts: arm64: freescale: imx8mm evk pca6416 vcc supply
Add missing vcc-supply assing buck4_reg which corresponds
to VDD_3V3 from pmic, fixes probe pca6416 driver

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2020-05-12 13:20:02 -05:00
Dragos Rosioru 8ff6f78434 MLK-23223: arm64: imx_v8_defconfig: enable extra CRYPTO_* symbols
Enable generic SW crypto algorithms needed for tcrypt speed tests

Signed-off-by: Dragos Rosioru <dragos.rosioru@nxp.com>
2020-05-12 18:13:30 +03:00
Shengjiu Wang 97547b2288 MLK-23990: arm64: dts: imx8mp-evk-rpmsg: Add power domain for rpmsg i2s
Lower power audio needs the audiomix power domain be enabled when running
For the resource in audiomix is used by M7 core.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-05-12 18:14:00 +08:00
Liu Ying c2b595f2d9 MLK-23959 arm64: imx8-ss-dc0/1.dtsi: Correct dpu node interrupt properties
The dpu node 'interrupts' and 'interrupt-names' properties should
reflect all dpu interrupts including the missing 'reserved' interrupt.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
2020-05-11 15:00:15 +08:00
Robin Gong f25b74f785 MLK-23659-2: arm64: dts: imx8mn: add snvs clock for snvs_pwrkey
Make same change as i.mx8mp.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
2020-05-11 19:15:11 +08:00
Robin Gong b5aadaa4a5 MLK-23659-1: arm64: dts: imx8mp: add snvs clock for snvs_pwrkey
Since snvs clock runtime management added for snvs_rtc, all snvs_pwrkey
should also added snvs clock, otherwise, snvs clock will be off after
snvs-rct driver suspend and snvs_pwrkey interrupt may come after that,
hence, kernel will hang.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
2020-05-11 19:15:11 +08:00
Viorel Suman 8618fe69cc arm64: dtsi: imx8mp: add SAI PLL bus clock
IMX8MP_CLK_AUDIOMIX_AUDPLL_ROOT gate controls
SAI PLL bus clock - it must be enabled if SAI PLL
programming is required.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2020-05-10 22:11:25 +03:00
Peng Fan 3199791727 MLK-23960-4 arm64: imx_v8_defconfig: select i2c backend driver
Select i2c backend driver, so i2c pv driver could work.

Acked-by: Alice Guo <alice.guo@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-09 18:31:20 +08:00
Peng Fan 3e6c470550 MLK-23960-3 arm64: dts: imx8qm-dom0: fix passthrough node
We need passthrough sdhc0_lpcg and enlarge irqsteer_lvds0
to simplify dom0 dts and make domu could access the address space

Acked-by: Alice Guo <alice.guo@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-09 18:31:19 +08:00
Peng Fan 028bc86d64 MLK-23956-4 arm64: dts: imx8qxp: fix inmate vpci interrupt
Fix inmate vpci interrupt, we need four interrupts

Acked-by: Alice Guo <alice.guo@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-09 18:31:19 +08:00
Peng Fan 4e39628b93 MLK-23956-3 arm64: dts: imx8mn: fix vpci interrupt
Fix inmate vpci interrupt, we need four interrupts.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-09 18:31:19 +08:00
Peng Fan f6a72f818b MLK-23956-2 arm64: dts: imx8qm-inamte: update virtual PCI interrupt
When moving to new ivshmem in jailhouse, INTx requires physical
continus interrupt, so we choose 4 interrupts not used by any hardware.

Acked-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-09 18:31:19 +08:00
Peng Fan dfb24f4291 MLK-23956-1 arm64: dts: imx8mp-evk-inmate: fix pci interrupt
Let's use SPI 154-157 for PCI INTx interrupt which is not used
by any hardware.

Acked-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-09 18:31:19 +08:00
Peng Fan 96465d597e MLK-23954-2 arm64: defconfig: select UIO_IVSHMEM
select UIO_IVSHMEM for dual linux communication, and mark ivshmem as y
for easy usage

Acked-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-09 18:31:18 +08:00
Peng Fan 1bae6cf2bf MLK-23954-1 arm64: dts: add i.MX8MN LPDDR4 EVK root/inmate dts
Add root/inmate dts.
They are almost same as i.MX8MN DDR4 jailhouse dts.

Acked-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-09 18:31:18 +08:00
Clark Wang 1d808717bb MLK-23955 ARM64: imx8mn-ddr4: add led support
Keep STATUS LED on after kernel boots.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
2020-05-09 18:05:06 +08:00
Li Jun 7c4a540d69 MLK-23917-2 arm64: dtsi: imx8mp: remove "snps,dis_u3_susphy_quirk" for usb
This property will block the SS phy enter P3 when link at U3,
so remove it.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2020-05-09 13:30:51 +08:00
Liu Ying 83eae80bd0 MLK-23942-2 arm64: imx8qxp-ss-lvds.dtsi: Add power-domain-names property for ldb nodes
This patch adds power-domain-names property for ldb nodes, so that
the ldb driver can attach multiple power domains and enable runtime
PM support.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
2020-05-09 10:48:30 +08:00
Liu Ying d80b06f68c MLK-23942-1 arm64: imx8mp.dtsi: Add ldb phy power domain property
This patch adds power domain property for ldb phy node, so that
the phy driver can enable runtime PM support.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
2020-05-09 10:48:12 +08:00
Robby Cai e79f8fdac0 MLK-23939 arm64: dts: imx8mp-evk-ov2775: enable isp_0
enable isp instance 0

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Guoniu.zhou <guoniu.zhou@nxp.com>
2020-05-08 21:09:37 +08:00
Richard Zhu 59a594e44e MLK-23944 arm64: dts: enable the rpmsg and rpmsg audio on imx8mn evk board
Enable the RPMSG on iMX8MN LPDDR4 EVK platform, and verify the rpmsg
audio feature.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Tested-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2020-05-08 17:04:09 +08:00
Shengjiu Wang 3716837123 MLK-23943: arm64: dts: imx8mn-evk: Add support for AK5558 on AB1
Add support for AK5558 on AB1. which is required by LPDDR4 EVK board.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-05-08 16:23:09 +08:00
Oliver F. Brown 21ed137e97 MLK-23938: arch: arm64: imx8mp: change compatible name for Basler camera
Need to change compatible to basler,basler-camera-vvcam to prevent breaking
exiting basler camera compatibility.

Signed-off-by: Oliver F. Brown <oliver.brown@nxp.com>
2020-05-07 14:22:40 -07:00
Liu Ying ae7f915cec MLK-23905-5 arm64: imx_v8_defconfig: Build in i.MX8qm/qxp/mp LDB encoder drivers
This patch builds in i.MX8qm/qxp/mp LDB encoder drivers by default.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
2020-05-07 15:19:02 +08:00
Liu Ying 114d61a84a MLK-23905-4 arm64: imx_v8_defconfig: Build in Mixel LVDS (combo) PHY drivers
This patch builds in Mixel LVDS (combo) PHY drivers by default.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
2020-05-07 15:19:02 +08:00
Liu Ying 89436b22b2 MLK-23905-3 arm64: imx_v8_defconfig: Build in FSL IMX LVDS bridge driver
This patch builds in FSL IMX LVDS bridge driver by default.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
2020-05-07 15:19:02 +08:00
Robin Gong e769e3db70 MLK-23910-2: arm64: dts: imx8mm-ddr4-evk: enable snvs_pwrkey
Enable snvs_pwrkey on imx8mm-ddr4-evk board.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
2020-05-07 15:19:02 +08:00
Robin Gong 9d04bd21e0 MLK-23910-1: arm64: dts: imx8mn-evk: enable snvs_pwrkey
Enable snvs_pwrkey on imx8mn-evk board.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
2020-05-07 15:19:02 +08:00
Vincenzo Frascino 1de07eb54a arm64: vdso: Add -fasynchronous-unwind-tables to cflags
commit 1578e5d031 upstream.

On arm64 linux gcc uses -fasynchronous-unwind-tables -funwind-tables
by default since gcc-8, so now the de facto platform ABI is to allow
unwinding from async signal handlers.

However on bare metal targets (aarch64-none-elf), and on old gcc,
async and sync unwind tables are not enabled by default to avoid
runtime memory costs.

This means if linux is built with a baremetal toolchain the vdso.so
may not have unwind tables which breaks the gcc platform ABI guarantee
in userspace.

Add -fasynchronous-unwind-tables explicitly to the vgettimeofday.o
cflags to address the ABI change.

Fixes: 28b1a824a4 ("arm64: vdso: Substitute gettimeofday() with C implementation")
Cc: Will Deacon <will@kernel.org>
Reported-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-06 08:15:17 +02:00
Fangrui Song 1876e0e654 arm64: Delete the space separator in __emit_inst
[ Upstream commit c9a4ef6645 ]

In assembly, many instances of __emit_inst(x) expand to a directive. In
a few places __emit_inst(x) is used as an assembler macro argument. For
example, in arch/arm64/kvm/hyp/entry.S

  ALTERNATIVE(nop, SET_PSTATE_PAN(1), ARM64_HAS_PAN, CONFIG_ARM64_PAN)

expands to the following by the C preprocessor:

  alternative_insn nop, .inst (0xd500401f | ((0) << 16 | (4) << 5) | ((!!1) << 8)), 4, 1

Both comma and space are separators, with an exception that content
inside a pair of parentheses/quotes is not split, so the clang
integrated assembler splits the arguments to:

   nop, .inst, (0xd500401f | ((0) << 16 | (4) << 5) | ((!!1) << 8)), 4, 1

GNU as preprocesses the input with do_scrub_chars(). Its arm64 backend
(along with many other non-x86 backends) sees:

  alternative_insn nop,.inst(0xd500401f|((0)<<16|(4)<<5)|((!!1)<<8)),4,1
  # .inst(...) is parsed as one argument

while its x86 backend sees:

  alternative_insn nop,.inst (0xd500401f|((0)<<16|(4)<<5)|((!!1)<<8)),4,1
  # The extra space before '(' makes the whole .inst (...) parsed as two arguments

The non-x86 backend's behavior is considered unintentional
(https://sourceware.org/bugzilla/show_bug.cgi?id=25750).
So drop the space separator inside `.inst (...)` to make the clang
integrated assembler work.

Suggested-by: Ilie Halip <ilie.halip@gmail.com>
Signed-off-by: Fangrui Song <maskray@google.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Link: https://github.com/ClangBuiltLinux/linux/issues/939
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-05-02 08:48:58 +02:00
Liu Ying 735ed1e9b0 MLK-23884 arm64: dts: imx8mp-evk-jdi-wuxga-lvds-panel: Correct lvds-channel@0 fsl,data-mapping property
The lvds-channel@0 fsl,data-mapping property is wrongly moved
out from lvds-channel@0 node to the parent ldb node by a previous
commit.  This patch fixes the property.

Fixes: 46552dfa17 ("MLK-23694-12 arm64: dts: imx8mp-evk: integrate LVDS bridge display in")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Fancy Fang <chen.fang@nxp.com>
2020-04-30 19:18:53 +08:00
Guoniu.zhou 691511f5ea MLK-23877-2: arm64: dts: imx8mn-evk.dts: enable isi child device
Enable ISI child device.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2020-04-30 18:06:42 +08:00
Guoniu.zhou 5a4410f868 MLK-23877-1: arm64: dts: imx8mn-evk.dts: correct ov5640 properties
For kernel 5.4, we use community driver for ov5640, so correct some
properties to satify the need of ov5640 driver.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2020-04-30 18:06:42 +08:00
Robby Cai 07364a7aa5 MLK-23600-2 arm64: dts: imx8mp: set media axi/apb clock to desired value
set media axi clock to 500MHz and apb clock to 200MHz for 4K

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Guoniu.zhou <guoniu.zhou@nxp.com>
2020-04-30 16:34:05 +08:00
Robby Cai 2b941dee90 MLK-23600-1 arm64: dts: imx8mp: add isp nodes
add isp nodes for imx8mp(m865)

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Guoniu.zhou <guoniu.zhou@nxp.com>
2020-04-30 16:34:05 +08:00
Minjie Zhuang 4bbe573768 MGS-5596 [#imx-2035] [2/2]PM QoS feature development
add compatible string "fsl,imx8-vipsi" to identify the vip core
for PM Qos

Signed-off-by: minjie.zhuang@nxp.com
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-04-30 14:38:54 +08:00
Arnd Bergmann 58b243cf27 compat: ARM64: always include asm-generic/compat.h
commit 556d687a4c upstream.

In order to use compat_* type defininitions in device drivers
outside of CONFIG_COMPAT, move the inclusion of asm-generic/compat.h
ahead of the #ifdef.

All other architectures already do this.

Acked-by: Will Deacon <will@kernel.org>
Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-29 16:33:25 +02:00
Catalin Marinas 810045068b arm64: Silence clang warning on mismatched value/register sizes
[ Upstream commit: 27a22fbdee ]

Clang reports a warning on the __tlbi(aside1is, 0) macro expansion since
the value size does not match the register size specified in the inline
asm. Construct the ASID value using the __TLBI_VADDR() macro.

Fixes: 222fc0c850 ("arm64: compat: Workaround Neoverse-N1 #1542419 for compat user-space")
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Cc: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-29 16:32:56 +02:00
James Morse aa50d567ec arm64: compat: Workaround Neoverse-N1 #1542419 for compat user-space
[ Upstream commit 222fc0c850 ]

Compat user-space is unable to perform ICIMVAU instructions from
user-space. Instead it uses a compat-syscall. Add the workaround for
Neoverse-N1 #1542419 to this code path.

Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-29 16:32:56 +02:00
James Morse 6de0c62119 arm64: Fake the IminLine size on systems affected by Neoverse-N1 #1542419
[ Upstream commit ee9d90be9d ]

Systems affected by Neoverse-N1 #1542419 support DIC so do not need to
perform icache maintenance once new instructions are cleaned to the PoU.
For the errata workaround, the kernel hides DIC from user-space, so that
the unnecessary cache maintenance can be trapped by firmware.

To reduce the number of traps, produce a fake IminLine value based on
PAGE_SIZE.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-29 16:32:56 +02:00
James Morse f2791551ce arm64: errata: Hide CTR_EL0.DIC on systems affected by Neoverse-N1 #1542419
[ Upstream commit 05460849c3 ]

Cores affected by Neoverse-N1 #1542419 could execute a stale instruction
when a branch is updated to point to freshly generated instructions.

To workaround this issue we need user-space to issue unnecessary
icache maintenance that we can trap. Start by hiding CTR_EL0.DIC.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-29 16:32:56 +02:00
Clark Wang 6f2f0eaaa6 MLK-23865 ARM64: dts: enable dma support for lpspi
Add DMA configurations for LPSPI nodes on i.MX8QX/QM/DXL.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
2020-04-28 16:07:44 +08:00
Clark Wang a8c6bccf7d MLK-23861 ARM64: dts: imx8dxl: enable lpspi3 by default and add spi slave dts
Enable lpspi3 by default for imx8dxl-evk and imx8dxl-ddr3-evk.

Add imx8dxl-evk-lpspi-slave.dtb to support lpspi3 slave mode on
imx8dxl-evk.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
2020-04-28 16:07:44 +08:00
Daniel Baluta d65fb1daa2 MLK-23350-12 arm64: dts: Add clocks for DSP
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-04-27 18:16:17 +03:00
Daniel Baluta 30bb12c7f7 MLK-23350-10 arm64: dts: Fix simple-card prefix
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-04-27 18:16:16 +03:00
Fancy Fang 864c8ad56a MLK-23694-13 arm64: dts: imx8mp-evk: integrate HDMI display in
Integrate local HDMI display into EVK DTB to support the
DSI + LVDS + HDMI triple display, and previous single
display support for DSI, LVDS or HDMI is also remained.
Put LCDIF3 port to the same display-subsystem node as
LCDIF1 and LCDIF2 to realize this kind of triple display.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2020-04-27 16:29:35 +08:00
Fancy Fang 46552dfa17 MLK-23694-12 arm64: dts: imx8mp-evk: integrate LVDS bridge display in
Integrate LVDS bridge with single channel display into EVK DTB
to support DSI + LVDS dual display, and the previous single
display support for DSI or LVDS is also remained. Put LCDIF1
and LCDIF2 ports into one display-subystem node to implement
this kind of dual display.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2020-04-27 16:29:35 +08:00
Fancy Fang ebf0b42d97 MLK-23694-8 arm64: dts: imx8mp: add power domains for ldb
As other devices in mediamix domain have already enabled
power domains, LDB is also required to enable the power
domains.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2020-04-27 16:29:35 +08:00
Fancy Fang f2e35175a1 MLK-23694-7 arm64: dts: imx8mp: add apb clock for blk-ctl@32ec0000
The mediamix block control module access requires the
'IMX8MP_CLK_MEDIA_APB_ROOT' clock to be enabled, so
add this clock to this device node.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2020-04-27 16:29:35 +08:00
Fancy Fang 2e461b3600 MLK-23694-5 arm64: dts: imx8mp: rename 'lcdif_disp0' to 'lcdif1_disp'
To align with the port names of 'lcdif2_disp' and 'lcdif3_disp',
rename 'lcdif_disp0' to 'lcdif1_disp'.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2020-04-27 16:29:35 +08:00
Fancy Fang f40c147e38 MLK-23694-4 arm64: dts: imx8mp: assign 27MHz to mipi_phy1_ref
Since the 'mipi_phy1_ref' clock rate is usually set to
be 27MHz and won't be changed after boot up. So assign
27MHz rate instead of 594MHz to this clock is much more
reasonable.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2020-04-27 16:29:35 +08:00
Fancy Fang 4e66f5a6aa MLK-23694-3 arm64: dts: imx8mp: skip rate assign for disp1_pix
The 'disp1_pix' clock is used to provide pixel clock for
LCDIF1 and its rate is closely related with the display
mode resolution which is configured. So this clock rate
is dynamically determined and unnecessary to be assigned
with a default value at boot up.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2020-04-27 16:29:35 +08:00
Fancy Fang daa7e13772 MLK-23694-2 arm64: dts: imx8mp: assign 2079MHz to video_pll1
The 'video_pll1' clock is shared by MIPI and LVDS displays
and each of the display has a specific requirement for the
PLL rate which can be satified by set 'video_pll1' rate to
be 2079MHz. So assign 2079MHz rate to 'video_pll1' under
CCM device.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2020-04-27 16:29:34 +08:00
Robin Gong fe3ef5b253 MLK-23844-2 ARM64: dts: freescale: imx8mm: correct VDDARM@1.6GHz
Correct VDDARM to 0.95V@1.6Ghz with datasheet.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
2020-04-27 18:44:45 +08:00
Robin Gong c6483bd7aa MLK-23844-1: ARM64: dts: freescale: imx8mn-ddr4-evk: cleanup Rhom pmic
Inculding below cleanup for BD71847 pmic driver:

  --Remove ldo4 which's not used by board, otherwise,ldo4 will be on
    since it's always_on.
  --Remove buck5 which's not used by board too,although that may be off
    by kernel requlator common framework after kernel bootup.
  --Add dvs-run-voltage/dvs-idle-voltage setting for buck2 as i.mx8mm.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-04-27 18:44:45 +08:00
Fugang Duan 64ad5b64c0 MLK-23777 arm64: dts: imx8dxl: add eqos pmt_int as wakeup source
Add eqos pmt_int into wakeup irq source.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-04-26 11:10:16 +08:00
Viorel Suman 3848dc97e9 MLK-23840-3 dts: arm64: imx8mp-evk: remove fls,xcvr-mode property
fsl,xcvr-mode property not needed anymore.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-04-24 13:23:16 +03:00
Viorel Suman 86c7612933 MLK-23840-2 dts: arm64: imx8mp-ab2: remove fls,xcvr-mode property
fsl,xcvr-mode property not needed anymore.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-04-24 13:23:15 +03:00
Michael Stickel 972cc03234 MLK-23808: arch: arm64: imx8mp: Add device tree file for Basler camera
Added device tree support for the basler camera module on the imx8mp-evk

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2020-04-23 13:49:35 -05:00
Russell King 1e7abaf248 arm64: dts: clearfog-gt-8k: set gigabit PHY reset deassert delay
[ Upstream commit 46f94c7818 ]

If the mv88e6xxx DSA driver is built as a module, it causes the
ethernet driver to re-probe when it's loaded. This in turn causes
the gigabit PHY to be momentarily reset and reprogrammed. However,
we attempt to reprogram the PHY immediately after deasserting reset,
and the PHY ignores the writes.

This results in the PHY operating in the wrong mode, and the copper
link states down.

Set a reset deassert delay of 10ms for the gigabit PHY to avoid this.

Fixes: babc5544c2 ("arm64: dts: clearfog-gt-8k: 1G eth PHY reset signal")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-23 10:36:30 +02:00
Jon Hunter d7b59cd020 arm64: tegra: Fix Tegra194 PCIe compatible string
[ Upstream commit f9f711efd4 ]

If the kernel configuration option CONFIG_PCIE_DW_PLAT_HOST is enabled
then this can cause the kernel to incorrectly probe the generic
designware PCIe platform driver instead of the Tegra194 designware PCIe
driver. This causes a boot failure on Tegra194 because the necessary
configuration to access the hardware is not performed.

The order in which the compatible strings are populated in Device-Tree
is not relevant in this case, because the kernel will attempt to probe
the device as soon as a driver is loaded and if the generic designware
PCIe driver is loaded first, then this driver will be probed first.
Therefore, to fix this problem, remove the "snps,dw-pcie" string from
the compatible string as we never want this driver to be probe on
Tegra194.

Fixes: 2602c32f15 ("arm64: tegra: Add P2U and PCIe controller nodes to Tegra194 DT")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-23 10:36:30 +02:00
Vidya Sagar 5615f66bfd arm64: tegra: Add PCIe endpoint controllers nodes for Tegra194
[ Upstream commit 0c988b731e ]

Add endpoint mode controllers nodes for the dual mode PCIe controllers
present in Tegra194 SoC.

Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-23 10:36:30 +02:00
Jernej Skrabec 6a77217148 arm64: dts: allwinner: a64: Fix display clock register range
[ Upstream commit 3e9a1a8b7f ]

Register range of display clocks is 0x10000, as it can be seen from
DE2 documentation.

Fix it.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Fixes: 2c796fc8f5 ("arm64: dts: allwinner: a64: add necessary device tree nodes for DE2 CCU")
[wens@csie.org: added fixes tag]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-23 10:36:29 +02:00
Stéphane Dion 305d010dde MLK-23674-4 arm64: dts: imx8dxl: add v2x subsystem
This patch adds the V2X subsystem in which the different
MUs to access the V2X are listed.

Signed-off-by: Stéphane Dion <stephane.dion_1@nxp.com>
2020-04-22 15:56:40 +02:00
Jacky Bai b16ab80b0a MLK-23786 arm64: dts: freescale: Update the model string of imx8mp evk
Update the model string of i.MX8MP EVK board to align with upstream kernel.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
2020-04-22 18:41:17 +08:00
Zhang Peng 545ef3e8f7 MLK-23816 arm64: dts: imx8mp-evk-dsp: Enable easrc
Add easrc clk control in dsp driver, easrc is added to offload audio
playback pipeline in imx8mp board.

Signed-off-by: Zhang Peng <peng.zhang_8@nxp.com>
2020-04-22 16:51:39 +08:00
Robin Gong da1aafd6d2 MLK-23275-2: ARM64: dts: freescale: imx8mn-ddr4-evk: correct ldo1/ldo2 voltage
Correct ldo1/ldo2 voltage as below:
ldo1 --NVCC_SNVS_1V8
ldo2 --VDD_SNVS_0V8

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
(cherry picked from commit d11796134f55d88b49d79bf25d6c42b677ff47bc)
2020-04-22 19:51:38 +08:00
Mark Rutland f32a339e03 arm64: vdso: don't free unallocated pages
commit 9cc3d0c691 upstream.

The aarch32_vdso_pages[] array never has entries allocated in the C_VVAR
or C_VDSO slots, and as the array is zero initialized these contain
NULL.

However in __aarch32_alloc_vdso_pages() when
aarch32_alloc_kuser_vdso_page() fails we attempt to free the page whose
struct page is at NULL, which is obviously nonsensical.

This patch removes the erroneous page freeing.

Fixes: 7c1deeeb01 ("arm64: compat: VDSO setup for compat layer")
Cc: <stable@vger.kernel.org> # 5.3.x-
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-21 09:04:58 +02:00
Angus Ainslie (Purism) 3bffb20603 arm64: dts: librem5-devkit: add a vbus supply to usb0
commit dde061b865 upstream.

Without a VBUS supply the dwc3 driver won't go into otg mode.

Fixes: eb4ea0857c ("arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit")
Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-21 09:04:54 +02:00
Liu Ying 3926f2d760 MLK-23796-2 arm64: dts: imx8dx-mek: Add IT6263 LVDS0/1 dual channel support
This patch adds IT6263 LVDS0/1 dual channel support on the i.MX8dx MEK platform.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-20 14:21:54 +08:00
Liu Ying dbdacf2226 MLK-23796-1 arm64: dts: imx8dx-mek: Add JDI WUXGA LVDS0/1 panel support
This patch adds JDI WUXGA LVDS0/1 panel support on the i.MX8dx MEK platform.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-20 14:21:54 +08:00
Fugang Duan bdfaa8405a MLK-23806-05 arm64: imx_v8_defconfig: enable mxmwifiex wlan as module
Enable NXP mxmwifiex as module to support NXP wireless
88w8987 chip.

Reviewed-by: tian yang<yang.tian@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-04-20 14:13:38 +08:00
Fugang Duan eb39613b73 MLK-23806-04 arm64: dts: imx8mq-evk: enable NXP 88w8987 wlan
Enable NXP 88w8987 wlan support:
- insert AW-CM358-uSD card into micro SD slot
- no BT support.

Reviewed-by: tian yang<yang.tian@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-04-20 14:13:38 +08:00
Fugang Duan 4f0d0ddd98 MLK-23806-03 arm64: dts: imx8mm-evk: enable NXP 88w8987 on lpddr4 board
Enable NXP 88w8987 wlan on lpddr4 board.
- insert AW-CM358-uSD card into micro SD slot
- no BT support.

Reviewed-by: tian yang<yang.tian@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-04-20 14:13:38 +08:00
Fugang Duan d6cb8c5ae7 MLK-23806-02 arm64: dts: imx8mn-ddr4: enable NXP 88w8987 on ddr4 board
Enable NXP 88w8987 wlan on ddr4 board.
- insert AW-CM358-uSD card into micro SD slot
- no BT support.

Reviewed-by: tian yang<yang.tian@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-04-20 14:13:38 +08:00
Mark Brown 1ba26c2aed arm64: Always force a branch protection mode when the compiler has one
commit b8fdef311a upstream.

Compilers with branch protection support can be configured to enable it by
default, it is likely that distributions will do this as part of deploying
branch protection system wide. As well as the slight overhead from having
some extra NOPs for unused branch protection features this can cause more
serious problems when the kernel is providing pointer authentication to
userspace but not built for pointer authentication itself. In that case our
switching of keys for userspace can affect the kernel unexpectedly, causing
pointer authentication instructions in the kernel to corrupt addresses.

To ensure that we get consistent and reliable behaviour always explicitly
initialise the branch protection mode, ensuring that the kernel is built
the same way regardless of the compiler defaults.

[This is a reworked version of b8fdef311a ("arm64: Always
force a branch protection mode when the compiler has one") for backport.
Kernels prior to 74afda4016 ("arm64: compile the kernel with ptrauth
return address signing") don't have any Makefile machinery for forcing
on pointer auth but still have issues if the compiler defaults it on so
need this reworked version. -- broonie]

Fixes: 7503197562 (arm64: add basic pointer authentication support)
Reported-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
[catalin.marinas@arm.com: remove Kconfig option in favour of Makefile check]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:50:23 +02:00
Fredrik Strupe 20a62e9073 arm64: armv8_deprecated: Fix undef_hook mask for thumb setend
commit fc2266011a upstream.

For thumb instructions, call_undef_hook() in traps.c first reads a u16,
and if the u16 indicates a T32 instruction (u16 >= 0xe800), a second
u16 is read, which then makes up the the lower half-word of a T32
instruction. For T16 instructions, the second u16 is not read,
which makes the resulting u32 opcode always have the upper half set to
0.

However, having the upper half of instr_mask in the undef_hook set to 0
masks out the upper half of all thumb instructions - both T16 and T32.
This results in trapped T32 instructions with the lower half-word equal
to the T16 encoding of setend (b650) being matched, even though the upper
half-word is not 0000 and thus indicates a T32 opcode.

An example of such a T32 instruction is eaa0b650, which should raise a
SIGILL since T32 instructions with an eaa prefix are unallocated as per
Arm ARM, but instead works as a SETEND because the second half-word is set
to b650.

This patch fixes the issue by extending instr_mask to include the
upper u32 half, which will still match T16 instructions where the upper
half is 0, but not T32 instructions.

Fixes: 2d888f48e0 ("arm64: Emulate SETEND for AArch32 tasks")
Cc: <stable@vger.kernel.org> # 4.0.x-
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Fredrik Strupe <fredrik@strupe.net>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:50:19 +02:00
Dave Gerlach 3d66a67f73 arm64: dts: ti: k3-am65: Add clocks to dwc3 nodes
commit a81e5442d7 upstream.

The TI sci-clk driver can scan the DT for all clocks provided by system
firmware and does this by checking the clocks property of all nodes, so
we must add this to the dwc3 nodes so USB clocks are available.

Without this USB does not work with latest system firmware i.e.
[    1.714662] clk: couldn't get parent clock 0 for /interconnect@100000/dwc3@4020000

Fixes: cc54a99464 ("arm64: dts: ti: k3-am6: add USB suppor")
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Cc: stable@kernel.org
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:50:19 +02:00
Maxime Ripard 935e87b20c arm64: dts: allwinner: h5: Fix PMU compatible
commit 4ae7a3c3d7 upstream.

The commit c35a516a46 ("arm64: dts: allwinner: H5: Add PMU node")
introduced support for the PMU found on the Allwinner H5. However, the
binding only allows for a single compatible, while the patch was adding
two.

Make sure we follow the binding.

Fixes: c35a516a46 ("arm64: dts: allwinner: H5: Add PMU node")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:50:17 +02:00
Maxime Ripard 8b06804632 arm64: dts: allwinner: h6: Fix PMU compatible
commit 4c7eeb9af3 upstream.

The commit 7aa9b9eb7d ("arm64: dts: allwinner: H6: Add PMU mode")
introduced support for the PMU found on the Allwinner H6. However, the
binding only allows for a single compatible, while the patch was adding
two.

Make sure we follow the binding.

Fixes: 7aa9b9eb7d ("arm64: dts: allwinner: H6: Add PMU mode")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:50:17 +02:00
Liu Ying f823973c35 LF-1232-12 arm64: dts: imx8qxp-mek: Add DPU LCDIF support with rpmsg
This patch adds DPU LCDIF support with rpmsg on the i.MX8qxp MEK platform.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:31:43 +08:00
Liu Ying 6b69aab856 LF-1232-11 arm64: dts: imx8qxp-mek-dpu-lcdif: Remove rpmsg support
As the dts file name doesn't contain 'rpmsg', we should remove the
rpmsg support to avoid user's confusion.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:46 +08:00
Liu Ying 10c15cd0cb LF-1232-10 arm64: dts: imx8x-mek: Introduce DPU LCDIF include file
This patch introduces DPU LCDIF dts include file,
so that it may be included in some dts files as needed.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:44 +08:00
Liu Ying 993497d966 LF-1232-9 arm64: dts: imx8qxp-mek: Add IT6263 LVDS0/1 dual channel support with rpmsg
This patch adds IT6263 LVDS0/1 dual channel support with rpmsg on
the i.MX8qxp MEK platform.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:42 +08:00
Liu Ying fc36124113 LF-1232-8 arm64: dts: imx8qxp-mek: Add JDI WUXGA LVDS0/1 panel support with rpmsg
This patch adds JDI WUXGA LVDS0/1 panel support with rpmsg on
the i.MX8qxp MEK platform.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:40 +08:00
Liu Ying 7db0d414d1 LF-1232-7 arm64: dts: imx8qxp-mek-it6263-lvds0/1-dual-channel: Remove rpmsg support
As the dts file names don't contain 'rpmsg', we should remove the
rpmsg support to avoid user's confusion.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:37 +08:00
Liu Ying 9688b10b29 LF-1232-6 arm64: dts: imx8qxp-mek-jdi-wuxga-lvds0/1-panel: Remove rpmsg support
As the dts file names don't contain 'rpmsg', we should remove the
rpmsg support to avoid user's confusion.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:35 +08:00
Liu Ying 771517dced LF-1232-5 arm64: dts: imx8x-mek: Introduce IT6263 LVDS0/1 dual channel include files
This patch introduces IT6263 LVDS0/1 dual channel dts include files,
so that they may be included in some dts files as needed.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:33 +08:00
Liu Ying c2a13fccf1 LF-1232-4 arm64: dts: imx8x-mek: Introduce JDI WUXGA LVDS0/1 panel include files
This patch introduces JDI WUXGA LVDS0/1 panel dts include files,
so that they may be included in some dts files as needed.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:31 +08:00
Liu Ying 0fb1433603 LF-1232-3 arm64: dts: imx8qm-mek: Add JDI WUXGA LVDS1 panel support with rpmsg
This patch adds JDI WUXGA LVDS1 panel support with rpmsg on
the i.MX8qm MEK platform.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:29 +08:00
Liu Ying 3cc8a8bcec LF-1232-2 arm64: dts: imx8qm-mek-jdi-wuxga-lvds1-panel: Remove rpmsg support
As the dts file name doesn't contain 'rpmsg', we should remove the
rpmsg support to avoid user's confusion.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:27 +08:00
Liu Ying 1f73052f4d LF-1232-1 arm64: dts: imx8qm-mek: Introduce JDI WUXGA LVDS1 panel include file
This patch introduces JDI WUXGA LVDS1 panel dts include file,
so that it may be included in some dts files as needed.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-17 16:30:25 +08:00
Shengjiu Wang 222873f7cd MLK-23792-2: arm64: dts: imx8mm: Enable sai6 for monitorring spdic rx clock
Enable sai6 for monitorring spdic rx clock

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-04-17 12:06:58 +08:00
Viorel Suman 8ee250e84f MLK-23794 dts: arm64: imx8mp-ab2: enable HDMI SS
Enable HDMI SS.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-04-15 14:50:28 +03:00
Robert Chiras 166b69de88 MLK-23703: arm64/dts: imx8dx: Add support for rm67191
Add new dts file to support the dsi-rm67191 use-case for imx8dx. Also
add the rpmsg version.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2020-04-15 10:17:47 +03:00
Mirela Rabulea 041b13b1f6 MLK-23728: Fix ov2775 dtb for imx8mp
Move mipi_csi clock changes from imx8mp.dtsi into 0v2775 dtb,
to avoid failures for ov5460.
Tested with VSI ISP demo 28/02/20 release.
Not tested with camera on CSI2.

Fixes: 636de0a39e ("Add ov2775 dtb for imx8mp")
Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Acked-by: G.n. Zhou <guoniu.zhou@nxp.com>
2020-04-14 13:53:38 +03:00
Liu Ying a7664ba5e6 MLK-23776-2 arm64: imx_v8_defconfig: Build in SEIKO 43WVF1G LCD panel driver
This patch builds in SEIKO 43WVF1G LCD panel driver by default.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-13 17:26:30 +08:00
Liu Ying fed8d4d573 MLK-23776-1 arm64: imx_v8_defconfig: Build in DRM_IMX LCDIF mux display driver
This patch builds in DRM_IMX LCDIF mux display driver by default.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-13 17:26:30 +08:00
Richard Zhu a5e8ccb8b1 MLK-23768 arm64: dts: imx8mp: change the reserved rpmsg base address
Change the reserved RPMSG base address from 0xb8000000 to 0x55000000,
refer to the reserved memory conflictions with DDR ECC.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2020-04-13 13:46:59 +08:00
Richard Zhu 29bef0e553 MLK-23769 arm64: dts: imx8mp: add pcie pd into the dts node
Add the PCIe power domain into the PCIe DTS node refer to the power
consumption refine.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-and-tested-by: Jacky Bai <ping.bai@nxp.com>
2020-04-10 17:08:17 +08:00
Liu Ying cf7edbb14b LF-1189-17 arm64: defconfig: Build in SEIKO 43WVF1G LCD panel driver
This patch builds in SEIKO 43WVF1G LCD panel driver by default.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:24:05 +08:00
Liu Ying 6310512f62 LF-1189-16 arm64: defconfig: Build in DRM_IMX LCDIF mux display driver
This patch builds in DRM_IMX LCDIF mux display driver by default.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:24:03 +08:00
Liu Ying 264e4fe116 LF-1189-15 arm64: imx8qxp-mek: Add Seiko WVGA LCD panel(driven by DPU) support
This patch adds Seiko WVGA LCD panel support on the i.MX8qxp mek platform.
The panel is driven by DPU in DC0 subsystem.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:24:02 +08:00
Liu Ying a1c49e1eea LF-1189-14 arm64: imx8qxp-mek: Add backlight support for LCDIF display
This patch adds backlight support for LCDIF display on
i.MX8qxp mek platform.
The backlight brightness is controlled by PWM.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:24:01 +08:00
Liu Ying 62408b1461 LF-1189-13 arm64: dts: imx8qxp-mek: Add adma_pwm support
This patch adds adma_pwm support for i.MX8qxp mek platform.
The PWM can be used to control display panel's backlight.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:24:00 +08:00
Liu Ying b5dc195241 LF-1189-12 arm64: dts: imx8qxp-mek: Add PWM pinctrl for LCDIF display
This patch adds PWM pinctrl setting support for LCDIF display.
The PWM can be used to control display panel's backlight.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:23:58 +08:00
Liu Ying e15cfc057d LF-1189-11 arm64: dts: imx8qxp-mek: Add LCDIF pinctrl
This patch adds all pinctrl settings for LCDIF to send
out parallel display signals to externel display device.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:23:57 +08:00
Liu Ying 64b07f682b LF-1189-10 arm64: imx8qxp-ss-adma.dtsi: Add pwm support
This patch adds pwm device tree support for i.MX8qxp ADMA support.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:23:56 +08:00
Liu Ying b4bf1bab57 LF-1189-9 arm64: imx8qxp-ss-adma.dtsi: Add pwm lpcg clocks support
This patch adds pwm lpcg clocks support for i.MX8qxp ADMA subsystem.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:23:54 +08:00
Liu Ying 460a31461c LF-1189-8 arm64: imx8qxp-ss-adma.dtsi: Add LCDIF mux regs syscon
LCDIF mux found in i.MX8qxp SoC muxes different inputs to
parallel display interface.  The control register for the
mux lives in LCDIF mux regs region.  This patch adds a
relevant LCDIF mux regs syscon node for that region.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:23:53 +08:00
Liu Ying f77648f2a1 LF-1189-7 arm64: imx8qxp-ss-dc.dtsi: Add lcdif endpoint to dpu node
i.MX8qxp DPU display stream1 may drive a parallel display through
pixel link to LCDIF mux.  This patch adds lcdif endpoint to DPU node.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-04-10 15:23:52 +08:00
Frank Li 705f32d3e7 MLK-23761 arm64: imx_v8_defconfg: added usb serial host driver support
Enable USB serial and ftdi support.
v2x team need ftdi support

Signed-off-by: Frank Li <Frank.Li@nxp.com>
2020-04-09 20:49:20 -05:00
Fugang Duan cbd935672b MLK-23764 arm64: dts: imx8dxl: enable wireless support for evk board
Add extra pcie dts file to enable wireless (like NXP
88w8997 and CYPRESS 4356/4359) since most of A0 chips
pcie has issue, which is convenient for tester to verify
wireless on comming release with golden chips.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-04-09 18:04:04 +08:00
Robin Gong 18e5faa34d MLK-23275-1: ARM64: dts: freescale: fsl-imx8mm-evk: correct ldo1/ldo2 voltage
Correct ldo1/ldo2 voltage as below:
ldo1 --NVCC_SNVS_1V8
ldo2 --VDD_SNVS_0V8

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
(cherry picked from commit 6e1db954c1261c9a8a40f7c4e33f03173c4d05b6)
(cherry picked from commit c159238cd48be1814736ed1eed8905572777d195)
2020-04-10 01:02:12 +08:00
Peng Fan c2be5262f0 MLK-23754-36 arm64: dts: imx8dxl: add cm4 node
Add cm4 node for remoteproc usage.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-04-09 10:35:43 +08:00
Peng Fan 9520932a70 MLK-23754-32 arm64: dts: imx8mq: add cm4 node
Add cm4 node for remoteproc usage.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-04-09 10:35:43 +08:00
Peng Fan 93e7fa8a68 MLK-23754-31 arm64: dts: imx8qm: add cm4 node
Add cm4 node for remoteproc usage. Disable rpmsg node.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-04-09 10:35:42 +08:00
Peng Fan b7c56dc046 MLK-23754-29 arm64: dts: imx8mn: add remoteproc node for i.MX8MN
Add remoteproc node for i.MX8MN

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-04-09 10:35:42 +08:00
Peng Fan 3c0b3bea88 MLK-23754-28 arm64: dts: imx8mp: add cm7 remoteproc node
Add CM7 remote proc node, decrease rpmsg dma node to 2MB only for
pcie usage.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-04-09 10:35:42 +08:00
Peng Fan 8e298b9ca4 MLK-23754-27 arm64: dts: imx8mm: add i.MX8MM cm4 node
Add i.MX8MM cm4 node for remoteproc usage.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-04-09 10:35:42 +08:00
Peng Fan 8bd8bf4ea9 MLK-23754-26 arm64: dts: imx8x-mek: add cm4 node
Add cm4 node for remoteproc usage. Currently added ipc-only
for partitioned M4 usage, late this property will be dropped
and check partitioned M4 in driver.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-04-09 10:35:42 +08:00
Peng Fan a6b3104e89 MLK-23754-10 ARM64: configs: imx_v8_defconfig: enable imx remoteproc
Enable i.MX remoteproc driver

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-04-09 10:35:39 +08:00
Mirela Rabulea 636de0a39e MLK-23728: Add ov2775 dtb for imx8mp
Make sure all the needed clocks are enabled for mipi_csi,
do not rely on mipi_dsi or lcdif to enable them.
Needed: media_cam1_pix, media_axi_root, media_apb_root

Tested with VSI ISP demo.
Not tested with camera on CSI2.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Tested-by: Oliver Brown <oliver.brown@nxp.com>
2020-04-08 10:32:22 -05:00
Fancy Fang 639f4b020f MLK-23758 arm64: dts: imx8mp: add power domains for dsi, lcdif1 and lcdif2
Add the corresponding power domains for MIPI DSI, LCDIF1 and
LCDIF2 device nodes.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: G.n. Zhou <guoniu.zhou@nxp.com>
2020-04-08 15:53:24 +08:00
Guoniu.zhou b4b240ce1d MLK-23756: arm64: dts: bind power domain to ISI and CSI of iMX8MP
Bind power doamin to ISI and CSI of iMX8MP

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Fancy Fang <chen.fang@nxp.com>
2020-04-08 12:17:46 +08:00
Richard Zhu ea318acd0d MLK-23755 arm64: dts: imx8dxl: enable pcie ep rc verification
Enable the PCIe EP/RC verification on iMX8DXL EVK board.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-04-08 10:53:24 +08:00
Zhang Peng 262a3a287c MLK-23701-0 dts: Add imx8mp-evk-dsp.dts and property audio-interface
Add property audio-interface for set sai or esai.
Add imx8mp-evk-dsp.dts for supporting cplay in mp board.

Signed-off-by: Zhang Peng <peng_zhang_8@nxp.com>
2020-04-07 12:48:18 +08:00
Horia Geantă efdd9963ce arm64: dts: imx8mn: add clock for snvs rtc node
Initial commit adding imx8mn support:
6c3debcbae ("arm64: dts: freescale: Add i.MX8MN dtsi support")
added the "clock-names" property for the snvs rtc node,
however it missed adding the clock.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
(cherry picked from commit 42ef961b24)
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2020-04-03 13:01:27 +03:00
Madalin Bucur 9e62b6673d arm64: dts: ls1046ardb: set RGMII interfaces to RGMII_ID mode
commit d79e9d7c1e upstream.

The correct setting for the RGMII ports on LS1046ARDB is to
enable delay on both Rx and Tx so the interface mode used must
be PHY_INTERFACE_MODE_RGMII_ID.

Since commit 1b3047b520 ("net: phy: realtek: add support for
configuring the RX delay on RTL8211F") the Realtek 8211F PHY driver
has control over the RGMII RX delay and it is disabling it for
RGMII_TXID. The LS1046ARDB uses two such PHYs in RGMII_ID mode but
in the device tree the mode was described as "rgmii".

Changing the phy-connection-type to "rgmii-id" to address the issue.

Fixes: 3fa395d2c4 ("arm64: dts: add LS1046A DPAA FMan nodes")
Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-02 15:11:03 +02:00
Madalin Bucur c399a50ae8 arm64: dts: ls1043a-rdb: correct RGMII delay mode to rgmii-id
commit 4022d808c4 upstream.

The correct setting for the RGMII ports on LS1043ARDB is to
enable delay on both Rx and Tx so the interface mode used must
be PHY_INTERFACE_MODE_RGMII_ID.

Since commit 1b3047b520 ("net: phy: realtek: add support for
configuring the RX delay on RTL8211F") the Realtek 8211F PHY driver
has control over the RGMII RX delay and it is disabling it for
RGMII_TXID. The LS1043ARDB uses two such PHYs in RGMII_ID mode but
in the device tree the mode was described as "rgmii_txid".
This issue was not apparent at the time as the PHY driver took the
same action for RGMII_TXID and RGMII_ID back then but it became
visible (RX no longer working) after the above patch.

Changing the phy-connection-type to "rgmii-id" to address the issue.

Fixes: bf02f2ffe5 ("arm64: dts: add LS1043A DPAA FMan support")
Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-02 15:11:03 +02:00
Ilie Halip 451bf4d959 arm64: alternative: fix build with clang integrated assembler
commit 6f5459da2b upstream.

Building an arm64 defconfig with clang's integrated assembler, this error
occurs:
    <instantiation>:2:2: error: unrecognized instruction mnemonic
     _ASM_EXTABLE 9999b, 9f
     ^
    arch/arm64/mm/cache.S:50:1: note: while in macro instantiation
    user_alt 9f, "dc cvau, x4", "dc civac, x4", 0
    ^

While GNU as seems fine with case-sensitive macro instantiations, clang
doesn't, so use the actual macro name (_asm_extable) as in the rest of
the file.

Also checked that the generated assembly matches the GCC output.

Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Fixes: 290622efc7 ("arm64: fix "dc cvau" cache operation on errata-affected core")
Link: https://github.com/ClangBuiltLinux/linux/issues/924
Signed-off-by: Ilie Halip <ilie.halip@gmail.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-02 15:11:02 +02:00
Robert Chiras 5162671ac9 MLK-23703: arm64/dts: imx8qxp: Add rpmsg support for rm67191
Add new dts file to support the rpmsg dts for the dsi-rm67191 use-case.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2020-04-02 10:29:35 +03:00
Madalin Bucur 406f1ac075 arm64: dts: ls1043a: FMan erratum A050385
[ Upstream commit b54d390086 ]

The LS1043A SoC is affected by the A050385 erratum stating that
FMAN DMA read or writes under heavy traffic load may cause FMAN
internal resource leak thus stopping further packet processing.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-01 11:01:52 +02:00
Ming Qian 166781cc35 MLK-21760-2:VPU Encoder: increase resolution limitation
increase the resolution limitation from 1920x1080 to 1920x1920
I have submitted the patch on branch 4.19.y
I don't know why branch 5.4 doesn't include this patch
so I submit it again

Signed-off-by: Ming Qian <ming.qian@nxp.com>
2020-04-01 13:25:29 +08:00
Li Jun 403f0af55d MLK-23412-8 arm64: dtsi: imx8mp: add hsio root clock for usb
Currently hsio root clock is always on, which should be handled
by hsiomix power domain driver but there is problem on doing that,
see commit 5aaceda10a ("MLK-23671-02 arm64: dts: imx8mp: Add the
rpm-always-on flag for hsiomix domain"):

"The hsiomix power domain need to be runtime always-on to maintain USB's
wakeup ability. As this domain need to be boot on by default, no one
will call the power on callback during system boot up, the clock
enable/disable will mismatch, so remove the clocks from this domain.
the necessary clocks will be handled in TF-A."

There is one clock(AXI_DIV) shared between hsiomix and USB, with
rpm-always-on property added, like above commit description, power
domain driver will not do enable/disable and think it's always on, but
it can be disabled by USB driver, afterwards if power domain driver does
hsiomix register access, system will hang because the required clock was
disabled.

Now with above commit and change in TF-A, those clocks are not
controlled by Linux for power domain operations, but user driver(i.e. USB
and PCIE) has to handle it.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2020-03-31 17:09:57 +08:00
Li Jun 739af17e2a MLK-23412-7 arm64: imx8mp.dtsi: add hsiomix power domain binding for usb
USB controller isolation is controlled by hsiomix power domain,
instead of usb_otg1_pd and usb_otg2_pd, those 2 power domains are
for USB PHY isolation and in our case, PHY is power is kept always
on(but can be suspended).

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2020-03-31 17:03:44 +08:00
Shengjiu Wang 6c3083578f MLK-23702-5: arm64: dts: imx8mp: Support rpmsg audio
1. add i2c-rpmsg support for i2c3
2. reserve memory for LPA, for the accessable memory
of m7: 0x40000000-0xbfffffff.
3. support LPA, playback only

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-03-31 15:04:14 +08:00
Guoniu.zhou 6698b26adb MLK-23697-2: arm64: dts: add ov5640 rpmsg support for iMX8DX
Add ov5640 rpmsg support for iMX8DX platform.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2020-03-31 12:16:03 +08:00
Guoniu.zhou 555bc3f5c2 MLK-23697-1: arm64: dts: add two ov5640 support for iMX8DX
Add two ov5640 support for iMX8DX platform. One work at DVP mode,
the other work at MIPI mode.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2020-03-31 12:16:03 +08:00
Peter Chen 30ca4c96ea
MLK-23676-2 ARM64: dts: imx8dxl-ss-conn: change clock output name for USBOTG2 PHY
USBOTG2 PHY's output name should be PHY ipg clock, but not controller
ahb clock, it is aligned with USBOTG1 PHY's output clock.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-31 10:14:43 +08:00
Frank Li e12c785ff3 MLK-23717 8DXL DDR EVK board enable ADC IN0 IN1 IN4 IN5
Enable IN0 IN1 IN4 IN5

Signed-off-by: Frank Li <Frank.Li@nxp.com>
2020-03-30 20:56:32 -05:00
Han Xu c520bb1de3 MLK-23693-2: arm64: dts: imx8dxl: change nand interrupts in dxl-ss-conn
change the interrupts in imx8dxl-ss-conn for imx8dxl nand support.

Signed-off-by: Han Xu <han.xu@nxp.com>
2020-03-30 14:04:53 -05:00
Han Xu b8db6362ff MLK-23693-1: arm64: dts: imx8dxl: add nand support on ddr3 board
add the nand node to support nand in imx8dxl ddr3 evk board.

Signed-off-by: Han Xu <han.xu@nxp.com>
2020-03-30 14:04:53 -05:00
Jacky Bai d64b959d7c MLk-23696-02 arm64: dts: imx8mp: Add the more hdmi related clock in hdmimix pd
the HDMI APB clock & 266M REF clock should be on when doing HDMIMIX power domain
on/off, so add these clock to hdmimix pd node.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by:  Anson Huang <Anson.Huang@nxp.com>
2020-03-27 20:15:18 +08:00
Shengjiu Wang 2a588a0e21 MLK-23680-2: arm64: dts: imx8mp: update clocks for sdma2 & sdma3
There is hardware issue: TKT0535653
SDMA3 can't work without setting AUDIOMIX_CLKEN0[SDMA2] (bit-26) to 1

The workaround is:
As the reset state of AUDIOMIX_CLKEN0[SDMA2] is enabled,
we just need to keep it on as reset state, don't touch it
in kernel, then every thing is same as before.

So for sdma node, it only need to care about AHB and IPG clock,
the gate of AUDIOMIX_CLKEN0[SDMA2] is always enabled.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
2020-03-27 16:04:34 +08:00
Guoniu.zhou f1e4bfdabb MLK-23315-2: arm64: dts: imx8: add i2c and irqsteer device node for CI_PI ss
Add i2c controller and irqsteer device node for CI_PI subsystem of iMX8QXP

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2020-03-27 13:52:27 +08:00
Peter Chen 89a49f36e0
MLK-23676 ARM64: imx8dxl-ss-conn: change USBOTG2 compatible
"fsl,imx8qm-usb" is not defined at driver, and "fsl,imx27-usb"
is older model. We need to use the closest model for it to get
the newer features, like runtime pm.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-27 11:21:59 +08:00
Peter Chen f304da5ac1
MLK-23639 ARM64: imx8dxl.dtsi: enable USB1 and USB2 wakeup interrupt
Enabe USB1 and USB2 wakeup interrupt for system suspend.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-27 11:21:59 +08:00
Jacky Bai bd0cec49f7 MLK-23678 arm64: dts: imx8m: Add arm pmu node for imx8mn/mp
Add the pmu node on i.MX8MN/MP to enable the ARM PMU support.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2020-03-26 20:12:12 +08:00
Jacky Bai 5aaceda10a MLK-23671-02 arm64: dts: imx8mp: Add the rpm-always-on flag for hsiomix domain
The hsiomix power domain need to be runtime always-on to maintain USB's
wakeup ability. As this domain need to be boot on by default, no one will
call the power on callback during system boot up, the clock enable/disable
will mismatch, so remove the clocks from this domain. the necessary clocks
will be handled in TF-A.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-03-26 20:12:12 +08:00
Fugang Duan 81e0e6c356 MLK-23687-02 arm64: dts: imx8dxl: update enet wakeup irq number
Update enet wakeup interrupt number since they are different
with imx8qxp.

Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 17:50:44 +08:00
Fugang Duan 2aceec97c0 MLK-23685 arm64: dts: imx8dxl: add aliases for ethernet node
Add aliases for ethernet node to support set mac
address by uboot ethnaddr env.

Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 17:50:44 +08:00
Fugang Duan 531b44e5c4 MLK-23686 dts: imx8dxl: read mac address from efuse
Add mac address support by reading from efuse.

Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 17:50:44 +08:00
Richard Zhu 7fb4da245b MLK-23669 arm64: dts: imx8qm: add pcieax2pciebx1 usecase
Different HSIO usecase may be used by customers.
- add PCIEAx2PCIEBx1 usecase for example.
Only verified PCIA one lane refer to the iMX8QM MEK and Baseboard
hardware limitation.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 16:40:48 +08:00
Richard Zhu c24b099bb5 MLK-23668-1 arm64: dts: imx8qm: add multi-pcie ports support
- Enable the PCIEB port on the i.MX8QM MEK and base board.
- In the PCIEAX1PCIEBx1SATA usecase, the PHYX2_PCLK[0] is mandatory
required by PCIEB. Otherwise PCIEB can't link up when exist from
L2 mode when only PCIEB is used.
- PCIEB has one more PER clock, since that the PCIEA CSR register
would be configuired when PCIEB is initialized.
- Regarding to the base board HW limitation(two Disable#) are not
connected. Only the standard PCIe EP device is supported on PCIEB port.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 16:40:48 +08:00
Joakim Zhang 1b43d34c6e MLK-23528 arm64: dts: imx8dxl: add CAN wakeup irq
Add CAN wakeup irq.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-03-26 10:58:29 +08:00
Richard Zhu b8a7102caa MLK-23637 dts: arm64: imx8mp: enable the pcie ep rc on imx8mp evk
Add the PCIe DMA IRQ name.
Enable the PCIe EP RC validation on iMX8MP EVK boards.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-25 19:39:51 +08:00
Cristian Marussi d3eb4daa33 arm64: smp: fix crash_smp_send_stop() behaviour
commit f50b7daccc upstream.

On a system configured to trigger a crash_kexec() reboot, when only one CPU
is online and another CPU panics while starting-up, crash_smp_send_stop()
will fail to send any STOP message to the other already online core,
resulting in fail to freeze and registers not properly saved.

Moreover even if the proper messages are sent (case CPUs > 2)
it will similarly fail to account for the booting CPU when executing
the final stop wait-loop, so potentially resulting in some CPU not
been waited for shutdown before rebooting.

A tangible effect of this behaviour can be observed when, after a panic
with kexec enabled and loaded, on the following reboot triggered by kexec,
the cpu that could not be successfully stopped fails to come back online:

[  362.291022] ------------[ cut here ]------------
[  362.291525] kernel BUG at arch/arm64/kernel/cpufeature.c:886!
[  362.292023] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[  362.292400] Modules linked in:
[  362.292970] CPU: 3 PID: 0 Comm: swapper/3 Kdump: loaded Not tainted 5.6.0-rc4-00003-gc780b890948a #105
[  362.293136] Hardware name: Foundation-v8A (DT)
[  362.293382] pstate: 200001c5 (nzCv dAIF -PAN -UAO)
[  362.294063] pc : has_cpuid_feature+0xf0/0x348
[  362.294177] lr : verify_local_elf_hwcaps+0x84/0xe8
[  362.294280] sp : ffff800011b1bf60
[  362.294362] x29: ffff800011b1bf60 x28: 0000000000000000
[  362.294534] x27: 0000000000000000 x26: 0000000000000000
[  362.294631] x25: 0000000000000000 x24: ffff80001189a25c
[  362.294718] x23: 0000000000000000 x22: 0000000000000000
[  362.294803] x21: ffff8000114aa018 x20: ffff800011156a00
[  362.294897] x19: ffff800010c944a0 x18: 0000000000000004
[  362.294987] x17: 0000000000000000 x16: 0000000000000000
[  362.295073] x15: 00004e53b831ae3c x14: 00004e53b831ae3c
[  362.295165] x13: 0000000000000384 x12: 0000000000000000
[  362.295251] x11: 0000000000000000 x10: 00400032b5503510
[  362.295334] x9 : 0000000000000000 x8 : ffff800010c7e204
[  362.295426] x7 : 00000000410fd0f0 x6 : 0000000000000001
[  362.295508] x5 : 00000000410fd0f0 x4 : 0000000000000000
[  362.295592] x3 : 0000000000000000 x2 : ffff8000100939d8
[  362.295683] x1 : 0000000000180420 x0 : 0000000000180480
[  362.296011] Call trace:
[  362.296257]  has_cpuid_feature+0xf0/0x348
[  362.296350]  verify_local_elf_hwcaps+0x84/0xe8
[  362.296424]  check_local_cpu_capabilities+0x44/0x128
[  362.296497]  secondary_start_kernel+0xf4/0x188
[  362.296998] Code: 52805001 72a00301 6b01001f 54000ec0 (d4210000)
[  362.298652] SMP: stopping secondary CPUs
[  362.300615] Starting crashdump kernel...
[  362.301168] Bye!
[    0.000000] Booting Linux on physical CPU 0x0000000003 [0x410fd0f0]
[    0.000000] Linux version 5.6.0-rc4-00003-gc780b890948a (crimar01@e120937-lin) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #105 SMP PREEMPT Fri Mar 6 17:00:42 GMT 2020
[    0.000000] Machine model: Foundation-v8A
[    0.000000] earlycon: pl11 at MMIO 0x000000001c090000 (options '')
[    0.000000] printk: bootconsole [pl11] enabled
.....
[    0.138024] rcu: Hierarchical SRCU implementation.
[    0.153472] its@2f020000: unable to locate ITS domain
[    0.154078] its@2f020000: Unable to locate ITS domain
[    0.157541] EFI services will not be available.
[    0.175395] smp: Bringing up secondary CPUs ...
[    0.209182] psci: failed to boot CPU1 (-22)
[    0.209377] CPU1: failed to boot: -22
[    0.274598] Detected PIPT I-cache on CPU2
[    0.278707] GICv3: CPU2: found redistributor 1 region 0:0x000000002f120000
[    0.285212] CPU2: Booted secondary processor 0x0000000001 [0x410fd0f0]
[    0.369053] Detected PIPT I-cache on CPU3
[    0.372947] GICv3: CPU3: found redistributor 2 region 0:0x000000002f140000
[    0.378664] CPU3: Booted secondary processor 0x0000000002 [0x410fd0f0]
[    0.401707] smp: Brought up 1 node, 3 CPUs
[    0.404057] SMP: Total of 3 processors activated.

Make crash_smp_send_stop() account also for the online status of the
calling CPU while evaluating how many CPUs are effectively online: this way
the right number of STOPs is sent and all other stopped-cores's registers
are properly saved.

Fixes: 78fd584cde ("arm64: kdump: implement machine_crash_shutdown()")
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-25 08:25:59 +01:00
Cristian Marussi 6080e0a9d1 arm64: smp: fix smp_send_stop() behaviour
commit d0bab0c39e upstream.

On a system with only one CPU online, when another one CPU panics while
starting-up, smp_send_stop() will fail to send any STOP message to the
other already online core, resulting in a system still responsive and
alive at the end of the panic procedure.

[  186.700083] CPU3: shutdown
[  187.075462] CPU2: shutdown
[  187.162869] CPU1: shutdown
[  188.689998] ------------[ cut here ]------------
[  188.691645] kernel BUG at arch/arm64/kernel/cpufeature.c:886!
[  188.692079] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[  188.692444] Modules linked in:
[  188.693031] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 5.6.0-rc4-00001-g338d25c35a98 #104
[  188.693175] Hardware name: Foundation-v8A (DT)
[  188.693492] pstate: 200001c5 (nzCv dAIF -PAN -UAO)
[  188.694183] pc : has_cpuid_feature+0xf0/0x348
[  188.694311] lr : verify_local_elf_hwcaps+0x84/0xe8
[  188.694410] sp : ffff800011b1bf60
[  188.694536] x29: ffff800011b1bf60 x28: 0000000000000000
[  188.694707] x27: 0000000000000000 x26: 0000000000000000
[  188.694801] x25: 0000000000000000 x24: ffff80001189a25c
[  188.694905] x23: 0000000000000000 x22: 0000000000000000
[  188.694996] x21: ffff8000114aa018 x20: ffff800011156a38
[  188.695089] x19: ffff800010c944a0 x18: 0000000000000004
[  188.695187] x17: 0000000000000000 x16: 0000000000000000
[  188.695280] x15: 0000249dbde5431e x14: 0262cbe497efa1fa
[  188.695371] x13: 0000000000000002 x12: 0000000000002592
[  188.695472] x11: 0000000000000080 x10: 00400032b5503510
[  188.695572] x9 : 0000000000000000 x8 : ffff800010c80204
[  188.695659] x7 : 00000000410fd0f0 x6 : 0000000000000001
[  188.695750] x5 : 00000000410fd0f0 x4 : 0000000000000000
[  188.695836] x3 : 0000000000000000 x2 : ffff8000100939d8
[  188.695919] x1 : 0000000000180420 x0 : 0000000000180480
[  188.696253] Call trace:
[  188.696410]  has_cpuid_feature+0xf0/0x348
[  188.696504]  verify_local_elf_hwcaps+0x84/0xe8
[  188.696591]  check_local_cpu_capabilities+0x44/0x128
[  188.696666]  secondary_start_kernel+0xf4/0x188
[  188.697150] Code: 52805001 72a00301 6b01001f 54000ec0 (d4210000)
[  188.698639] ---[ end trace 3f12ca47652f7b72 ]---
[  188.699160] Kernel panic - not syncing: Attempted to kill the idle task!
[  188.699546] Kernel Offset: disabled
[  188.699828] CPU features: 0x00004,20c02008
[  188.700012] Memory Limit: none
[  188.700538] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

[root@arch ~]# echo Helo
Helo
[root@arch ~]# cat /proc/cpuinfo | grep proce
processor	: 0

Make smp_send_stop() account also for the online status of the calling CPU
while evaluating how many CPUs are effectively online: this way, the right
number of STOPs is sent, so enforcing a proper freeze of the system at the
end of panic even under the above conditions.

Fixes: 08e875c16a ("arm64: SMP support")
Reported-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-25 08:25:59 +01:00
Vincenzo Frascino ac9d327951 arm64: compat: Fix syscall number of compat_clock_getres
commit 3568b88944 upstream.

The syscall number of compat_clock_getres was erroneously set to 247
(__NR_io_cancel!) instead of 264. This causes the vDSO fallback of
clock_getres() to land on the wrong syscall for compat tasks.

Fix the numbering.

Cc: <stable@vger.kernel.org>
Fixes: 53c489e1df ("arm64: compat: Add missing syscall numbers")
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-25 08:25:56 +01:00
Guoniu.zhou 72155acb74 MLK-23665: arm64: dts: ov5640: add new dts for imx8qxp ov5640 rpmsg
Because our relase image include m4 image by default, but dts for two
ov5640 don't include rpmsg, so user need to burn non-rpmsg flash.bin
if they want to test two ov5640 case. Test team and more and more guys
request to add rpmsg ov5640. The patch is used for the purpose.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
2020-03-25 14:07:42 +08:00
Shengjiu Wang b45c81db62 MLK-23653-3: arm64: dts: imx8mm-evk: change sai to master for bt-sco
Change sai to master for bt-sco to resolve the long latence issue
for uplink

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-24 11:47:24 +08:00
Richard Zhu f3db6a0c22 MLK-23666 arm64: dts: correct the legacy intx of imx8dxl pcie
Correct the legacy INTX numbers of the iMX8DXL PCIe.
Use the internal PLL as PCIe REF clock.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-24 11:24:49 +08:00
Frank Li dc62e993e1 MLK-23646 i.MX8DXL support DDR3 EVK board
support only basic function
eqos network
USB1 and USB2 basic work
Only total 512MB in DDR3 evk boards

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
2020-03-23 09:17:32 -05:00
Jacky Bai 985d669e1e MLK-23658 arm64: dts: imx8mm: Add ddr3l val board for imx8mm
Add the DDR3L val board for i.MX8MM.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-03-23 20:44:49 +08:00
Shengjiu Wang 614ecd7e6c MLK-23653-2: arm64: dts: imx8mm-evk: enable sound card for bt-sco
enable sound card for bt-sco

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-03-23 17:43:57 +08:00
Shengjiu Wang 10f61ee0a5 MLk-23653-1: arm64: imx_v8_defconfig: Built-in BT-SCO
Built-in BT-SCO for BT headset profile

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-03-23 17:43:53 +08:00
Alice Guo 04e7c76cff MLK-23626-3 arm64: dts: imx8mq: let inmate dts do not include .dtsi
Rewrite inmate dts for jailhouse dual linux case.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
2020-03-21 22:08:16 +08:00
Alice Guo 161c003bfc MLK-23626-2 arm64: dts: imx8mn: let inmate dts do not include .dtsi
Rewrite inmate dts for jailhouse dual linux case.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
2020-03-21 22:08:16 +08:00
Alice Guo 705e7f1b29 MLK-23626-1 arm64: dts: imx8mm: let inmate dts do not include .dtsi
Rewrite inmate dts for jailhouse dual linux case.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
2020-03-21 22:08:16 +08:00
Viorel Suman a9972cff81 MLK-23579: dts: arm64: imx8mp-ab2: remove mask for 2ch dsd
Due to 8MQ/MM IOMUX specifics for DSD stereo case the audio
data is routed via DATA0 and DATA4 SAI1 signals, thus a
specific channel map is required for DSD stereo case. For
8MP there is no need for a such specific case, so remove it.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2020-03-18 16:10:54 +02:00
Liu Ying 04f3727879 MLK-23616-2 arm64: imx8mp.dtsi: Add APB clock related properties in lvds phy node
This patch adds APB clock related properties in lvds phy node,
so that the driver may get and control the APB clock.

Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
2020-03-18 18:44:15 +08:00
Shengjiu Wang f967f755ed MLK-23618-16: arm64: dts: remove unneeded power domain for audio modules
The power domain for clocks is not needed by audio drivers, which
is handled by clock driver.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-03-18 15:42:28 +08:00
Jacky Bai 91a988106b MLK-23622-02 arm64: dts: imx8mp: Add active-wakeup property for hsiomix
The HSIOMIX domain need to be on if usb wakeup is enabled for system
wakeup source, so add the 'active-wakeup' property for this domain.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-03-18 14:12:02 +08:00
Jacky Bai 46814fb05c arm64: dts: imx8mp: Add power domain property for vpu nodes
Add power domain property for vpu node to enable power domain
off when module entering runtime PM.

BuildInfo:
         - ATF 13de44f73

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Zhou Peng <eagle.zhou@nxp.com>
2020-03-18 11:11:59 +08:00
Anson Huang d1236dcacf MLK-23621 arm64: dts: imx8dxl: Add A35 cpu-freq support
Add A35 cpu-freq support, 900MHz and 1.2GHz are supported.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-03-18 10:45:40 +08:00
Li Jun 9998366273 MLK-23596-2 ARM64: dtsi: imx8mp: add soft-itp-sync property for usb
SOFITPSYNC
If this bit is set to '0' operating in host mode, the core keeps the
UTMI/ULPI PHY on the first port in a non-suspended state whenever there
is a SuperSpeed port that is not in Rx.Detect, SS.Disable and U3.
If this bit is set to '1' operating in host mode, the core keeps the
UTMI/ULPI PHY on the first port in a non-suspended state whenever the
other non-SuperSpeed ports are not in a suspended state. This feature is
useful because it saves power by suspending UTMI/ULPI when SuperSpeed
only is active, and it helps resolve when the PHY does not transmit a
host resume unless it is placed in suspend state. This bit must be
programmed as a part of initialization at power-on reset, and must not
be dynamically changed afterwards.

with this property specified, this bit is set to be 1.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2020-03-17 19:38:52 +08:00
Viorel Suman d550cd7a1e MLK-23586: dts: arm64: imx8mp-ab2: disable busfreq node
Disable busfreq node for AB2 as currently it is
causing "underrun" errors.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-03-17 13:13:41 +02:00
Guoniu.zhou 5a740a3218 MLK-23578-2: arm64: dts: add ISI m2m device node for i.MX865
Add ISI m2m device node in dts for i.MX865 platform

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
2020-03-16 17:43:24 +08:00
Han Xu ad81692901 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>
2020-03-13 15:32:19 -05:00
Silvano di Ninno 7753837330 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>
2020-03-13 22:44:22 +01:00
Franck LENORMAND 53dca82ef1 SSI-87: arm64: dts: imx8qxp: Add node for Security Violations
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
2020-03-13 17:11:58 +01:00
Franck LENORMAND 02388b72be SSI-87: arm64: defconfig: Enable CONFIG_SECVIO_SC by default
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
2020-03-13 17:11:58 +01:00
Shengjiu Wang 3dab39b149 MLK-23585-4: arm64: dts: Enable audio features for imx8dxl-evk
Enable SAI/ASRC/WM8960
1. Update the interrupt number for audio modules
2. Enable 3 wm8960 codecs

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-03-13 16:26:02 +08:00
Liu Ying 869d88224b 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>
2020-03-13 15:12:16 +08:00
Liu Ying bf8ae75604 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>
2020-03-13 15:11:21 +08:00
Christian Hewitt 8937a74575 arm64: dts: meson: fix gxm-khadas-vim2 wifi
commit 146033562e upstream.

before

[6.418252] brcmfmac: F1 signature read @0x18000000=0x17224356
[6.435663] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4356-sdio for chip BCM4356/2
[6.551259] brcmfmac: brcmf_sdiod_ramrw: membytes transfer failed
[6.551275] brcmfmac: brcmf_sdio_verifymemory: error -84 on reading 2048 membytes at 0x00184000
[6.551352] brcmfmac: brcmf_sdio_download_firmware: dongle image file download failed

after

[6.657165] brcmfmac: F1 signature read @0x18000000=0x17224356
[6.660807] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4356-sdio for chip BCM4356/2
[6.918643] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4356-sdio for chip BCM4356/2
[6.918734] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[6.922724] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4356/2 wl0: Jun 16 2015 14:25:06 version 7.35.184.r1 (TOB) (r559293) FWID 01-b22ae69c

Fixes: adc52bf7ef ("arm64: dts: meson: fix mmc v2 chips max frequencies")
Suggested-by: Art Nikpal <email2tema@gmail.com>
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/1582212790-11402-1-git-send-email-christianshewitt@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-12 13:00:31 +01:00
Fabio Estevam 67a6b0adb1 arm64: dts: imx8qxp-mek: Remove unexisting Ethernet PHY
commit 26c4b4758f upstream.

There is only on Ethernet port and one Ethernet PHY on imx8qxp-mek.

Remove the unexisting ethphy1 port.

This fixes a run-time warning:

mdio_bus 5b040000.ethernet-1: MDIO device at address 1 is missing.

Fixes: fdea904e85 ("arm64: dts: imx: add imx8qxp mek support")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-12 13:00:27 +01:00
Guillaume La Roque 422d098fe6 arm64: dts: meson-sm1-sei610: add missing interrupt-names
commit 5bea1336ed upstream.

add missing "host-wakeup interrupt names

Fixes: 30388cc075 ("arm64: dts: meson-sm1-sei610: add gpio bluetooth interrupt")

Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20200117133423.22602-1-glaroque@baylibre.com
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-12 13:00:24 +01:00
Ley Foon Tan 637627d832 arm64: dts: socfpga: agilex: Fix gmac compatible
commit 8c86738716 upstream.

Fix gmac compatible string to "altr,socfpga-stmmac-a10-s10". Gmac for
Agilex should use same compatible as Stratix 10.

Fixes: 4b36daf9ad ("arm64: dts: agilex: Add initial support for Intel's Agilex SoCFPGA")
Cc: stable@vger.kernel.org
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-12 13:00:20 +01:00
Franck LENORMAND e4468cd15c 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>
2020-03-12 09:29:51 +01:00
Franck LENORMAND 6f9d149507 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>
2020-03-12 09:29:51 +01:00
Franck LENORMAND 9a91e2843e 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>
2020-03-12 09:29:51 +01:00
Joakim Zhang f158c242b8 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-11 14:34:31 +08:00
Sandor Yu 2804599dc0 MLK-23538-3: imx_v8_defconfig: Enable DW_HDMI_CEC
Enable DW_HDMI_CEC for iMX8MP HDMI CEC.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2020-03-11 10:15:55 +08:00
Silvano di Ninno 534d8537d4 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>
2020-03-10 18:40:44 +01:00
Viorel Suman 80aaafd873 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>
2020-03-10 11:08:35 +02:00
Viorel Suman 2bcdf92a47 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>
2020-03-10 11:08:35 +02:00
Ella Feng fd3523b31e arm64: dts: imx8mp: Add power domain for GPU 3D/2D and VIP
Add power domain for GPU 3D/2D and VIP for imx8mp.

Signed-off-by: Ella Feng <ella.feng@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-03-11 00:32:59 +08:00
Ye Li 8a35ec5fc3 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>
2020-03-09 21:05:05 -07:00
Ye Li 4ad83f42e3 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>
2020-03-09 21:05:05 -07:00
Ye Li 2bcf70ad60 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>
2020-03-09 21:05:05 -07:00
Anson Huang c5726388aa 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>
2020-03-09 11:05:35 +08:00
Jason Liu 335d2828a9 This is the 5.4.24 stable release
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEZH8oZUiU471FcZm+ONu9yGCSaT4FAl5hHjgACgkQONu9yGCS
 aT6CSBAA0c16mnDb59jgmW/sBj/p/MrlD/WJzLriqiKN5BUsPt9++I5mNj8mG+d2
 Glm4086e8L826zv8oKiZm23xk93on+78ExhVFVZvZNaEUpiRNYCGSuDq2NrHW0z+
 kpagkAFLfCUZFoKtmWo+bpl0YtF4dd/fg7+EjyL6qT1DBs8NVMwZx7i/v0xXv7Wc
 0vsGCLYoBLzcW1FB2d9cfAUPCBuGEzL/7TdifNOXRgI9owGsZndFJgXgIzoBUt/P
 tqB8RLjIupCiMEPtsEAZ/rgEQLPFkb3yrBvgjd1wDI8bHUIQU0clqThKVNvmNSmv
 UTBSNgPAhkP8nZG7X9xCkyfEsUefejBJy66da9n4XTGGrXf9ga0BL0nNrOGwOesr
 m+tNnBSFsbFCMqFopQnt4zZSnaf67AOk2mzxbEu4E+sStyW943aDO9MoRRFgaYGH
 pfie3qOKtKta2MuNTJA+q6F0W9H+V5MtMpwbyuy1/dp2eVln2wewBBMvXYdL1YOy
 E/Z87nsQgalsDynz9m/niv32J4JAxHptyOyROkktDLBSzL5RawNn+Op8X5EtmZOe
 sPkiYicqp9CLmMj13qWXJhtuyNdD4wk6FyyAy6cX9mF44+EZGOBkyNP+n8g789Kn
 sqFJ7sfTfOnwLBFciMA5PaMTGNWROyWXNkvvUzO+9t0CyFAnT2U=
 =abGA
 -----END PGP SIGNATURE-----

Merge tag 'v5.4.24' into imx_5.4.y

Merge Linux stable release v5.4.24 into imx_5.4.y

* tag 'v5.4.24': (3306 commits)
  Linux 5.4.24
  blktrace: Protect q->blk_trace with RCU
  kvm: nVMX: VMWRITE checks unsupported field before read-only field
  ...

Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>

 Conflicts:
	arch/arm/boot/dts/imx6sll-evk.dts
	arch/arm/boot/dts/imx7ulp.dtsi
	arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
	drivers/clk/imx/clk-composite-8m.c
	drivers/gpio/gpio-mxc.c
	drivers/irqchip/Kconfig
	drivers/mmc/host/sdhci-of-esdhc.c
	drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
	drivers/net/can/flexcan.c
	drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
	drivers/net/ethernet/mscc/ocelot.c
	drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
	drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
	drivers/net/phy/realtek.c
	drivers/pci/controller/mobiveil/pcie-mobiveil-host.c
	drivers/perf/fsl_imx8_ddr_perf.c
	drivers/tee/optee/shm_pool.c
	drivers/usb/cdns3/gadget.c
	kernel/sched/cpufreq.c
	net/core/xdp.c
	sound/soc/fsl/fsl_esai.c
	sound/soc/fsl/fsl_sai.c
	sound/soc/sof/core.c
	sound/soc/sof/imx/Kconfig
	sound/soc/sof/loader.c
2020-03-08 18:57:18 +08:00
Fugang Duan e99d9ddb56 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:17:48 +08:00
Silvano di Ninno 28a4a2e2fb 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>
2020-03-05 17:24:24 +01:00
Silvano di Ninno b7ad286ff8 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: aad2417502 ("arm64: dts: imx8mn: add crypto node")
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
2020-03-05 16:45:49 +01:00
Silvano di Ninno e7534bb984 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>
2020-03-05 16:45:26 +01:00
Fancy Fang 7caaecd405 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>
2020-03-05 18:06:47 +08:00
Jacky Bai e8df7e14ff MLK-23423 arm64: dts: imx8mp: Add gpu 3d shader clock to gpu3d power domain
The GPU3D shader clock must be on to make sure that GPU3D can be reset
successfully.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-03-05 16:44:56 +08:00
Frank Li 18acf2d4b6 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:52:16 -06:00
Bing Song 0fe7ae6936 MLK-23394-3: DTS: enable XUVI/PPM on i.MX8QM
Add XUVI/PPM on i.MX8QM platform.

Signed-off-by: Bing Song <bing.song@nxp.com>
Reviewed-by: Jian Li <jian.li@nxp.com>
Reviewed-by: Zhou Peng <eagle.zhou@nxp.com>
2020-03-05 08:16:44 +08:00
Joakim Zhang 0af50931db 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:06:05 +08:00
Joakim Zhang cb1a3f4a79 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:06:04 +08:00
Daniel Baluta 3dd2059f82 arm64: dts: Fix DAI index for i.MX8MP
On i.MX8MP wm8960 codec is connected with SAI3 so dai-index
should be 3.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-03-03 15:13:23 +02:00
Fugang Duan 086025cc8d 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:21:47 +08:00
Li Jun b84f6b9289 MLK-23411 ARM64: dts: imx8mq-evk: disable u1 and u2 entries for typec port
Commit 729dcffd1e ("usb: dwc3: gadget: Add support for disabling
U1 and U2 entries") give detail explaination for user case of
disable u1 and u2 in gadget mode:

"Usecase 1:
 When combining dwc3 with an redriver for a USB Type-C device
 solution, itsometimes have problems with leaving U1/U2 for
 certain hosts, resulting in link training errors and reconnects.
 For this U1/U2 state entries may be avoided."

on imx8mq-evk board, we have typec and redriver used and android
reported unstable issue when use some host PC for adb, so to have
a better performance, we disable u1 and u2 entries.

Reported-by: Richard Liu <xuegang.liu@nxp.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2020-03-02 21:38:22 +08:00
Daniel Baluta 2a3bb30476 MLK-23350-15 arm64: dts: Add dai-index property
dai-index property must match dai-index from topology. FSL DAI
driver uses it for now figure out the correct DAI name, but might
be used for other things in the future.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2020-03-02 13:20:57 +02:00
Silvano di Ninno 16ea12e66c 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>
2020-02-29 14:47:07 +01:00
Vincenzo Frascino d562fdad84 arm64: lse: Fix LSE atomics with LLVM
commit dd1f6308b2 upstream.

Commit e0d5896bd3 ("arm64: lse: fix LSE atomics with LLVM's integrated
assembler") broke the build when clang is used in connjunction with the
binutils assembler ("-no-integrated-as"). This happens because
__LSE_PREAMBLE is defined as ".arch armv8-a+lse", which overrides the
version of the CPU architecture passed via the "-march" paramter to gas:

$ aarch64-none-linux-gnu-as -EL -I ./arch/arm64/include
                                -I ./arch/arm64/include/generated
                                -I ./include -I ./include
                                -I ./arch/arm64/include/uapi
                                -I ./arch/arm64/include/generated/uapi
                                -I ./include/uapi -I ./include/generated/uapi
                                -I ./init -I ./init
                                -march=armv8.3-a -o init/do_mounts.o
                                /tmp/do_mounts-d7992a.s
/tmp/do_mounts-d7992a.s: Assembler messages:
/tmp/do_mounts-d7992a.s:1959: Error: selected processor does not support `autiasp'
/tmp/do_mounts-d7992a.s:2021: Error: selected processor does not support `paciasp'
/tmp/do_mounts-d7992a.s:2157: Error: selected processor does not support `autiasp'
/tmp/do_mounts-d7992a.s:2175: Error: selected processor does not support `paciasp'
/tmp/do_mounts-d7992a.s:2494: Error: selected processor does not support `autiasp'

Fix the issue by replacing ".arch armv8-a+lse" with ".arch_extension lse".
Sami confirms that the clang integrated assembler does now support the
'.arch_extension' directive, so this change will be fine even for LTO
builds in future.

Fixes: e0d5896bd3 ("arm64: lse: fix LSE atomics with LLVM's integrated assembler")
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Reported-by: Amit Kachhap <Amit.Kachhap@arm.com>
Tested-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-28 17:22:27 +01:00
Will Deacon 98583fb54c arm64: memory: Add missing brackets to untagged_addr() macro
commit d0022c0ef2 upstream.

Add brackets around the evaluation of the 'addr' parameter to the
untagged_addr() macro so that the cast to 'u64' applies to the result
of the expression.

Cc: <stable@vger.kernel.org>
Fixes: 597399d0cb ("arm64: tags: Preserve tags for addresses translated via TTBR1")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-28 17:22:18 +01:00
Fugang Duan e04b181ca9 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 14:44:21 +08:00
Jacky Bai 349e4ee942 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>
2020-02-28 14:50:38 +08:00
Peter Chen 40688bff75
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:15:58 +08:00
Robin Gong ed2a39826e 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>
2020-02-28 19:10:32 +08:00
Frank Li 8faceabaae MLK-23403-3: i.MX8DXL: Change board name to EVK from MEK
Correct board name

Signed-off-by: Frank Li <Frank.Li@nxp.com>
2020-02-27 14:06:22 -06:00
Daniel Baluta c9c1501ede MLK-23350-14 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:58:02 +02:00
Jacky Bai 015b388d46 MLK-23390 arm64: dts: imx8mp: add more clocks to gpumix & mlmix
The GPU AXI/AHB & ML AXI/AHB clock must be on when doing corresponding
power domain on/off, so Add these clocks to GPUMIX & MLMIX power domain.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-02-26 21:28:04 +08:00
Peng Fan 3bea10bd31 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>
2020-02-26 15:13:34 +08:00
Peng Fan b027bfd918 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>
2020-02-26 15:13:04 +08:00
Ye Li 80ef9839d8 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>
2020-02-25 21:20:20 -08:00
Alex Marginean 1c1b132b4b 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 272cb97a0343176f098b9a6705b90c121433d920)
2020-02-26 04:17:48 +08:00
Camelia Alexandra Groza 3d4b4f3321 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 a60ce25d4a011bdb0aefcbab9d13029b975c8cb7)
2020-02-26 04:17:47 +08:00
Robert Chiras a29e420506 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 2f794bb2f88e18e43dab31f2edea98177fce4e95)
2020-02-26 04:17:46 +08:00
Gagandeep Singh ae43adb972 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 5c1ec7a8a42de9b144ee87177c016270a3334492)
2020-02-26 04:17:45 +08:00
Robert Chiras 3160145163 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 f46b5624b3a15874019ebf27d9a27d8742abc22f)
2020-02-26 04:17:44 +08:00
Dong Aisheng c40ba5e597 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 7220fa2e1a02e471f5d3276601709f3df372ee63)
2020-02-26 04:17:44 +08:00
Bhupesh Sharma b5b0fe902d 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 9b27020c75fe40ef3d959d6660d09278577a5931)
2020-02-26 04:17:43 +08:00
Alex Marginean 9cdef9a04a 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 3ad82375cfc4d4f6df68ebe02164995de654001c)
2020-02-26 04:17:39 +08:00
Alex Marginean 80bcf697df 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 779c69e4ae9d1535e958cda7309f030293e3c45c)
2020-02-26 04:17:38 +08:00
Alex Marginean af9560bd3b 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 0462421755cb92b3ee9ace632d15a9a19db9f14c)
2020-02-26 04:17:38 +08:00
Alex Marginean fe7299f8a1 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 4085dc853441dd17b53a95d19f324d76d946fee3)
2020-02-26 04:17:37 +08:00
Vladimir Oltean 3a2eb6f453 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 b180bb294ef127e40f11d186443aed162cd5d270)
2020-02-26 04:17:37 +08:00
Vladimir Oltean bef7199d2b arm64: dts: ls1028a-rdb: Enable SGMII AN for the QSGMII switch ports
This enables monitoring of link status and AN. It should also physically
enable SGMII AN with the VSC8514 PHY, but in practice that is still
hardcoded as "on" in the PHY driver, at the moment. So since Felix
actually disables SGMII AN when this DT property is absent, this would
result in an in-band AN mismatch between the MAC and the PHY. So this
property is required for the moment for this MAC/PHY combination.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
(cherry picked from commit 57575d3b92a1b2ca9fb0e75dcf20d8283df2dcfd)
2020-02-26 04:17:37 +08:00
Vladimir Oltean 807e706700 Revert "arm64: dts: LS1028a-rdb: use Ethernet PHY interrupt"
This reverts commit 841edb9867.

There are 2 separate issues with interrupts on the LS1028A-RDB board:

1. The GPIO1_DAT25 interrupt line is shared, so there is a real risk of
   race conditions if used in edge-triggered mode, as we currently do.
   This can be illustrated in the following setup:
   - Take 2 LS1028A-RDB boards
   - Connect swp0 to swp0, swp1 to swp1, swp2 to swp2
   - Plug/unplug the power to board 2, 10 times in a row. This will make
     the PHYs lose link simultaneously.
   - Notice that at one point, the net devices on board 1 remain in a
     state where not all the links are down (visible in "ip link"):

     5: swp0: <BROADCAST,MULTICAST,UP> mtu 1468 qdisc pfifo_fast master br0 state UP mode DEFAULT group default qlen 1000
         link/ether be:97:36:d3:3d:70 brd ff:ff:ff:ff:ff:ff
     6: swp1: <BROADCAST,MULTICAST,UP> mtu 1468 qdisc pfifo_fast master br0 state UP mode DEFAULT group default qlen 1000
         link/ether be:97:36:d3:3d:71 brd ff:ff:ff:ff:ff:ff
     7: swp2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1468 qdisc pfifo_fast master br0 state DOWN mode DEFAULT group default qlen 1000
         link/ether be:97:36:d3:3d:72 brd ff:ff:ff:ff:ff:ff

   This cannot be solved by making the interrupts level-triggered,
   because the gpio-mpc8xxx controller only supports generating
   edge-triggered interrupts. So the effective reality is that we
   cannot not use shared interrupts connected to the gpio1
   interrupt-parent.

2. The uBUS1 and uBUS2 slots that share this interrupt line with the
   Ethernet PHYs are not pulled up by default, they are left floating on
   current revisions of the LS1028A-RDB boards. So sufficient electrical
   noise on these lines will make the CPLD think there's an interrupt
   request, so it asserts the GPIO1_DAT25 signal and leaves it asserted.
   This means that the PHYs on those boards will never have link when
   used in interrupt mode, because their IRQ will be masked by the uBUS
   line that is erroneously kept asserted. In poll mode this issue does
   not occur.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
(cherry picked from commit f0d8d28ed417194f9e83e495949225d18d1505c7)
2020-02-26 04:17:33 +08:00
Kuldeep Singh e8df7f7543 arm64: dts: ls1012ardb: Update qspi node property
Use generic node name and specific label name.
Add m25p,fast-read.

Use dt-bindings constants in interrupts instead of using numbers.

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
(cherry picked from commit 58f10e679079d68275f961f131bb146abf532b6d)
2020-02-26 04:17:32 +08:00
Kuldeep Singh d72fc501f7 LF-18-2 arm64: dts: ls1046ardb: Update qspi node dts properties
Use compatibles as "jedec,spi-nor" to probe flash without displaying
warning: found s25fs512s, expected m25p80.
Remove "fsl,qspi-has-second-chip" as new driver doesn't use it anymore.
Update rx and tx width to 1.

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
(cherry picked from commit 538bebe00be17f49d6f4c5b5b75be67ba4bf6ed4)
2020-02-26 04:17:32 +08:00
Kuldeep Singh 61f6db3cb3 LF-18-1 arm64: dts: ls1088ardb: Update qspi dts node properties
Use compatibles as "jedec,spi-nor" to probe flash without displaying
warning: found s25fs512s, expected m25p80.
Also remove "fsl,qspi-has-second-chip" property as new driver doesn't use
it anymore.

Update dtsi compatibles to use "fsl,ls2080a-qspi".

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
(cherry picked from commit 7afe154e046717c9c6249ac7ded256563236811a)
2020-02-26 04:17:32 +08:00