Commit graph

142456 commits

Author SHA1 Message Date
Liu Ying 430598dfb7 MLK-18477-4 arm64: dts: fsl-imx8qm-mek-hdmi: Don't assign dpu disp clk parent
The dpu driver may properly handle display clock parent selection now.
Thus, let's remove the assigned-clock and assigned-clock-parent
device tree properties from the dpu device tree node.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Liu Ying e3f09ba8e0 MLK-18477-3 arm64: fsl-imx8qm.dtsi: Remove dpu assigned-clock* properties
The dpu driver may properly handle display clock parent selection now.
Thus, let's remove the assigned-clocks and assigned-clock-parents
device tree properties from the dpu device tree nodes.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Liu Ying 0beb0c1b1f MLK-18477-1 arm64: fsl-imx8qm.dtsi: Add bypass and disp_sel clks for dpu
This patch adds bypass clocks and disp_sel clocks in the dpu nodes.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-10-29 11:10:38 +08:00
Cosmin-Gabriel Samoila d84a3390d0 MLK-16784-6 arm64: config: add micfil in defconfig
Add IMX_MICFIL in arm64 defconfig.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
2018-10-29 11:10:38 +08:00
Peng Fan da683f65b1 MLK-18470 ARM64: dts: imx8mm: add ocotp node
Add ocotp node to make nvmem work.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-10-29 11:10:38 +08:00
Bai Ping 19d863b929 MLK-18426 AMR64: dts: imx: Increase the cpuidle latency setting on imx8mm
After the WAIT mode is enabled on imx8mm, the previous latency setting
seems can NOT meet the system the latency requirement. audio playback is
impacted by cpuidle. So increasing the latency setting as large as possible
to eliminate the impact of system performance. The latency value is not very
accurate, need to be updated after we have enough performance test result.

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
Andy Duan 03cb1ef1d1 MLK-18423 ARM64: dts: imx8qm-mek: optimize the pciea disable pin setting
Optimize the pciea disable pin to drive NTB0104 device:
(NTB0104 requires at least 2 mA per data sheet)
- push-pull output
- pull disabled
- high drive strength

And the patch also change the lvds gpio to lsio gpio.

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
Richard Zhu 635048f751 MLK-18386 ARM64: dts: imx8mm: fix pcie pll can't be locked in resume
pcie aux clock is mandatory required by pcie power management.
add the aux clock into imx8mm pcie dts node explicitly.
pcie ctrl clock would be turned on, when pcie root clock
is enabled.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-10-29 11:10:38 +08:00
Shengjiu Wang 50a8b33702 MLK-18397-2: ARM64: dts: enable spdif1 tx for hdmi rx arc
enable spdif1 tx for hdmi rx arc

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Robby Cai c273f30b4f MLK-18362-3 arm64: dts: add mipi csi camera support on imx8mm-evk
add node for MIPI CSI, CSI, and camera OV5640

Signed-off-by: Robby Cai <robby.cai@nxp.com>
2018-10-29 11:10:38 +08:00
Shengjiu Wang ce820630b5 MLK-18368-9: ARM64: dts: enable hdmi rx audio
enable hdmi rx audio

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Anson Huang 10ee868310 MLK-18382 ARM64: dts: freescale: imx8mq: add GPT compatible string
i.MX8MQ uses same GPT as i.MX7D, add i.MX7D compatible
string for GPT driver, and disable it by default.

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
Shenwei Wang 519d40e0ca MLK-18379: ARM64: dts: imx8qm: add FTM PWM support
i.MX8QM has two FTMs. Added the FTM PWM device node
in the device dts.

Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Shenwei Wang d2c1a73b44 MLK-18379: arm64: defconfig: select CONFIG_PWM_FSL_FTM
Select the CONFIG_PWM_FSL_FTM option and build the driver
by default.

Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
2018-10-29 11:10:38 +08:00
Sandor Yu cf503f60a7 MLK-18365: dts: change hdmi dig_pll clock rate to 675MHz
Change the hdmi dig_pll clock rate to 675MHz,
hdmi core clock is source from dig_pll.
And HDMI CEC required core clock should integer MHz(675/5=135MHz).

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2018-10-29 11:10:38 +08:00
Sandor Yu e4ea311343 MLK-18355-9: dts: Add hdmi rx cec property
Add hdmi rx cec property to imx8qm HDMI RX driver.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2018-10-29 11:10:38 +08:00
Richard Zhu ffd683a792 MLK-18298-2 ARM: dts: imx7d: change the pcie phy in dts
Change the pcie phy region in dts accordingly.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-10-29 11:10:38 +08:00
Richard Zhu a83ede34dd MLK-18298-1 ARM64: dts: imx8mm: enable pcie
Add the pcie support for imx8mm and verify
it on imx8mm evk board when internal pll is
used as ref clock.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-10-29 11:10:38 +08:00
Frank Li 54616f4830 MLK-18338-1 arm64: iMX8MM: dts: enable ddr monitor
Enable DDR monitor

