1
0
Fork 0
Commit Graph

142823 Commits (3612d5be22cdbef9b04782e7344c4da252eb31a2)

Author SHA1 Message Date
Daniel Baluta b96a6eb09e MLK-20095: arm64: dts: Add support for ASRC with QXP arm2 board
Similar with QXP MEK we switch to ASRC to support
multiple rates.

Thus we introduce:
	- asrc clocks
	- make asrc PD depend on esai PD

Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
(cherry picked from commit d804a5cac96d7d6071a2b4808a6ebe262f20952c)
2018-12-03 15:45:03 +02:00
Robert Chiras 027f47f2b8 MA-13638-2: arch: arm64: dts: Add display-timins node for dcss-rm67191
DCSS needs special display timings for MIPI-DSI panel in order to do a
proper display on it.
In order to not break other display controller using this panel, add
custom display-timings for this specific use-case

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2018-12-03 15:43:43 +02:00
Richard Zhu 48b2f12afd MLK-20507 arm64: dts: use clkreq as gpio
- Since the l1ss is not enabled yet, configure
the clkreq# as gpio on 8qm/qxp mek boards.
Re-configure the clkreq# as input and open
drain when l1ss is enabled later.
- Correct the perst# configurations of 8qm.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
(cherry picked from commit cb7ec372ae90798a46b11e979243c3f058d8b26f)
2018-11-30 15:11:43 +08:00
Andy Duan c06b71e6b8 arm64: dts: imx8qm/qxp: correct the interrupt line for adv7535
Correct the interrupt line for adv7535.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Acked-by: Fancy Fang <chen.fang@nxp.com>
2018-11-29 13:14:36 +02:00
Robert Chiras d5968fe8d2 Revert "MA-12957: arm64: dts: imx8qm/qxp mek: Configure interrupts for adv7535"
This commit is breaking suspend/resume, so reverting it until a fix is
provided.

This reverts commit 47427ff4ce.
2018-11-28 15:10:32 +02:00
Robert Chiras cceeb839f4 Revert "MA-12957: arm64: dts: imx8qm/qxp mek: Correct interrupts for adv7535"
This commit is breaking suspend/resume, so reverting it until a fix is
provided.

This reverts commit 4a004884a4.
2018-11-28 15:09:56 +02:00
Daniel Baluta 7c5c84b7fe MLK-20095-2: arm64: dts: Make pd_asrc0 dependent on pd_esai0
Because now DSP supports ASRC we need to power up pd_asrc0
each time pd_esai0 is powered up.

Current power domain tree looks like this:

	* pd_audio
	  * pd_audio_clk0
	    * pd_audio_clk1
	      * pd_dma0_chan6
	        * pd_dma0_chan7
	          * pd_esai0
	      * pd_dma0_chan0
	        * pd_dma0_chan1
	          [....]
	         * pd_asrc0

We need to make pd_asrc0 dependent on pd_esai0, thus we move
pd_dm0_chan6 node as a child of pd_asrc0.

Thus, the new power domain hierarch will look like this:

	* pd_audio
	  * pd_audio_clk0
	    * pd_audio_clk1
	      * pd_dma0_chan0
	        * pd_dma0_chan1
	          [....]
	         * pd_asrc0
	           * pd_dma0_chan6
	             * pd_dma0_chan7
	              * pd_esai0

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 04c4825baad9344e5f3dfa1c69de3957199d3ab0)
2018-11-28 11:48:45 +02:00
Daniel Baluta 15b3af77cd MLK-20095-1: arm64: dts: Trim ASRC resources for DSP
We introduce ASRC clocks (only "ipg", "mem", "asrc0..3" are
relevant for us), then remove ASRC related EDMA channels and
interrupts lines because they will be managed by DSP.

