summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-30MLK-12948 ARM: dts: imx7d-sdb: change the hardware reset gpio for mipi dsirel_imx_4.1.15_1.2.0_gaFancy Fang
Change the hardware reset gpio to 'GPIO6_IO15' for mipi dsi to allow fec2 and mipi dsi can run at the same time. This needs some hardware rework as follows: " 1. Replace R631 with 100K resistor; 2. Remove D14, D24; 3. Solder the Cathode of the diode to R471, you can use BAT54HT1(ONSEMI) or NSR0320MW2T1G(ONSEMI); 4. Solder the wire to the Anode end of the diode; 5. Scrape the solder mask(Green oil) of the MIPI Reset via, then solder the end of the wire to the via. " Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 0af28564e73f006f742a9af0db4bc5b8588e3490)
2016-06-30MLK-12946 media: pxp-v4l2: correct the 32 bpp pixel format passed to pxpFancy Fang
The 32 bpp pixel format which is passed to pxp should be 'PXP_PIX_FMT_RGB32' instead of 'PXP_PIX_FMT_RGB24', since only 'PXP_PIX_FMT_RGB32' can be recognized by lcdif. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit c98efc59e1bc6d1814b2179f1b7e9f22cb177f47)
2016-06-29mmc: mmc: fix switch timeout issue caused by jiffies precisionChaotian Jing
with CONFIG_HZ=100, the precision of jiffies is 10ms, and the generic_cmd6_time of some card is also 10ms. then, may be current time is only 5ms, but already timed out caused by jiffies precision. Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> (cherry picked from commit 8bcce64faaaf07165453e6600ae9ffb887e79b1a) Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit 38f639884a2cfd65cbe29ac2fbfe4ab3fcb1f1af)
2016-06-29mmc: core: fix __mmc_switch timeout caused by preemptChaotian Jing
there is a time window between __mmc_send_status() and time_afer(), on some eMMC chip, the timeout_ms is only 10ms, if this thread was scheduled out during this period, then, even card has already changes to transfer state by the result of CMD13, this part of code also treat it to timeout error. So, need calculate timeout first, then call __mmc_send_status(), if already timeout and card still in programing state, then treat it to the real timeout error. Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> (cherry picked from commit 3bbb0deea6d5c6d5ed38ae927a5bf9b0cd7c8639) Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit b9b8249b98b9128d8931887eccb38cd45a0f8bf3)
2016-06-29MLK-12934-2 mmc: sdhci-esdhc-imx: do not touch other bit when config DTOCVHaibo Chen
Now, when call esdhc_set_timeout() to set the data timeout counter value, IPP_RST_N(bit 23) is wrongly affected. This patch add a mask to avoid this. Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit 6713b713dda4382677bc31a16d6ff3ef23f2d1ac)
2016-06-29MLK-12934-1 mmc: sdhci-esdhc-imx: correct the max timeout countHaibo Chen
Our Reference Manual has a mistake, for the register SYS_CTRL,the DTOCV(bit 19~16) means the data timeout counter value. When DTOCV is set to 0xF, it means SDCLK << 29, not SDCLK << 28. This patch correct this in our usdhc driver. Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit df9598d6dd617ed87b2e41e29bfc794b69831e86)
2016-06-22MLK-12944 fix makefile miss imx7d-12x12-lpddr3-arm2-pcie.dtbFrank Li
Added imx7d-12x12-lpddr3-arm2-pcie.dtb to makefile Signed-off-by: Frank Li <Frank.Li@nxp.com>
2016-06-22MLK-12935 ARM: imx: switch system counter clock to 32K in suspendAnson Huang
During suspend, as 24MHz will be disabled, but system counter needs to be running in order to maintain accurate clock source, so we need to switch system counter's clock from base clock(24MHz) to alternate clock(32K) before system enter STOP mode, otherwise, the suspend time will NOT be counted into system time when issue a "date" command. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2016-06-16MLK-12902: usdhc: Revert "MLK-11685-5 mmc: sdhci-esdhc-imx: no need busfreq ↵Haibo Chen
for imx6qdl" This reverts commit 312979d1fcbd068d4ba0f461e974e7cbcc889548. When busfreq is at low bus mode, which is 24MHz, it means DDR/AHB/AXI will drop to 24MHz. At the same time, when in low busfreq mode, cpuidle can be in low power idle, DRAM will be put into self-refresh and DRAM IO will in low power mode to save power, so DMA will NOT work. So all peripherals that needs DMA, need to request bus freq to high setpoint when it is active. Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit 2c01452f4d7c0f65553b365adc27a1b7b6ba8644)
2016-06-14MLK-12899-2 video: mipi_dsi_samsung: add panel 'TFT3P5581' driver.Fancy Fang
Add the mipi panel 'TFT3P5581' driver. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 17a4dce7f9a80166ddcc76205b13c1999767899c)
2016-06-14MLK-12899-1 ARM: dts: imx7d-sdb: add dts support for panel 'TFT3P5581'.Fancy Fang
Add the dts support for the new mipi panel 'TFT3P5581'. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 3b2b9a727c8c6d97e225237a52865486bab844fa)
2016-06-14MLK-12901-3 video: mipi_dsi_samsung: alwasy use video mode to transfer data ↵Fancy Fang
and cmds. Since the lcdif uses RGB interface to transfer image data to mipi dsi, video mode should be used to transfer the image data. So, the commands transfer should also use video mode to avoid unnecessary mode switches. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 57d2d01a4fbdf6fb8f71515a74765492d1d34dab)
2016-06-14MLK-12901-2 video: mipi_dsi_samsung: add 10msec delay after all the pkt ↵Fancy Fang
write operation. Add 10msec delay after all the pkt write operations to let the data to take effect on the panel's side. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit f53d88d5996f3384533b50d21503b6e5e3e06b06)
2016-06-14MLK-12901-1 video: mipi_dsi_samsung: correct the hardware reset calling ↵Fancy Fang
position. The hardware reset should be done on LP-11 mode which is the data/clk stop state. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit cfab3dd4f519adf4e14247e6d09169a1d7833f13)
2016-06-14MLK_12886-2 video: mxsfb: handle the assert gpio in driver to support ↵Fancy Fang
deferred probe The assert gpio comes from 'gpio_spi' module, so the framebuffer depends on the 'gpio_spi' driver loading. And in the case that the framebuffer driver is loaded earlier than the 'gpio_spi' driver, the gpio asserting will fail. So handle this gpio in the framebuffer driver and add deferred probed support. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 3e1b050fd0d9f39292208c6bcd1a474063234f89)
2016-06-14MLK-12886-1 ARM: dts: imx7d-sdb: the assert gpio for lcdif should be active lowFancy Fang
According to the 7d sdb schematic, only when the 'LCD_PWR_EN' is low voltage, the 'LCD_3V3' can has the 3.3V voltage. And 'LCD_3V3' is used to provide 3.3V power for lcd peripherals. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 2b34ed894f2efa27b336b61d4db9985a9c5e4f14)
2016-06-13MLK-12898: ov5640 mipi: Add more delay to wait sensor stableSandor Yu
Add more delay to wait sensor stable. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2016-06-03MLK-12880 arm: dts: imx7d: correct the PAD_GPIO1_IO01 pin ctrl settingAndy Duan
PAD_GPIO1_IO01 bit[31:7] are reserved, remove the setting mapping to this reserved field. Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2016-06-02MLK-12876: mipi csi: Remove regulator enable code when driver probeSandor Yu
Mipi CSI PHY regulator will enabled in function of s_power. So remove regulator enable code when driver probe. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2016-05-31MLK-12860-4 usb: chipidea: imx: add HSIC support for imx7dPeter Chen
Add HSIC support for imx7d. We have not supported HSIC as system wakeup as well as HSIC remote wakeup function at DSM mode, since the 24M OSC can't be off and the SoC internal regulators can't be off at this mode, that will keep power consumption much higher. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2016-05-31MLK-12860-3 ARM: imx: gpcv2: add reg_1p2's notifierPeter Chen
In this notifier, we can power on/off the two LDO's which are needed for USB HSIC. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2016-05-31MLK-12860-2 ARM: dts: add imx7d 12x12 ARM2 ddr3 board dtsPeter Chen
Add imx7d 12x12 ARM2 ddr3 board dts Signed-off-by: Peter Chen <peter.chen@nxp.com>
2016-05-31MLK-12860-1 ARM: dts: imx7d: add vcc-supply at gpc nodePeter Chen
It is missing at imx7d.dtsi, but used at source code. Signed-off-by: Peter Chen <peter.chen@nxp.com>
2016-05-31MLK-12861-2 ARM: imx: enable necessary clock for RDC resume on i.mx7dAnson Huang
When Mega/Fast Mix off in DSM mode, RDC recovery needs PCIe/PXP/EIM clock to be enabled, otherwise, with M4 enabled, DSM resume will fail. We only enable them before entering DSM and hardware will disable them when DSM is entered and they will be re-enabled after resume, then in low level resume phase, we will disable them again. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2016-05-31MLK-12861-1 ARM: imx: support runtime clock management on i.mx7d when M4 is ↵Anson Huang
enabled For i.MX7D, current runtime clock management code will skip all PLL/PFD/GATE enable/disable when M4 is enabled, this is NOT good for power number in low power idle and audio playback, as M4 only uses one high speed PFD which is from system PLL, it is never disabled runtimely, so we can just enable the hardware operation of PLL/PFD/GATE for A7. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2016-05-26MGS-1851 [#2332] fix the integer id resource leakXianzhong
the original fix (MGS-755) for vg memory leak is incomplete, further destroy the node handle to free the integer id with vg memory. Date: May 26, 2016 Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2016-05-24MLK-12795 pinctrl: imx: fix initialization of imx_pinctrl_descPeng Fan
To i.MX7D and i.MX6ULL, we need to support multiple iomux controller, but we only have one imx_pinctrl_desc with type static. This means different iomux controller share one imx_pinctrl_desc variable. The value filled into imx_pinctrl_desc when probing the first iomuxc node will be overriden when probing the second one. This will incur errors, such as 'mx7d-pinctrl 30330000.iomuxc: could not map pin config for "MX7D_PAD_LCD_DATA00"' In this patch, dynamically allocate imx_pinctrl_desc for each iomux controller to fix the issue. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 355b1f2153463bf838e928ffcab871e32cc5081f)
2016-05-23MLK-12781 ARM: dts: imx7d-12x12-lpddr3-arm2: add pinctrl for usb vbusLi Jun
Add pinctrls for usbotg1 and usbotg2 vbus control. This missing keeps the vbus enable pin is high after power up, so vbus is on and otg port will not enter suspend in device mode, as active usb port has high bus freq requested, this prevents system enter low bus freq. Signed-off-by: Li Jun <jun.li@nxp.com>
2016-05-23MLK-12695 dma: pxp-v2: fixing the mismatch calls of pm_runtime suspend/resumeFancy Fang
The 'pm_runtime_get_sync()' and 'pm_runtime_put_sync_suspend()' may be called not pairs. And this will cause the 'usage_count' to be negative. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 10135c736dfc1b3d5c449adb78118e3642b99276)
2016-05-23MLK-12669-2 dma: pxp-v3: add 'ipg' and 'axi' clocksFancy Fang
Add 'ipg' and 'axi' clocks for pxp which should be used to control runtime power managments. Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2016-05-23MLK-12699-1 ARM: imx7d: clk: add two clocks definition for pxpFancy Fang
The pxp require two clocks to enable when it works, and they are 'ipg' and 'axi' clocks. Besides, the two clocks share the same CCGR to control clock gating. Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2016-05-23MLK-12622: mtd: gpmi: fix the issue in legacy bch supportHan Xu
missed the brackets for bch legacy support, which leads the large oob nand bch setting to wrong path. Signed-off-by: Han Xu <han.xu@nxp.com>
2016-05-23MLK-12602: Documentation: gpmi-nand: legacy bch geometry option for NANDHan Xu
document the new option for legacy bch geometry support. Conflicts: Documentation/devicetree/bindings/mtd/gpmi-nand.txt Signed-off-by: Han Xu <han.xu@nxp.com> (cherry picked from commit c1c24ecd24cb808e825eb13a3e3d016c283322cc)
2016-05-23MLK-12601: mtd: gpmi: provide the option to use legacy bch geometryHan Xu
Provide an option in DT to use legacy bch geometry, which compatible with the 3.10 kernel bch setting. To enable the feature, adding "fsl,legacy-bch-geometry" under gpmi-nand node. NOTICE: The feature must be enabled/disabled in both u-boot and kernel. Conflicts: drivers/mtd/nand/gpmi-nand/gpmi-nand.h Signed-off-by: Han Xu <han.xu@nxp.com> (cherry picked from commit 4d28b1693905526558892d40525763e6bc4469e4)
2016-05-23MLK-12421 usb: chipidea: fix build warning if disable CONFIG_USB_CHIPIDEA_HOSTLi Jun
Fix chipidea usb driver compile warning if CONFIG_USB_CHIPIDEA_HOST is disabled: In file included from drivers/usb/chipidea/otg.c:26:0: drivers/usb/chipidea/host.h:23:13: warning: 'ci_hdrc_host_driver_init' defined but not used [-Wunused-function] static void ci_hdrc_host_driver_init(void) ^ CC drivers/usb/chipidea/otg_fsm.o In file included from drivers/usb/chipidea/otg_fsm.c:34:0: drivers/usb/chipidea/host.h:23:13: warning: 'ci_hdrc_host_driver_init' defined but not used [-Wunused-function] static void ci_hdrc_host_driver_init(void) ^ Signed-off-by: Li Jun <jun.li@nxp.com>
2016-05-23MLK-12509-3 video: mipi_dsi_samsung: add build support for TFT3P5079E panel.Fancy Fang
The 'otm8018b' is the Source Driver IC which is used by 'TFT3P5079E' panel. This patch is adding the build support for the 'otm8018b' kernel driver. Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2016-05-23MLK-12509-2 video: mipi_dsi_samsung: add 'TFT3P5079E' panel driver.Fancy Fang
The 'otm8018b' is the Source Driver IC for 'TFT3P5079E' mipi panel. This patch is the kernel driver for 'otm8018b'. No backlight brightness adjustment function, since this is not supported by imx7d sdb revb board. Signed-off-by: Fancy Fang <chen.fang@nxp.com> Signed-off-by: Frank Li <frank.li@nxp.com>
2016-05-23MLK-12509-1 video: mipi_dsi_samsung: create a new dts for mipi dsi.Fancy Fang
Create a new dts for the 'TFT3P5079E' mipi panel on imx7d sabresd revb board. Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2016-05-23MLK-12449: mtd: gpmi: fix integer overflow issueHan Xu
fix the potential integer overflow issue found by coverify. Signed-off-by: Han Xu <han.xu@nxp.com>
2016-05-23MLK-12448: mtd: gpmi: fix nand double free issueHan Xu
fix the raw_buffer pointer double free issue found by coverify. Signed-off-by: Han Xu <han.xu@nxp.com>
2016-05-23MLK-12371: ARM: imx: suspend-imx7: correct HW_ANADIG_SNVS_MISC_CTRL setRobin Gong
To avoid touch other bits of HW_ANADIG_SNVS_MISC_CTRL , use set/clear register , and correct the bit29 setting: --before: write 1 to toggle DDR power pin to high before enter DDR retention, and write 1 again to pull pin to low when exit from DDR retention. --now: write 1 to pull DDR power pin to high and write 0 to low. Signed-off-by: Robin Gong <yibin.gong@nxp.com>
2016-05-19MLK-12420 fix potential head list corruption.Fancy Fang
The head list may be corrupted when two requests from the same 'pxp_chan' are issued sequentially. So change the issue_pending function to strictly serialized the requests to avoid this kind of issue. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 3ed71dcdd8ceeb3725399053f31c1930d2e7a08d)
2016-05-16MLK-12731-2 ARM: dts: Makefile: add dts entry for imx6q-arm2-hsicPeter Chen
This dts is only for USB HSIC controller test which needs Validation Port Card on it. Disable controller 3 due to strange signal on it at arm2 board. Signed-off-by: Peter Chen <peter.chen@nxp.com> (cherry picked from commit 8bd0739d81719ed8a09ca4e45393bb1c5ce3de83)
2016-05-16MLK-12731-1 usb: chipidea: imx: add missing HSIC initialization for imx6qdl/slPeter Chen
This piece of code is existed at imx_3.10, but missing at imx_3.14 and imx_4.1, port it from imx_3.10. Signed-off-by: Peter Chen <peter.chen@nxp.com> (cherry picked from commit 901f278a08baf6e5109bcf538f1f78cdbbccd389)
2016-05-11MLK-12688-02: arm dts: Add csis-clk-settle propertySandor Yu
Add csis-clk-settle property to imx7D SDB mipi csi. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com> (cherry picked from commit 01365628fdfadc4f8343722a2d5c69d5d8037540)
2016-05-11MLK-12688-01: mipi csi: Add clk_settle settingSandor Yu
Add clk_settle variable to compliance more mipi sensor. Mipi controller should setting by followed value according mipi sensor support D-phy version. Slave Clock Lane Control Register for TCLK-SETTLE. 2'b0x = 110 ns to 280ns (v0.87 to v1.00) 2'b10 = 150 ns to 430ns (v0.83 to v0.86) 2'b11 = 60 ns to 140ns (v0.82) Signed-off-by: Sandor Yu <Sandor.yu@nxp.com> (cherry picked from commit 928103ba7d28a7dbddf950892cb9d49ec2b192d3)
2016-05-11MLK-12432-03: arm: dts: Replace ov5647 mipi sensor with ov5640Sandor Yu
ov5647 mipi camera sensor is replaced by ov5640 on imx7D SDB RevB board. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com> (cherry picked from commit aef2ab14e91ccd173086a9849cf64619e078ed6f)
2016-05-11MLK-12432-02: capture: Add support for mipi inputSandor Yu
Combine csi image setting function for 32-bit,16-bit,8-bit format. For parallel 8-bit sensor input, when bit per pixel is 16, csi image width should been doubled. But for mipi input, the csi image width and height should align with mipi whatever data width. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com> (cherry picked from commit caa8725e713691b42aa112a6e51f12e7d595f139)
2016-05-11MLK-12432-01: ov5640 mipi: support more platform and reduce support modeSandor Yu
-Support no power and reset pins platform. -Remove specific power and reset pin setting for ov5640 daughter card. -Put sensor in software power down state when streamoff. -Remove unsupported video modes, keep 640x480, 720x480, 720p, 1080p 30fps video modes in driver. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com> (cherry picked from commit 6a6c44e2406dcd9481e3103ca2710a319265c52a)
2016-05-11MLK-12763 ARM: imx7d: iomux: correct uart input sel option valueAndy Duan
GPIO0~GPIO7 part: - Commit(c8cabda5ab07) add some wrong input sel value for uart, return them to origin setting. - Add uart DTE pin mode setting. UART2_TX_DATA pin part: - RM doc "iMX7D_RM_Rev0_Approval.pdf" (2016.04.25 updated in compass) updated input sel define for UART2_RX_DATA, then set the correct input sel for the pin. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit: 90a8b06b9735dd5b8d2023ff3b95886441e0e8d9)