1
0
Fork 0
Commit Graph

142970 Commits (redonkable)

Author SHA1 Message Date
Steinar Bakkemo dc357d2b8c zero-sugar dts: (max77818) fix max77818 int-gpio definition 2020-10-08 01:38:30 +02:00
Steinar Bakkemo 41e3f9a651 zero-sugar config: add max77818 FG/charger drivers to defconfig 2020-10-08 01:38:30 +02:00
Steinar Bakkemo 9a03c3cc7b zero-sugar dts: add max77818 2020-10-08 01:37:33 +02:00
Steinar Bakkemo 9535a516d1 bcmdhd: merge bcmdhd driver into prod kernel tree
Add bcmdhd driver

Add zero-sugar-wifi-cal_defconfig (selecting bcmdhd driver (supporting wl tool)
instead of brcmfmac driver).

Add zero-sugar-wifi-cal.dts (selecting bcmdhd driver (supporting wl tool)
instead of brcmfmac).
2020-10-08 01:37:04 +02:00
Thomas Ingebretsen 676f0a2e29 Wacom INT pullup. Wacom 400kHz i2c. Some changes to wacom driver. 2020-10-08 01:37:04 +02:00
Steinar Bakkemo aa64c108f1 zero-sugar dts: disable CAAM support in kernel 2020-10-08 01:36:44 +02:00
Steinar Bakkemo 2bf80590c2 zero-sugar dts: fix OTG regulator config, adjust digitizer and wifi pinmux
OTG power is only enabled on OTG1 (POGO), and is enabled by setting a bit in
a register in the charger, not by toggling GPIO. The GPIO control config in
the OTG regulator blocks are thus removed.

Move digitizer pin muxing from standard pinux block to the lpsr pinmux block.
GPIO1.0..GPIO1.7 requires mux config in separate mux control register, which
then requires the pin muxing to be defined in a new lpsr pinmux block.

Move wifi pinmux to be configured at boot and not when the brcmfmac driver
is loaded (attempt to resolve device init issues).
2020-10-08 01:35:13 +02:00
Steinar Bakkemo 0642607ae4 zero-sugar dts: remove wacom reserved pin mux definitions (used on prelimenary adapter board) 2020-10-08 01:33:46 +02:00
Steinar Bakkemo 0bb4f26b2f zero-sugar dts: move 32K wifi clock to wifi-pwrseg, to be started before device is started 2020-10-08 01:31:59 +02:00
Steinar Bakkemo 9b0d59aedb zero-sugar config: enable brcmfmac debug, timestamped kernel output and dynamic debugging 2020-10-08 01:30:23 +02:00
Steinar Bakkemo ff2314af21 zero-sugar dts: enable wake irq for wifi module 2020-10-08 01:30:08 +02:00
Steinar Bakkemo c5bd291a90 zero-sugar dts: add wifi-pwrseq to cycle the WIFI_RE signal during initation
Replace original sdhci power cycle config with new wifi-pwrseq config.

