1
0
Fork 0
Commit Graph

142688 Commits (d71dca8f5dff2e0c657137fb4dee0a4accd78a98)

Author SHA1 Message Date
Haibo Chen ee9c297415 MLK-19652 ARM64: dts: imx8mq-evk: add touch and mipi-hdmi support for both B4 and B3 board
For imx8mq-evk board, B4 board change touch/mipi-hdmi connected i2c bus from i2c1 to i2c3.
So this patch make the touch and mipi-hdmi work for both B4 and B3 board.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-10-29 11:10:38 +08:00
ming_qian 4823280226 MLK-19621: Remove power settings from the encoder driver for mx8qm
1.remove vpu_set_power
2.split vpu_probe into several functions

Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-10-29 11:10:38 +08:00
Li Jun ff8a11ea55 MLK-19329 ARM64: dts: imx8mm-evk: disable usbotg2 data
As the typec2(usbotg2) is always with charger on, which makes the usbotg2
can't enter runtime suspend, thus high bus can't be released, disable it
for now and will improve high bus only for data communication.

Signed-off-by: Li Jun <jun.li@nxp.com>
(cherry picked from commit 5b4290c370064cf9aa3a5e5c0cd12194f42aea7a)
2018-10-29 11:10:38 +08:00
Huang Chaofan 8c11b1de1d MLK-19613 VPU: Update arm2 dts files for vpu decoder and encoder
Update arm2 dts files for vpu decoder and encoder

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-10-29 11:10:38 +08:00
Oliver Brown dee9ea6d41 MLK-19420-2 arm64: dts: imx8mq: Remove video pll 2
Moving video pll2 control to the display driver to allow more flexibility
for setting rates.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2018-10-29 11:10:38 +08:00
Viorel Suman 086c091b0b MLK-19573-4: ARM64: dts: imx8mq-evk: enable SAI1 DSD playback
Allow SAI1 to handle DSD playback.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit ffc36b7d6ae7a2472fc3ae2ea7e5eec4d7379e7f)
2018-10-29 11:10:38 +08:00
Robby Cai 765b3e574d MLK-19595 arm: dts: imx: add emmc, nand and btwifi support on imx6ulz
note for the rework:
eMMC on EVK board has pad conflict with NAND and Micro-SD.
NAND on EVK board has pin conflict with QSPI and SD2(eMMC).

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
2018-10-29 11:10:38 +08:00
Bai Ping 8dc62bb030 MLK-19589-04 ARM: dts: imx: add dts support for i.mx6ulz evk board
The i.MX6ULZ is sw compatible with i.MX6ULL, and the EVK board has
no big difference, so include i.mx6ull evk dts file do reduce code
redundancy.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
2018-10-29 11:10:38 +08:00
Bai Ping c5846906da MLK-19589-01 ARM: imx: add imx6ulz basic support
The i.MX6ULZ is new SOC of the i.MX6 series. it
is SW compatile with i.MX6ULL, so most of the code
can be reuse from i.MX6ULL. To maximum the SW reuse,
i.MX6ULZ don't have an independent SOC id in anamix.
so a dummy ID is used to identify it.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
2018-10-29 11:10:38 +08:00
Richard Zhu 412cb894fe MLK-19591 ARM64: dts: change the vdev-nums accordingly
Add the missing vdev-nums updates for cm41 on imx8qm
mek board.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Acked-by: Jason Liu <Jason.hui.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Richard Zhu 14cad6fb9e MLK-19558-2 ARM64: dts: enable multi-vdev on one rpmsg channel
Support the multi-vdev on one rpmsg channel on 8qm/qxp mek boards.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-10-29 11:10:38 +08:00
Sandor Yu 23c3e8bdf4 MLK-19583-2: arm64: dts: Add interrupter for imx hdmi rx
Add cable plugin and plugout interrupter for imx hdmi rx

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2018-10-29 11:10:38 +08:00
Ye Li d39d9174d4 MLK-19575-3 arm64: dts: Add DTS file for iMX8MM DDR4 EVK board
Add new DTS file for iMX8MM DDR4 EVK board, which disables the busfreq,
flexspi, eMMC and add NAND support.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-10-29 11:10:38 +08:00
Ye Li 89f6cb15cb MLK-19575-2 arm64: dts: imx8mm: Add gpmi and apbh-dma nodes
Add the gpmi and apbh-dma nodes to fsl-imx8mm.dtsi file.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Han Xu <han.xu@nxp.com>
2018-10-29 11:10:38 +08:00
Shengjiu Wang 94abece15a MLK-19581-5: ARM64: dts: support ak4497 over rpmsg in default
Enable LPA in default.
Change the module name, for alsactl can restore the default
setting by name

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 6827c27c07e5563a11d0b77456672d05ed5db650)
2018-10-29 11:10:38 +08:00
Joakim Zhang eb0f497c33 MLK-19557-1 can: flexcan: fix CAN can't suspend on MX8QM
The transceiver of FLEXCAN is regulated by i2c I/O Expander which
interrupt-parent is intmux, so we must set i2c I/O Expander power domain
as the sub power domain of the intmux.

