summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/recipes-kernel/linux
AgeCommit message (Collapse)AuthorFilesLines
2020-06-25[AGL] Revert TMP fix on perf build with linux-renesasjellyfish_9.99.1jellyfish/9.99.19.99.1Jan-Simon Möller2-137/+0
This reverts commit 725785b7d85221173bfde44640ff10a06cef9ef3. Which introduced a build-fix for perf. This is upstream now. Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: I47531d1dcb40afef7b0a3dec5750f8bceefeb8fd
2020-05-26[AGL] fix on perf build with linux-renesasJan-Simon Möller2-0/+137
This is a backport from upstream linux and enables building perf with newer binutils. Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: I1e09e5a259ac08e94687bcde16a1695495c14ee2
2020-05-19[COMMUNITY] Fix SSI DMAC inaccessible via Xtensa HiFi2 ADSP firmwareMark Farrugia2-0/+41
The upgrade of the kernel to 4.14.35 has changed the SSI interface in the RCar SoC sound driver, making it that the Xtensa HiFi2 ADSP firmware can no longer directly access the SSI DMA controller in order to route audio directly out to hardware. This seems to fix this issue, allowing the Fiberdyne DSP to fully operate again on 4.14.35 kernels. Change-Id: Id89843b0a8a65f07964027639dde68791261cab6 Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
2020-05-04rcar-gen3: linux-renesas: Fix ZPOS issue occurs on Weston 8.0.0Khang Nguyen2-0/+94
This applies a patch to Kernel to fix ZPOS issue occurs on Weston 8.0.0: According to drm_plane_create_zpos_property() function documentation, all planes zpos range should be set if zpos property is supported. However, the rcar-du driver didn't set primary plane zpos range. Since the primary plane's zpos is fixed, set it immutably. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: I1adb23fd123a6aaafa1ea2c669631200967bff89
2019-12-24rcar-gen3: linux-renesas: Fix Perf build failure with 4.14 kernelKhang Nguyen2-0/+922
OE-Core started using Python3 for perf module. But older kernel such as 4.14 does not have support for python3. This causes build failure as follows: | Makefile.config:391: DWARF support is off, BPF prologue is disabled | Makefile.config:588: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev | Makefile.config:626: Python 3 is not yet supported; please set | Makefile.config:627: PYTHON and/or PYTHON_CONFIG appropriately. | Makefile.config:628: If you also have Python 2 installed, then | Makefile.config:629: try something like: Backported python3 support, as a suggestion here: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-kernel/perf?id=92469aad50b623afa423c19d82ed2e3c667c5e6a This fix was backported from: https://lists.yoctoproject.org/pipermail/meta-intel/2019-September/006191.html Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: Ieaad61fb9bd4888e6226c8e00d4807f738cc0b55
2019-12-24rcar-gen3: linux-renesas: Generate defconfig automaticallyDuy Dang2-6424/+4
KCONFIG_MODE helps to select defconfig and generate it automatically, there is no need to have an external defconfig file. Change-Id: Ibedbaa95476d8b2bbd7c5950ae95d21bb617068e Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-12-24rcar-gen3: linux-renesas: Update Linux BSP to v3.9.7Khang Nguyen1-3/+3
This commit updates Linux BSP to v3.9.7 for the following change: [SD/MMC driver] - Add HS400 support. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: I28dd976deec8938a4cfdaa7bd461e3247d34db74
2019-09-23rcar-gen3: linux-renesas: WORKAROUND to fix build error with Linux v4.14Thuy Tran2-0/+66
This commit applies WORKAROUND patch for the following error: | ERROR: linux-libc-headers-4.14-r0 do_install: oe_multilib_header: Unable to find header asm/bpf_perf_event.h. Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: I47d36ed12f8c24ed41031d27303bb0e82c059d21
2019-09-23rcar-gen3: Change base_conditional to oe.utils.conditionalThuy Tran1-4/+4
This commit changes to use oe.utils.conditional because these base_* functions were removed in meta/lib/oe from YP2.5. (From Poky rev: 58449f0e9cc4a05c88204cf8ba887b55467d886e) Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: Iee8ccb134de4b955032427bd06c230c32c7084cf
2019-07-15rcar-gen3: linux-renesas: Fix ADSP deadlock issueKhang Nguyen1-57/+44
This commit updates ADSP patch to fix ADSP deadlock issue which causes video freezes randomly on Ebisu-4D/Salvator-XS board. Change-Id: I07d2f979ef32d3e37cf25f5ba7a474972eefd8d8 Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-07-15rcar-gen3: linux-renesas: Update Linux BSP to v3.9.6Duy Dang2-12/+31
This commit updates Linux BSP version to v3.9.6 for the following changes: [Audio driver] - Fixup 6ch settings to 8ch. The rsnd need to use 8ch clock settings for 6ch for TDM. - Avoid a potential deadlock. [DMA Engine driver] - With cyclic DMA residue 0 is valid. [IPMMU driver] - Remove cache snoop transaction for page table walk request. [SD/MMC driver] - Fix SCC error handling to avoid false positive CRC error. [Thermal driver] - Fix interrupt type. - Disable interrupt in .remove function. - Fix initial value of IRQCTL register. [USB2.0 Host driver] - Correct VBUS behavior at over-current. [Kernel] - [H/W Restriction No.123] The eMMC of R-Car M3 Ver.3.0 is restricted up to HS200 for H/W restriction by device tree. Change-Id: I36706b190a921ee8ec086f6c74a7fa986a0a1980 Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-04-02rcar-gen3: linux-renesas: Upgrade Linux BSP to v3.9.4Khang Nguyen1-2/+2
This commit upgrades Linux BSP to v3.9.4 for the following changes: - Fix power domain for FCPCS of r8a77965 in the device tree according to H/W UM Rev.1.50 correction in the future. - Rename AVB_AVTP_MATCH and AVB_AVTP_CAPTURE pin function definitions of r8a77990 according to H/W UM Rev.1.50 correction in the future. - Revert the patch of r8a77990 pinctrl about MOD_SEL1 bit31 and bit30 according to H/W UM errata for Rev.1.00. - Fix cpg_sd_clock_round_rate return value. - Rename some pin function and cpg definition according to H/W UM Rev.1.50 errata. - Rename SEL_ADG_B to SEL_ADGB and rename SEL_ADG_C to SEL_ADGC according to H/W UM Rev.1.50. - Fix SCIF5 DMA channels according to H/W UM Rev.1.50. - Fix clock and reset for ivdp1c according to H/W UM Rev.1.50. - Add support for R-Car M3 ES3.0. - Fix MMC cannot probe by modprobe command after S2R issue. Change-Id: I12901a91f2e6ebaf5879456faeb5f9d3baad6f32 Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2019-04-01rcar-gen3: Add support M3NULCB boardYusuke Goda1-1/+1
M3NULCB board specifications: R-Car M3-N Ver.1.1 DDR 2GiB eMMC 8GB(KLM8G1GESD-B04P) Change-Id: Ie857f76d7c96cd6e9a9196ce9bc27d98e878b161 Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com> Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-12-19rcar-gen3: linux-renesas: Upgrade Linux BSP to v3.9.2Duy Dang15-1654/+1750
This commit upgrades Linux BSP to v3.9.2 for the following changes: [Kernel] - Add support for RCKSEL clock selection. - Fix pin functions of R-Car E3 according to H/W UM Rev1.00 errata. - Fix warning of the make W=1 C=2. - Identify R-Car M3 Ver.1.3. - Add the big.LITTLE CAS scheduler fix patches. - Fix MOD_SEL bit numbering for R-Car E3. [Power Management] - Fixup power-domains of 3DGE for R-Car E3 Ver.1.0 and add device tree file for R-Car E3 Ver.1.0. [Audio Driver] - Fixup clock start checker. - Resolve the problem that the noise is generated during long playback with R-Car E3 Ebisu-4D board by kernel rebasing. [Display Driver] - Add function of suspend and resume to adv7511_drv.c and add hot plug event function at resume in rcar_du_drv.c. - Add depends on DRM_RCAR_DU to config DRM_RCAR_LVDS. - Revert "drm: rcar-du: Fix legacy DT to create LVDS encoder nodes". - Add clock function for LVDS PLL. [Ethernet Driver] - Decrease TxFIFO depth of Q3 and Q2 to one. - Fix not to call phy_resume() if PHY is not attached and add toggling phy reset if PHY is not attached. - Revert "ravb: RX checksum offload" for communicating of Q-Tag VLAN frame correctly. - Resolved the problem that the S2RAM resume failed on R-Car E3 Ebisu-4D by kernel rebasing. - Avoid unsupported internal delay mode for R-Car E3 and limit to 100Mbps. [I2C Driver] - Check bus state before reinitializing. [IPMMU Driver] - Fix crash on early domain free. - Revert "arm64: defconfig: Enable QCOM_IOMMU" for suspending with LTSI kernel. - Correct whitelist devices assignment. [PCIe Driver] - Avoid PCI device removing/rescanning through sysfs triggers a deadlock. [PWM Driver] - Avoid deadlock warning when removing PWM device. [SD/MMC Driver] - Fix card initialization failure in high speed mode. - Add adjust HS400 offset by manual calibration mode and adjust HS400 offset by manual calibration mode for R-Car M3 Ver.1.3. [USB2.0 Function] - Add reset_control. - Backport upstream patches to support OTG mode for R-Car E3. - Make DMAC system sleep callbacks explicit. - Add Super-Speed (b-device) support. [Video Capture driver] - Review adv748x driver for R-Car E3 Ebisu board and add option for changing SD output route to TXA. - Revert "rcar-vin: rcar-csi2: Add blank margin when caluculating bit rate" and fix pixel rate values. - Add CPG reset and release when using digital pin. [RWDT Driver] - Don't keep timer value during suspend/resume. - Don't set divider while watchdog is running. This also updates ADSP driver patches to adapt to the new Linux version. Signed-off-by: Duy Dang <duy.dang.yw@rvc.renesas.com> Signed-off-by: Khang Nguyen <khang.nguyen.xv@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-29rcar-gen3: linux-renesas: Add support ADSP ALSA driverKhang Nguyen6-0/+7496
This commit modifies recipes to support building ADSP ALSA driver when enabling adsp distro feature. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-29rcar-gen3: linux-renesas: Update device tree to support ADSP ALSA driverKhang Nguyen7-0/+250
This commit applies device tree rollback patches to support ADSP ALSA driver. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-29rcar-gen3: linux-renesas: Upgrade Linux BSP to v3.8.0Khang Nguyen2-51/+92
This commit upgrades Linux BSP to v3.8.0 for the following updates: [Kernel] - Fix CPG definitions of R-Car H3/M3N/E3 for H/W manual Rev.1.00. - PFC definitions of R-Car H3/M3N/E3 for H/W manual Rev.1.00. - Fix R-Car H3/M3N/E3 module clock system mistake. [Audio driver] - Fixup not to call clk_get/set under non-atomic. - Fixup SSI clock during suspend/resume modes. [Display driver] - Don't use TV sync mode when not supported by the hardware. - Add clock driver registration for LVDS PLL. [SATA driver] - Fix really mask all interrupts on Gen2 and later. [SD/MMC driver] - Add adjust HS400 offset by manual calibration mode. - Change HW adjustment register according to speed mode. [Video Capture driver] - Fix PHTW register procedure and VnCSI_IFMD register access for R8A77990. - Fix scaling judgement condition of #181156 patch. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-29Revert "rcar-gen3: linux-renesas: WORKAROUND for mini SD card issue on M3ULCB"Khang Nguyen2-117/+0
The Kernel source has been updated. This reverts commit 8b090e008ef2c4cb9a97c20426f1ac03f9f15555. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-19Revert "rcar-gen3: linux-renesas: Enable DEVFREQ configuration"Khang Nguyen2-11/+0
The Kernel Source has been updated. This reverts commit a1e844b0849b1c47f37f6ae6095b17bff5f79539 which is no longer needed. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-19rcar-gen3: linux-renesas: Upgrade Linux BSP to 3.7.3Khang Nguyen2-3/+20
This commit upgrades Linux BSP to 3.7.3 for the following updates: [Kernel] - Enable DEVFREQ configuration. [Audio driver] - Fix the noise problem when repeating start and stop of playback during capture. [Display driver] - Fix about reserved bits, unused registers and offset address related to HDMI registers for R-Car. - Add re-write of vsync pulse width. - Add dot clock valid check. - Revert "v4l: vsp1: Add max RPF number check". - Fix read past end of lvds[] array and fix div-by-0 when propagating pixelrate. - Fix bridge null check. - Track dma-buf fences. - Fix definitions according to H/W UM Rev1.00. - Allow importing non-contiguous dma-buf with VSP and set the DMA coherent mask for the DU device - Fix to refer to member after Null check in vsp1_pipe.c. [DMA Engine driver] - Add dma_pause operation. - Don’t use DMAC error interrupt. - Avoid to writing CHCR.TE to 1 if TCR is set to 0. [I2C driver] - Fix dma_direction variable clear. - Cleanup DMA for all kinds of failure. [MSIOF driver] - Fix handling of writing value of SISTR register. - Change wait time of reset completion [PCIe driver] - Handle returned value of rcar_pcie_wait_for_dl for warning QAC with MISRA-C 2012. [SD/MMC driver] - Backport upstream patch “mmc: core: properly init drv_type”. - Fix the definition of RST_RESERVED_BITS. - [H/W Restriction No.109] R-Car M3 Ver.1.2 or earlier does not support eMMC HS400 mode. It supports up to HS200 mode. [USB2.0 Host driver] - Add wait for IDDIG. [Video Capture driver] - Cleanup notifier in error path. - Add streaming count check when streming off. - Fix definitions according to H/W UM Rev1.00. - Fix setting order of UDS disable. Signed-off-by: Duy Dang <duy.dang.yw@rvc.renesas.com> Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-06-18rcar-gen3: linux-renesas: WORKAROUND for mini SD card issue on M3ULCBKhang Nguyen2-0/+117
This commit adds a WORKAROUND patch for the issue that mini SD partition information cannot be read correctly. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-06-18rcar-gen3: linux-renesas: Enable DEVFREQ configurationTakeshi Kihara2-0/+11
This commit enables DEVFREQ configuration. Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-06-18rcar-gen3: linux-renesas: Upgrade Linux BSP to v3.7.0Khang Nguyen8-388/+11
This commit upgrades Linux BSP to v3.7.0 for following updates: [Kernel] - Change Linux version to v4.14.35 from v4.14. - Add support ZG clock divider for R8A77990 (R-Car E3). - Remove patch for Identifing R-Car M3 Ver.1.2 or later. [Power Management] - Fix "Using plain integer as NULL pointer" in rcar_ems_ctrl.c. - Add AVS support for gsx_opp_table. - Update SYSC power ON/OFF flow. [Display driver] - Fix procedure for extal and dotclkin selection for R-Car E3. - Add shutdown callback function in platform_driver". - Fix state flag in case of dual link mode for R-Car E3. [Ethernet driver] - Move reset-gpios property to EthernetAVB node for R-Car E3 Ebisu board. [I2C driver] - Fix handling of the RESTART phase and STOP phase. [MSIOF driver] - Add 2 clock delay by R-Car H3 Ver.3.0 only specification. [SD/MMC driver] - Fix eMMC HS400 mode setting. - Delete wait in tuning process. [USB2.0 Function] - Avoid wrong list handling in printer_write(). [USB2.0 Host driver] - Avoid the problem of Suspend to RAM in case of connecting USB mouse by removing following patches: <commit ID:cad25bf1> phy: rcar-gen3-usb2: Add the interrupt disabled in suspend <commit ID:318b535> phy: rcar-gen3-usb2: Support System Suspend To RAM [Video Capture driver] - Fix IFMD table information for R8A77990 (R-Car E3). Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-04-21rcar-gen3: linux-renesas: Apply the power control patches for H3 Ver.3.0Khang Nguyen7-0/+362
This commit applies the power control patches in R-Car H3 Ver.3.0. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-04-21rcar-gen3: linux-renesas: Upgrade Linux BSP to v3.6.2Khang Nguyen2-3/+4
This commit upgrades Linux BSP to v3.6.2 for following updates: [Kernel] - "WARNING: possible circular locking dependency detected" occurs with repeating reboot. However, it was false positive, and it was confirmed that there was no problem. - Identify R-Car M3 Ver.1.2 or later. - Remove lossy descompress area from MMNGR node and reduce reserved area for R-Car E3 Ebisu board. [Power Management] - Improve power domains always on implementation. - Fix interrupts are not raised issue on R-Car E3. - Update CAS source. [Display driver] - Add overlay layer size check. - Fix possible crtcs for plane when using VSPDL. [IPMMU driver] - Add workaround for disabling uTLBs. [MSIOF driver] Add MSIOF module clock changing processing for R-Car Series, 3rd Generation. [PCIe driver] - Fix memory leak in of_pci_get_host_bridge_resources. [Thermal driver] - Use DIV_ROUND_CLOSEST correctly as its description. [USB3.0 Host driver] - Cannot Suspend to RAM when enabling USB3.0. - Confirm recognition of USB3.0 memory through HUB for setting /etc/udev/rules.d/99-usb.rules. [Video Capture driver] - Allocate a scratch buffer at stream start. Then use scratch buffer and always run in continuous mode. - Fix PHTW register flow below 250 mbps. - Fix clock control flow so that the warning message “MSTP status timeout” is not displayed and when UDS (scaling) is executed at VIN0, a black screen does not come out. - Fix streaming procedure when resuming. [Audio driver] - Playback or capture doesn’t resume after Suspend to RAM. [USB2.0 Function] - Kernel error occurs with rmmod of g_printer. - The dd command error occurs with g_mass_storage. [USB2.0 Host driver] - When connecting USB mouse, “Bad mode in Error handler” may occur with Suspend to RAM. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-03-22rcar-gen3: linux-renesas: Ensure only build CAS with H3 or M3 SoCKhang Nguyen1-1/+2
CAS only supports H3 (SoC: r8a7795), M3 (SoC: r8a7796). This commit adds a python function to disable CAS automatically and show the warning message as below in case of wrong setup. | WARNING: linux-renesas-4.14.0+gitAUTOINC+4a7e26bdbc-r1 do_cas_checking: | CAS only supports H3 (SoC: r8a7795), M3 (SoC: r8a7796), this feature will be disabled automatically Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-03-22rcar-gen3: linux-renesas: Enable RPMSG_VIRTIO config depend on ICCOMKhang Nguyen3-0/+39
This commit modifies recipe to enable RPMSG_VIRTIO config depend on ICCOM distro feature. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-03-22rcar-gen3: linux-renesas: Add support E3 and upgrade Linux BSP to v3.6.1Khang Nguyen2-6/+9
This commit adds support E3 and upgrades Linux BSP to v3.6.1 for the following updates: [Kernel] - Add R-Car E3 support. - Fix Gfx clock. [Power Management] - Register clock for all cpu nodes for R-Car H3 to device tree. - Improve to build only when enabling RCAR_POWER_AVS. - Update IPA for CA53, need tune "contribution" parameter. - Fix section mismatch build warnings. - Fix double source of drivers/soc/renesas/Kconfig. [Display driver] - Fix continuous mode for dual pipelines. - Fix DISP interrupt enable order, DPPR register set order and LVDS startup sequence. - Fix LVDS startup on R-Car Series, 3rd Generation. - Fix LVDS stop sequence. [DMA Engine driver] - Fix max_chunk_size for R-Car Series, 3rd Generation. - Check the done lists in rcar_dmac_chan_get_residue(). [I2C driver] - Fix the problem that the strange data transfers with DMA transmit. [IPMMU driver] - Fix sequence issue. [SD/MMC driver] - Fix handling of SET_BLOCK_COUNT for RPMB. [USB3.0 Function] - Fix oops in renesas_usb3_remove(). - Don't print a warning when setting link state for disabled ports. [Video Capture driver] - Fix transfer rate and phy register value. Add CPG reset release procedure. - Add bytes per line when opening device. - Fix power management procedure when resuming. - Add MSTP status check after CPG reset. - Fix division procedure for __udivdi3 error. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-03-22Revert "rcar-gen3: linux-renesas: Fix M3ULCB hangs up when playing video"Khang Nguyen2-63/+0
Linux BSP v3.6.1 has been updated. This reverts commit f8e4fb869abdfac3211b5f933202644901eeac7a. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-01-30rcar-gen3: linux-renesas: Fix M3ULCB hangs up when playing videoThuy Tran2-0/+63
The M3ULCB ES1.0 revision can not use CPUIdle for CA53 cores. This commit modifies recipes to apply a patch that disables CPUIdle support for CA53. Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-01-30rcar-gen3: linux-renesas: Update to enable USB 3.0Thuy Tran2-0/+19
This commit modifies recipe to install USB 3.0 firmware to kernel source and to enable USB 3.0 in kernel image. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-01-30rcar-gen3: linux-renesas: Update to support CAS featureThuy Tran2-0/+7
This commit adds SCHED_DEBUG config fragment to support CAS. Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-01-30rcar-gen3: linux-renesas: Upgrade Linux BSP to v3.6.0Thuy Tran26-1594/+933
This commit upgrades Linux BSP to v3.6.0 for supporting Kernel v4.14 stable and updating following items: [Kernel] - Add support for WDIOF_CARDRESET. [Power Management] - Add missing iounmap to rcar_avs.c. - Add big.LITTLE CAS support. - Add CA53 CPUIdle support. - Add CA53 EMS support. - Add CA53 CPUFreq support. [Audio driver] - Confirm rmmod command operation of snd-soc-rcar. - Skip disabled-SSI nodes. - Care ssi_parent_mod and remove NULL check from rsnd_mod_name()/rsnd_mod_id(). - Revert IOMMU support so far. - Don't use runtime->sample_bits. - More clear rsnd_get_dalign() for DALIGN. - Clear SSI_MODE for non TDM Extended modes. [Display driver] - Confirm the Fence function. - Add support for colorkey alpha blending. - Disable vsp1 interrupt when startup. [DMA Engine driver] - Fix array-bounds warning refer chcr_ts[]. [PWM driver] - Enable PWM2 in device tree. [USB2.0 Function] - Fix the problem that the interrupt becomes long time when disconnecting the USB cable. [Video Capture driver] - Add V4L2_FIELD_SEQ_TB/BT function support. - Add ARGB8888 caputre format support and overflow debug message option. - Fix cropping procedure. [RWDT driver] - Add support for WDIOF_CARDRESET. Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-11-24rcar-gen3: linux-renesas: Update SRC_URI to support ICCOM moduleThuy Tran25-0/+1321
This commit modifies Linux BSP recipes to add more patches to support ICCOM module. Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-11-24rcar-gen3: linux-renesas: Upgrade Linux BSP to v3.5.9Thuy Tran2-2/+4
Linux BSP has been upgraded for supporting R-Car M3N Ver.1.0 and updating following items: [Kernel] - Add R-Car M3N Ver.1.0 support. - Fix MSIOF3 and VI5_DATA13 pinmux settings. [Audio driver] - Don't check SSISR::DIRQ when Capture. - Call dummy write for PW_MGMT1/3 with AK4613 when Playback. - TDM 6ch needs 8ch clock for hw refine. - Fix pcm-creation regression. [Display driver] - Fix race condition when disabling planes at CRTC stop and add reference counting to drm_atomic_state. - Fix register parameters passed to HDMI. - Unconditionally call prepare_fb and remove drm_atomic_helper_framebuffer_changed. [DMA Engine driver] - Fixup descriptor pointer for descriptor mode and use TCRB instead of TCR for residue. [Ethernet driver] - Fix condition of phy reset. [I2C driver] - Fix I2C DMA reception by adding reset. - Fix I2C DMA transmission by setting sequence. - Fix DMA Callback processing of I2C dma mode. - Fix handling of the STOP phase. [MFISLock driver] - Revert and add support for R-Car Gen3 Hardware Spinlock again. [SD/MMC driver] - Add identification of TAP and clock settings of HS400. - Fix HS400 mode selection process. - Fix SCC error check condition. [USB2.0 Function] - Avoid spinlock recursion. [USB3.0 Function] - Fix for no-data control transfer and fix Pn_RAMMAP.Pn_MPKT value. - Fix return value of usb3_write_pipe(). - The maximum PIPEs change from 30 to 5 except PIPE0 and EP0 by H/W specification’s change. H/W specification is fixed because it has description mistakes. [Video Capture driver] - Remove VnMC setting when setting VnCSI_IFMD. - Fix PHTW register parameter for mbps. Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-08-25rcar-gen3: linux-renesas: linux-renesas: Upgrade Linux BSP from v3.5.5 to v3.5.8Thao Nguyen1-2/+2
Linux BSP has been upgraded for following changes: v3.5.8 [Audio driver] - Fix S2R issue. [DMA Engine driver] - Fix S2R issue. [USB2.0 Function] - Fix lock variable no init [USB Host 3.0] - Fix support for R-Car Gen3 USB 3.0 PHY. v3.5.7 [DMA Engine driver] - Fix the missing spin_unlock_irqrestore. [Display driver] - Fix unload procedure for vsp1. v3.5.6 [Kernel core] - Add next-level-cache property to CA53. - Add 12288000 for sound ADG or fix descending order of sound clock frequency to device tree. - Fix the audio pingroup name mismatch between sh-pfc driver and dts to device tree. [Power Management] - Change the reading AVS value method. - AVS7 opp table to device tree. - The resume function for SYSC driver and always turn on all power domains except CPU and GPU. - Change sequence for judgement using fixed values or Fuse values. [Audio driver] - There are sampling rate patterns that can not be converted by combination of audio clock and AK4613. It was confirmed this is a board specifications. However, they can be converted via alsalib. - Control kctrl items acceptance anytime/runtime. - SSI PIO adjust to 24bit mode. - Unsupport 64kHz sampling rate and more with AK4613 on Salvator-X/XS board. [Display driver] - Setup planes before enabling CRTC to avoid flicker. - Use DRM core's atomic commit helper. - Fix display list put for header mode. - Repair vblank for DRM page flips using the VSP1. - Wait for flip completion instead of vblank in commit tail. - Fix completed check in write back sequence. - Fix display starting procedure and DPLL clock divider judgement. [PTP Clock driver] - Fix interrupt cause bit overwrite in ravb_ptp_interrupt. - Fix result value overwrite by a return value of ravb_ptp_interrupt(). - Fix inconsistent lock state at enabling tx timestamp. [SATA driver] - Fix blk_get_backing_dev_info() crash using bdev->bd_queue, so kernel panic can be avoided in case of high load average. [DMA Engine driver] - Fix invalid context of sleeping function. - Fix inconsistent lock reported by PROVE_LOCKING. [SD/MMC] - Add SDHI-SEQUENCER support. This is Workaround for SDHI-DMAC restriction of R-Car H3 Ver.1.x and R-Car M3 Ver.1.0. - Wait for CBSY instead of SCLKDIVEN. - Disable msleep() at start/stop of SD clock. - Discard obsolete SDIO irqs before enabling irqs. - Relax checking for switch errors after HS200 switch. - Replace msleep() of 20ms or less with usleep_range(). - Fix to use pre_req and post_req only for DMA transfer. - Fix alignment check of sg buffer. [USB2.0 Function] - Fix return value of usbhsg_ep_disable(), so the suspend procedure works when the g_mass_storage enables. - Fix NULL packet received sequence. - Fix UGCTRL2 value for R-Car Gen3. [USB3.0 Function] - Protect usb3_ep->started in usb3_start_pipen(), so kernel panic does not occur when executing iperf with g_ncm. - Confirm an error does not occur when executing interrupt transfer with g_zero by correcting evaluation procedure. - Confirm g_mass_storage is recognized by Host PC after role swap. Please use USB 2.0 cable, because role swap is compatible with High-Speed. - Fix free size in renesas_usb3_dma_free_prd(). - Fix zlp transfer by the dmac. - Fix pm_runtime_enable/disable and add CONFIG_PM_SLEEP to suspend/resume functions. [PCIe driver] - PCIe of R-Car Gen3 can access only 32 bit memory area at a certain point, even if using IPMMU. This is a H/W specifications. Signed-off-by: Thao Nguyen <thao.nguyen.yb@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-06-21rcar-gen3: linux-renesas: Update BSP to v3.5.5Thao Nguyen2-4/+24
This commit updates Linux BSP from v3.5.3 to v3.5.5 for following items: Kernel core - Add ZG clock divider support. - Revert and fix about Suspend to RAM. - Add DEVFREQ support for GSX. - Add usb companion property in EHCI. - Add USB3.0 peripheral device node. - Use IPMMU(MMU mode) for IPMMU-VP and IPMMU-VC0/1 with R-Car H3 Ver.1.x, for IPMMU-VP0/1 and IPMMU-VC0/1 with R-Car H3 Ver.2.0, in IPMMUVC0 with R-Car M3. - Add override support for the actual number of MMU contexts. - Fix audio Mix support on DTSI. Power Management - Cleanup AVS driver. - Update voltage for VDD_DVFS and VDD. Audio driver - Resolve 16bit/24bit capture noise problem by enabling clock-frequency for both 4.1kHz/48kHz and fixing possible NULL pointer dereference. - Resolve playback problem of sampling rate 32kHz, 176.4kHz and 192kHz by enabling clock-frequency for both 44.1kHz/48kHz. - Resolve “can’t get dma channel” error at the time of unbind/bind by fixing up of_clk_add_provider() usage for multi clkout and calling the missing of_clk_del_provider() when removing. - Resolve 48kHz audio 1-20k sweep noise problem by enabling clock-frequency 44.1kHz/48kHz. - Merge rsnd_kctrl_new_m/s/e into rsnd_kctrl_new(). - Fix 24bit capture noise problem by not using PDTA bit for 24bit on SSI. - Request/Release DMA channel each time for avoiding error of getting dma channel. Display driver - Use dma_map_sg_attrs to skip synchronization of the CPU cache. - Add mode_fixup callback function. - Control clock of bridge during S2RAM and change to control clock via clock driver. - Fix reserved register setting for R-Car for H/W manual update. - Add null pointer check for brs option. - Revert "drm: bridge/dw-hdmi: Add HDP interrupt disable for suspend". - Fix hierarchy of driver structure for clk-5p49x. DMA Engine driver - Revert dma pause function because it was rejected by upstream. GPIO driver - Revert and fix about Suspend to RAM. - Add GP-1-28 port pin support for R-Car H3 Ver.2.0 because of H/W manual updating to Rev.0.54E. Modify just PFC and DT. SCIF/HSCIF driver - Resolve system freezing. SD/MMC driver - Add initial setting of interrupt mask register. - Fix command sequence at error detection. - Fix “Wait for CBSY instead of SCLKDIVEN”. - Fix processing when detecting SCC error and fix error handling when issuing CMD23. - Fix reset_hs400_mode. - Fix problem that SDIO interrupt may be missed. USB3.0 Function - Add Role-change support. - Add DMA support. - Add basic function support. USB2.0 Host driver - Fix mouse connection time (2 second or more) when resuming. USB3.0 Host driver - Support for R-Car Gen3 USB 3.0 PHY for SSC function. - Add R-Car Gen3 USB 2.0 clock selector PHY, support for R-Car Gen3 USB 3.0 PHY. Video Capture driver - Add 2 lane support with rcar-csi2.c. - Fix image alignment for setting pre clipping. - Fix wait time for software reset in rcar-csi2.c because of H/W manual updating to Rev.0.54E. - Fix PHY initialization in rcar-csi2.c because of H/W manual updating to Rev.0.54E. - Fix PHTW register setting in rcar-csi2.c because of H/W manual updating toRev.0.54E. - Fix wait procedure usleep_range from msleep in adv7482.c. - Fix channel get procedure. Signed-off-by: Thao Nguyen <thao.nguyen.yb@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-04-19rcar-gen3: linux-renesas: Upgrade Linux BSP to v3.5.3Thao Nguyen1-2/+2
This commit upgrades Linux BSP to v3.5.3 and adds device tree file for M3 Salvator-XS board to salvator-x.conf. Linux BSP to v3.5.3 updates following items: Kernel core - Add workaround for PRR register of R-Car M3 WS1.1. (Fix printing cpu info.) - Add device tree file for Salvator-XS board with R-Car M3. - Fix R-Car M3 Salvator-X device tree file for MIX function of Audio driver. Power Management - Mark the OPP to be used during system suspend. - Enable CPUIdle function. - Apply new CPUIdle parameters. Audio driver - Confirm this driver can resume with Suspend to RAM during capture. - Avoid SSI_MODEx settings for SSI8. - Clear DE bit only in PDMACHCR when it stops. - Tidyup Audio-DMAC channel for DVC. - Enable PCM RATE until 192000. - Fix the setting of saved_rate during the resume process. Display driver - Fix the problem that the flicker may occur during rendering by the application. - Add brs option check for VGA connector. - Add routing set for digital RGB previously. DMA Engine driver - Fix release resources after interrupt process. Ethernet driver - Add phy-reset-gpios. This driver can work after Suspend to RAM with Salvator-XS board. - Fix GIS_PTMF bit clearing in ravb_ptp_interrupt. I2C driver - Revert and fix about unnecessary function related to Suspend to RAM. MSIOF driver - Fix SPI division value setting of R-Car M3 based on hardware specification. - Allow interrupts during msiof slave mode transfer wait. - Revert and fix about unnecessary function related to Suspend to RAM. RWDT driver - Fix timeout count calculation. SCIF/HSCIF driver - Fix panic when serial console and DMA are enabled. - Revert about unnecessary function related to Suspend to RAM. SD/MMC driver - Wait for CBSY instead of SCLKDIVEN. - Add re-tuning condition. - Add internal DMAC reset at startup. - Add the driver strength setting. eMMC HS400 mode can work with R-Car M3 WS1.1 on Salvator-XS board. Thermal driver - Fix to support thermal for both M3 WS1.0 and WS1.1. Video Capture driver - Fix resuming procedure. - Fix first field detection control. - Fix 720x480p transfer rate. - Fix video standard selection register setting. Change-Id: I3b0d6237c9d0c56a9f2870f1fde89ea215f163cd Signed-off-by: Thao Nguyen <thao.nguyen.yb@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-03-23rcar-gen3: linux-renesas: Update BSP to v3.5.2 and change coding styleThao Nguyen10-11532/+4
This commit updates version of Linux BSP v3.5.1 -> v3.5.2 to fix following issues: [v3.5.2] - Display driver [H/W Restriction No.54] + In R-Car H3 WS1.x, distortion appears on the screen, when IPMMU is enabled. But this problem is fixed with R-Car H3 WS2.0. - Video Capture driver + Fix remove procedure. - Add board Salvator-XS and H3 WS 2.0 support. It also modifies the linux-renesas_4.9.bb to change the way common files are included. There is no difference in kernel config files of Salvator-X, H3ULCB and M3ULCB so far. Hence, we only need to install one file to avoid confusion. Change-Id: I145e0a7696f97fe1841a8a213c51c5685ada0290 Signed-off-by: Thao Nguyen <thao.nguyen.yb@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-01-27First commit.Renesas-Yocto-v2.16.0Takamitsu Honda10-0/+17315
Renesas BSP v3.5.1 (kernel v4.9 stable) [Environment] poky: yocto-2.1.2 (cca8dd15c8096626052f6d8d25ff1e9a606104a3) meta-openembedded: 55c8a76da5dc099a7bc3838495c672140cedb78e meta-linaro: 2f51d38048599d9878f149d6d15539fb97603f8f [Information] - U-boot: Changed load address from H'49000000 to H'50000000 - XDG_RUNTIME_DIR has been changed from "/run/user/root" to "/run/user/0" - Change location of include directory, which stores common user header files, to $(INCSHARED) - In BSP Only, core-image-weston is not supported even though local-wayland.conf is provided. - Please set Salvator-x SW7 Pin-1. In after Yocto BSP v2.12.0, it is  necessary to enable BKUP_TRG signal for Suspend to RAM. - The dtb filename was changed in R-Car H3. Only "Image-r8a7795-es1-salvator-x.dtb" is supported in this version. Please use "Image-r8a7795-es1-salvator-x.dtb" It supports R-Car H3 WS1.0 and WS1.1. - Please update your local.conf and bblayers.conf corresponding to Yocto v2.16.0 package. You can refer to meta-rcargen3/docs/sample/conf/ for updated contents. - You have to re-compile out-of-recipe software like user application by v2.16.0 SDK toolchains. - In some boards, the resuming from System Suspend to RAM may cause unstable operation or failed to resume. Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>