- Mar 17, 2022
-
-
AngeloGioacchino Del Regno authored
We need mediatek,mt8183-mmc in order to probe mtk-sd.
-
AngeloGioacchino Del Regno authored
The display won't work if we don't keep the power always on... set it as regulator-always-on until the issue gets fixed.
-
AngeloGioacchino Del Regno authored
All machines of the Cherry platform have a working DSP (integrated into the MT8195 SoC), and audio support, some with a different audio codec: specifically, some using Realtek's RT5682I and some RT5682S. Write a configuration for all the audio bits to enable functionality. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
On the Cherry platform, a MT7621 WiFi+Bluetooth combo is connected over PCI-Express (for WiFi) and USB (for BT): enable the PCIe ports to enable enumerating this chip. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
The Cherry platform uses an Elantech touchpad/trackpad: enable probing it at address 0x15 on I2C1. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
This platform carries a HID compatible I2C touchscreen on the i2c4 bus, but it may either be at 0x10, or at 0x15, depending on the board model: declare both as disabled in the common Cherry device-tree and enable the required touchscreen node on a per-board basis. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
This platform also has a secondary DisplayPort port, used to enable an external display. This port can be either wired directly as DP, or to a HDMI port (requiring the SoC's HDMI support). Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Add the required nodes to enable the DisplayPort interface, connected to the Embedded DisplayPort port, where we have an internal display. While at it, also add the necessary configuration for the backlight of the internal display to achieve full enablement. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
This platform has three auxilliary NTC thermistors, connected to the SoC's ADC pins. Enable the auxadc in order to be able to read the ADC values, add a generic-adc-thermal LUT for each and finally assign them to the SoC's thermal zones. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
This platform has a SPI NOR: enable support for it, completing the storage compartment enablement for the entire platform. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
As of now, all of the boards based on the cherry platform have a usable secondary SD/MMC controller, usually for SD cards: enable it to allow both booting from it and generally accessing external storage. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Add the regulators layout for this platform and configure all of the regulators that are provided by the MT6359 PMIC, including ones for the MFG0 (GPU) power domain and other peripherals, to enable lower power operation now that most devices have been enabled. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
All devices of the Cherry platform have a MT6360 sub-pmic, providing two LDOs. Add the required node to enable the PMIC but without regulators yet, as these will be added in a later commit. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Chromebooks' embedded keyboards differ from standard layouts for the top row, as this one doesn't have the standard function keys but shortcuts instead: map these keys to achieve the functionality that is pictured on the printouts. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Wire up the ChromeOS Embedded Controller on SPI0 and its communication channel via SCP RPMSG along with all of the offered functionality, including Keyboard, Smart Battery Metrics (SBS), PWM controller, I2C tunnel, regulators and Type-C connector management. While at it, also add support for the Cr50 Google Security Chip (GSC) found on this platform on I2C3 to support TPM and also use it as an entropy source for the kernel. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
MT8195 features a SCP like some other older SoCs, and Cherry uses it for various tasks. Add the required pin configuration and DMA pool and enable the node. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Add USB functionality by enabling the required PHYs and the XHCI controllers. This enables all of the supported USB ports on the Cherry boards. Please note that u3phy1 also enables u3port1, which is configured to be a PCI-Express PHY for the second PCIe controller that is found on the MT8195 SoC, which will be enabled in a later commit. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
This platform uses eight I2C controllers and one SPI controller: in preparation for enabling devices attached to these controllers, add basic configuration to enable the busses. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
To allow MT6359 peripherals to trigger interrupts and the driver to safely handle them, assign the right interrupt line for the Cherry platform to the MT6359 PMIC node. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Add gpio-line-names to document GPIO names and add the default basic pin configuration to allow lower power operation by setting appropriate state on the unused pins. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Introduce the MT8195 Cherry Chromebook platform, including three revisions of Cherry Tomato and one Cherry Dojo boards. This basic configuration allows to boot Linux on all board revisions and get a serial console from a ramdisk or from userspace flashed on the internal storage. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
This should get upstreamed by mtk soon, so donotupstream.
-
AngeloGioacchino Del Regno authored
Enable options required to boot ChromiumOS
-
- Mar 14, 2022
-
-
Nicolas Dufresne authored
Stop using refresh_frame_flags and rely on the udpate API that now provides reference_frame_ts[] array with all the active frames, and ref_frame_idx[] is the index to the references used by this frame.
-
Nicolas Dufresne authored
We need both all the references and the per frame references. This is because unlike VP9, show_existing_frame that are key frame will refresh the frame slots, which prevents the driver from keeping track since these frame are not signalled to the driver. Instead mimic other API (like VA and DXVA) and provide a complete list of active references. The driver can then cleanup any data it was storing for references that are no longer in use, saving previous memory.
-
- Mar 11, 2022
-
-
Tinghan Shen authored
The definition of L1TCM_SRAM_PDN bits on mt8195 is different to mt8192. L1TCM_SRAM_PDN bits[3:0] control the power of mt8195 L1TCM SRAM. L1TCM_SRAM_PDN bits[7:4] control the access path to EMI for SCP. These bits have to be powered on to allow EMI access for SCP. Bits[7:4] also affect audio DSP because audio DSP and SCP are placed on the same hardware bus. If SCP cannot access EMI, audio DSP is blocked too. L1TCM_SRAM_PDN bits[31:8] are not used. This fix removes modification of bits[7:4] when power on/off mt8195 SCP L1TCM. It's because the modification introduces a short period of time blocking audio DSP to access EMI. This was not a problem until we have to load both SCP module and audio DSP module. audio DSP needs to access EMI because it has source/data on DRAM. Audio DSP will have unexpected behavior when it accesses EMI and the SCP driver blocks the EMI path at the same time. Signed-off-by:
Tinghan Shen <tinghan.shen@mediatek.com>
-
AngeloGioacchino Del Regno authored
The mdp_ipi_comm structure defines a command that is either PROCESS (start processing) or DEINIT (destroy instance); we are using this one to send PROCESS or DEINIT commands from Linux to an MDP instance through a VPU write but, while the first wants us to stay 4-bytes aligned, the VPU instead requires an 8-bytes data alignment. Keeping in mind that these commands are executed immediately after sending them (hence not chained with others before the VPU/MDP "actually" start executing), it is fine to simply add a padding of 4 bytes to this structure: this keeps the same performance as before, as we're still stack-allocating it, while avoiding hackery inside of mtk-vpu to ensure alignment bringing a definitely bigger performance impact. Fixes: c8eb2d7e ("[media] media: Add Mediatek MDP Driver") Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
- Mar 09, 2022
-
-
- Mar 08, 2022
-
-
- Mar 07, 2022
-
-
Nicolas Dufresne authored
This reverts commit 78fe2e56.
-
-
- Mar 04, 2022
-
-
AngeloGioacchino Del Regno authored
This panel needs to get power on commands in high speed mode, otherwise these will get ignored. Fixes: a869b9db ("drm/panel: support for boe tv101wum-nl6 wuxga dsi video mode panel") Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
Xinlei Lee authored
In the dsi_enable function, mtk_dsi_rxtx_control is to pull up the MIPI signal operation. Before dsi_disable, MIPI should also be pulled down by writing a register instead of disabling dsi. Signed-off-by:
Jitao Shi <jitao.shi@mediatek.com> Signed-off-by:
Xinlei Lee <xinlei.lee@mediatek.com>
-
Jitao Shi authored
To comply with the panel sequence, hold the mipi signal to LP00 before the dcs cmds transmission, and pull the mipi signal high from LP00 to LP11 until the start of the dcs cmds transmission. If dsi is not in cmd mode, then dsi will pull the mipi signal high in the mtk_output_dsi_enable function. Fixes: 2dd8075d ("drm/mediatek: mtk_dsi: Use the drm_panel_bridge API") Signed-off-by:
Jitao Shi <jitao.shi@mediatek.com> Signed-off-by:
Xinlei Lee <xinlei.lee@mediatek.com>
-
Jitao Shi authored
In order to match the changes of "Use the drm_panel_bridge API", the poweron/poweroff of dsi is extracted from enable/disable and defined as new funcs (pre_enable/post_disable). Fixes: 2dd8075d ("drm/mediatek: mtk_dsi: Use the drm_panel_bridge API") Signed-off-by:
Jitao Shi <jitao.shi@mediatek.com> Signed-off-by:
Xinlei Lee <xinlei.lee@mediatek.com>
-
Jitao Shi authored
Old sequence: 1. Pull the MIPI signal high 2. Delay & Dsi_reset 3. Set the dsi timing register 4. dsi clk & lanes leave ulp mode and enter hs mode New sequence: 1. Set the dsi timing register 2. Pull the MIPI signal high 3. Delay & Dsi_reset 4. dsi clk & lanes leave ulp mode and enter hs mode In the new sequence 2 & 3 & 4 will be moved to dsi_enbale in later patch. Signed-off-by:
Jitao Shi <jitao.shi@mediatek.com> Signed-off-by:
Xinlei Lee <xinlei.lee@mediatek.com>
-
- Mar 03, 2022
-
-
AngeloGioacchino Del Regno authored
Replace the old vcodec-enc node with the new dual-core nodes.
-
- Feb 28, 2022
-
-
Nicolas Dufresne authored
Proposed fix for ("media: mtk-vcodec: Read max resolution from dec_capability")
-
Nicolas Dufresne authored
This reverts commit 65a7e1a5.
-
Daniel Almeida authored
Feature data can be negative if Segmentation_Feature_Signed[j] == 1, in which case it is read with the Su(n) syntax. Reflect that by changing the data type to s16. Signed-off-by:
Daniel Almeida <daniel.almeida@collabora.com>
-