Re: [PATCH V2 1/2] nvmem: core: refactor .cell_post_process() CB arguments

2022-11-27 Thread Michael Walle
Am 2022-11-28 07:59, schrieb Rafał Miłecki: From: Rafał Miłecki Pass whole NVMEM cell struct and length pointer as arguments to callback functions. This allows: 1. Cells content to be modified based on more info Some cells (identified by their names) contain specific data that needs

[PATCH 5/5] video: sunxi: dw-hdmi: Use DM for HVCC regulator

2022-11-27 Thread Samuel Holland
The HDMI PHY depends on the HVCC supply being enabled. So far we have relied on it being enabled by an earlier firmware stage (SPL or TF-A). Attempt to enable the regulator here, so we can remove that dependency. Signed-off-by: Samuel Holland --- drivers/video/sunxi/sunxi_dw_hdmi.c | 6 ++

[PATCH 4/5] video: sunxi: dw-hdmi: Use DM for clock gates and resets

2022-11-27 Thread Samuel Holland
This abstracts away the CCU register layout, which is necessary for supporting new SoCs like H6 with a reorganized CCU. One of the resets is referenced from the PHY node instead of the controller node, so it will have to wait until the PHY code is factored out to a separate driver. Signed-off-by:

[PATCH 3/5] video: sunxi: dw-hdmi: Read address from DT node

2022-11-27 Thread Samuel Holland
From: Jernej Skrabec Currently HDMI controller MMIO address is hardcoded. Change that so address is read from DT node. That will make adding support for new variants a bit easier. Signed-off-by: Jernej Skrabec Signed-off-by: Samuel Holland --- drivers/video/sunxi/sunxi_dw_hdmi.c | 39

[PATCH 1/5] clk: sunxi: Add DE2 display-related clocks/resets

2022-11-27 Thread Samuel Holland
Add clock/reset definitions for display-related peripherals, including the display engine, TCONs, and DSI and HDMI encoders, so those drivers can be converted to DM clock consumers instead of directly manipulating the CCU registers. Signed-off-by: Samuel Holland --- drivers/clk/sunxi/clk_a64.c

[PATCH 2/5] video: sunxi: dw-hdmi: Probe driver by compatible

2022-11-27 Thread Samuel Holland
From: Jernej Skrabec Currently the sunxi dw-hdmi driver is probed unconditionally, even if there is no such device. Switch the driver to probing via a compatible string. This brings many benefits; the driver is only probed when needed, and now it can read the DT node. Signed-off-by: Jernej

[PATCH 0/5] video: sunxi: dw-hdmi: Partial OF conversion

2022-11-27 Thread Samuel Holland
This series starts converting the DE2 video driver to use devicetree for MMIO addresses and clock/reset/regulator consumers. This is necessary for adding new SoC support (H6, D1, etc.) and will also be helpful when adding DSI output support. I picked up a couple of patches from Jernej's branch

[PATCH V2 2/2] nvmem: u-boot-env: reformat MAC in "ethaddr" cell when reading

2022-11-27 Thread Rafał Miłecki
From: Rafał Miłecki NVMEM consumers expect MAC in a byte-based format (see e.g. nvmem_get_mac_address()). U-Boot environment data stores all values in ASCII form. Add post processing callback detecting "ethaddr" reads and reformat data as expected. This fixes Ethernet drivers reading MAC from

[PATCH V2 1/2] nvmem: core: refactor .cell_post_process() CB arguments

2022-11-27 Thread Rafał Miłecki
From: Rafał Miłecki Pass whole NVMEM cell struct and length pointer as arguments to callback functions. This allows: 1. Cells content to be modified based on more info Some cells (identified by their names) contain specific data that needs further processing. This can be e.g. MAC address

[PATCH 2/3] power: regulator: Add a driver for AXP PMIC regulators

2022-11-27 Thread Samuel Holland
This driver handles most voltage regulators found in X-Powers AXP PMICs. It is based on, and intended to replace, the regulator driver in TF-A. AXP PMIC regulators can be divided into 6 categories: - Switches without voltage control => fully supported. - Single linear range => fully supported.