Also disable extra muxing of SD1_WP pad to output CLKO2 32K wifi sleep clock (disable 32K sleep clock) and force 100 MHz
MMC bus speed while debugging load/sleep/wakeup issues.
2020-10-08 01:29:12 +02:00
Steinar Bakkemo 61bf19a26f zero-sugar dts: fix SD1_WP pinmux config to output CLKO2, 32K clock to wifi module 2020-10-08 01:27:43 +02:00
Steinar Bakkemo 1818e9a333 zero-sugar dts: enable touch driver in devicetree 2020-10-08 01:27:43 +02:00
Steinar Bakkemo 519de8683a zero-sugar dts: disable USB OTG1, leaving USB OTG2 to be the def. eth-gadget/SSH port 2020-10-08 01:26:37 +02:00
Lars Ivar Miljeteig b37b7303b2 zero sugar dts: First attempt at WiFi config 2020-10-08 01:26:37 +02:00
Lars Ivar Miljeteig 75b10299e9 zero-sugar dts: Disable SD1 2020-10-08 01:26:37 +02:00
Lars Ivar Miljeteig db6717c2c8 zero-sugar dts: White space fix for arm regulator
Sorry, couldn't help myself.
2020-10-08 01:26:37 +02:00
Lars Ivar Miljeteig f1b5c46492 Revert "zero-sugar config: Add WiFi as module"
This reverts commit 251306a6888e1bd948a2896e935f6ab21507d3cf.
2020-10-08 01:26:37 +02:00
Lars Ivar Miljeteig 454cceb758 zero-sugar dts: Remove backlight and lpsr pinctrl 2020-10-08 01:26:37 +02:00
Lars Ivar Miljeteig 4b191731ea zero-sugar dts: Set up LCDIF 2020-10-08 01:26:36 +02:00
Lars Ivar Miljeteig 6658ed2691 zero-sugar dts: Add touch driver 2020-10-08 01:26:36 +02:00
Lars Ivar Miljeteig b5facb72cd zero-sugar config: Add WiFi as module 2020-10-08 01:26:36 +02:00
Steinar Bakkemo f69aa5cb1e imx7-test-image_stripped.dts: fix wacom irq mux (GPIO6.13, not GPIO6.15) 2020-10-08 01:26:36 +02:00
Steinar Bakkemo 2cce00dba5 zero-sugar dts: cleanup (remove unused/deprecated configuration) 2020-10-08 01:26:36 +02:00
Lars Ivar Miljeteig d867caf8c5 zero-sugar dts: Add bd7181x 2020-10-08 01:26:36 +02:00
Lars Ivar Miljeteig 9141909236 Add zero-sugar_defconfig file
Default config for EP1 zero-sugar board.
2020-10-08 01:26:36 +02:00
Lars Ivar Miljeteig fba76239ff device tree: Add Wacom Digitizer
- Reset and enable pins for digitizer
- MUX
- i2c bus 1
- Remove unimplemented reset
- Whitespace fix
2020-10-08 01:26:36 +02:00
Lars Ivar Miljeteig e74a596ff1 zero-sugar: Initial device tree for EP1 2020-10-08 01:26:36 +02:00
Steinar Bakkemo 37af404c32 imx7-test-image_stripped.dts: add reset-gpio property (wacom) for manual reset during boot 2020-10-08 01:25:21 +02:00
Lars Ivar Miljeteig f08af2449d Add stripped device tree for imx7 test image 2020-10-07 11:32:39 +02:00
Lars Ivar Miljeteig 249df9c693 zero-sugar dts: Wacom driver in device tree 2020-10-07 11:32:39 +02:00
Lars Ivar Miljeteig 194dfc5cac zero-sugar dts: Change model name 2020-10-07 11:32:39 +02:00
Lars Ivar Miljeteig 00f0e021b3 zero-sugar dts: Add imx7-test-image to Makefile 2020-10-07 11:32:39 +02:00
Lars Ivar Miljeteig 45e127f782 zero-sugar config: Add wacom digitizer 2020-10-07 11:32:39 +02:00
Lars Ivar Miljeteig e3d2f3172f zero-sugar config: Add cypres cyttsp5 touch screen 2020-10-07 11:32:39 +02:00
Lars Ivar Miljeteig 6668fc3045 zero-sugar: add defconfig 2020-10-07 11:32:39 +02:00
Steinar Bakkemo fb306da357 ARM: dts: add imx7-test-image.dts 2020-10-07 11:31:26 +02:00
Peng Fan 94da7bdc48 MLK-20674 ARM64: dts: imx8mq: enable uart2 clock and disable caam
Enable uart2 clk to let inmate could access uart
And disable CAAM for inmate

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jun Li <jun.li@nxp.com>
(cherry picked from commit 59e4096c1bf0ef39e94b2b3ea81629f8862b59ec)
2019-01-03 19:04:52 +08:00
Peng Fan a9b9e6aee2 MLK-20670 ARM64: dts: correct pci and reserved memory for jailhouse
Correct pci and reserved memory for jailhouse

For i.MX8MQ, the top address are reserved for optee.
For i.MX8QXP/QM, the pci reg needs to be updated because to support
OP-TEE the memory region are moved 32MB lower.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit f74537d35206b2a953069987ccf2b0550d2e130e)
2019-01-03 13:59:56 +08:00
Flynn xu c663894030 MLK-20658: ARM64: dts: adjust root cell dts to enable optee for i.MX8 MEK
With optee enabled, optee will reside on the top 32M memory region of RAM,
which used to be jailhouse's execute address, now shrink inmates memory by
32M to give place to jailhouse.

