09 Jun, 2017
40 commits
-
With the current rates for MCLK is not possible to derive bitclk
for all files in S20_3LE format and also for files with S24_LE sampled
at 48000Hz.In order to fix this, we need to find a better MCLK value. We did this
in two steps:
1) Use params_physical_width to get rid of S20_3LE burden.
2) Brute force into all available rates which can pass fsl_sai_set_bclk
algorithm.Thus we found 36864000 to be the smallest acceptable rate for MCLK.
Reviewed-by: Mihai Serban
Suggested-by: Shengjiu Wang
Signed-off-by: Daniel Baluta -
The reg_lcd_3v3 regulator is, theoretically, used by the display
controller eLCDIF as lcd supply.When enabling the HDMI trasnmitter Sil902x, a gpio pin needed by the
regulator is taken by the HDMI TX as reset pin, so the regulator probe
fails and is never used.The imx6sx-sdb-lcdif1.dts file is used for HDMI functionality, thus
enabling the HDMI transmitter invalidates any possible use of the
reg_lcd_3v3 regulator.This patch removes the regulator enablement from the HDMI-specific dts.
Signed-off-by: Cristina Ciocan
-
The default display engine used by lcd in imx6qdl-sabresd.dtsi is IPU:0
DI:0, the same used for hdmi. This is a conflict, and every time the
kernel boots, this error will be printed:
mxc_sdc_fb fb@2: ipu0-di0 already in use
mxc_sdc_fb: probe of fb@2 failed with error -16
And, of course, lcd cannot be used in parallel with hdmi.
In order to fix this, move hdmi to IPU:0 DI:1. I left lcd to IPU:0 DI:0
because it works only with that IPU core.Signed-off-by: Robert Chiras
-
The mxc display driver framework doesn't support deferral probe.
The following initialization process may cause the mipi dsi driver
deferral probe, however.
pinctrl-imx6 - arch_initcall
gpio-mxc - subsys_initcall
gpio-reset - arch_initcallThis patch customizes gpio reset function so that we can remove
the code to use the reset logic provided by the gpio-reset driver.
Also, the gpio-reset driver is not in the upstreaming kernel,
so it would be good not to use it if possible.Signed-off-by: Liu Ying
-
The automated CI system will check if the configuration files are
generated by the 'make savedefconfig' command from now on.
We have to create a correct starting point to pass the checks.Signed-off-by: Mihai Serban
Reviewed-by: Octavian Purdila -
Update ERA detection code to check 3 sources CCBVID, CAAMVID
and the device tree.
Fix bit handling of CAAMVID data to obtain correct results.
Remove default device tree values.
Update errata handling to target known affected platforms.Signed-off-by: Radu Solea
-
Add the new property 'dsi-traffic-mode' which is used to
set one of the three video data transmit modes:
. Non-burst mode with sync pulse width
. Non-burst mode with sync event
. Burst modeSigned-off-by: Fancy Fang
(cherry picked from commit 19eb160cfa365af6a377798cf44dc800f21ef51d) -
Correct right RUN mode after A7 resume back instead of the VLLS mode
Signed-off-by: Robin Gong
(cherry picked from commit f6b3dda9babd17fcbab5fc2b05c3f64660ea6250) -
Update the setpoint voltage on i.MX7ULP.
Signed-off-by: Bai Ping
-
ISOACK must be done only after all IOMUX/GPIO settings done,
otherwise, some PADs can NOT keep state during VLLS
enter/exit and cause some pins toggling, and lead to
external devices in abnormal state, like reset etc..This patch does all iomux/gpio settings restore in VLLS exit
flow, since DDR PADs need to be functioning before jump
to DDR, so isoack can only be done in ASM code, to save
OCRAM space, all pins in port C - F will be restored, even
some pins are reserved, but read/write these reserved pins
settings are OK on i.MX7ULP.Signed-off-by: Anson Huang
-
From testing the performance is better when the voltage
for lpddr2 is set to 1.25V instead of 1.2V.Signed-off-by: Juan Gutierrez
-
Since regulator reg_vsd_3v3b for SD1, and has pin confict with lpuart,
then move the regulator to SD1 specific dts file.Signed-off-by: Fugang Duan
-
On i.MX7D low power idle, consider below scenario which has
race condition that low power idle is entered unexpectedly
for first CPU:CPU#1 enters low power idle:
1. set last_cpu to invalid -1;
2. set cpu1_wfi in low level ASM code;
3. enter WFI;
CPU#0 enters low power idle:
4. set last_cpu to CPU#0;
5. Set hardware(DDR, CCM, ANATOP) to low power idle mode;
6. enter WFI;If during 4~6 window, CPU#1 go out of WFI and then go into low
power idle again, the condition check of master_lpi will be true
and CPU#1 will go through 4~6 steps in low level ASM code,
which is unexpected. As cpu_cluster_pm_enter/exit can only be called
once for last cpu in same cluster.To avoid this race condition, add last_cpu check as well as master_lpi
check, that means if last_cpu is a valid value, the other CPU entering
low power idle will be treated as first CPU. And also move the setting
of last_cpu to invalid value to last CPU low power idle exit path.Signed-off-by: Anson Huang
-
On A2 board, NVCC_DRAM_SW power control is changed from PTC1
to PTB6, and PTB6 will be controlled by M4, so A7 does NOT
need to control this pin during VLLS, M4 will do it.Signed-off-by: Anson Huang
-
Add inline for unused function to avoid build warning.
For example, when i.MX7D is unselected, below warning
will show during compile:arch/arm/mach-imx/common.h:163:13: warning:
'imx_gpcv2_add_m4_wake_up_irq' defined but not used
[-Wunused-function]Signed-off-by: Anson Huang
-
For the slot support SD3.0 card, during system suspend, if plug out
the sd card, and insert another SD3.0 card, after system resume back,
SD3.0 card can't be recognised as SD3.0 card, just SD2.0 card.This is bause the time delay between vmmc regulator off and on is
too small, this patch add the oo-on-delay in vmmc-supply regulator,
to assign proper delay value.Signed-off-by: Haibo Chen
-
Move the default arm/soc-supply property define in imx6ull
dtsi file.Signed-off-by: Bai Ping
-
The default touch panel parameters in the dts file is used for the maximum supported display resolution.
It needs to calibrate the touch panel to match other resolution display screen.
The display screen for mx7ulp-evk is not matched the default parameters.change the dts file, so it need not to calibrate the touch panel for mx7ulp-evk board.
Change-Id: I24b1ceeef7f584b6ddf057794271dfa3a5875c0b
Signed-off-by: Zhang Bo
Signed-off-by: Gao Pan
(cherry-pick from 670d180d907c9bada3972ac9aded51a1becaf646) -
Add rpmsg-keys driver on i.mx7ulp-evk board since vol+/vol- keys
are connected on m4 side and have to get the status of keys by
rpmsg.Signed-off-by: Robin Gong
[Irina: updated for 4.9 APIs]
Signed-off-by: Irina Tirdea -
There is noise when use ssi master mode. the reason is the ssi rate
is not accurate for ssi master mode, show below.pll3_pfd2_508m 0 0 508235294 0 0
ssi3_sel 0 0 508235294 0 0
ssi3_pred 0 0 127058824 0 0
ssi3_podf 0 0 63529412 0 0
ssi3 0 0 63529412 0 0
ssi2_sel 0 0 508235294 0 0
ssi2_pred 0 0 127058824 0 0
ssi2_podf 0 0 63529412 0 0
ssi2 0 0 63529412 0 0so we need to switch ssi's parent to pll4 (which is dedicate audio pll),
and set a proper rate for pll4, we select 786432000Hz, which can
generate 32kHz,48kHz,96KHz.Signed-off-by: Shengjiu Wang
-
enable sim for imx6ul
Signed-off-by: Gao Pan
-
Sensors are connected to M4 and not to A-Core.
Sensors will not be exposed to A-Core via standard
i2c interface but via an i2c proxy layer over rpmsg.Remove the dts entry to avoid the probe error messages and
add a separate dts file for the case where someone wishes to
rework the board themselves and connect sensors for testing purposes.Signed-off-by: Adriana Reus
-
The imx7 sleep code will save and restore UART1 registers on
suspend/resume. It does this by fetching the address base using an
absolute devicetree path. Fix that path in 4.9 where the DTS is closer
to the one in upstream.Signed-off-by: Leonard Crestez
-
Add build support for ADV7535 kernel driver.
Signed-off-by: Fancy Fang
(cherry picked from commit 124ff1d4de5bc93d5bd2c68ac0fcb4f414b199ef) -
Create a new dts file 'imx7ulp-evk-hdmi.dts' to enable hdmi
display to avoids conflict with mipi dsi panel display. Use
endpoint to connect dsi controller and adv7535.Signed-off-by: Fancy Fang
(cherry picked from commit 86fb9340d01a4583628d465f29fba67df93c453c) -
ADV7535 is a low-power MIPI-DSI receiver with HDMI 1.4 compliant
transmitter. And it's an I2C device attached by lpi2c5.Signed-off-by: Fancy Fang
(cherry picked from commit 0bbfb671445d1f2d5037ea7168ebcb4699760095) -
Add the 'data-lanes-num' and 'max-data-rate' properties which
are used to describe this mipi dsi capabilites.Signed-off-by: Fancy Fang
(cherry picked from commit bfe7d0e1c6931467f00a382e48aa592bf50c9339) -
Add VLLS mode support for NorthWest MIPI DSI controller.
Signed-off-by: Fancy Fang
(cherry picked from commit 9a0fb27dc67fb0d156ca6d5a09349b7163cfcfd2) -
This patch fixes the following warning on various imx boards:
OF: Duplicate name in lcdif@......, renamed to "display#1"
Signed-off-by: Octavian Purdila
-
Add PWM backlight support on i.MX7ULP EVK board.
Signed-off-by: Bai Ping
[Octavian: fix checkpatch warnings]
Signed-off-by: Octavian Purdila -
Enable TPM PWM driver in default config.
Signed-off-by: Bai Ping
-
Add pwm device node in dtsi file.
Signed-off-by: Bai Ping
-
According to the manual the bit value for the minimum 1.1V is 0x14, not
0x8. This fixes reading incorrect voltages from the regulator. On new
kernels reading an out-of-range voltage on startup results in probe
errors.Signed-off-by: Leonard Crestez
Reviewed-by: Octavian Purdila -
Fix HDMI functionality by changing DE default polarity to active high,
which is needed by the default HDMI mode. Active low DE is needed by MIPI
DSI, which is why there is a different dts file for working with a MIPI
DSI panel.This issue has been previously fixed in commit 5443a75ed03 ("MLK-14283: dts:
fix DE polarity for lcdif"), but this commit was reverted because it broke
other workflows. It was reverted in commit 34ac60798ec ("Revert "MLK-14283:
dts: fix DE polarity for lcdif"")and another solution was offered in
commit 8766ca8eddf ("MLK-14399: 4.9 rebase: LVDS panel does not work on
iMX6SX Auto").This change of the default DE polarity was one of the changes in the
reverted commit, which should have been kept.Signed-off-by: Cristina Ciocan
-
This fixes the following boot warning:
OF: Duplicate name in lcdif@30730000, renamed to "display#1"
Signed-off-by: Octavian Purdila
-
The default on 4.1 was to be enabled by default, but that changed in
4.9. Since we have tests that depend on it and it does not add too
much overhead, explicitly enable it in the config.Signed-off-by: Octavian Purdila
-
This patch does not introduce any changes in the config, it just
re-runs savedefconfig to create a proper minimal defconfig for the
current version.Signed-off-by: Octavian Purdila
-
Commit 2c2a56059ff7e7e4 ("MLK-11407-8: ARM: dts: i.mx6sx/i.mx6ul: add
ldo-bypass support") was backported from imx_4.1.y and added a
duplicate i2c node which was already present upstream.This patch removes the duplicated node and moves the difference
(clocks for wm8960) to the existing upstream node.Signed-off-by: Octavian Purdila
Reviewed-by: Daniel Baluta -
These devices are enabled on imx_4.1.y, enable them on imx_4.9.y as
well.Signed-off-by: Octavian Purdila
-
The pad setting suggested by HW team affects the normal function
of sdio wifi. This patch changes the pad setting for sd3.Signed-off-by: Gao Pan
Signed-off-by: Tiberiu Breana