[PATCH 3/3] power: pmic: axp: Bind regulators from the DT

2022-11-27 Thread Samuel Holland
Now that a regulator driver exists for this PMIC, hook it up to the device tree "regulators" subnodes. Signed-off-by: Samuel Holland --- drivers/power/pmic/axp.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/power/pmic/axp.c b/drivers/power/pmic/axp.c index

[PATCH 1/3] power: pmic: axp: Provide a variant ID in the driver data

2022-11-27 Thread Samuel Holland
Subordinate regulator drivers can use this enumerated ID instead of matching the compatible string again. Signed-off-by: Samuel Holland --- drivers/power/pmic/axp.c | 18 +- include/axp_pmic.h | 12 2 files changed, 21 insertions(+), 9 deletions(-) diff

[PATCH 0/3] power: X-Powers PMIC regulator support

2022-11-27 Thread Samuel Holland
This series adds a driver for the regulators in X-Powers AXPxxx PMICs. It supports everything except regulators shared with GPIO pins. Those have a different register interface, so they may need a separate driver. Regulator setup in U-Boot proper is needed for Ethernet and HDMI/LCD display

[PATCH 2/2] reset: Allow reset_get_by_name() with NULL name

2022-11-27 Thread Samuel Holland
This allows devm_reset_control_get(dev, NULL) to work and get the first reset control, which is common in code ported from Linux. Signed-off-by: Samuel Holland --- drivers/reset/reset-uclass.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/reset/reset-uclass.c

[PATCH 1/2] clk: Allow clk_get_by_name() with NULL name

2022-11-27 Thread Samuel Holland
This allows devm_clock_get(dev, NULL) to work and get the first clock, which is common in code ported from Linux. Signed-off-by: Samuel Holland --- drivers/clk/clk-uclass.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-uclass.c

[PATCH] serial: ns16550: Enable clocks during probe

2022-11-27 Thread Samuel Holland
If the UART bus or baud clock has a gate, it must be enabled before the UART can be used. Signed-off-by: Samuel Holland --- drivers/serial/ns16550.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 7592979cab5..785fb520062

Re: [PATCH] EFI: update the documentation to correctly order loading SB keys

2022-11-27 Thread AKASHI Takahiro
On Mon, Nov 28, 2022 at 01:27:53AM +, Luca Boccassi wrote: > On Mon, 28 Nov 2022 at 00:45, AKASHI Takahiro > wrote: > > > > On Fri, Nov 25, 2022 at 01:30:11PM +, luca.bocca...@gmail.com wrote: > > > From: Luca Boccassi > > > > > > Loading the PK locks down the EFI variables, so it needs

[PATCH v1] ARM: dts: npcm7xx: add npcm750 gpio node compatible name

2022-11-27 Thread Jim Liu
Add npcm750 gpio node compatible name Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-npcm7xx-u-boot.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/dts/nuvoton-npcm7xx-u-boot.dtsi b/arch/arm/dts/nuvoton-npcm7xx-u-boot.dtsi index

[PATCH v1 2/2] ARM: dts: npcm8xx: add npcm845 function node

2022-11-27 Thread Jim Liu
1. add usb phy 2. add ehci ohci sdhci 3. add pinctrl node 4. add fiu node Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 92 + arch/arm/dts/nuvoton-npcm845-evb.dts | 129 ++ arch/arm/dts/nuvoton-npcm845-pincfg.dtsi | 2007 ++

[PATCH v1 1/2] ARM: config: enable function for nuvoton npcm845 bmc

2022-11-27 Thread Jim Liu
Signed-off-by: Jim Liu --- configs/arbel_evb_defconfig | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index 447b97ef4a..aa857661d9 100644 --- a/configs/arbel_evb_defconfig +++

[PATCH v1 0/2]add npcm845 function config and dts node

2022-11-27 Thread Jim Liu
Add Nuvoton BMC npcm844 function config and dts node Jim Liu (2): ARM: config: enable function for nuvoton npcm845 bmc ARM: dts: npcm8xx: add npcm845 function node arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 92 + arch/arm/dts/nuvoton-npcm845-evb.dts | 129 ++