Signed-off-by: Flynn xu <flynn.xu@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit f5a0803376d077750a8ec9c43dc96869dc251972)
2019-01-02 10:18:49 +08:00
Flynn xu 8d7eaea8da MLK-20640: ARM64: dts: adjust root cell dts to enable optee for i.MX8MM EVK
With optee enabled, optee will reside on the top 32M memory region of RAM,
which used to be jailhouse's execute address, now reserve memory from
0xb3c00000 to 0xb8000000 for jailhouse and it's inmates.

Signed-off-by: Flynn xu <flynn.xu@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit fd50832fb48a81b01fdeb731d55e15ee1e534850)
2019-01-02 10:18:37 +08:00
Peng Fan 5a74d94442 MGS-4461 ARM64: dts: correct gpu_ss reg
Correct gpu reg, otherwise DPU/GPU could not share memory.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
Reviewed-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit f409184730bef2f5bc450b9241c3116c69a05d01)
2018-12-19 16:25:47 +08:00
Haibo Chen e0a6bc4c20 MLK-20578: ARM64: dts: fsl-imx8mm-ddr4-evk: add touch support
Add synaptics_dsx touch support for imx8mm ddr4 evk board.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit f1ce84fbb28e3061e5abbf0274cb320fa8bbb95f)
2018-12-13 12:06:43 +08:00
Peng Fan 707a616023 MLK-20542 ARM64: dts: imx8qm: domu: reserve 4KB at RAM start address
Reserve 4KB memory at the GUEST_RAM0_BASE, this area will be used
as a magic number area, U-Boot will write this area and XEN will
check this area during U-Boot/Linux reseting/rebooting.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit ed0659fb66dfb5b9fad51e9d920d5fb0a8a93f41)
2018-12-12 14:54:17 +08:00
Peng Fan 87902e44ca MLK-20557 ARM64: dts: imx8: update/correct pl031 node
We are using SPI 33 for virtual PL031, but dom0 not passthrough
the interrupt, so domu are not able to use this.

In this patch also correct domu android car rtc node interrupts
property.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit 8dfead313460e0fa3c8d47248ee4e4fe2c80a638)
2018-12-11 16:51:32 +08:00
Peng Fan b87a171d5c MLK-20524 ARM64: dts: imx8qm-mek: enable sai0 in domu car
Android auto use sai0 for bluetooth phone audio output,
so enable sai0 for android auto.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit cadfe60f5cd87f80de1a30624861296a21f581fb)
2018-12-07 08:55:48 +08:00
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
Flynn xu 55ce109b28 MLK-20173 ARM64:dts:imx8qm: update Xen verison number in imx8qm domU dts
Update Xen version number in imx8qm domu dts

Signed-off-by: Flynn xu <flynn.xu@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-11-06 10:18:55 +08:00
Shengjiu Wang 4276b88092 MLK-18643: ARM64: dts: imx8mm: change the sdma script for SAI
The IMX_DMATYPE_SAI(24) performance is not enough to support high
sample rate/channels of audio case, there is a lot of underrun and
the sound is noise, the reason is that with this script, sdma copy data
through a long path (SDMA->pl301_audio -> pl301_display -> … ->
pl301_wakeup -> AIPS1 -> SPBA2 -> SAI).

The IMX_DMATYPE_SSI_SP(2) performance is better, which go through a shorter
path (SDMA -> SPBA2 -> SAI).