There is one more step required: fire up the power domain for ASRC
this is tricky and will be done in the next patch.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit e9e613dc18a732e82227028f1c822862448ddc22)
2018-11-28 11:48:39 +02:00
Andy Duan 7e0a54c772 MLK-20482 arm64: dts: imx8qm/imx8qxp: remove the LP 32KHz input for Murata 1CQ module
Once 32Khz low power clock enable for Murata 1CQ module, Bluetooth core
may enter low power idle status that cause HCI communication error when
HCI device is down for 2 seconds after initialization.
Currently, remove the LP 32Khz input for the module.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2018-11-28 16:58:12 +08:00
Richard Zhu 4de7601b82 MLK-20472 arm64: dts: correct the pad configurations of pcie
Correct the pad confirations of the pcie perst and epdev_on
on 8qm/qxp platforms.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit 28d5b68c1fa7568a2444915b71fab12e8a2d4350)
2018-11-28 16:40:03 +08:00
ming_qian 7239adb681 MLK-20476:VPU Encoder:define max resolution and framerate in dts
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-28 09:09:45 +08:00
Sandor Yu 7f31a41bae MLK-20471-2: ARM64: dtsi: imx8qm-hdmi: Move sai_hdmi_rx to right file
Move sai_hdmi_rx to fsl-imx8qm-mek-hdmi-in.dts.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit f9e95e95796830ed6c22b95f96be9370461796fe)
2018-11-27 16:06:26 +08:00
Sandor Yu 29c3ead874 MLK-20471-1: ARM64: dtsi: imx8qm-hdmi-in: Connect HDMI RX to ISI2
ISI channel 0,1 or 2,3 could concatenate to support 4K image.
ISI channel 1,2 couldn't support such function,
otherwise image will lost line data.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit 18d3cf890a41ac773aefddd2ebe285d4b0197f5d)
2018-11-27 16:06:26 +08:00
Andy Duan 1903129efe MLK-20456 arm64: dts: imx8qm: keep wlreg_on regulator during system suspended
Keep wlreg_on regulator on during system suspended status due to
external wifi module power requirement. Also keep the old Murata
1CQ M.2 card support.

To set the PIN to "latch" status before the GPIO controller is power
off during suspend, and set the PIN to "PASS" status after GPIO
controller status restored during system resume back.

Reviewed-by: yang.tian <yang.tian@nxp.com>
Tested-by: yang.tian <yang.tian@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit: 015599e40fd5cc942f8f6a8d4b6c3475440a114e)
2018-11-27 12:55:56 +08:00
Robert Chiras 4a004884a4 MA-12957: arm64: dts: imx8qm/qxp mek: Correct interrupts for adv7535
This patch fixes the interrupts used by ADV7535. Initial patch
configured the GPIO0 IO00 as IO pin for the DSI_INT, used by ADV7535,
but the correct one is IO01, since IO00 is used by PWM.

Fixes: c2f1eceb5629 ("arm64: dts: imx8qm/qxp mek: Configure interrupts
for adv7535")
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-11-26 13:27:57 +02:00
Ye Li 0c50d24e76 MLK-20463 arm64: dts: Disable flexspi in iMX8MM EVK M4 DTS
M4 will run flexspi XIP image on iMX8MM. Thus, we have to disable flexspi
in M4 dedicated DTS, otherwise the M4 will crash because flexspi probe
in kernel will re-configure the controller.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
(cherry picked from commit 2a370901a663bb518303ed2d5e774f1faa41f5fd)
2018-11-26 00:30:44 -08:00
Clark Wang fd2b3f6194 MLK-20351-1 dtsi: imx8mm: correct the DMA channel for ECSPI
Fix the wrong configuration of "dmas" in dts. This leads the spi
transfer error in dma mode and cause this issue.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
2018-11-26 15:00:07 +08:00
Clark Wang 6535f44c58 MLK-20440 dts: ecspi: Add ecspi and its slave dts files for imx6ul
For ECSPI test, add these two dts files.
imx6ul-14x14-evk-ecspi.dts: enable ecspi4 function. Because ethernet2
uses the same pins with ecspi4, so disable fec1/fec2.
imx6ul-14x14-evk-ecspi-slave.dts: Add "spi-slave" attribute to enable
slave mode.

Wire Connection:
J1704:
	3 - SCS
	4 - MOSI
	5 - MISO
	6 - SCK
	7 - GND

Modify "Makefile" to build these two dts files.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
2018-11-26 14:59:54 +08:00
Cedric Neveux bf15896c7c MLK-20450 Fix Linux NO SMP kernel with OPTEE
- Fix busfreq optee mode to not install the linux assembly function
   used to synchronize all CPU in case of SMP mode
   - Fix l2cache OPTEE/Linux share mutex operations

Signed-off-by: Cedric Neveux <cedric.neveux@nxp.com>
(cherry picked from commit 68f47bb3328e56c63d647f855fc654f4736658ce)
2018-11-23 15:42:13 +01:00
Viorel Suman e1be71bc77 MLK-20328-9: ARM64: dtsi: imx8qm-device: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit e1f214bd631bda58ab7850866447a53e4a479ac8)
2018-11-23 10:03:07 +02:00
Viorel Suman 2e1e8f2dd4 MLK-20328-8: ARM64: dtsi: mx8mq: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit 1a8e10215cc07c83b0e26b55fef94aae18151633)
2018-11-23 10:03:07 +02:00
Viorel Suman 43b6e97b66 MLK-20328-7: ARM64: dts: mx8mq-evk: adjust format, add 2 pins masks
a) Default value must be prefixed by "0".
b) Map 2 pins case to rx=0xff tx=0x11.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit cb4d69f098ee003edc2dcfec7075b043a78345e6)
2018-11-23 10:03:07 +02:00
Viorel Suman c667eeda42 MLK-20328-6: ARM64: dts: mx8mq-evk: ak4497: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit a38075f068fd07dda55cb5bb5d74450ba29d6483)
2018-11-23 10:03:07 +02:00
Viorel Suman 749b10a9e1 MLK-20328-5: ARM64: dtsi: mx8mm: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit b81a9884f85f750673a4ee0da60096d330add7a5)
2018-11-23 10:03:07 +02:00
Viorel Suman 3caa36e053 MLK-20328-4: ARM64: dts: mx8mm-evk: adjust format, add 2 pins masks
a) Default value must be prefixed by "0".
b) Map 2 pins case to rx=0xff tx=0x11.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit bb1d5eac8b6ba4371ec04f362071c06cd3f5066b)
2018-11-23 10:03:07 +02:00
Viorel Suman 3d1c95dc27 MLK-20328-3: ARM64: dts: mx8mm-evk: ak4497: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit 5252bd4b838eaa849fafdfa42a9e322a012a1e98)
2018-11-23 10:03:07 +02:00
Viorel Suman 61056cf0ca MLK-20328-2: ARM: dts: imx7ulp: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit 4ce702331a6c7b5a84fe4fdc210b62147e04fa84)
2018-11-23 10:03:07 +02:00
Robert Chiras 47427ff4ce MA-12957: arm64: dts: imx8qm/qxp mek: Configure interrupts for adv7535
Configure the interrupt for ADV7535 so that it can generate interrupts
events for HDP when the HDMI cable is plugged in or out.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-11-22 10:35:06 +02:00
Haibo Chen 3b0bcb4df5 MLK-20443 ARM64: dts: fsl-imx8mm-evk-revb: add touch support
Add synaptics_dsx touch support for imx8mm evk revb board.