In principle, the device tree describes the hardware, so the device tree
topology should follow the hardware structure. Here move the definition of
FLEXCAN to more suitable location.

Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2018-10-29 11:10:38 +08:00
Xiaoning Wang 8afc8c4e16 MLK-19452-3 ARM: dts: Add spi slave support for imx7ulp
Add "spi-slave" attribute for recognizing slave mode.
If it is not in slave mode, please delete this attribute.
Usage can be found at spi-fsl-lpspi.txt.

Modify "Makefile" to build "imx7ulp-evk-spi-slave.dtb".

Signed-off-by: Xiaoning Wang <xiaoning.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Xiaoning Wang 1f853ecea3 MLK-19452-2 ARM: imx_v7_defconfig: Add spi slave mode
Add spi slave mode and enable spi slave time/system control
functions.

Example for SPI slave time:
SLAVE:  # echo spi-slave-time > /sys/class/spi_slave/spi0/slave
MASTER: # spidev_test -D /dev/spidev0.0 -p dummy-8B -v
    spi mode: 0x0
    bits per word: 8
    max speed: 500000 Hz (500 KHz)
    RX | 00 00 04 6D 00 09 5B BB __ __ __ __ __ __ __ _...
	       ^^^^^    ^^^^^^^^
	       seconds  microseconds

Example for SPI slave system control:
SLAVE:  # echo spi-slave-system-control >
			    /sys/class/spi_slave/spi0/slave
BOTH:   # reboot='\x7c\x50'
BOTH:   # poweroff='\x71\x3f'
BOTH:   # halt='\x38\x76'
BOTH:   # suspend='\x1b\x1b'
MASTER: # spidev_test -D /dev/spidev0.0 -p $suspend
			    or $reboot, $poweroff, $halt

Signed-off-by: Xiaoning Wang <xiaoning.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Andy Duan 944c4b8ef2 MLK-19579 arm64: dts: imx8qm/qxp mek: reduce enet1 port drive strength
Reduce imx8qm/qxp mek board enet1 port pins drive strength by modifing
PDRV to 0x1 to pass EMI test.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2018-10-29 11:10:38 +08:00
Aymen Sghaier e4d131540d MLK-16951 security: Add tcrypt to be built out as module and other modules
Enable CONFIG_CRYPTO_TEST=m needed by Test / Validation Team, and then
 other needed modules used by tcrypt are enbled.

Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
(cherry picked from commit dcae3b446bdb542122eca2debc974e6528ff137b)
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
2018-10-29 11:10:38 +08:00
Shengjiu Wang 41a6bc1c24 MLK-19565-2: ARM64: dts: add new dts for m4 audio playback
add new dts for m4 audio playback, which support cs42888 through
rpmsg

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit f19da36b937cec95a6bd271d6160dbb718e658fa)
2018-10-29 11:10:38 +08:00
Peng Fan bf95ab9171 MLK-19554 ARM64: dts: 8qm domu: enable power key and correct dev_emmc
Android will check /dev/input, so enable sc_pwrkey.
Correct dev_emmc path, because the address has changed use the physical
address.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-10-29 11:10:38 +08:00
Bai Ping dce2ebecf6 MLK-19555 arm: dts: imx: update the soc voltage of 900mhz setpoint on imx6ull
According to the latest datasheet(Rev,1.3 08/2018). the VDD_SOC voltage
need to be updated to 1.225V when cpu running at 900MHz. we need to add
25mV margin to cover the board tolerance and IR drop. so the voltage
need to be updated to 1.25V.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
2018-10-29 11:10:38 +08:00
Xiaoning Wang 232a8a1178 MLK-14852 ARM: dts: fix imx7d boot spi dma setup error
Add dmas and dma-names for ecspi1~4 to fix boot error:
"spi_imx 30840000.ecspi: dma setup error -19, use pio".

Signed-off-by: Xiaoning Wang <xiaoning.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Laurentiu Palcu 7eca37dee9 MLK-18848-2: drm: imx: dcss: swap vblank and ctxld_kick interrupts
During boot time, the interrupt latency can reach 20ms due to UART
holding the interrupts disabled. If, during this time, VBLANK (LINE_0)
and CTXLD_KICK (LINE_1) are triggered, the handlers will be called in
the order of the irq_steer lines (vblank handler first and ctxld_kick
second). This may lead to "vblank wait timed out" warning messages from
DRM core, because the 50ms wait time is exceeded. Especially when
display is lower than 30fps.