So we switch to use the IMX_DMATYPE_SSI_SP script, then 384k/32b/16c is
supported well.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit d5b70e9232218c419f7f6f843249e4bba84156b6)
2018-11-05 19:04:21 +08:00
ming_qian efd53e833e MLK-20174:VPU Encoder:add DebugBufferDesc in RPC interface
fix some typo

Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-05 16:39:39 +08:00
Guoniu.Zhou 4043252cc9 MLK-20230: ov5640: fix read 0x300a fail issue when driver probe
Because reset and pwn pin of gpio1 are not configurated for ov5640,
so it leads to read ov5640 register fail.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2018-11-05 15:53:14 +08:00
Anson Huang 59f54c6d9d MLK-20224 ARM64: dts: freescale: imx8qxp: disable cpu-idle by default
With cpu-idle enabled, we observe that DSI panel display is NOT
working on i.MX8QXP MEK board, still under debugging, since cpu-idle
ONLY saves ~15mA in runtime, it is NOT valuable enough compare to
whole system, so disable it for now until everything is stable enough.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Nitin Garg <nitin.garg@nxp.com>
2018-11-03 11:22:13 +08:00
Cedric Neveux 0a569abd8b MLK-20023 Move Busfreq support to OPTEE OS
- When OPTEE OS is present and if it support the busfreq
    for the running the i.MX, the busfreq is executed in
    the OPTEE OS by calling a specific SMC function
  - Only a WFE function is copied into the OCRAM to
    synchronize all Cores in multi-core devices
  - OPTEE OS add a DT property 'busfreq=1' in the 'firmware/optee'
    node to indicate the busfreq support

Signed-off-by: Cedric Neveux <cedric.neveux@nxp.com>
2018-11-02 14:40:12 +01:00
Haibo Chen 991da5db50 MLK-20185 ARM64: dts: fsl-imx8qxp-mek: chagne the usdhc io drive strength to low
According to Hardware test result, when config the usdhc pad io drive
strength to high, there are some overshoot on the clock/data signal
when sd/emmc work at SDR104/HS400/HS200 mode. When change the usdhc
data/cmd/clk pad io strength to low, can't see any overshoot, and
data transfer can also work well and pass the stress test.

So change all the usdhc pad io drive strength to low.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-11-02 19:27:50 +08:00
Shengjiu Wang c27861d9bc MLK-20183-3: ARM64: dts: support more sample rate for hdmi on imx8mq
support more sample rate for hdmi on imx8mq

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-02 19:16:53 +08:00
Shengjiu Wang 8e510f8f4c MLK-20183-1: ARM64: dts:remove the workaround for HDMI on imx8qm A0
Revert "MLK-17344-2: ARM64: dts: add constraint-rate for hdmi of imx8qm"