Signed-off-by: Frank Li <Frank.Li@nxp.com>
2018-10-29 11:10:38 +08:00
Leonard Crestez 28935906a4 MLK-18181-2 ARM: imx: Move gpcv2 regulator notifiers to drivers/soc
The vendor tree does imx7 PGC management through regulator notifiers
while upstream implemented the same features using power domains. These
two drivers have entirely different interfaces with higher-level IP
blocks.

Resolve this conflict by moving the old code to drivers/soc and
supporting both power-domain and regulator interfaces. This effectively
merges the two drivers and is similar to how imx6sx implements both
power domains and a regulator notifier for pcie specifically.

Supporting both interfaces allows consumes to switch one-by-one, for
example by having PCI work with a power-domains reference while usb hsic
still uses the regulator enable/disable interface.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
2018-10-29 11:10:38 +08:00
Leonard Crestez 80ae2bc5a9 MLK-18181-1 ARM: imx: Clear OF_POPULATED in imx_gpcv2_init
The power domain code shares the same node and will not probe if irqchip
probes first and marks the node with OF_POPULATED.

Clearing the OF_POPULATED flag is also done in imx_gpc_init for imx6 and
imx_gpcv2_irqchip_init implemented by upstream.

In imx_4.9.y this was solved in a different way by adding a second pgc
node, see commit fab513930e78 ("MLK-14280: gpc: gpc driver not probed").
Solving the problem by clearing OF_POPULATED allows using the upstream
PGC driver without hacks.

Having two irqchip implementations with same name seems to work fine
with the mach-imx variant taking precedence.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
2018-10-29 11:10:38 +08:00
Cosmin-Gabriel Samoila 8fdcb764cb MLK-16784-3: arm64: dts: add pdm nodes in iMX8MM dts
Add micfil DAI node in dtsi and pdm sound card in dts.
We also  moved ak5558 nodes into separate dts since
ak5558 uses sai5 which share some pins with micfil.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
(cherry picked from commit 8451c6886b0175b7e1391293aa9fb461395f8485)
2018-10-29 11:10:38 +08:00
Richard Zhu af573c0826 MLK-18381-1 ARM64: dts: imx8mm: enable rpmsg
enable rpmsg on imx8mm

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-10-29 11:10:38 +08:00
Viorel Suman afb54cead3 MLK-17531-4: ARM64: dts: mx8mm-evk: enable AK4497 codec
Enable AK4497 with mode 0. For ak4497 the same SAI interface as
for AK4458 is used, so a separate ak4497 dts is needed.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2018-10-29 11:10:38 +08:00
Robert Chiras 2bb26e01ca MLK-18357-3: arm64: dts: Update 8M, 8QM and 8QXP dts files for dsi suspend/resume
Added no_clk_reset property for 8M dts files, since DSI doesn't need
it's clocks stopped during suspend.
Also, added power on delay for 8QM and 8QXP for a better suspend/resume
stability.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-10-29 11:10:38 +08:00
Antoine Bouyer 7bb5d2c90d MMIOT-35-1 arm64: dts: imx8mq drm: create dts for drm purpose
Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
2018-10-29 11:10:38 +08:00
Antoine Bouyer 136c9bcc21 MMIOT-35-1 arm64: dts: imx8mq: add dts node pointers
These pointers are required for drm dts

Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
2018-10-29 11:10:38 +08:00
Fabio Estevam d822226c30 MLK-18339: arm64: defconfig: Select CONFIG_SPI_IMX by default
Allow the CONFIG_SPI_IMX option to be built by default.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
2018-10-29 11:10:38 +08:00
Fabio Estevam 734113934e MLK-18339: arm64: dts: imx8mq: Add ECSPI support
Add support for the three ECSPI ports present on i.MX8MQ.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
2018-10-29 11:10:38 +08:00
Adriana Reus 366444ea4f MLK-18317: imx8qxp: dts: Add A0 specific dtbs
These are similar to their counterpart non-A0 dtbs, but vpu encoder
and decoder are removed.

