summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2024-08-22Merge branch 'master' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-samsung into next
2024-08-20Merge tag 'u-boot-dfu-next-20240820' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-dfu into next u-boot-dfu-next-20240820 - Migrate Atmel usb gadget to DM_USB_GADGET - More small cleanups/improvements on the atmel UDC driver - Change udc uclass name from "usb" -> "usb_gadget"
2024-08-20usb: gadget: udc: Fix duplicate uclass nameZixun LI
Currently both USB host uclass and USB gadget uclass are using the same name "usb" which break uclass functions like uclass_get_by_name(). Rename the uclass to "usb_gadget" to fix, also makes bind/unbind by class index (or sequence) working. This breaks the capacity of using "usb" as DT alias sequence numbering which needs a fix afterwards. Signed-off-by: Zixun LI <admin@hifiphile.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Link: https://lore.kernel.org/all/20240802092820.917450-1-admin@hifiphile.com Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-08-19Merge tag 'v2024.10-rc3' into nextTom Rini
Prepare v2024.10-rc3
2024-08-19Merge patch series "clk: mediatek: mt7622: clk migration for OF_UPSTREAM"Tom Rini
Christian Marangi <ansuelsmth@gmail.com> says: These are all the required patches to migrate clk and correctly support OF_UPSTREAM. This will align the clk index to upstream to support the same clk implementation with downstream and upstream DTS.
2024-08-19clk: mediatek: mt7622: add missing clock PERIBUS_SEL clockChristian Marangi
Add missing PERIBUS_SEL clock to match upstream linux clk ID order. Also convert pericfg to mux + gate implementation as now we have also mux on top of gates. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7622: add missing clock PERI_UART4_PDChristian Marangi
Add missing clock PERI_UART4_PD for peri clock gates. This is needed to match upstream linux clk ID in preparation for OF_UPSTREAM. Also convert infracfg to mux + gate implementation as now we have mux on top of gates. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7622: add missing clock MUX1_SELChristian Marangi
Add missing infra clock MUX1_SEL needed for CPU clock. This is needed to match the upstream clk ID order in preparation for OF_UPSTREAM. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7622: add missing clock define for MAIN_CORE_ENChristian Marangi
Add missing clock for MAIN_CORE_EN. This is a special clock as it's a gate for the APMIXED clocks required as a parent for CPU clocks. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7622: move INFRA_TRNG to the bottomChristian Marangi
Move INFRA_TRNG clock to the bottom of the clk ID to match upstream linux order. This is in preparation of OF_UPSTREAM. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7622: fix broken peri_cgs clk with XTAL parentsChristian Marangi
Fix broken peri_cgs clock with XTAL parents as they have wrong definition of the parent type. Correctly fix them and use CLK_PARENT_XTAL for them. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19Merge patch series "clk: mediatek: mt7986: clk migration for OF_UPSTREAM"Tom Rini
Christian Marangi <ansuelsmth@gmail.com> says: These are all the required patches to migrate clk and correctly support OF_UPSTREAM. This will align the clk index to upstream to support the same clk implementation with downstream and upstream DTS.
2024-08-19clk: mediatek: mt7986: rename CK to CLKChristian Marangi
Rename each entry from CK to CLK to match the include in upstream kernel linux. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Tested-by: Frank Wunderlich <frank-w@public-files.de>
2024-08-19clk: mediatek: mt7986: convert to unified infracfg gates + muxesChristian Marangi
Convert to infracfg gates + muxes implementation now that it's supported. Drop infracfg-ao nodes and rename all infracfg-ao clocks to infracfg. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: replace infracfg ID with upstream linuxChristian Marangi
Replace infracfg clk ID with upstream linux version. The same format is used here with the factor first, then mux and then gates. To correctly reference the gates in clk_gate function, define the gates_offs value in clk_tree now that they are at an offset from mux and factor. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: move INFRA_TRNG_CK to the bottom of the listChristian Marangi
Move INFRA_TRNG_CK to the bottom of the list to have a 1:1 match with upstream linux clock ID. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: comment out CK_TOP_A_TUNER as not usedChristian Marangi
Comment out CK_TOP_A_TUNER as not used and not defined in upstream kernel linux. This is to permit support of OF_UPSTREAM and have a 1:1 match with upstream linux clock ID. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: drop 1/1 spurious factor for topckgenChristian Marangi
Now that we can have advanced parent handling for mux, we can drop spurious topckgen 1/1 factor. This is in preparation to make the clk ID match the ID in upstream include for mt7986. Drop the factor entry from mt7986-clk.h and reference to them in mt7981.dtsi. Muxes and gates are updated to reference the apmixed clk following how it's done in upstream kernel linux. Add relevant clk type flag in clk_tree for apmixed. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: reorder TOPCKGEN factor IDChristian Marangi
Reorder TOPCKGEN factor ID to put TOP_FACTOR first and then PLL. This is to match how it's done in upstream kernel linux and in preparation for OF_UPSTREAM support. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: rename TOPCKGEN factor clock to upstream namingChristian Marangi
Rename TOPCKGEN factor clock to upstream neaming. Upstream kernel linux reference the factor clock for apmixedpll with the "pll" suffix. Align the naming to the upstream naming format in preparation for OF_UPSTREAM support. Also rename rtc clock to drop the CB_ as upstream doesn't have that. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: fix typo for infra_i2c0_ckChristian Marangi
Fix a typo for infra_i2c0_ck where 0 was misspelled as O. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: add missing entry for IPCIE_PIPE_CK infra gateChristian Marangi
Add missing entry for IPCIE_PIPE_CK infra gate clock. Renumber the clock order to match the expected offset in the gate array. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: drop 1/1 infracfg spurious factorChristian Marangi
Now that we can have advanced parent handling for mux, we can drop spurious infracfg 1/1 factor. This is in preparation to make the clk ID match the ID in upstream include for mt7986. Drop the factor entry from mt7986-clk.h and reference to them in mt7981.dtsi. Muxes and gates are updated to reference the topckgen clk following how it's done in upstream kernel linux. Add relevant clk type flag in clk_tree for infracfg and topckgen. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: fix wrong parent for INFRA_ADC_26M_CKChristian Marangi
Fix wrong parent for INFRA_ADC_26M_CK as should be INFRA_ADC_FRC_CK instead of INFRA_CK_F26M. This is to match implementation on upstream kernel linux. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: rename 66M_MCK to SYSAXI_D2Christian Marangi
Upstream kernel linux clock include use SYSAXI_D2 instead of 66M_MCK. Rename this clock to the upstream kernel in preparation for support of OF_UPSTREAM. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: rename CB_CKSQ_40M to TOP_XTALChristian Marangi
Upstream kernel linux clock include use TOP_XTAL instead of CB_CKSQ_40M. Rename this clock to the upstream kernel in preparation for support of OF_UPSTREAM. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7986: fix wrong shift for PCIe clocksChristian Marangi
Fix wrong shift for PCIe clocks. This cause the PCIe port to malfunction as the gate clocks weren't correctly enabled. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19Merge patch series "clk: mediatek: mt7988: clk migration for OF_UPSTREAM"Tom Rini
Christian Marangi <ansuelsmth@gmail.com> says: These are all the required patches to migrate clk and correctly support OF_UPSTREAM. This will align the clk index to upstream to support the same clk implementation with downstream and upstream DTS.
2024-08-19clk: mediatek: mt7988: rename CK to CLKChristian Marangi
Rename each entry from CK to CLK to match the include in upstream kernel linux. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Tested-by: Frank Wunderlich <frank-w@public-files.de>
2024-08-19clk: mediatek: mt7988: convert to unified infracfg gates + muxesChristian Marangi
Convert to infracfg gates + muxes implementation now that it's supported. Drop infracfg-ao nodes and rename all infracfg-ao clocks to infracfg. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: replace clock ID with upstream linuxChristian Marangi
Replace infracfg clk ID with upstream linux version. The same format is used here with the factor first, then mux and then gates. To correctly reference the gates in clk_gate function, define the gates_offs value in clk_tree now that they are at an offset from mux and factor. Drop any comment that reference the clock ID as we now have a 1:1 match with upstream kernel linux. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: comment out infracfg clk not definedChristian Marangi
Comment out infracfg clk not defined in upstream kernel linux clock ID include. These clock are not used and can be safely commented. Keep them just to have a reference of their existence. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: drop 1/1 spurious factor for topckgenChristian Marangi
Now that we can have advanced parent handling for mux, we can drop spurious topckgen 1/1 factor. This is in preparation to make the clk ID match the ID in upstream include for mt7988. Drop the factor entry from mt7988-clk.h and reference to them in mt7988.dtsi. Muxes and gates are updated to reference the apmixed clk following how it's done in upstream kernel linux. Add relevant clk type flag in clk_tree for apmixed and topckgen. Also move TOP_XTAL to the fixed clock table following how it's done in upstream linux kernel. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: reorder TOPCKGEN factor IDChristian Marangi
Reorder TOPCKGEN factor ID to put TOP_FACTOR first and then PLL. This is to match how it's done in upstream kernel linux and in preparation for OF_UPSTREAM support. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: rename TOPCKGEN factor clock to upstream namingChristian Marangi
Rename TOPCKGEN factor clock to upstream neaming. Upstream kernel linux reference the factor clock for apmixedpll with the "pll" suffix. Align the naming to the upstream naming format in preparation for OF_UPSTREAM support. Also rename rtc clock to drop the CB_ as upstream doesn't have that. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: drop 1/1 infracfg spurious factorChristian Marangi
Now that we can have advanced parent handling for mux, we can drop spurious infracfg 1/1 factor. This is in preparation to make the clk ID match the ID in upstream include for mt7988. Drop the factor entry from mt7988-clk.h and reference to them in mt7988.dtsi. Muxes and gates are updated to reference the topckgen clk following how it's done in upstream kernel linux. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: fix wrong parent for INFRA_PCIE_PERI_26M_CK_P2Christian Marangi
Fix wrong parent for INFRA_PCIE_PERI_26M_CK_P2 as should be INFRA_PCIE_PERI_26M_CK_P3 instead of INFRA_F26M_O0. This is to match implementation on upstream kernel linux. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: move INFRA_PCIE_PERI_26M_CK_Px clock at topChristian Marangi
Move INFRA_PCIE_PERI_26M_CK_Px clock at top of the infracfg gates in preparation for support of OF_UPSTREAM to have a 1:1 match with upstream clock ID. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: rename TOP_CK_NPU_SEL_CM_TOPS_SEL to TOP_NPU_SELChristian Marangi
Upstream kernel linux clock include use TOP_NPU_SEL instead of TOP_CK_NPU_SEL_CM_TOPS_SEL. Rename this clock to the upstream kernel in preparation for support of OF_UPSTREAM. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: rename TOP_DA_SELM_XTAL_SEL to TOP_DA_SELChristian Marangi
Upstream kernel linux clock include use TOP_DA_SEL instead of TOP_DA_SELM_XTAL_SEL. Rename this clock to the upstream kernel in preparation for support of OF_UPSTREAM. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7988: rename CB_CKSQ_40M to TOP_XTALChristian Marangi
Upstream kernel linux clock include use TOP_XTAL instead of CB_CKSQ_40M. Rename this clock to the upstream kernel in preparation for support of OF_UPSTREAM. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19Merge patch series "clk: mediatek: mt7981: clk migration for OF_UPSTREAM"Tom Rini
Christian Marangi <ansuelsmth@gmail.com> says: These are all the required patches to migrate clk and correctly support OF_UPSTREAM. This will align the clk index to upstream to support the same clk implementation with downstream and upstream DTS.
2024-08-19clk: mediatek: mt7981: rename CK to CLKChristian Marangi
Rename each entry from CK to CLK to match the include in upstream kernel linux. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7981: convert to unified infracfg gates + muxesChristian Marangi
Convert to infracfg gates + muxes implementation now that it's supported. Drop infracfg-ao nodes and rename all infracfg-ao clocks to infracfg. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7981: fix support for pwm3 clockChristian Marangi
Add and fix support for pwm3 clock. In the pwm DTSI node we were actually using PWM2 clock for PWM3. Now that we have correct ID also add the missing entry of gate and mux to support PWM3 clock. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7981: replace infracfg ID with upstream linuxChristian Marangi
Replace infracfg clk ID with upstream linux version. Add some missing clk for PWM3 and for PCIe. The same format is used here with the factor first, then mux and then gates. To correctly reference the gates in clk_gate function, define the gates_offs value in clk_tree now that they are at an offset from mux and factor. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7981: drop 1/1 spurious factorChristian Marangi
Now that we can have advanced parent handling for mux, we can drop spurious infracfg 1/1 factor. This is in preparation to make the clk ID match the ID in upstream include for mt7981. Drop the factor entry from mt7981-clk.h and reference to them in mt7981.dtsi. Muxes and gates are updated to reference the topckgen clk following how it's done in upstream kernel linux. Add relevant clk type flag in clk_tree for infracfg and topckgen. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7981: implement sgmii0/1 clockChristian Marangi
Implement missing sgmii0/1 clock and update the compatible the DTS to match upstream kernel linux and in preparation for OF_UPSTREAM support since the ethernet node define these additional clocks. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7981: fix wrong parent list for INFRA_PWM1_SEL muxChristian Marangi
Fix wrong parent list for INFRA_PWM1_SEL mux. The list is incorrect and the parents are just 2. This also match the upstream linux implementation. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-08-19clk: mediatek: mt7981: fix wrong parent for TOP_FAUD clockChristian Marangi
Fix wrong parent for TOP_FAUD clock. Upstream linux sets the parent for TOP_FAUD to TOP_AUD_SEL instead of CB_CKSQ_40M. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>