Swapping the interrupt lines will have the ctxld_kick interrupt handler
always be called first, kicking the context loader ON before VBLANK
notification is sent to userspace.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2018-10-29 11:10:38 +08:00
Robby Cai 02dfb90df8 MLK-19537-1 arm64: fsl-imx8mm.dtsi: use gpr node for MIPI CSI PHY reset
Use GPR node to simplify codes for MIPI CSI phy reset

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 0f576c50e71cadf43755d44d102beb813595d007)
2018-10-29 11:10:38 +08:00
Haibo Chen c0d09ba412 MLK-19431 ARM64: dts: fsl-imx8mm-evk: add off-on-delay for usdhc2
Make sure the time between power off and power on sd card meet the
sd SPEC, otherwise after suspend and resume, SD3.0 card will no longer
be recognized as SD3.0, but SD2.0

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit 1ee3ea929e89fc1c8eeab129d8e64179d3dd4afa)
2018-10-29 11:10:38 +08:00
Haibo Chen 4f56b00cec MLK-18835 ARM: dts: imx7ulp-evk: add off-on-delay for usdhc
Make sure the time between power off and power on sd card meet the
sd SPEC, otherwise after suspend and resume, SD3.0 card will no longer
be recognized as SD3.0, but SD2.0

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Anson Huang 0e80fec3b0 MLK-19511-2 ARM64: dts: freescale: imx8qm: move cm4_intmux early_power_on to board dtb
When early_power_on is present in power domain dtb node, it
will be powered on during resume regardless of whether the
related module is enabled or NOT, this will cause cm4_intmux
always power ON after first time resume when cm4_intmux is
NOT enabled.

So move this early_power_on property to board level dtb, ONLY
when cm4_intmux is enabled, then this property is added.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-10-29 11:10:38 +08:00
Anson Huang a4540452f1 MLK-19511-1 ARM64: dts: freescale: imx8dx: move cm4_intmux early_power_on to board dtb
When early_power_on is present in power domain dtb node, it
will be powered on during resume regardless of whether the
related module is enabled or NOT, this will cause cm4_intmux
always power ON after first time resume when cm4_intmux is
NOT enabled.

So move this early_power_on property to board level dtb, ONLY
when cm4_intmux is enabled, then this property is added.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-10-29 11:10:38 +08:00
Peng Fan e1291723ca MLK-19450-2 ARM64: dts: 8qm: support cm41 rpmsg with DomU
1. Dom0 dts include fsl-imx8qm-mek.dtsi
2. Add /memreserve/ according to reserved-memory no-map node, then
   xen will not use these memory. The memory region are used by
   vpu/dsp/rpmsg, so xen should not touch them.
3. correct dom0 cma area, CM4 has limitation that the max access address
   is 0xE0000000, so the alloc-ranges should consider the limitation,
   otherwise rpmsg dma allocation will alloc memory higher than
   0xE0000000 and M4 will crash.
4. Hook CM41 with SMMU, added the addresses the CM41 will access, then
   after SMMU enabled, CM41 could access the address. To support
   Rear-View Camera, CM41 is kicked off by SCU at very early stage,
   DomU memory almost has no chance to have machine address 0x90000000
   included which is the vring desc buffer. So we have to enable SMMU
   to let CM41 access the memory.
5. Since DomU Guest RAM0 base is moved to 0x80000000, Let's change DomU
   ip address space to their machine address, since there is no conflict
   now.
6. Add reserved-memory in DomU dts, we enabled xen xl to copy that
   to DomU dtb.
7. Mark PCI/VPU as xen,passthrough, but not supported in DomU now.
8. Add Pixel_combiner2 passthrough to make dpu2 display work.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Anson Huang <Anson.Huang@nxp.com>
2018-10-29 11:10:38 +08:00
Peng Fan f6880de17d MLK-19450-1 ARM64: dts: 8qm: create dtsi for mek board
Rename fsl-imx8qm-mek.dts to fsl-imx8qm-mek.dtsi and keep /dts-v1/ in
fsl-imx8qm-mek.dts, then let fsl-imx8qm-mek.dts include
fsl-imx8qm-mek.dtsi.

This is to prepare adding /memreserve/ for mek dom0 dts.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Anson Huang <Anson.Huang@nxp.com>
2018-10-29 11:10:38 +08:00
Teo Hall 364ceaf159 MLK-19504: Add missing device tree nodes for QXP
Add missing device tree nodes necessary for display
to probe correctly.

