summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-domu.dts
AgeCommit message (Collapse)Author
2019-07-04arm64: dts: fsl: lpspi2: add dma mode supportMax Krummenacher
Follow commit 'a1204e3b0e7a dts: lpspi: add dma mode support' for lpspi2. This requires a follow up to dtbs which delete the edma0 node in favour of their own implementation. Related to: #51387 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-01MLK-21013 ARM64: dts: imx8qm: passthrough lvds pwmPeng Fan
Passthrough lvds pwm, otherwise dom0 will panic when reboot if domu started and shutdown, because LVDS_1_PWM_0 is assigned to domu and when domu shutdown, the resource will be powered off, however dom0 still think it is powered on. since lvds1_pwm is expected for domu, so let's passthrough it. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Flynn xu <flynn.xu@nxp.com> (cherry picked from commit abb243aba12a6649fad8114e298ff075b0a8399d)
2019-02-27MLK-20990 ARM64: dts: imx8qm: domu: switch to use rpmsg i2cPeng Fan
Switch to use rpmsg i2c to support android auto, because android auto change to use rpmsg i2c. Also add the alias node to let m4 could use it successfully, because M4 side use the alias id as the BUSID. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2019-02-26MLK-20977-3 ARM64: dts: imx8qm: update domu carPeng Fan
Update domu car dts according to android auto changes. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2019-02-12MLK-20797-2: VPU Encoder: reserve memory for actframeming_qian
the region of CMA associated with M0+ core is in [256M, 1G] It can't be guaranteed that it's uncachable for M0+ core. There are some risk, reserve memory to make sure it's in [128M, 256M]. Eliminate the potential risks Signed-off-by: ming_qian <ming.qian@nxp.com>
2019-02-12MLK-20779 ARM64: dts: fix domu cpus nodePeng Fan
To Android Auto in DomU, we use U-Boot to load dtb from EMMC, however we assign 4 cpus in domu cfg file, with 2 A53 and 2 A72 and with vcpu pinned to pcpu. If we only has 2 cpu nodes in device tree, that means we only has 2 A53 running for Android Auto. Let's add 4 cpu nodes to fix this issue. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-20778 ARM64: dts: imx8qm: dom: update memory regionPeng Fan
Update memory region according to rpmsg and vpu changes. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-20060-5 dts: lpspi: add dma mode supportClark Wang
Add dma configurations in dts files, for imx7ulp and imx8qm. There is no "edma0" node in fsl-imx8qm-mek(or lpddr4-arm2)-domu.dts. lpspi0 node has been deleted in these dts files, so delete lpspi3 node. Add edma0a and edma0d for lpspi0 and lpspi3, and enable lpspi0/3 for xen. Signed-off-by: Clark Wang <xiaoning.wang@nxp.com> Acked-by: Fugang Duan <Fugang.duan@nxp.com>
2019-02-12MLK-20699: VPU Encoder: don't use core number to determine platform typeming_qian
at present, driver use core number(core_type) to determine platform type, 1 means qxp, 2 means qm. this method is not accurate. it's hard to expansion. so get platform type from device id instead of core number. remove core_type in dts. Signed-off-by: ming_qian <ming.qian@nxp.com>
2019-02-12MLK-20637-1 arm64: dts: reserve per dev dma pool for imx rpmsgRichard Zhu
- reserve per dev dma pool for imx rpmsg - move imx8 rpmsg dts node to the -m4 dts files. - re-allocate the vpu rpc reserved memory on qm mek domu dts. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Acked-by: Fugang Duan <fugang.duan@nxp.com>
2019-02-12MLK-20659: VPU Encoder: refine code to reduce some hard codeming_qian
Encoder driver use macro to define some register absolute address. move the definition to dts, and use relative addresses to define registers more clearly. export these register definition through sysfs. Signed-off-by: ming_qian <ming.qian@nxp.com>
2019-02-12MGS-4461 ARM64: dts: correct gpu_ss regPeng Fan
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>
2019-02-12MLK-20542 ARM64: dts: imx8qm: domu: reserve 4KB at RAM start addressPeng Fan
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>
2019-02-12MLK-20557 ARM64: dts: imx8: update/correct pl031 nodePeng Fan
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>
2019-02-12MLK-20524 ARM64: dts: imx8qm-mek: enable sai0 in domu carPeng Fan
Android auto use sai0 for bluetooth phone audio output, so enable sai0 for android auto. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-20507 arm64: dts: use clkreq as gpioRichard Zhu
- 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>
2019-02-12MLK-20476:VPU Encoder:define max resolution and framerate in dtsming_qian
Signed-off-by: ming_qian <ming.qian@nxp.com>
2019-02-12MLK-20472 arm64: dts: correct the pad configurations of pcieRichard Zhu
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>
2019-02-12MLK-20347 ARM64: imx8qm: not assign HDMI for domuPeng Fan
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>
2019-02-12MLK-20275:VPU Encoder:set proper rpc sizeming_qian
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>
2019-02-12MLK-20302-1 ARM64: dts: imx8qm: add pl031 nodePeng Fan
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>
2019-02-12MLK-20173 ARM64:dts:imx8qm: update Xen verison number in imx8qm domU dtsFlynn xu
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>
2019-02-12MLK-20174:VPU Encoder:add DebugBufferDesc in RPC interfaceming_qian
fix some typo Signed-off-by: ming_qian <ming.qian@nxp.com>
2019-02-12MLK-20143:VPU Encoder:support suspend of devices modeming_qian
Signed-off-by: ming_qian <ming.qian@nxp.com>
2019-02-12MLK-20128:VPU Encoder:fix rpc memory may overlay for qmming_qian
Signed-off-by: ming_qian <ming.qian@nxp.com>
2019-02-12MLK-20149 VPU: Adjust suspend and resume strategy for vpu decoderHuang Chaofan
Adjust suspend and resume strategy for vpu decoder to handle different cases Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2019-02-12MLK-20141 ARM64: dts: imx8qm: introduce new dts for auto on xenPeng Fan
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>
2019-02-12MLK-20056-2 ARM64: dts: imx8qm: passthrough hifi dsp to domuPeng Fan
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>
2019-02-12MLK-20056-1 ARM64: dts: imx8qm: passthrough esai0 to domuPeng Fan
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>
2019-02-12MLK-20033 ARM64: dts: imx8qm: support android auto plus m4 on xenPeng Fan
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>
2019-02-12MLK-19880 ARM64: dts: 8qm: remove jpegdec/env from domuPeng Fan
Remove JPEGDEC/ENC, they are not used by domu. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19863 ARM64: dts: imx8qm: Fix VPU video playing in DomuPeng Fan
commit 108e99f6487("MLK-19774 VPU: Add CSR address in dts and remove some CM4 legacy code") did not take xen domu into consideration and cause VPU probe failure in domu. Fix it by add reg-csr in domu dts and passthrough the reg space. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2019-02-12MLK-19728-6 ARM64: dts: imx8qm: passthrough isl29023 to domuPeng Fan
Passthrough to domu. BuildInfo: - SCFW a27e9643, SECO-FW 31fabbff, IMX-MKIMAGE 7eae081f, ATF e6db8a6 - U-Boot 2018.03-00007-gb8296e64d2 Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19844 ARM64: dts: imx8qm: passthrough usb typec to domuPeng Fan
Passthrough usb typec to domu Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19773 ARM64: dts support camera in DomUPeng Fan
Use ISI0-3 in DomU, use ISI4-7 in Dom0. BuildInfo: - SCFW a958746e, SECO-FW 31fabbff, IMX-MKIMAGE f244aefa, ATF 1590be0 - U-Boot 2018.03-00707-g884cada50b Use `mx8_v4l2_cap_drm.out -cam 0xf` to test camera in Dom0 and DomU after `systemctl stop weston`. One remaing issue is that ISI_CH0 is the parent power domain, if dom0 runtime power down this domain, DomU will camera will panic. Since there is an i2c controller passthrough, the orignal backend pvi2c adapter idx will be changed to 0, so reflect that change in domu.dts. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19728-5 ARM64: dts: enable xen_i2c and passthrough sensors to domuPeng Fan
Introduce xen_i2c node and passthrough the i2c0 sensors to domu. The BuildInfo - SCFW 148acb34, SECO-FW 31fabbff, IMX-MKIMAGE f244aefa, ATF 1590be0 - U-Boot 2018.03-00707-g884cada50b-dirty Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19688-5:VPU encoder:fix typoming_qian
Signed-off-by: ming_qian <ming.qian@nxp.com>
2019-02-12MLK-19688-3: refactor and cleanup vpu encoder driverming_qian
1.move the definition of reg fw base to dts 2.rm unused vpu clock setting Signed-off-by: ming_qian <ming.qian@nxp.com>
2019-02-12MLK-19664-6 ARM64: dts: 8qm dom0/u: passthrough cryptoPeng Fan
passthrough crypto to domu Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19664-5 ARM64: dts: 8qm dom0/u: support VPUPeng Fan
Passthrough VPU to DomU Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19664-4 ARM64: dts: imx8qm domu: added phandle and linux,phandle for gic ↵Peng Fan
node Add phandle and linux,phandle for gic node. When booting Domu with device tree, xen tool will create gic node with phandle PHANDLE_GIC(65000), so in domu dts, we need to code that in gic node, make sure it is same as what xen tool use. Otherwise, wrong gic phandle might be used. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19664-3 ARM64: dts: imx8qm domu: passthrough pcie to DomUPeng Fan
Passthrough pcie to DomU to support pcie wifi. Add the needed GPIOs in dom0 dts. Add SMMU hook for pciea. Modify the reserved-memory for pcie usage. passthrough pcie related LPCG to make sure domu not panic when access LPCG. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19664-2 ARM64: dts: imx8qm domu: enable gpio controllerPeng Fan
Enable the gpio controller, but remove the power-domain property. Currently we are using mmio trap in XEN to handle GPIO. For Dom0, it has the highest priviledge to read/write any gpio registers and the interrupts are also forwarded to Dom0. For DomU, a new property as following is added to doma node in dom0 dts. gpios = <&gpio1 13 GPIO_ACTIVE_LOW>, <&gpio4 9 GPIO_ACTIVE_LOW>; xen will parse it and restrict domu read/write behavior. xen,shared means mmio trap is used. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19664-1 ARM64: dts: domu: enable multi-vdev on one rpmsg channelPeng Fan
Support multi-vdev on one rpmsg channel on 8QM DomU. sync with commit f7f11791135f3f5("MLK-19558-2 ARM64: dts: enable multi-vdev on one rpmsg channel") Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-02-12MLK-19554 ARM64: dts: 8qm domu: enable power key and correct dev_emmcPeng Fan
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>
2019-02-12MLK-19450-2 ARM64: dts: 8qm: support cm41 rpmsg with DomUPeng Fan
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>
2019-02-12MLK-19166-5 arm64: dts: imx8qm: delete flexcan node for domusXiaoning Wang
For add flexcan node in dtsi and xen doesn't support can, add "delete flexcan node" for DomUs now. Change interrupt-parent to gic, for xen does not support "wu" interrupt controller. Signed-off-by: Xiaoning Wang <xiaoning.wang@nxp.com>
2019-02-12MLK-17481-2: ARM64: dts: imx8qm: Enable DSPDaniel Baluta
i.mx8QM B0 comes with a DSP (placed in the VPU unit). From the ARM core side DSP local memory (Inst/Data) is mapped at 0x55000000-0x55FFFFFF range. DSP also uses code located in SDRAM mapping starting at 0x92400000. While at it, move rpmsg_node up in order to have all reserved areas sorted by address. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 1eb4b2ee64c6f1fd7a5d6ceb1f019e876dbdfeb9)
2019-02-12MLK-18082: boot: dtsi: Align DTSIFranck LENORMAND
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
2019-02-12MLK-18561-2 ARM64: dts: imx8qm: Add nodes to booting Android VM using U-BootPeng Fan
Without using xen tools to create nodes, we need write the nodes in dts to let kernel boots up correctly. Even no using bootloader to boot VM, the nodes added will not be passthrough to VM, and xen tool will create them automatically. Signed-off-by: Peng Fan <peng.fan@nxp.com>