RE: [PATCH] net: phy: micrel: Get phy node from phy-handle

2022-11-27 Thread Lim, Jit Loon
-Original Message- From: Ramon Fried Sent: Sunday, 27 November, 2022 6:50 AM To: Lim, Jit Loon Cc: u-boot@lists.denx.de; Jagan Teki ; Vignesh R ; Vasut, Marek ; Simon ; Chee, Tien Fong ; Hea, Kok Kiang ; Lim, Elly Siew Chin ; Kho, Sin Hui ; Lokanathan, Raaj ; Maniyam, Dinesh ; Ng,

Re: [PATCH] EFI: update the documentation to correctly order loading SB keys

2022-11-27 Thread Luca Boccassi
On Mon, 28 Nov 2022 at 00:45, AKASHI Takahiro wrote: > > On Fri, Nov 25, 2022 at 01:30:11PM +, luca.bocca...@gmail.com wrote: > > From: Luca Boccassi > > > > Loading the PK locks down the EFI variables, so it needs to be done last. > > No, it's not (always) correct. > > > Fix the order in

Re: [PATCH] EFI: update the documentation to correctly order loading SB keys

2022-11-27 Thread AKASHI Takahiro
On Fri, Nov 25, 2022 at 01:30:11PM +, luca.bocca...@gmail.com wrote: > From: Luca Boccassi > > Loading the PK locks down the EFI variables, so it needs to be done last. No, it's not (always) correct. > Fix the order in the documentation and add a note. > > Signed-off-by: Luca Boccassi >

[PATCH 2/2] nvmem: u-boot-env: reformat MAC in "ethaddr" cell when reading

2022-11-27 Thread Rafał Miłecki
From: Rafał Miłecki NVMEM consumers expect MAC in a byte-based format (see e.g. nvmem_get_mac_address()). U-Boot environment data stores all values in ASCII form. Add post processing callback detecting "ethaddr" reads and reformat data as expected. This fixes Ethernet drivers reading MAC from

[PATCH 1/2] nvmem: core: refactor .cell_post_process() CB arguments

2022-11-27 Thread Rafał Miłecki
From: Rafał Miłecki Pass whole NVMEM cell struct and length pointer as arguments to callback functions. This allows: 1. Cells content to be modified based on more info Some cells (identified by their names) contain specific data that needs further processing. This can be e.g. MAC address

[PATCH] patman: Switch to setuptools

2022-11-27 Thread Sean Anderson
distutils is about to meet its demise [1]. Switch to setuptools. [1] https://peps.python.org/pep-0632/ Signed-off-by: Sean Anderson --- tools/patman/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/setup.py b/tools/patman/setup.py index

Re: [PATCH 06/41] sunxi: Move MMC_SUNXI_SLOT to Kconfig

2022-11-27 Thread Tom Rini
On Sun, Nov 27, 2022 at 08:39:44PM +, Andre Przywara wrote: > On Sun, 27 Nov 2022 10:25:01 -0500 > Tom Rini wrote: > > Hi Tom, > > > This value is always defined to 0, so move it to Kconfig as being set to > > always 0. > > Yeah, but that's not needed in Kconfig at all, it's just a name

Re: [PATCH 06/41] sunxi: Move MMC_SUNXI_SLOT to Kconfig

2022-11-27 Thread Andre Przywara
On Sun, 27 Nov 2022 10:25:01 -0500 Tom Rini wrote: Hi Tom, > This value is always defined to 0, so move it to Kconfig as being set to > always 0. Yeah, but that's not needed in Kconfig at all, it's just a name for the first MMC slot, its definition being misplaced in the config directory. I

Re: Nokia RX51 U-Boot USB support updates?

2022-11-27 Thread Tom Rini
On Sat, May 07, 2022 at 01:13:03PM -0400, Tom Rini wrote: > On Sat, May 07, 2022 at 05:18:02PM +0200, Merlijn Wajer wrote: > > Hi Tom, Pali, > > > > On 25/07/2021 15:43, Tom Rini wrote: > > > On Sun, Jul 25, 2021 at 12:40:13PM +0200, Merlijn Wajer wrote: > > > > Hi Tom, > > > > > > > > On