Signed-off-by: Adriana Reus <adriana.reus@nxp.com>
2018-10-29 11:10:38 +08:00
Richard Zhu c2c819d44f MLK-18320 ARM64: dts: imx8qm: align the reserved ddr memory
In order to enlarge the CMA easily, change the rpmsg
reserved memory region from 0xb800_0000 to 0x9000_0000.
And refine the layout of the reserved memory.
- RPMSG buffers are allocated from CMA dynamically, and have to
be accessed by M4 side. But M4 can only access the 1.5Gbytes
DDR memory from 0x8000_0000. So, the finial reserved memory
layout is just like the one below.

Thus, the largest size of the DDR memory left for CMA, is about
1212Mbytes in theory, since 32Mbytes alignment is required by
CMA allocation.

reserved-memory layout
0x8800_0000 ~ 0x8FFF_FFFF            M4 + RTOS(128M)
0x9000_0000 ~ 0x903F_FFFF            RPMSG Vring(4M)
0x9440_0000 ~ 0xDFFF_FFFF(MAX)       CMA(1212M)(MAX)

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-10-29 11:10:38 +08:00
Anson Huang 0cf37ed960 MLK-18331 ARM64: dts: freescale: imx8qm: update cpufreq set points
Update cpufreq set-points according to SCFW changes:

A53: add 1104MHz setpoint;
A72: add 1300MHz setpoint.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
2018-10-29 11:10:38 +08:00
Haibo Chen 2297616f14 MLK-18323-4: ARM64: defconfig: enable imx8qxp adc
Enable imx8qxp adc in default

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Haibo Chen 0e00b07f1c MLK-18323-3 ARM64: dts: imx8qxp: add adc node
imx8qxp contain one adc, so add adc0 node for imx8qxp.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Haibo Chen 642ba9bc47 MLK-18323-2 ARM64: dts: imx8qm: add ADC support
i.MX8QM contains two adc, and for imx8qm-mek board, only reserve one
pin for adc0 (ADC_IN0).

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-10-29 11:10:38 +08:00
Sandor Yu 971ccd302d MLK-18267-5: dts: Add hdmi rx property to imx8qm dts
Add hdmi rx property to imx8qm dts.
Update hdmi rx power domain.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2018-10-29 11:10:38 +08:00
Richard Zhu b1d9fc574e MLK-18311 ARM64: dts: imx8qxp: correct the rpmsg address on arm2 board
Regarding to the latest layout of the reserved memory
on imx8qxp, correct the rpmsg address on arm2 board too.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-10-29 11:10:38 +08:00
Shengjiu Wang 9291424b93 MLK-17531-2: arm64: dts: imx8mm-evk: enable audio nodes
Enable SAI + WM8524 codec. Enable audio board: SPDIF + 3 AK codecs.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-10-29 11:10:38 +08:00
Andy Duan 562d5ada11 MLK-18313 ARM64: dts: imx8mq-evk-pcie1-m2: disable pcie0 port
When wifi driver switch to QCA CLD from ATH10K, there have one known issue:
   - QCA CLD driver only support ONE instance.
