- Mar 04, 2025
-
-
Sjoerd Simons authored
Starting with Mesa 25 AFBC will get more eagerly used. Unfortunately it seems both primary and overlay planes on Genio 700 and Genio 1200 are broken in this regard. On 1200 it results in odd corrupted frames, while on 700 it results in vblank timeouts (for primary planes) Add a HACK to disable AFBC for now until this can be further diagnosed
-
Julien Massot authored
The Radxa 8 HD touchscreen can be used with various Radxa board and is sold appart from the Radxa NIO 12L development kit. Add a DTS overlay for this panel. Signed-off-by:
Julien Massot <julien.massot@collabora.com>
-
Julien Massot authored
This board can use a MIPI-DSI panel on the DSI0 connector: in preparation for adding an overlay for the Radxa Display 8HD, add the backlight, and some definitions for pins available through the DSI0 port. Signed-off-by:
Julien Massot <julien.massot@collabora.com>
-
Mali Bifrost MMU support AArch64 4kB page tables. This feature is in panfrost based the HW_FEATURE_AARCH64_MMU feature flag. Signed-off-by:
Ariel D'Alessandro <ariel.dalessandro@collabora.com>
-
Sjoerd Simons authored
Suggested by Boris; Panfrost does not support uncached mappings, so also flag the pages that are mapped as response to a page fault as cached. TODO: * Merge with other patches from Ariel * Do a full CI run to check for regressions on G52 Signed-off-by:
Sjoerd Simons <sjoerd@collabora.com>
-
Signed-off-by:
Ariel D'Alessandro <ariel.dalessandro@collabora.com>
-
Bifrost MMUs support AArch64 4kB granule specification. However, panfrost only enables MMU in legacy mode, despite the presence of the HW_FEATURE_AARCH64_MMU feature flag. This commit adds support to use page tables according to AArch64 4kB granule specification. This feature is enabled conditionally based on the GPU model's HW_FEATURE_AARCH64_MMU feature flag. Signed-off-by:
Ariel D'Alessandro <ariel.dalessandro@collabora.com>
-
The TRANSTAB (Translation table base address) layout is different depending on the legacy mode configuration. Currently, the defined values apply to the legacy mode. Let's rename them so we can add the ones for no-legacy mode. Signed-off-by:
Ariel D'Alessandro <ariel.dalessandro@collabora.com>
-
As done in panthor, define and use these GPU_MMU_FEATURES_* macros, which makes code easier to read and reuse. Signed-off-by:
Ariel D'Alessandro <ariel.dalessandro@collabora.com>
-
Sjoerd Simons authored
This reverts commit c8e58692.
-
- Feb 26, 2025
-
-
AngeloGioacchino Del Regno authored
This is a defconfig for all MediaTek Genio boards, running on ArchLinux, Debian or PostmarketOS. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
Andrew Perepech authored
Add audio jack detection node. PMIC accessory detect driver will create an input device that will send key events on jack insertion/removal or accessory device key presses. Co-developed-by:
Andrew Perepech <andrew.perepech@mediatek.com> Signed-off-by:
Andrew Perepech <andrew.perepech@mediatek.com> Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Louis-Alexis Eyraud authored
Add a new gpu node in mt8370.dtsi to enable support for the ARM Mali G57 MC2 GPU (Valhall-JM) found on the MT8370 SoC, using the Panfrost driver. On a Mediatek Genio 510 EVK board, the panfrost driver probed with the following message: ``` panfrost 13000000.gpu: clock rate = 390000000 panfrost 13000000.gpu: mali-g57 id 0x9093 major 0x0 minor 0x0 status 0x0 panfrost 13000000.gpu: features: 00000000,000019f7, issues: 00000003, 80000400 panfrost 13000000.gpu: Features: L2:0x08130206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7 panfrost 13000000.gpu: shader_present=0x5 l2_present=0x1 [drm] Initialized panfrost 1.3.0 for 13000000.gpu on minor 0 ``` Reviewed-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by:
Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
-
Louis-Alexis Eyraud authored
Add a compatible for the MediaTek MT8370 SoC, with an integrated ARM Mali G57 MC2 GPU (Valhall-JM, dual core), with the same platform data as MT8186 (one regulator, two power domains). Despite their different GPU architecture (making them not being compatible), the MT8186 platform data can still be used for MT8370 because it only describes supplies, pm_domains and enablement of power management features in the panfrost driver. Reviewed-by:
Steven Price <steven.price@arm.com> Reviewed-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Acked-by:
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by:
Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
-
Louis-Alexis Eyraud authored
Add a compatible for the MediaTek MT8370 SoC, with an integrated ARM Mali G57 MC2 GPU (Valhall-JM, dual core). None of the already existing SoC specific compatibles is usable as fallback, as those either do not match the number of cores (and number of power domains), or are for a different GPU architecture. Reviewed-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by:
Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com> Acked-by:
Conor Dooley <conor.dooley@microchip.com>
-
AngeloGioacchino Del Regno authored
Disable GPU here, but leave enabled on MT8370 Genio 510, as issues are seen only on G700.
-
Zoran Zhan authored
Enable audio jack detection on the Genio 700 EVK. This is handled by the MT6359 ACCDET block, which generates an active low EINT interrupt. Add a phandle to the accdet in the sound card node and set the interrupt level. Co-developed-by:
Zoran Zhan <zoran.zhan@mediatek.com> Signed-off-by:
Zoran Zhan <zoran.zhan@mediatek.com> Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
Instead of parsing an array of 15 integers from the mediatek,pwm-deb-setting property, which makes them harder to identify, parse each value individually from its own property. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
The code currently allows for values between 0 and 4 for the eint_use_ext_res property, but it should be handled as a boolean, either configuring the internal resistor to be used or not. Update the code accordingly. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
The mediatek,plugout-debounce property is undocumented in the binding and unhandled by the driver. Remove it. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
The button detection functionality depends on a calibration voltage value which is currently not updated anywhere in the driver code, and hence it doesn't actually do anything. Remove this unused code. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
None of the EINT trigger options are implemented and the DT property is not described in the binding. Remove the unused code. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
The ACCDET supports two modes for IRQ generation: PMIC EINT or AP GPIO, which in principle could be configured through a DT property. However this DT property has no user nor is documented in a binding, and the driver only implements the PMIC EINT case, so drop the unused code intended to handle both cases. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Andrew Perepech authored
The symbol IRQ_TYPE_LEVEL_LOW is equivalent to 8, but the former should be used for legibility. Update the code accordingly. Signed-off-by:
Andrew Perepech <andrew.perepech@mediatek.com> Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Andrew Perepech authored
The driver currently reads the EINT IRQ polarity from the "mediatek,eint-level-pol" property but never actually configures the hardware accordingly. Implement the IRQ polarity configuration in hardware. Signed-off-by:
Andrew Perepech <andrew.perepech@mediatek.com> Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Andrew Perepech authored
Add a compatible property and add it to the module device table for the mt6359-accdet platform driver to allow automatic module loading and probing when the compatible is present in DT. Co-developed-by:
Andrew Perepech <andrew.perepech@mediatek.com> Signed-off-by:
Andrew Perepech <andrew.perepech@mediatek.com> Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Andrew Perepech authored
Add an mfd_cell for mt6359-accdet and describe its IRQ resources to allow the mt6359-accdet driver to probe. Signed-off-by:
Andrew Perepech <andrew.perepech@mediatek.com> Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
Describe the accdet as a possible subnode of the MT6359 PMIC. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
Add dt-binding for the MT6359 ACCDET hardware block. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
Enable headset jack detection for MT8188 platforms using the MT6359 ACCDET block for it. Co-developed-by:
Zoran Zhan <zoran.zhan@mediatek.com> Signed-off-by:
Zoran Zhan <zoran.zhan@mediatek.com> Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
Handle the optional mediatek,accdet property. When present, retrieve the sound component from its phandle, so the machine sound driver can use it to register the audio jack and initialize the MT6359 ACCDET for jack detection. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Nícolas F. R. A. Prado authored
Add a mediatek,accdet phandle property to allow getting a reference to the MT6359 ACCDET block, which is responsible for detecting jack insertion/removal. Signed-off-by:
Nícolas F. R. A. Prado <nfraprado@collabora.com>
-
Julien Massot authored
The mt8195 controller doesn't have the LSD bit, first the controller is compatible with UFSHCI version 2.1 and this bit is not part of the specification. The MT8195 controller have a Multi Host Support bit instead at bit(29). Signed-off-by:
Julien Massot <julien.massot@collabora.com>
-
AngeloGioacchino Del Regno authored
Enable the UFS PHY and UFS controller with its required power supplies to enable using the UFS card on this board. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Add a node for the Universal Flash Storage controller and keep it disabled by default. While at it, also change the UFS PHY node to use the right clocks for unipro and mp to improve reliability on platforms that don't enable, or that disable, UFS in the bootloader before booting the kernel. Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Document the optional dvfsrc-vcore and va09 regulators used for, respectively, crypt boost and internal MPHY power management in when powering on/off the (external) MediaTek UFS PHY. Acked-by:
Conor Dooley <conor.dooley@microchip.com> Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Add additional clocks, used on all MediaTek SoCs' UFSHCI controllers: some of these clocks are optional and used only for scaling purposes to save power, or to improve performance in the case of the crypt clocks. Acked-by:
Conor Dooley <conor.dooley@microchip.com> Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Add the new mediatek,mt8195-ufshci string. This SoC's UFSHCI controller is compatible with MT8183. Acked-by:
Conor Dooley <conor.dooley@microchip.com> Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
The MT8192 UFS controller is compatible with the MT8183 one: document this by allowing to assign both compatible strings "mediatek,mt8192-ufshci", "mediatek,mt8183-ufshci" to the UFSHCI node. Moreover, since no MT8192 devicetree ever declared any UFSHCI node, disallow specifying only the MT8192 compatible. In preparation for adding MT8195 to the mix, the MT8192 compatible was added as enum instead of const. Also, while at it, replace Stanley Chu with me in the maintainers field, as he is unreachable and his email isn't active anymore. Acked-by:
Conor Dooley <conor.dooley@microchip.com> Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-
AngeloGioacchino Del Regno authored
Change all of crypt_{mux,lp,perf} clock names to crypt-{mux,lp-perf}: retaining compatibility with the old names is ignored as there is no user of this driver declaring any of those clocks, and the binding also doesn't allow these ones at all. Fixes: 590b0d23 ("scsi: ufs-mediatek: Support performance mode for inline encryption engine") Signed-off-by:
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
-