summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-07-23net: phy: fix duplicate eth_phy bindingPranav Tilak
When both CONFIG_PHY_ETHERNET_ID and CONFIG_DM_ETH_PHY are enabled, eth_phy_binds_nodes() called from eth_post_bind() already binds the ethernet PHY node to eth_phy_generic_drv. However, phy_connect_phy_id() called via phy_connect() also binds the same PHY node, resulting in duplicate entries in the DM tree. Fix this by introducing phy_connect_dm_bound() which checks if the PHY is already bound via uclass_find_device_by_phandle(). If so, it gets the phy_device via phy_find_by_mask() since the udevice does not store a phy_device pointer and the phy_device can only be obtained by scanning the MDIO bus. The phydev->node is then set from the already-bound DM device. This skips the generic binding methods in phy_connect() when the PHY is already DM-bound. Fixes: 68a4d1506109 ("net: phy: Bind ETH_PHY uclass driver to each new PHY") Signed-off-by: Pranav Tilak <[email protected]>
2026-07-23net: phy: dp83867: enable extended read / write for driverMarkus Niebel
Add a wrapper to implement ext_read / write using phy_[read,write]_mmd. Check if devad is the only supported extended MMD address on this PHY. Signed-off-by: Markus Niebel <[email protected]> Signed-off-by: Alexander Stein <[email protected]>
2026-07-23rockchip: rk3588s: Add support for ROC-RK3588S-PCFabio Estevam
The ROC-RK3588S-PC board is an SBC made by Firefly, based on the RK3588S SoC. Add support for it. Signed-off-by: Fabio Estevam <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Link: https://patch.msgid.link/[email protected] [s/ROC-PC-RK3588S/ROC-RK3588S-PC/ in commit log and diff] Signed-off-by: Quentin Schulz <[email protected]>
2026-07-23rockchip: pinctrl: use include from dts/upstreamJohan Jonker
Use Rockchip pinctrl include from dts/upstream and remove what is now redundant. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Quentin Schulz <[email protected]>
2026-07-23rockchip: pinctrl: replace RK_GPIOn definesJohan Jonker
The use of RK_GPIOn defines is deprecated in the upstream rockchip.h file. Replace all them by the gpio number. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Quentin Schulz <[email protected]>
2026-07-23rockchip: pinctrl: replace RK_FUNC_n definesJohan Jonker
The use of RK_FUNC_n defines is deprecated in the upstream rockchip.h file. Replace all them by the function number. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Quentin Schulz <[email protected]>
2026-07-23MAINTAINERS: update ARM ROCKCHIP entry to list Simon as reviewerQuentin Schulz
From his own recollection[1], Simon hasn't done PRs since Kever took over, 7 years ago. Moreover, he doesn't have rights to push to the Rockchip custodian tree on the old source.denx.de or the new git.u-boot-project.org. Therefore, let's reflect the reality and make Simon a reviewer as requested on the mailing list[1]. We thank him for the many years of being a custodian and reviewer for anything-Rockchip. [1] https://lore.kernel.org/u-boot/CAFLszTjXkx0Jw0yjNXXwdXrQYre7Lcs59m_Bc27QW0n0c+WaJw@mail.gmail.com/ Signed-off-by: Quentin Schulz <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Quentin Schulz <[email protected]>
2026-07-23rockchip: only build GPT capsule update helpers with PARTITION_TYPE_GUIDDaniel Golle
The GPT-based capsule update helpers match updatable images by partition type GUID and fail to build if PARTITION_TYPE_GUID is not enabled: arch/arm/mach-rockchip/board.c:50:29: error: 'struct disk_partition' has no member named 'type_guid' Boards which keep their firmware on SPI-NOR use a static dfu_string instead of scanning GPT partitions and have no use for this code, so guard it accordingly. Signed-off-by: Daniel Golle <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Fixes: bea9267d7e6d ("rockchip: capsule: Add functions for supporting capsule updates") Link: https://patch.msgid.link/af0ac32e2bf603c39f490f15fe62319fd73c5282.1784423864.git.daniel@makrotopia.org Signed-off-by: Quentin Schulz <[email protected]>
2026-07-22Merge patch series "i3c: dw: fix slave device setup and probe issues"Tom Rini
Pranav Tilak <[email protected]> says: This series fixes several issues in the DW I3C master driver and related infrastructure that prevented I3C read/write operations, and enables I3C support for Versal Gen 2. Link: https://lore.kernel.org/r/[email protected]
2026-07-22i3c: dw: fix slave device setup after DAAPranav Tilak
i3c_master_add_i3c_dev_locked() incorrectly set master->this to the newly discovered slave device, causing i3c_master_attach_i3c_dev() to skip the attach_i3c_dev() callback. As a result the slave device never got its master_priv (DAT slot index) allocated, free_pos was never updated, and the DAT entry was never written. Fix by removing the incorrect master->this assignment. Store the slave descriptor directly in master->i3cdev[pos] inside dw_i3c_master_attach_i3c_dev() where the DAT slot index is already known. Also check the return value of i3c_master_add_i3c_dev_locked() and skip num_i3cdevs increment on failure, fixing dummy devices shown when no slaves are present on the bus. Fixes: 1009c96f1590 ("drivers: i3c: Add driver for MIPI DWI3C") Signed-off-by: Pranav Tilak <[email protected]> Reviewed-by: Dinesh Maniyam <[email protected]>
2026-07-22configs: versal2: enable I3C supportPranav Tilak
Enable I3C controller driver and command support for Versal Gen 2 by adding CONFIG_CMD_I3C, CONFIG_I3C and CONFIG_DW_I3C_MASTER. Signed-off-by: Pranav Tilak <[email protected]> Acked-by: Michal Simek <[email protected]>
2026-07-22cmd: i3c: fix list and current needing pre-selected controllerPranav Tilak
The !currdev guard in do_i3c() was placed before the list and current handlers, causing both to fail when no controller is pre-selected. Move the guard to only protect device_list, write and read which actually need a controller. Fixes: b875409da737 ("cmd: Add i3c command support.") Signed-off-by: Pranav Tilak <[email protected]> Reviewed-by: Dinesh Maniyam <[email protected]>
2026-07-22i3c: dw: make resets optional in probePranav Tilak
Treat -ENOENT and -ENOTSUPP from reset_get_bulk() as non-fatal to support platforms where no resets are defined in the DTS. The resets property is not yet documented in the DT binding. Fixes: 1009c96f1590 ("drivers: i3c: Add driver for MIPI DWI3C") Signed-off-by: Pranav Tilak <[email protected]> Reviewed-by: Dinesh Maniyam <[email protected]>
2026-07-22configs: mediatek: enable MT8188 power domainJulien Stephan
Enable the MT8188 power domain driver. CONFIG_POWER_DOMAIN is required as CONFIG_MT8188_POWER_DOMAIN depends on it. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: add MT8188 power domain driverJulien Stephan
Add the power domain driver for the MediaTek MT8188 SoC. It describes the SoC's power domains (MFG, display, camera, codec, ADSP, PCIe, ...) as a table of mtk_scp_domain_data entries and reuses the shared scpsys core through the power-controller probe, including the per-domain power status offsets and the ordered infracfg bus-protection steps. The domain tables and ordered bus-protection sequences mirror the Linux mt8188-pm-domains.h data. Signed-off-by: Chris-QJ Chen <[email protected]> Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: add support for the power-controller modelJulien Stephan
The current driver handles a flat scpsys node with a single, fixed set of power status registers and one infracfg bus-protection mask. Newer MediaTek SoCs describe their domains as child nodes of a power controller and need a richer model: - per-domain power status register offsets (pwr_sta_offs / pwr_sta2nd_offs), falling back to the legacy SPM_PWR_STATUS registers when not set; - an ordered list of bus-protection steps (scpsys_bus_prot_data / BUS_PROT_WR), each with its own set/clear/status register, applied on power-off and released in reverse on power-on; - per-domain clocks and an optional parent power domain. Add mtk_power_controller_probe(), which walks the controller's subnodes, resolves each domain's id, clocks and infracfg, and builds the domain tree. The existing flat probe (mtk_scpsys_probe) is left unchanged. No functional change for the existing MT7623/MT7629 drivers. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: rename struct mtk_scp_domain to mtk_scpsysJulien Stephan
Prepare for support of future MediaTek SoCs by renaming struct mtk_scp_domain to struct mtk_scpsys. Upcoming SoCs require additional per-domain runtime data obtained from Device Tree. To keep the domain_data description in soc_data static const, a new wrapper structure will be introduced to combine the immutable domain_data description with the runtime data. The natural name for that wrapper is struct mtk_scp_domain, so free that name by renaming the existing runtime state structure to struct mtk_scpsys. Update the MT7623 and MT7629 drivers accordingly. No functional change intended. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: rename mtk_power_domain_probe to mtk_scpsys_probeJulien Stephan
Rename the flat, single-node probe to mtk_scpsys_probe so that the name mtk_power_domain_probe can be reused for an upcoming nested (power-controller) probe. Update the MT7623 and MT7629 drivers accordingly. No functional change intended. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: wrap domain tables in struct scp_soc_dataJulien Stephan
The per-SoC match data currently points directly at the array of mtk_scp_domain_data. Wrap it in a new struct mtk_scp_soc_data that carries the table pointer together with its size, and add a MTK_SCP_SOC_DATA() helper that fills both from a single table definition via ARRAY_SIZE(). The num_domains field is not used yet; it is added here so that upcoming SoC support can validate the domain index coming from the device tree against the size of the table. No functional change intended. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: split into per-SoC driversJulien Stephan
In order to prepare addition of future SoC, split the current driver into common shared code and SoC specific drivers: - mtk-power-domain.c now only holds the common register access and power on/off/request/probe logic plus the shared power_domain_ops. - mtk-power-domain.h exposes the register definitions, the mtk_scp_domain data structures and the core helpers to the per-SoC drivers. - mt7623-power-domain.c and mt7629-power-domain.c each hold their own domain table and U_BOOT_DRIVER registration. The mt7629 driver also matches the mt7622 compatible, preserving the previous behaviour. Update the mt7622, mt7623 and mt7629 defconfigs to select the matching per-SoC driver. No functional change intended. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: constify scp_domain_data instancesJulien Stephan
Make all scp_domain_data instances static const by removing the mutable scpd member from struct scp_domain_data. Refactor mtk_scpsys_domain_is_on() to take struct power_domain as parameter instead of struct mtk_scp_domain_data and remove mtk_scpsys_power_request(), which only existed to associate a struct scp_domain with struct scp_domain_data. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: prefix internal identifiers with mtk_Julien Stephan
Prefix internal functions, variables, and struct tags with the mtk_ prefix to avoid namespace collisions. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: remove enum scp_domain_typeJulien Stephan
The driver mapped each compatible to an enum scp_domain_type via the match data, then used mtk_power_domain_hook() to switch on that enum and select the per-SoC domain table. This forces every new SoC to add an enum value and a switch case in shared code. Store a pointer to the per-SoC table directly in the match data and drop the enum, the type field, and mtk_power_domain_hook(). This keeps per-SoC information in the match data where it belongs, making it possible to later split the SoC-specific tables into standalone drivers. No functional change intended. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: use MT2701 naming instead of MT7623Julien Stephan
Upstream DT bindings define "mediatek,mt7623-scpsys" to fall back to "mediatek,mt2701-scpsys". Align the driver with this convention by using MT2701 naming throughout. This also allows the driver to use the upstream dts/upstream/include/dt-bindings/power/mt2701-power.h header instead of the local include/dt-bindings/power/mt7623-power.h, since both expose equivalent power domain definitions. Rename scp_domain_mt7623 to scp_domain_mt2701, replace SCPSYS_MT7623 enum by SCPSYS_MT2701, and switch all MT7623 power domain defines to their MT2701 equivalents. Note: we intentionally keep the explicit "mediatek,mt7623-scpsys" compatible entry to avoid breaking legacy boards (mt7623a_unielec_u7623_02 and mt7623n_bpir2_defconfig) that didn't switched yet to OF_UPSTREAM. Same for include/dt-bindings/power/mt7623-power.h that is only used in these boards. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: mediatek: use MT7622 naming instead of MT7629Julien Stephan
Upstream DT bindings define "mediatek,mt7629-scpsys" to fall back to "mediatek,mt7622-scpsys". Align the driver with this convention by using MT7622 naming throughout. This also allows the driver to use the upstream dts/upstream/include/dt-bindings/power/mt7622-power.h header instead of the local include/dt-bindings/power/mt7629-power.h, since both expose equivalent power domain definitions. Rename scp_domain_mt7629 to scp_domain_mt7622, remove the SCPSYS_MT7629 enum, and switch all MT7629 power domain defines to their MT7622 equivalents. Also drop the explicit "mediatek,mt7629-scpsys" compatible entry and rely on the DT fallback instead. Suggested-by: David Lechner <[email protected]> Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22configs: mediatek: drop unused CONFIG_MTK_POWER_DOMAINJulien Stephan
The MT7981, MT7986, MT7987 and MT7988 SoCs do not have a scpsys power domain block: none of their device trees carry a "mediatek,*-scpsys" compatible, so the driver never binds and enabling CONFIG_MTK_POWER_DOMAIN only builds dead code. Note: the MT7987 and MT7988 device trees do carry a "mediatek,mt79xx-power-controller" compatible on their topmisc syscon, but no U-Boot driver binds it and no node consumes power-domains, so the symbols are unused there as well. Remove the unused symbols (CONFIG_MTK_POWER_DOMAIN and CONFIG_POWER_DOMAIN) from these defconfigs. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22power: domain: keep Makefile and Kconfig sortedJulien Stephan
Sort the Makefile and Kconfig alphabetically. No functional change. Signed-off-by: Julien Stephan <[email protected]> Reviewed-by: Simon Glass <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt8518: unique driver namesDavid Lechner
Change driver names for MediaTek mt8518 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-15-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt8516: unique driver namesDavid Lechner
Change driver names for MediaTek mt8516 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-14-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt8512: unique driver namesDavid Lechner
Change driver names for MediaTek mt8512 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-13-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt8365: unique driver namesDavid Lechner
Change driver names for MediaTek mt8365 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-12-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt8195: unique driver namesDavid Lechner
Change driver names for MediaTek mt8195 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-11-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt8189: unique driver namesDavid Lechner
Change driver names for MediaTek mt8189 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-10-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt8188: unique driver namesDavid Lechner
Change driver names for MediaTek mt8188 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-9-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt8183: unique driver namesDavid Lechner
Change driver names for MediaTek mt8183 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-8-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt7988: unique driver namesDavid Lechner
Change driver names for MediaTek mt7988 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-7-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt7987: unique driver namesDavid Lechner
Change driver names for MediaTek mt7987 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-6-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt7986: unique driver namesDavid Lechner
Change driver names for MediaTek mt7986 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-5-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt7981: unique driver namesDavid Lechner
Change driver names for MediaTek mt7981 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-4-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt7629: unique driver namesDavid Lechner
Change driver names for MediaTek mt7629 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-3-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt7623: unique driver namesDavid Lechner
Change driver names for MediaTek mt7623 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-2-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt7622: unique driver namesDavid Lechner
Change driver names for MediaTek mt7622 clocks to be globally unique. This will allow better build bot testing by allowing all clocks to be compiled at the same time. Link: https://patch.msgid.link/20260707-mtk-clk-unique-driver-names-v1-1-283d9a55361e@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: mt7629: remove mt7629_peri_clk_treeDavid Lechner
Remove the mt7629_peri_clk_tree struct. Most of the fields are unused and we can just use mt7629_clk_tree instead as it has the required fields. Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-24-f3f3a4a28dca@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22arm: dts: mt7988: remove clock-parent propertiesDavid Lechner
Remove all clock-parent properties from mt7988.dtsi. The clock driver for this no longer uses this property. And this property would not be acceptable upstream anyway. Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-23-f3f3a4a28dca@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22arm: dts: mt7986: remove clock-parent propertiesDavid Lechner
Remove all clock-parent properties from mt7986.dtsi. The clock driver for this no longer uses this property. And this property would not be acceptable upstream anyway. Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-22-f3f3a4a28dca@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22arm: dts: mt7981: remove clock-parent propertiesDavid Lechner
Remove all clock-parent properties from mt7981.dtsi. The clock driver for this no longer uses this property. And this property would not be acceptable upstream anyway. Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-21-f3f3a4a28dca@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: remove mtk_common_clk_infrasys_init()David Lechner
Remove mtk_common_clk_infrasys_init() and replace callers with mtk_common_clk_init() as there is no longer any difference between these functions. Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-20-f3f3a4a28dca@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: drop parent udevice fieldDavid Lechner
Remove the parent field from the mediatek clock private data structures. This was no longer used other than debug prints. The uclass_get_device_* functions had the effect of ensuring that parents were probed. This is done now by having parent providers probe on bind, so re-probing here is no longer necessary. Clock trees could have more than one parent anyway, so the existing code was not completely correct anyway. Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-19-f3f3a4a28dca@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediatek: use registered provider for parent lookupDavid Lechner
Replace complex and fragile parent/grandparent lookup logic with a simple lookup that matches CLK_PARENT_* flags to registered clock providers. Previously, we were walking priv->parent path to find a the matching provider by either looking at driver name or driver ops. This was fragile because more than one udevice could match the criteria and the search depth had different rules depending on the clock type and the parent type. This will also enable more simplification in the future since we no longer have to keep track of the udevice parents. Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-18-f3f3a4a28dca@baylibre.com Signed-off-by: David Lechner <[email protected]>
2026-07-22clk: mediaTek: mt8518: add clock tree type flagsDavid Lechner
Add clock tree type flags to the mt8518 clock tree structures. These will be used later for parent lookup. Clock trees had to be split now that each tree has a different type flag. Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-17-f3f3a4a28dca@baylibre.com Signed-off-by: David Lechner <[email protected]>