So it has to disable pcie0 port.

Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2018-10-29 11:10:38 +08:00
Andy Duan 8e8564438d MLK-18314 arm64: dts: imx8mm-evk: add cts/rts for uart1 and uart3 ports
Since uart1 and uart3 has cts/rts lines connection, add cts/rts
support for uart1 and uart3

Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2018-10-29 11:10:38 +08:00
Robin Gong 79646c6030 MLK-18308-2: ARM: imx: imx7ulp: add poweroff feature
On i.mx7ULP, poweroff kernel by sending rpmsg message to M4, and
M4 poweroff CA7. Then M4 can power on CA7 again by type 'V' command
in its console or press POWERON key once M4 support POWERON.
Note: CA7 should enter VLLS mode firstly before poweroff by M4.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
2018-10-29 11:10:38 +08:00
Li Jun fd5effff57 MLK-18296 arm64: dts: imx8mm-evk: enable usbotg1
Enable usbotg1 and disable usbotg2, both are USB 2.0 and dual role
capable, but the typec port for usbotg2 is primary for power, and
the dead battery is not ready, so disable the typec2 and usbotg2.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2018-10-29 11:10:38 +08:00
Zhou Peng 7dd27dd857 MLK-18301-3 - [i.MX8MM/Hantro]: Enable hantro vpu on mscale 845S platform
Enable hantro 845 decoder/encoder on device tree

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
2018-10-29 11:10:38 +08:00
Leonard Crestez c38c877e10 MLK-18294 arm64: dts: imx8qm-mek-dom0: Grant guest LVDS1_I2C1 pads
This fixes a pinctrl error in the guest, fixing these warnings:

imx8qm-pinctrl passthrough:iomuxc: pin_config_set op failed for pin 60
imx-lpi2c 157247000.i2c: Error applying setting, reverse things back

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-10-29 11:10:38 +08:00
Anson Huang affefe61a6 MLK-18300-1 ARM64: dts: freescale: imx8qm: remove csi gpio clocks
Remove CSI0/1 GPIO related clocks to make sure all GPIOs
clocks are always ON.

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
Chenyan Feng de7018bfa8 GPU clk for 845S in dts
Date: 14th May, 2018
Signed-off-by: Ella Feng <ella.feng@nxp.com>
2018-10-29 11:10:38 +08:00
Weiguang Kong 63823ab3e6 MLK-18279: ASoC: fsl_dsp: get the information of reserved memory from dts
The reserved memory for dsp is defined in dts file, however, the dsp
driver has also defined the address and size of this reserved memory,
which is repeated and inflexible.

So by cancelling the definition in dsp driver and use system API to
get the information of reserved memory from dts dynamically to fix
this problem.

Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
2018-10-29 11:10:38 +08:00
Richard Zhu d69e4f4956 MLK-18239 ARM64: dts: imx8qxp: change the rpmsg reserved memory region
In order to enlarge the CMA easily, change the rpmsg
reserved memory region from 0xb800_0000 to 0x9000_0000.
And refine the layout of the reserved memory.
- RPMSG buffers are allocated from CMA dynamically, and have to
be accessed by M4 side. But M4 can only access the 1.5Gbytes
DDR memory from 0x8000_0000. So, the finial reserved memory
layout is just like the one below.

Thus, the largest size of the DDR memory left for CMA, is about
1212Mbytes in theory, since 32Mbytes alignment is required by
CMA allocation.

reserved-memory layout
0x8000_0000 ~ 0x83FF_FFFF            A core + Linux Kernel(64M)
0x8400_0000 ~ 0x85FF_FFFF            VPU encoder boot(32M)
0x8600_0000 ~ 0x87FF_FFFF            VPU decoder boot(32M)
0x8800_0000 ~ 0x8FFF_FFFF            M4 + RTOS(128M)
0x9000_0000 ~ 0x903F_FFFF            RPMSG Vring(4M)
0x9040_0000 ~ 0x913F_FFFF            VPU decoder rpc(16M)
0x9140_0000 ~ 0x923F_FFFF            VPU encoder rpc(16M)
0x9240_0000 ~ 0x943F_FFFF            DSP(32M)
0x9440_0000 ~ 0xDFFF_FFFF(MAX)       CMA(1212M)(MAX)

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-10-29 11:10:38 +08:00
Andy Duan 3e2fe68e74 MLK-18293-03 ARM64: defconfig: enable wireless configs for Qca9377-3 qcacld-2.0
Add some necessary configs for qualcomm wifi QCA6174/QCA9377 qcacld-2.0
CLD driver and remove the ath10k configs.

(Run "make savedefconfig" to change the defconfig)

Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2018-10-29 11:10:38 +08:00
Andy Duan e8270cfabd MLK-18293-02 arm64: dts: imx8mm-evk: enable usdhc1 for QCA9377-3 wireless support
Enable usdhc1 for QCA9377-3 wireless support.

Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2018-10-29 11:10:38 +08:00