Acked-by: Andy Duan <fugang.duan@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit 1cf1aaa3f47308f3c7eb09cd8589e3657e5d7cff)
2018-11-22 15:11:33 +08:00
Shengjiu Wang 3a30144862 MLK-20417-2: ARM64: dts: disable intmux in imx8qm m4 dts
disable intmux in m4 dts for it is component in m4 domain

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 252831d4b0699c9ee609613a7c00ab8f77bfbeb9)
2018-11-20 16:39:54 +08:00
Shengjiu Wang 5441cb25be MLK-20417-1: ARM64: dts: disable intmux in m4 dts
disable intmux in m4 dts for it is component in m4 domain

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 2742df294bac6e1ccc1ed7e899c0b5c85a51ccbf)
2018-11-20 16:39:54 +08:00
Anson Huang 4a8f5b8908 MLK-20140 ARM64: dts: freescale: imx8mm-ddr4-evk: correct LED GPIO pin
On i.MX8MM DDR4 EVK board, the GPIO pin to control LED is
NAND_CE3_B, correct it to make LED work properly and avoid
below failure message during kernel boot up:

[ 3.274994] leds-gpio leds: Error applying setting, reverse things back
[ 3.275015] leds-gpio: probe of leds failed with error -22

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2018-11-20 13:36:31 +08:00
Peng Fan cc98fe35bb MLK-20392 ARM64: dts: imx8qxp: fix dom0 boot
Rename fsl-imx8qxp-mek.dts to fsl-imx8qxp-mek.dtsi.
remove /dts-v1/ from dtsi.
Add memreserve for dom0 dts.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 491045dead2f3294cb5ca78a6e667af00495ae48)
2018-11-16 18:57:15 +08:00
Huang Chaofan 18580d12be MLK-20350 VPU: Reduce RPC size and remove decoder_str in dts
Reduce RPC size and remove decoder_str in dts for vpu decoder

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-16 10:23:54 +08:00
Shengjiu Wang 0827d5636a MLK-20357-2: ARM: dts: add audio routing for wm8960
add audio routing for wm8960 in dts.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-15 10:25:02 +08:00
Cedric Neveux a5b3a6a114 MLK-20052 L2 Cache TEE/Linux shared mutex
Modification of the L2 Cache operations to use
   a TEE/Linux Shared mutex