This reverts commit 86dbbb61cf.
On imx8qm B0 fix the DPLL jitter issue for HDMI module, so the constraint
for sample rate should be removed

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-02 19:16:53 +08:00
Li Jun b7a928d8b1 MLK-20177-2 arm64: dts: imx8mm: use dedicate compatible string for usb
Use "fsl, imx8mm-usb" for imx8mm usb controller driver.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2018-11-02 18:33:25 +08:00
Bai Ping 37f9a3fdb4 MLK-20175 ARM64: dts: freescale: Correct the pmu interrupt parent of i.mx8mq/mm
The PMU's interrupt is PPI. Correct the pmu interrupt parent of i.MX8MQ/MM.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2018-11-02 18:27:28 +08:00
Bai Ping 7c7aef4d88 MLK-20136-01 ARM64: dts: freescale: Update the dram pll clock index of imx8mq busfreq
Update the dram pll clock index for i.MX8MQ busfreq node.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2018-11-02 18:27:12 +08:00
ming_qian 09fd50776c MLK-20143:VPU Encoder:support suspend of devices mode
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-02 17:42:04 +08:00
Peter Chen bdd5bc98ae MLK-20158-2 ARM: dts: imx7ulp-evk: add pinctrl for "sleep" state
After commit 2911e974c8 ("MLK-19098 ARM: dts: imx7ulp-evk: use OTG
ID function instead of GPIO") , the ID pinctrl is set by chipidea
driver, so we need to restore its setting after system resume
due to pinctrl setting is lost at VLLS state.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
2018-11-02 16:42:09 +08:00
Clark Wang 4d64686567 MLK-20165-3 dtsi: imx8mm: Add dmas and dma-names for ecspi1~3
Add the missing attribute dmas and dma-names for ecspi1~3 to fix the
following error log.
LOG: spi_imx 30820000.ecspi: dma setup error -19, use pio

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2018-11-02 09:24:56 +08:00
Clark Wang fd873fdab9 MLK-20165-2 imx8mm_ddr3l_val: Add SPI NOR support
iMX8MM DDR3L validation board uses FPGA to link with SPI NOR flash with
ECSPI1. Add pin configurations and ecspi1 node to enable ECSPI1 to access
SPI NOR.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2018-11-02 09:24:55 +08:00
ming_qian 28f77a2772 MLK-20128:VPU Encoder:fix rpc memory may overlay for qm
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-02 09:18:50 +08:00
Huang Chaofan 2495007f9e MLK-20149 VPU: Adjust suspend and resume strategy for vpu decoder
Adjust suspend and resume strategy for vpu decoder to handle different
cases

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-01 18:29:35 +08:00
Fancy Fang bd59eba710 MLK-20137-2 ARM64: dts: imx8mm-ddr4-evk: add support for panel RM67191
Create a new dts 'fsl-imx8mm-ddr4-evk-rm67191.dts' to support
panel 'RM67191' display which is attached to DSIM controller
directly on IMX8MM DDR4 board to avoid conflict with ADV7535
display.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2018-11-01 11:09:05 +08:00
Fancy Fang 2e118a28a3 MLK-20137-1 ARM64: dts: imx8mm-evk-revb: add support for panel RM67191
Create a new dts 'fsl-imx8mm-evk-revb-rm67191.dts' to support
panel 'RM67191' display which is attached to DSIM controller
directly on IMX8MM LPDDR4 EVK RevC board to avoid conflict
with ADV7535 display.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2018-11-01 11:09:05 +08:00
Shengjiu Wang e818f10902 MLK-19750-5: ARM64: dts: workaround 192kHz recording noise issue
There is noise issue with 192kHz recoding with ESAI + CS42xx8 on imx8qxp
mek board.

This issue is caused by the round trip delay due to longer trace length
on board. After we switch to tx master, rx slave mode, the issue is gone.
so the setting can workaround the issue, the reason is that the bitclock,
frame clock and data is generated from one side, for recording, is from
codec, the asynchronous of clock and data is eliminated.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-01 10:03:29 +08:00
Shengjiu Wang 0f578434c8 MLK-19750-4: ARM64: dts: workaround 192kHz recording noise issue
There is noise issue with 192kHz recoding with ESAI + CS42xx8 on imx8qm
mek board.

This issue is caused by the round trip delay due to longer trace length
on board. After we switch to tx master, rx slave mode, the issue is gone.
so the setting can workaround the issue, the reason is that the bitclock,
frame clock and data is generated from one side, for recording, is from
codec, the asynchronous of clock and data is eliminated.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-01 10:03:29 +08:00
Richard Zhu b14c8e1ca7 MLK-20142-1 ARM64: dts: use internal pll as pcie ref on 8mm ddr4 board
Since the 8mm ddr4 evk board is same to the -revb evk board.
Configure the pcie ref clk as the internal pll clock.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-11-01 08:36:14 +08:00
Peng Fan dd6c00e9fe MLK-20141 ARM64: dts: imx8qm: introduce new dts for auto on xen
Introduce new dts files, there are some requirement that one dts
file could not support normal linux and android auto on xen,
such as the can_rpmsg change, so introduce a new dts file.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-10-31 16:46:43 +08:00
Sandor Yu 6b9f6d74b8 MLK-20124-2: arch: arm64: imx8qm: Move irqsteer_hdmi to hdmi dts
Move irqsteer_hdmi to hdmi specific dts.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2018-10-30 15:48:35 +08:00
Richard Zhu 435a64d39e MLK-20099-1 ARM64: dts: use external osc as refclk on 8mm evk board
Use the external osc as the pcie refclk on 8mm evk
rev c board.
Create another -revb.dts for the back compatible usage.
Because that internal pll is used as pcie ref clock on
the rev b board in default.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-10-30 13:17:06 +08:00
Ye Li 18cdeadfe1 MLK-20053 arm64: dts: Add DTS for iMX8MM DDR3L validation board
Add the DTS file for iMX8MM DDR3L validation board to support basic
modules: I2C, UART, ENET RMII, SD, NAND and USB. Bus freq is disabled
since we currently don't support it for DDR3L.

This board has a FPGA which owns the ENET PHY RESET and WDOG_B, so The ENET
won't work due to PHY RESET is hold high at default. And system reboot won't
work neither.

Signed-off-by: Ye Li <ye.li@nxp.com>
2018-10-29 01:09:59 -07:00
Han Xu d9b938d21b MLK-20106: arm64: dts: enable NAND CE1 IOMUX for i.MX8MM
some NAND chips use two CS such as MT29F64G08AFAAA, which require two
enable both CE setting in IOMUX, otherwise the data may write to wrong
pages.

Signed-off-by: Han Xu <han.xu@nxp.com>
2018-10-29 11:10:38 +08:00
Shengjiu Wang 6464af78aa MLK-20090: ARM64: dts: enable headphone detection for imx8qm mek
In SPF-29420-B2, the SCU_GPIO0_03 is used as AUD_DEC_1V8 for wm8960
codec.  With this chage, the headphone plugin/plugout detection
can be enabled.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Oliver Brown 1eca366fbf MLK-20065 arm64: dts: imx8: Update display port link rate to 5.4 Gbps/lane
The default link rate should be 5.4 Gbps/lane (0x14).

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2018-10-29 11:10:38 +08:00
Shengjiu Wang 96133f3e7b MLK-20034-2: ARM64: dts: support DSD mode with ak4458 in imx8mm
support DSD mode with ak4458 in imx8mm

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Peng Fan c544480835 MLK-20056-2 ARM64: dts: imx8qm: passthrough hifi dsp to domu
Passthrough hifi dsp to DomU, smmu is enabled for dsp,
so the mu13_B side also needs to be mapped into smmu table.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-10-29 11:10:38 +08:00
Peng Fan 7049e0fdd3 MLK-20056-1 ARM64: dts: imx8qm: passthrough esai0 to domu
Passthrough esai0 to domu, the audio in dom0 is broken for now.
Because of there are some shared clock/power for sai and esai,
we could not cleanly parition the audio. So only support audio
in domu now, in future, we could use paravirtualized audio.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-10-29 11:10:38 +08:00
Shengjiu Wang a858e9c0ed MLK-20068: ARM64: dts: enable hdmi audio with dual display
Enable hdmi audio with dual display

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Anson Huang 177c44c42c MLK-19947-3 ARM64: dts: freescale: imx8qxp: add cpu-idle support
This patch adds cpu-idle support for i.MX8QXP, since different
platforms have different cpu-idle latency value, so move the
cpu-idle node to platform dtsi.

Add GPT as platform broadcast timer, its clock and power are
managed in TF-A.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-10-29 11:10:38 +08:00
Peng Fan c68bc8a90b MLK-20033 ARM64: dts: imx8qm: support android auto plus m4 on xen
Map M41 reserved DDR memory for rpmsg
Add init-smmu-bypass, because m41 is started by SCU at early stage,
configure sid for a running master needs some specific handle. For
CM41, we configure S2CR with BYPASS in init stage.
Add mipi csi gpio
Add can_rpmsg node, this node is only used by android auto kernel.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-10-29 11:10:38 +08:00
Peng Fan afc1583d4b MLK-20008 ARM64: dts: i.MX8: disable flexspi0 for m4 usage
When M4 using XIP flexspi, need disable flexspi0 from device tree,
otherwise there will be conflict.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Ye Li <Ye.Li@nxp.com>
2018-10-29 11:10:38 +08:00
Peng Fan 64f3b21f4f MLK-19993 ARM64: dts: imx8qm-mek: move the mipi csi en/rst to specific node
Move the mipi csi en/rst pinctrl configuration from gpio1 to
specific node for mipi csi.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2018-10-29 11:10:38 +08:00
Abel Vesa 5e88a7379a MLK-19966 arm64: imx8mq: Fix assigned clocks order in rm67191 dtsi
This fixes the wrongly ordering of assigned clocks for dcss.

Fixes: 4db22d33851f8401 ("clk: imx8mq: Switch to newly added composite-8m clock")
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reported-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Tested-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
2018-10-29 11:10:38 +08:00
Cosmin-Gabriel Samoila 66efd66691 MLK-19936-2 arch: arm64: fsl-imx8mm: add audio plls in micfil node
Parse the clock tree and stop when you find one of the
audio_plls. If this audio_pll cannot support the required
rate, change the parent to the other pll.
Set rate to rate * 1024 so we can support all parameter
configurations with a minimum clock rate.
This is required to support all rates multiple of 11025 and 8000.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-10-29 11:10:38 +08:00
Han Xu 71855f52d2 MLK-19955: arm64: dts: fix the qm flexspi clock name and power domain
Correct the clock name and power domain for i.MX8QM Flexspi.

Signed-off-by: Han Xu <han.xu@nxp.com>
2018-10-29 11:10:38 +08:00
Peter Chen 85828d6186 MLK-19850-3 ARM64: dts: fsl-imx8qm-device: enlarge USB PHY register region
There is a DCD module at USBPHY, the offset is from 0x800.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Peter Chen bf477d1420 MLK-19850-2 ARM64: dts: fsl-imx8dx: enlarge USB PHY register region
There is a DCD module at USBPHY, the offset is from 0x800.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Peng Fan dfd08014d1 MLK-19911 ARM64: dts: imx8qm: fix PCIEA rsrc id for smmu programming
Fix PCIEA rsrc id, then uboot could program SID correctly for PCIEA.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
2018-10-29 11:10:38 +08:00
Nitin Garg 00c39eff8e MLK-17119: iMX8QM DDR4: Update DTS for QM B0
Update 8QM DDR4 validation board dtb with B0
changes. Also add device tree for HDMI display.

Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
2018-10-29 11:10:38 +08:00
Robert Chiras 9630c660e1 MLK-18789: arch: arm64: fsl-imx8qxp: Move conflicting pin
The SC_P_MCLK_OUT0_ADMA_ACM_MCLK_OUT0 pin was conflicting with the pins
needed by the eLCDIF, so it was commented out with a TODO.
In order to fix this conflict, re-write this pinctrl group in the lcdif
specific dts file so that the conflict is handled properly.

Fixes: 471c6dc358fe ("ARM64: dts: imx8dx: Add dts file for lcdif")
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-10-29 11:10:38 +08:00
Robert Chiras 79503e3095 MLK-18789: arch: arm64: fsl-imx8qxp: Fix adma_pwm default status
The pwm_adma_lcdif node was created with status "okay" in the mek.dts
file, causing a pin conflict with the audio subsystem, even though the
lcdif pwm is not needed in this dts file.
Move this node into it's specific dts file: mek-lcdif, since it is only
needed by the lcdif.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-10-29 11:10:38 +08:00
Daniel Baluta 3871d46c4c MLK-19919: defconfig: Make arm64 defconfig clean
Remove explicit 'CONFIG_SND_SOC_FSL_DSP=y' because
it is already selected SND_SOC_IMX_DSP.

Reported-by: Jana Build <jana.build@nxp.com>
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-10-29 11:10:38 +08:00
Robert Chiras e1954f7426 MLK-18789-5: ARM64: dts: imx8dx: Add dts file for lcdif
Add nodes for the ADMA eLCDIF controller found in i.MX8QXP and specific
dts file for it's usage with the Seiko 43WVF1G LCD panel.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-10-29 11:10:38 +08:00
Robert Chiras 8126ac1d72 MLK-18789-3: arm64: defconfig: Add Seiko panel to defconfig
Add Seiko 43WVF1G panel to our defconfig.
Needed for QXP eLCDIF.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-10-29 11:10:38 +08:00
Daniel Baluta fa72c6443f MLK-18497-14: arm64: dts: Enable DSP with cs4288 on imx8qxp MEK
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-10-29 11:10:38 +08:00
Daniel Baluta 143b83ce59 MLK-18497-13: arm64: dts: Enable DSP with cs42888 codec on imx8qxp arm2
This allows us to decode and render frames using ESAI Digital
Audio interface and cs4228 codec.

Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-10-29 11:10:38 +08:00
Daniel Baluta 5e49abd2a3 MLK-18497-12: ASoC: fsl: imx-dsp: Add DSP machine driver
Finally! We register DSP as a sound card.

Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-10-29 11:10:38 +08:00