Signed-off-by: Teo Hall <teo.hall@nxp.com>
2018-10-29 11:10:38 +08:00
Anson Huang aba3683812 MLK-19080 ARM64: dts: freescale: imx8x: adjust passive trip point setting
Adjust passive trip point temperature to be 20 degree C
below than the critical trip point temperature on i.MX8X
platforms.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit cefa63c1b9873e5e60f4db1e77bfecfaf18ff799)
2018-10-29 11:10:38 +08:00
Andy Duan 0e7bc29436 MLK-19464 ARM64: defconfig: build in IPv6
For mfgtool (UUU) requirement, it needs to build in IPv6 for nfs
rootfs mount.

Generated with the following commands:
make defconfig
make savedefconfig
cp defconfig arch/arm64/configs/defconfig

Reviewed-by: Frank Li <frank.li@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2018-10-29 11:10:38 +08:00
Viorel Suman f982517626 MLK-19432-2: ARM64: dts: imx8mq-evk: MQ specific ak5558 compatible
Use MQ specific ak5558 sound card compatible string in order to
handle properly 1:2 bclk:mclk SAI ratio.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 20d6d65c330a1560407bc99e0a7f90225ceaf7d8)
2018-10-29 11:10:38 +08:00
Liu Ying 89a7b01ad8 MLK-19413-7 arm64: dts: fsl-imx8qxp-mek: Enable pixel combiner
This patch enables pixel combiner for the i.MX8qxp MEK platform.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Liu Ying d81d02c22e MLK-19413-6 arm64: dts: fsl-imx8qm-mek: Enable pixel combiners
This patch enables pixel combiners for the i.MX8qm MEK platform.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Liu Ying b4316e2d9b MLK-19413-5 arm64: fsl-imx8x-arm2.dtsi: Enable pixel combiner
This patch enables pixel combiner for the i.MX8x ARM2 platform.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Liu Ying fd20c19021 MLK-19413-4 arm64: fsl-imx8q-arm2.dtsi: Enable pixel combiners
This patch enables pixel combiners for the i.MX8qm ARM2 platform.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Liu Ying da7ac9c39d MLK-19413-3 arm64: fsl-imx8dx.dtsi: Add pixel combiner node
This patch adds pixel combiner node support for i.MX8dx DT
file and hooks the pixel combiner node to the DPU node.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Liu Ying d6c051475c MLK-19413-2 arm64: fsl-imx8qm.dtsi: Add pixel combiner support
This patch adds pixel combiner nodes support for i.MX8qm DT
file and hooks the pixel combiner nodes to the DPU nodes.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Peter Chen c28c29327b MLK-19258-6 ARM64: dts: fsl-imx8mm-evk: add two parameters for picophy tuning
With these two parameters tuning, it can pass USB eye diagram at evk board.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Peter Chen c6fc74942f MLK-19258-4 ARM64: dts: fsl-imx8mq.dtsi: enable USB2.1 LPM support
With these two properties enabled, the dwc3 driver at 850D can ACk
LPM packet from host, and the later suspend/resume signals are correct.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Peter Chen db54201c55 MLK-19258-2 ARM64: dts: fsl-imx8qm-device.dtsi: change name of device mode
To satisfy grep "usb" for some scripts in all i.mx platforms.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Peter Chen 28ba8730b0 MLK-19258-1 ARM64: dts: fsl-imx8dx: change name of device mode
To satisfy grep "usb" for some scripts in all i.mx platforms.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Bai Ping d19f473f2f MLK-19408: ARM64: dts: freescale: add timer stop in suspend flag on imx8mm
When system enter suspend, the system counter timer will stop counting.
So need to add "arm,no-tick-in-suspend" flag. Otherwise, the system
timekeeping will be wrong.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 1e15dda8c50a474891ccd1cb7fa7b41a8abbadc2)
2018-10-29 11:10:38 +08:00
Haibo Chen d2c6d8eb75 MLK-19323 ARM64: dts: imx8qxp: change back usdhc clock parent to PLL0
According to IC reply, 8QXP B0 still has some issue on its DPLL.
Though we still not find any issue when usdhc use PLL0(DPLL), but better
to change back to PLL1(APLL) just in case any problem. So this patch change
back the usdhc clock parent to PLL1.

To track the history, refer to commit 7834eee6dfa8 ("MLK-17188-2
ARM64: dts: imx8qxp: assign usdhc clock parent") and commit 0611d9138e6e
("MLK-18003 ARM64: dts: imx8qxp: change back usdhc clock parent to PLL0").

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Xianzhong ca94249139 MGS-4192 dts: gpu: add board compatible string
add board compatible string for imx7ulp and m845s

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2018-10-29 11:10:38 +08:00
Robert Chiras b1ce455ee4 MLK-19243: arm64: dts: fsl-imx8mq-evk: fix adv7535 i2c master
Since the rev. B4 of the 8MQ EVK board, the i2c of the DSI was moved
from i2c1 to i2c3. Since ADV7535 needs these i2c lines, it was the only
one affected by this change.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-10-29 11:10:38 +08:00