[PATCH 40/41] qe: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/qe/Makefile |2 +- drivers/qe/uccf.c| 509 --- drivers/qe/uccf.h| 119 drivers/qe/uec.c | 1436

[PATCH 41/41] net: Remove eth_legacy.c

2022-11-27 Thread Tom Rini
As there are no more non-DM_ETH cases for networking, remove this legacy file and update the Makefile to match current usage. Signed-off-by: Tom Rini --- boot/bootm.c| 3 - cmd/net.c | 2 - cmd/usb.c | 10 -- drivers/net/Kconfig | 4 + include/net.h |

[PATCH 39/41] usb: gadget: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/usb/gadget/ether.c | 97 -- drivers/usb/gadget/rndis.c | 9 drivers/usb/gadget/rndis.h | 11 - 3 files changed,

[PATCH 27/41] net: rtl8169: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/rtl8169.c | 166 -- 1 file changed, 166 deletions(-) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c

[PATCH 26/41] net: rtl8139: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/rtl8139.c | 112 -- 1 file changed, 112 deletions(-) diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c

[PATCH 25/41] net: phy: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/phy/aquantia.c | 2 -- drivers/net/phy/atheros.c| 2 -- drivers/net/phy/dp83867.c| 14 --- drivers/net/phy/dp83869.c

[PATCH 38/41] usb: eth: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code fro usb_ether itself. Signed-off-by: Tom Rini --- drivers/usb/eth/usb_ether.c | 199 -- drivers/usb/host/usb-uclass.c | 43 include/usb.h

[PATCH 35/41] usb: eth: msc7830: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/usb/eth/mcs7830.c | 276 -- 1 file changed, 276 deletions(-) diff --git a/drivers/usb/eth/mcs7830.c

[PATCH 37/41] usb: eth: smsc95xx: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/usb/eth/smsc95xx.c | 234 - 1 file changed, 234 deletions(-) diff --git a/drivers/usb/eth/smsc95xx.c

[PATCH 36/41] usb: eth: r8152: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/usb/eth/r8152.c | 275 drivers/usb/eth/r8152.h | 2 - 2 files changed, 277 deletions(-) diff --git

[PATCH 34/41] usb: eth: asix88179: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/usb/eth/asix88179.c | 250 1 file changed, 250 deletions(-) diff --git a/drivers/usb/eth/asix88179.c

[PATCH 33/41] usb: eth: asix: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/usb/eth/asix.c | 255 - 1 file changed, 255 deletions(-) diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c

[PATCH 32/41] net: keystone_net: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/ti/keystone_net.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c

[PATCH 31/41] net: cpsw: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/ti/cpsw.c | 96 --- 1 file changed, 96 deletions(-) diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c

[PATCH 30/41] net: sunxi_emac: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/sunxi_emac.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index 8625e49dae4d..ad9e1abd161e

[PATCH 29/41] net: smc911x: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/smc911x.c | 147 -- 1 file changed, 147 deletions(-) diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c

[PATCH 28/41] net: sh_eth: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/sh_eth.c | 160 --- 1 file changed, 160 deletions(-) diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c

[PATCH 24/41] net: pcnet: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/pcnet.c | 136 1 file changed, 136 deletions(-) diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index

[PATCH 23/41] net: netconsole: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/netconsole.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index

[PATCH 22/41] net: mvgbe: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/mvgbe.c | 214 +--- drivers/net/mvgbe.h | 8 -- 2 files changed, 2 insertions(+), 220 deletions(-) diff --git

[PATCH 20/41] net: macb: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/macb.c | 194 + 1 file changed, 2 insertions(+), 192 deletions(-) diff --git a/drivers/net/macb.c

[PATCH 21/41] net: mcfmii: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/mcfmii.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c index e2c8f41876e7..48dd558405c5

[PATCH 19/41] net: ldpaa_eth: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/ldpaa_eth/ldpaa_eth.c | 198 +- drivers/net/ldpaa_eth/ldpaa_eth.h | 4 - 2 files changed, 2 insertions(+), 200 deletions(-)