Signed-off-by: Cedric Neveux <cedric.neveux@nxp.com>
2018-11-14 16:56:02 +01:00
Peng Fan 09586d25af MLK-20347 ARM64: imx8qm: not assign HDMI for domu
HDMI power domain is under DC0, however DC0 is used by the first OS,
so domu has no permission to use HDMI.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2018-11-13 18:13:45 +08:00
Xianzhong 6d8398135f MGS-4376: gpu: dts: increase reserved size to 256M for imx8
alloc_contig_range easily return -EBUSY when try to isolate pages,
there are lots of messages with PFNs busy when run GPU tests.
[  622.370671] alloc_contig_range: [4ea70, 4ea7c) PFNs busy
[  626.518072] alloc_contig_range: [4ea90, 4ea9c) PFNs busy

these problems are related wht CMA migration for fragments,
need enlarge GPU reserved size to reduce CMA fragments.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2018-11-13 01:51:43 +08:00
ming_qian 846e41c2e7 MLK-20275:VPU Encoder:set proper rpc size
boot-region: 2M per core
rpc-buf-size: 512K per core
print-buf-size: 512K per core

Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:34:40 +08:00
Leonard Crestez 12bfac0d49 MLK-20309 ARM64: dts: Remove fsl-imx8mm-evk-inmate.dtb from makefile
The dts file was removed but makefile was not updated so build broke.
Fix by removing from makefile.

Fixes: a9c2aa010d ("MLK-20252 ARM64: dts: correct imx8mm root memory")

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-09 13:04:05 +02:00
Peng Fan 486074baf2 MLK-20302-2 ARM64: dts: imx8qm: add rfkill for domu car
Add rfkill node for domu car for bluetooth usage.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2018-11-09 15:18:04 +08:00
Peng Fan 022e1590f3 MLK-20302-1 ARM64: dts: imx8qm: add pl031 node
Add rtc pl031 and a dummy clock node.

The pl031 is emulated by XEN, the address and interrupt is fixed in XEN.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2018-11-09 15:17:44 +08:00
Peng Fan a9c2aa010d MLK-20252 ARM64: dts: correct imx8mm root memory
Correct the memory for root linux.
Because rpmsg reserved memory, we could not support 2nd Linux now with
the new memory. So remove the support for 2nd linux.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2018-11-09 15:17:18 +08:00
Shengjiu Wang f68bcda355 MLK-20277-4: ARM64: fsl-imx8mm-evk-m4: enable sai3 with wm8524
change sai3 and wm8524 to be in linux domain

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-09 14:03:12 +08:00
Robert Chiras 07a423d3be MLK-20181-9: arch64: dts: fsl-imx8dx: Add axi clk to adma_lcdif
Currently, the adma_lcdif clocks are wrong. Correct these clocks.
Fix suggestion received from:
Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
2018-11-08 15:07:07 +02:00
Haibo Chen e86788880c MLK-20249 ARM64: dts: fsl-imx8mq-evk.dts: change the i2c bus pad to slow slew rate
i2c2 and i2c3 are work at 100KHz, so no need to set the pad to fast
slew rate, slow slew rate is enough.

This patch can also fix the synaptics_dsx touch work unstable issue.
When config the i2c bus pad to fast slew rate, synaptics_dsx touch
sometimes can't be recognized through i2c bus. Seems this touch
i2c slave device sensitive to the pad slew rate setting.

Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-11-08 10:19:02 +08:00
Robert Chiras 3e782aca60 MLK-20043: arm64: dts: imx8mq-evk: add dual-display support for B3 board
For imx8mq-evk board, B4 board change touch/mipi-hdmi connected i2c bus
from i2c1 to i2c3. The default dual-display dts file is for the B4
board.
This patch adds a new dts file to also support dual-display on B3 (or
lower) boards.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-11-07 16:22:32 +02:00
Andy Duan 2da21792b5 MLK-20258 arm64: dts: imx8qm/qxp mek: configure pin as RTC 32KHz clock output
Configure imx8qm/qxp pin as RTC 32KHz clock output as the
low power clock source for some WIFI chip.

Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2018-11-07 15:39:10 +08:00
Anson Huang 31451d7fa2 MLK-20259 ARM: imx: add soc revision check for i.MX7ULP
i.MX7ULP SoC revision is available from B0, the SIM_JTAG_ID
register bit[31:28] indicates SoC revision as below:

4b'0001        B0
4b'0010        B1

This register is NOT available on A0, tested on B1 chip
as below:

root@imx7ulpevk:~# cat /sys/devices/soc0/revision
2.1

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
Tested-by: Ye Li <ye.li@nxp.com>
2018-11-07 14:45:06 +08:00
Anson Huang 4e70e0b026 MLK-20203-3 ARM: imx: fix coverity issue
This patch fixes coverity issue of "divide by 0".

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-11-06 10:23:01 +08:00