Age | Commit message (Collapse) | Author |
|
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>
|
|
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)
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Update memory region according to rpmsg and vpu changes.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
|
|
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>
|
|
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>
|
|
- 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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Android auto use sai0 for bluetooth phone audio output,
so enable sai0 for android auto.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
|
|
- 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>
|
|
Signed-off-by: ming_qian <ming.qian@nxp.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
fix some typo
Signed-off-by: ming_qian <ming.qian@nxp.com>
|
|
Signed-off-by: ming_qian <ming.qian@nxp.com>
|
|
Signed-off-by: ming_qian <ming.qian@nxp.com>
|
|
Adjust suspend and resume strategy for vpu decoder to handle different
cases
Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Remove JPEGDEC/ENC, they are not used by domu.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
|
|
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>
|
|
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>
|
|
Passthrough usb typec to domu
Signed-off-by: Peng Fan <peng.fan@nxp.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: ming_qian <ming.qian@nxp.com>
|
|
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>
|
|
passthrough crypto to domu
Signed-off-by: Peng Fan <peng.fan@nxp.com>
|
|
Passthrough VPU to DomU
Signed-off-by: Peng Fan <peng.fan@nxp.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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)
|
|
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
|
|
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>
|