[PATCH 15/41] net: eepro100: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/eepro100.c | 134 - 1 file changed, 134 deletions(-) diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c

[PATCH 18/41] net: fsl-mc: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/fsl-mc/mc.c | 21 - 1 file changed, 21 deletions(-) diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index

[PATCH 17/41] net: fec_mxc: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/fec_mxc.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/fec_mxc.h b/drivers/net/fec_mxc.h index 48faa33d66ec..77bfc1cbf450 100644 ---

[PATCH 16/41] net: ethoc: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/ethoc.c | 85 include/dm/platform_data/net_ethoc.h | 4 -- 2 files changed, 89 deletions(-) diff --git

[PATCH 14/41] net: e1000: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/e1000.c | 216 +--- drivers/net/e1000.h | 11 --- 2 files changed, 1 insertion(+), 226 deletions(-) diff --git

[PATCH 13/41] net: dm9000x: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/dm9000x.c | 66 --- 1 file changed, 66 deletions(-) diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c

[PATCH 12/41] net: designware: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/designware.c | 112 ++- drivers/net/designware.h | 5 -- 2 files changed, 3 insertions(+), 114 deletions(-) diff

[PATCH 10/41] net: fm: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/fm/Makefile| 1 - drivers/net/fm/eth.c | 238 --- drivers/net/fm/fm.c| 4 - drivers/net/fm/fm.h| 8 -

[PATCH 09/41] net: tsec: Remove non-DM_ETH support code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Doing this removes some board support code which was also unused. Finally, this removes some CONFIG symbols that otherwise needed to be migrated to Kconfig, but were unused in code now.

[PATCH 11/41] net: dc2114x: Remove non-DM_ETH code

2022-11-27 Thread Tom Rini
As DM_ETH is required for all network drivers, it's now safe to remove the non-DM_ETH support code. Signed-off-by: Tom Rini --- drivers/net/dc2114x.c | 156 -- 1 file changed, 156 deletions(-) diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c

[PATCH 08/41] global: Remove extraneous DM_ETH imply/select

2022-11-27 Thread Tom Rini
We only need to enable DM_ETH if we have a networking driver. All networking drivers depend on DM_ETH being enabled, and their selection ensures DM_ETH will be enabled. Signed-off-by: Tom Rini --- arch/Kconfig | 2 -- arch/arm/Kconfig | 13 -

[PATCH 07/41] net: Remove extraneous dependencies

2022-11-27 Thread Tom Rini
With DM_ETH being required now for all drivers, we don't need this listed on individual drivers as well. Signed-off-by: Tom Rini --- drivers/net/Kconfig | 4 ++-- drivers/net/bnxt/Kconfig | 1 - drivers/net/mscc_eswitch/Kconfig | 10 +- drivers/net/phy/Kconfig

[PATCH 06/41] sunxi: Move MMC_SUNXI_SLOT to Kconfig

2022-11-27 Thread Tom Rini
This value is always defined to 0, so move it to Kconfig as being set to always 0. Cc: Andre Przywara C: Icenowy Zheng Signed-off-by: Tom Rini --- arch/arm/mach-sunxi/Kconfig| 4 include/configs/sunxi-common.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 05/41] chromebook_samus_tpl: Disable SPL networking

2022-11-27 Thread Tom Rini
We don't appear to actually use networking in SPL here, disable it. Cc: Simon Glass Signed-off-by: Tom Rini --- configs/chromebook_samus_tpl_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/chromebook_samus_tpl_defconfig b/configs/chromebook_samus_tpl_defconfig index

[PATCH 04/41] topic_miami*: Disable networking support more fully

2022-11-27 Thread Tom Rini
This platform had largely disabled networking support before. More completely disable it by turning off CONFIG_NET. Cc: Mike Looijmans Signed-off-by: Tom Rini --- configs/topic_miami_defconfig | 2 +- configs/topic_miamilite_defconfig | 2 +- configs/topic_miamiplus_defconfig | 2 +- 3

