Yocto Project Linux Firmware
  1. Yocto Project Linux Firmware

linux-wandboard

Public

Network

 
AuthorCommitMessageCommit Date
Sandor YuSandor Yu
81b66e6955fMLK-17341-2: dts: Add mipi csi gpio propriety Add mipi csi0/csi1 GPIO propriety. Add pinctrl setting for mipi_csi0/1 GPIO. Add power up pin for max9286. Acked-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Sandor YuSandor Yu
3e1fee31a6fMLK-17341-1: max9286: Add power up pin setting Add power up pin setting for max9286 driver. Acked-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Peter ChenPeter Chen
214e36bda2dMLK-17312-5 usb: cdns3: improve the role switch process Current design tries to switch role no matter it is a dual-role device or a single-role device. It produces extra switch process, and have an error message at console when tries to start a non-exist role. In this commit, we do below changes - The role switch work queue is only for dual-role or peripheral-only device. - For peripheral-only device, we need to switch role to CDNS3_ROLE_END since we need to close vbus and turn off clocks a...
Peter ChenPeter Chen
159cefd434aMLK-17312-4 usb: cdns3: gadget: fix the recognition issue when connection before load module At imx8qm/imx8qxp A0 chip, there is a vbus toggle issue, so we need to force the vbus as high before connection, otherwise, there will be endless connect/disconnect interrupts for USB2 and causes enumeration failure. The current work flow only cover this during the role switch, but omit it when the connection has established at module probe routine. This patch fixes it by moving force vbus operation...
Peter ChenPeter Chen
93e393c8c21MLK-17312-3 usb: cdns3: gadget: configure all endpoints before set configuration Cadence IP has one limitation that all endpoints must be configured (Type & MaxPacketSize) before setting configuration through hardware register, it means we can't change endpoints configuration after set_configuration. In this patch, we add non-control endpoint through usb_ss->ep_match_list, which is added when the gadget driver uses usb_ep_autoconfig to configure specific endpoint; When the udc driver receiv...
Peter ChenPeter Chen
65f771e6f8cMLK-17312-2 usb: cdns3: gadget: improve comments Fix typos and some error comments Acked-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Peter ChenPeter Chen
5e53900a6b6MLK-17312-1 usb: cdns3: gadget: prepare setup packet buffer before receiving it At current setup packet handling flow, the setup packet buffer is only prepared after the controller receives the setup packet, then stores it at its internal buffer, and trigger DESCMIS interrupt (Transfer descriptor missing) to prepare TRB for it. The shortcoming of this design is there is an extra DESCMIS interrupt, and consume more time on enumeration process. As an improvement, we parepare setup buffer befo...
Shengjiu WangShengjiu Wang
63291e1463aMLK-17344-2: ARM64: dts: add constraint-rate for hdmi of imx8qm In imx8qm the hdmi audio sound is breaking from time to time, the reason is that the DPLL jitter issue cause that HDMI can't lock this clock internally, that some audio data is dropped. It is hardware issue, here we add software workaround. We tried two method: 1. Changed Audio PLL setting to use non-fractional multiplier (768MHz=24MHz*32). This setting is significantly improving HDMI Audio but audio is still breaking from time...
Shengjiu WangShengjiu Wang
535bc038883MLK-17344-1: ASoC: imx-cdnhdmi: get constraint rate from dts Constraint rate depends on the clock rata of cpu dai, which is defined in dts, so we add constraint-rate property in dts, then driver can get it. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Haibo ChenHaibo Chen
b67c9ddc377MLK-17258 ARM64: dts: add off-on-delay for usdhc vmmc-supply regulator 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 recognized as SD3.0 card, just SD2.0 card. This is because the time delay between vmmc regulator off and on is too small. SD spec require the Card Vdd shall be lowered to less than 0.5v for a minimum period for 1ms. And the hardware regulator also need some time to ...
Shengjiu WangShengjiu Wang
06338d83d7bMLK-17334: imx8: pm-domains: fix array overflow issue When the resource id is larger than 512, the wakeup_rsrc_id array will overflow, then the resource may always power on. So align the IRQ with resource number to fix the issue. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Weiguang KongWeiguang Kong
13823532730MLK-17309-4: ASoC: fsl_hifi: fix crash issue when destination not align When loading the codec libs in driver, if the destination is not 4-bytes alignment when doing memset_hifi(), the driver will print a warning message and the driver may crash in some cases. So by changing the memset() function and aligning the virtual address based on the physical address to fix this issue. Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
Weiguang KongWeiguang Kong
57f63a615ccMLK-17309-3: ASoC: fsl_hifi: get free memory from hifi framework In order to manage the memory simply, all the memory which is shared between hifi driver and hifi framework are managed by hifi framework. So when the driver wants to get free memory, it can send "ICM_PI_LIB_MEM_ALLOC" command to hifi framework, then hifi framework will return the address of available memory to driver. When the driver wants to release the memory, it can send "ICM_PI_LIB_MEM_FREE" command to hifi framework, the...
Weiguang KongWeiguang Kong
b6cf72cb084MLK-17309-2: ASoC: fsl_hifi: use new way to realize multi-codec In current hifi driver, some resources are shared when multi codec decodes together. When switching between multi-codec, the hifi driver and framework need to save and restore the shared resources,this will waster time and complicate the hifi driver. So by distributing private resources for each codec to avoid this problem. When the user space wants to enable a new codec, it can send "HIFI4_CLIENT_REGISTER" command to hifi driv...
Weiguang KongWeiguang Kong
3e233922279MLK-17309-1: uapi: mxc_hifi4: provide new interface for user space In order to avoid license problem of Cadence header files, these license files has been wrappered into a library and new interface has been abstracted to replace the interface of Cadence header files. So update the mxc_hifi4.h file to provide new interface for user space to use. Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
Robin GongRobin Gong
d0856b87c72MLK-17332: ARM: imx: pm-rpmsg: remove workqueue delay With the latest M4 image on i.mx7ULP, which assume life cycle rpmsg is the first channel sending message during AP bootup, we should remove the delay timing window which other rpmsg channel may fall in, otherwise, such rpmsg channel may probe failed as pf1550 regulator rpmsg driver. Signed-off-by: Robin Gong <yibin.gong@nxp.com> Tested-by: Anson Huang <Anson.Huang@nxp.com>
guoyin.chenguoyin.chen
7a2deeaebecMA-10971 [8M-EVK]system cannot resume with mipi display In andorid UI framework, we will send DRM_MODE_DPMS_OFF to drm driver before we request kernel into suspend sate And send DRM_MODE_DPMS_ON after we resume kernel. mxsfb_resume should just recover the sate before kernel into suspend. Otherwise the mxsfb->connector is reset for DRM_MODE_DPMS_OFF, mxsfb drm driver have below kernel panic when resuming from suspend Unable to handle kernel NULL pointer dereference at virtual address 000000f...
Fugang DuanFugang Duan
341022f6d0bnet: fec: unmap the xmit buffer that are not transferred by DMA The enet IP only support 32 bit, it will use swiotlb buffer to do dma mapping when xmit buffer DMA memory address is bigger than 4G in i.MX platform. After stress suspend/resume test, it will print out: log: [12826.352864] fec 5b040000.ethernet: swiotlb buffer is full (sz: 191 bytes) [12826.359676] DMA: Out of SW-IOMMU space for 191 bytes at device 5b040000.ethernet [12826.367110] fec 5b040000.ethernet eth0: Tx DMA memory map f...
Anson HuangAnson Huang
1c6f4135a03MLK-17320 arm: imx: update copyright for i.mx7ulp Correct copyright issue introduced by commit: (468f38d MLK-17317 arm: imx: add no_console_suspend support for i.mx7ulp vlls mode) Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Anson HuangAnson Huang
468f38d8579MLK-17317 arm: imx: add no_console_suspend support for i.mx7ulp vlls mode LPUART driver currently turns off clocks during device suspend phase, but in i.MX7ULP platform low level suspend routine, lpuart will be saved/restored during suspend/resume, to avoid system hang caused by accessing lpuart registers without clocks enable, add console_suspend_enabled check for lpuart register save/restore. SCG1 SOSCDIV register needs to be saved/restored anyway, move it to asm code, all SCG1 registers ...
Ander Conselvan de OliveiraAnder Conselvan de Oliveira
624786953e3drm: Pass CRTC ID in userspace vblank events With the atomic API, it is possible that a single commit affects multiple crtcs. If the user requests an event with that commit, one event will be sent for each CRTC, but it is not possible to distinguish which crtc an event is for in user space. To solve this, the reserved field in struct drm_vblank_event is repurposed to include the crtc_id which the event is for. The DRM_CAP_CRTC_IN_VBLANK_EVENT is added to allow userspace to query if the crtc...
Anson HuangAnson Huang
23b8862eccaMLK-17314-3 arm: dts: imx7ulp: update nmi irq number On i.MX7ULP B0 chip, NMI irq number is changed, update it to make VLLS/VLPS work. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Anson HuangAnson Huang
33dc40a7e19MLK-17314-2 arm: imx: fix build warning Fix build warning introduced by below commit: (556d2d5 MLK-16750-5: arm: imx: support using psci to handle power stuff) arch/arm/mach-imx/pm-imx7ulp.c: In function 'imx7ulp_pm_common_init': arch/arm/mach-imx/pm-imx7ulp.c:747:17: warning: 'sram_paddr' may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Anson HuangAnson Huang
36c2dce35d5MLK-17314-1 arm: imx: remove snvs pcc save/restore On i.MX7ULP B0, SNVS is located in M4 domain, remove snvs pcc save/restore to avoid imprecise abort after resume: Restarting tasks ... Unhandled fault: imprecise external abort (0x1c06) at 0x00040000 pgd = b173c000 [00040000] *pgd=9169d835, *pte=00000000, *ppte=00000000 done. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Anson HuangAnson Huang
e30de63c76fMLK-17293-7 arm: dts: imx7ulp: update cpu set-points According to datasheet Rev-D, on B0 part, below CPU freq needs to be supported: 500MHz for RUN mode; 720MHz for HSRUN mode. Update opp table accordingly. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Anson HuangAnson Huang
78877a3754eMLK-17293-6 cpufreq: imx7ulp: support new set-points According to datasheet Rev-D, on B0 part, below CPU freq needs to be supported: 500MHz for RUN mode; 720MHz for HSRUN mode. To achieve best accurate frequency for CPU, adjust SPLL's frequency for SPLL_PFD0 which is CPU's clock source: SPLL 528MHz -> SPLL_PFD0 500.2MHz; SPLL 480MHz -> SPLL_PFD0 720MHz; Remove CPU RUN/HSRUN mode switch, since it is implemented as clock mux, whenever clock parent is switched, the RUN/HSRUN mode will be ch...
Anson HuangAnson Huang
eeb05b7f2eaMLK-17293-5 clk: imx7ulp: adjust clk tree for B0 chip On i.MX7ULP B0 chip, snvs is located in M4 domain, remove snvs clock from linux clock tree; Use SMC PMCTRL RUNM field for ARM clock mux instead of reserved register in SCG, as when CPU frequency changes, RUNM field will switch between RUN and HSRUN, ARM clock source will be changed accordingly, so RUNM can be used as a clock mux. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Anson HuangAnson Huang
8ffddc488f3MLK-17293-4 arm: dts: imx7ulp: remove snvs node On i.MX7ULP B0 chip, SNVS is located in M4 domain, remove it from dtsi. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Anson HuangAnson Huang
27c211a0dffMLK-17293-3 arm: imx_v7_defconfig: enable rpmsg rtc by default Enable rpmsg rtc by default. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Anson HuangAnson Huang
f70bb7eb334MLK-17293-2 arm: dts: imx7ulp: add rpmsg rtc node Add rpmsg rtc node for i.MX7ULP. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Anson HuangAnson Huang
b773dc36999MLK-17293-1 rtc: add rpmsg rtc support for i.MX7ULP On i.MX7ULP B0 chip, SNVS is located on M4 domain, all RTC related functions need to use RPMSG channel to communicate with M4 to proceed hardware operation. The RTC RPMSG channel index is 6. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Yuchou GanYuchou Gan
bbcadeb94fbMGS-2914-2 [#imx-587] [8QM/qxp] Disable depth compression Disable the depth compression will make gles cts fail. We will fix this failure later. Temporarily Enable it so that wouldn't block the release. Date: Dec 26, 2017 Signed-off-by Yuchou Gan yuchou.gan@nxp.com
Fugang DuanFugang Duan
d920f718832MLK-17290-06 arm64: dts: gpio: add mipi csi SS gpio clock and power domain GPIO in MIPI CSI SS also has its related ipg clock and power domain, add them. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Tested-by: Guoniu.Zhou <guoniu.zhou@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com>
Fugang DuanFugang Duan
764ebc90db1MLK-17290-05 gpio: mxc: save and restore gpio controller registers when power off Save gpio controller registers before power off, and then restore these registers after power on. There have two cases need to save/restore regs: a. If sub_irqs/sub_gpios are not free/released, device suspend() force runtime suspend and power domain off in suspended stage, it needs to keep the previous registers value after device resume back. b. If some sub_irqs set irq type just one time, then i...
Fugang DuanFugang Duan
89d5032d5bbMLK-17290-04 gpio: mxc: add runtime pm support Add runtime pm support to automatically enable the ipg clock and power domain if present. To save power, suggest all sub-devices of the gpiochip/irq domain should dynamically manage gpio/irq resouces like: gpio: gpiod_request() ... //set gpio direction gpiod_free() irq: devm_request_irq() //=> module active devm_free_irq() //=>module is non-active or runtime idle Since the driver support irqchip and gpiochip, any irq/gpio resouce requeste...
Fugang DuanFugang Duan
1ddd124d5e3MLK-17290-03 drm/bridge: request/free irq in dynamical Request/free irq in dynamical can runtime manage the irq domain's clock and power if irq domain support runtime pm and manage its clock in its pm callback. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Tested-by: Guoniu.Zhou <guoniu.zhou@nxp.com> Acked-by: Robert Chiras <robert.chiras@nxp.com>
Fugang DuanFugang Duan
8ddf940f907MLK-17290-02 i2c: imx-lpi2c: manage irq resource request/release in runtime pm Manage irq resource request/release in runtime pm to save irq domain's power. Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Tested-by: Guoniu.Zhou <guoniu.zhou@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com>
Fugang DuanFugang Duan
63440c68888MLK-17290-01 irqchip: imx-irqsteer: add runtime pm support Add runtime pm to manage irqsteer clock and its power domain in system idle and suspend status to save power. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Tested-by: Guoniu.Zhou <guoniu.zhou@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com>
XianzhongXianzhong
df426f1f2b6MGS-3531 [#imx-865] fix gpu kernel panic issue it is reproduced easily with multiple es11 cts tests, gpu kernel panic in function _ConvertLogical2Physical. need remove mdl from global list before destroy map list, this can prevent the wrong access on the freed map data. Date: Dec 22, 2017 Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Richard LiuRichard Liu
d9fc48e209aMA-10617 [#imx-836] Fix CtsMediaTestCases module test uncompleted issue CtsMediaTestCases module CTS test can't uncompleted due to native crash, the crash is due to memory leak in drm gralloc, when total leak reach to 4GB it will report mmap fail and cause CTS thread crash. Crash log: 12-02 08:14:51.982 1156 25401 E gralloc-viv: gralloc_vivante_lock#573: failed to mmap 12-02 08:14:51.982 1156 25401 E gralloc-viv: gralloc_lock#136: err=-25 12-02 08:14:51.982 1156 25401 E gralloc : gralloc_lo...
Meng MingmingMeng Mingming
f3c7d7b02d2MLK-17204-3 gpu: imx: dpu: Free command buffer when deinit Free command buffer when deinit. Signed-off-by: Meng Mingming <mingming.meng@nxp.com>
Laurentiu PalcuLaurentiu Palcu
ead7aadc201MLK-17257-2: drm: imx: dcss: use the WRSCL/RDSRC modules This patch makes the necessary changes so that, for downscaling ratios more than 3:1 and up to 7:1 (for video) and 5:1 (for graphics), the WRSCL/RDSRC path will be used. This way the DRAM bandwidth will be lower and spread evenly across the frame time. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Laurentiu PalcuLaurentiu Palcu
9970e6fb5d8MLK-17257-1: drm: imx: dcss: Add WRSCL/RDSRC modules WRSCL and RDSRC modules will be needed when downscaling ratios starting from 3:1 up to 7:1 are needed. Otherwise, if the usual scaling path is used, the DRAM bandwidth needed will be too much and performance will be affected. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Laurentiu PalcuLaurentiu Palcu
4b86b856448MLK-17274: drm: imx: dcss: use_global_alpha not working if channel already enabled If the channel is already enabled, or it doesn't need a mode set, then the dcss_dtg_global_alpha_changed() will always return false for formats with per-pixel alpha. Hence, the plane will not be updated. This patch removes the check for image format and the check will be done for all image formats. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Liu YingLiu Ying
a3a342a8e85MLK-17243 drm/imx: dpu: plane: Add format modifiers This patch adds format modifiers for DPU DRM planes. Signed-off-by: Liu Ying <victor.liu@nxp.com>
Dan CarpenterDan Carpenter
c725195e791drm: Shift wrap bug in create_in_format_blob() "plane->format_count" can go up to 64. (It's capped in drm_universal_plane_init().) So we should be using ULL type instead of int here to prevent shift wrapping. Fixes: db1689aa61bd ("drm: Create a format/modifier blob") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20170809111906.4rv3hzritctfktv3@mwanda (cherry picked from commit aa...
Ben WidawskyBen Widawsky
1f049ba9f8fdrm: Create a format/modifier blob Updated blob layout (Rob, Daniel, Kristian, xerpi) v2: * Removed __packed, and alignment (.+) * Fix indent in drm_format_modifier fields (Liviu) * Remove duplicated modifier > 64 check (Liviu) * Change comment about modifier (Liviu) * Remove arguments to blob creation, use plane instead (Liviu) * Fix data types (Ben) * Make the blob part of uapi (Daniel) v3: Remove unused ret field. Change i, and j to unsigned int (Emil) v4: Use plane->modifier_count ins...
Ben WidawskyBen Widawsky
b2f03f6dc16drm: Plumb modifiers through plane init This is the plumbing for supporting fb modifiers on planes. Modifiers have already been introduced to some extent, but this series will extend this to allow querying modifiers per plane. Based on this, the client to enable optimal modifications for framebuffers. This patch simply allows the DRM drivers to initialize their list of supported modifiers upon initializing the plane. v2: A minor addition from Daniel v3: * Updated commit message * s/INVALI...
Peter ChenPeter Chen
de5ebb98e5dMLK-17261-2 usb: chipidea: imx: do not call hsic callback for non-hsic controller With this judgement, the non-hsic controller will access wrong registers, and below error message will be showed: "usbmisc_imx 2184800.usbmisc: index is error for usbmisc" Fixes: 113be1516160 ("MLK-16715-6 usb: chipidea: imx: add HSIC support for controllers from imx7d") Reported-by: Peng Fan <peng.fan@nxp.com> Acked-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Peter ChenPeter Chen
cdda9d08215MLK-17261-1 usb: cdns3: gadget: fix the spinlock recursion problem when detach cable The __cdns3_gadget_stop holds spinlock before calling usb_ss->gadget_driver->disconnect which calls ep_disable, and ep_disable tries to hold spinlock too. To fix it, let spinlock only protect the variable and register access. Acked-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>