[PATCH 03/41] pinecube: Disable networking support more fully

2022-11-27 Thread Tom Rini
This platform had largely disabled networking support before. More completely disable it by turning off CONFIG_NET. Cc: Icenowy Zheng Signed-off-by: Tom Rini --- configs/pinecube_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/pinecube_defconfig

[PATCH 02/41] LicheePi_Zero: Disable networking support more fully

2022-11-27 Thread Tom Rini
This platform had largely disabled networking support before. More completely disable it by turning off CONFIG_NET. Cc: Icenowy Zheng Signed-off-by: Tom Rini --- configs/LicheePi_Zero_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/LicheePi_Zero_defconfig

[PATCH 01/41] xenguest_arm64: Disable networking support more fully

2022-11-27 Thread Tom Rini
This platform had largely disabled networking support before. More completely disable it by turning off CONFIG_NET. Cc: Anastasiia Lukianenko Cc: Oleksandr Andrushchenko Signed-off-by: Tom Rini --- configs/xenguest_arm64_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v3 5/5] usb: dwc3: Drop support for "snps, ref-clock-period-ns" DT property

2022-11-27 Thread Marek Vasut
Drop support for quickly deprecated DT property "snps,ref-clock-period-ns" to prevent its proliferation. Reviewed-by: Sean Anderson Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Bin Meng Cc: Fabio Estevam Cc: Kunihiko Hayashi Cc: Michal Simek Cc: Peng Fan Cc: Sean Anderson Cc:

[PATCH v3 4/5] usb: dwc3: Program GFLADJ

2022-11-27 Thread Marek Vasut
From: Sean Anderson GUCTL.REFCLKPER can only account for clock frequencies with integer periods. To address this, program REFCLK_FLADJ with the relative error caused by period truncation. The formula given in the register reference has been rearranged to allow calculation based on rate (instead

[PATCH v3 3/5] usb: dwc3: Calculate REFCLKPER based on reference clock

2022-11-27 Thread Marek Vasut
From: Sean Anderson Instead of using a special property to determine the reference clock period, use the rate of the reference clock. When we have a legacy snps,ref-clock-period-ns property and no reference clock, use it instead. Fractional clocks are not currently supported, and will be dealt

[PATCH v3 2/5] usb: dwc3: reference clock period configuration

2022-11-27 Thread Marek Vasut
From: Balaji Prakash J Set reference clock period when it differs from dwc3 default hardware set. We could calculate clock period based on reference clock frequency. But this information is not always available. This is the case of PCI bus attached USB host. For that reason we use a custom

[PATCH v3 1/5] usb: dwc3: Cache ref_clk pointer in struct dwc3

2022-11-27 Thread Marek Vasut
Cache ref_clk clock pointer in struct dwc3 . This is a preparatory patch for subsequent backports from Linux kernel which configure GFLADJ register content based on the ref_clk rate and therefore need access to the ref_clk pointer. It is possible to extract the clock pointer from existing

[PATCH 2/2] musb-new: omap2430: fix musb probing in gadget mode

2022-11-27 Thread Andreas Kemnade
Host mode structures were accessed but not initialized and gadget dm did not compile at all. Signed-off-by: Andreas Kemnade --- drivers/usb/musb-new/omap2430.c | 42 - 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/drivers/usb/musb-new/omap2430.c

[PATCH 1/2] omap4: make musb probeable by simple bus

2022-11-27 Thread Andreas Kemnade
Like other peripherals important for booting, do not rely on ti-sysc compatibility alone Signed-off-by: Andreas Kemnade --- arch/arm/dts/omap4-u-boot.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/omap4-u-boot.dtsi b/arch/arm/dts/omap4-u-boot.dtsi index

[PATCH 0/2] musb-new: fix omap peripheral support

2022-11-27 Thread Andreas Kemnade
DM_GADGET did not compile at all, probe was not called in non-gadget mode. Tested on an omap4 board with ums and fastboot command Andreas Kemnade (2): omap4: make musb probeable by simple bus musb-new: omap2430: fix musb probing in gadget mode arch/arm/dts/omap4-u-boot.dtsi | 8 +++