colibri-imx6ull: fix the Ethernet PHY detection
Subsystems (5)
cover colibri-imx6ull: fix the Ethernet PHY detection
Since commit a5d990854f2c ("regulator: fixed: fix regulator-fixed-clock") the regulator-fixed-clock driver gets its clock in a probe hook, so it can no longer probe without CONFIG_CLK. On the Colibri iMX6ULL the Ethernet PHY supply is such a regulator. Its 150ms startup delay is skipped, and the first FEC probe does not find the PHY.
This series fixes the problem by moving the board to the clock framework (CONFIG_CLK_IMX6UL). The i.MX6UL clock driver could not yet drive the FEC, so most of the series makes the ENET clocks usable:
- Patch 1 fixes the ENET gate, which pointed at the uart3 gate. It is a standalone fix and can be applied on its own.
- Patches 2 and 3 fix the PLLv3 ENET PLL: wait for lock after power up, and stop setting and clearing bit 13. That bit is an output gate, which the SoC drivers already model as a separate clock. Patch 3 also affects i.MX6Q/DL, where every PLL6 consumer goes through the pll6_enet gate on that bit.
- Patch 4 adds the ENET clock tree to the i.MX6UL driver: the PLL6 bypass, the reference dividers with their 125M gates, the GPR1 reference clock selectors, the PTP clock and the AHB gate.
The rest prepares and switches the board:
- Patch 5 removes the static serial_mxc device. It duplicates the device tree instance and cannot get its clocks once CCF is enabled.
- Patch 6 moves the Colibri iMX6ULL device trees to OF_UPSTREAM.
- Patch 7 enables the clock framework. With it, the hand-rolled FEC clock setup is no longer needed. setup_gpmi_nand() has to go as well, because it now overwrites the ENFC parent chosen by the CCM driver and breaks NAND. SYS_MALLOC_F_LEN is raised for the pre-relocation CCM probe.
A note on patch 4: U-Boot has no clock type for the IOMUXC GPR muxes, so the ENETn_CLK_SEL selectors are plain muxes on the GPR1 register, and the ENET2_TX_CLK direction bit stays in board code. A follow-up could add a syscon-based GPR mux clock like the one in Linux. That would also remove the remaining board code.
On the Colibri iMX6ULL, Ethernet now finds the PHY on the first probe.
The series was tested on the following modules:
- Colibri iMX6ULL
- Colibri iMX6ULL eMMC
- Colibri iMX6
- Apalis iMX6
Francesco Dolcini (4):
clk: imx: imx6ul: fix the enet clock gate register
board: toradex: colibri-imx6ull: drop the static serial device
arm: dts: imx6ull-colibri: migrate to OF_UPSTREAM
board: toradex: colibri-imx6ull: enable the clock framework
Stefan Eichenberger (3):
clk: imx: pllv3: wait for the ENET PLL to lock
clk: imx: pllv3: do not touch the ENET output gate
clk: imx: imx6ul: add the enet clock tree
arch/arm/dts/Makefile | 2 - arch/arm/dts/imx6ull-colibri-emmc-eval-v3.dts | 17 - .../arm/dts/imx6ull-colibri-emmc-nonwifi.dtsi | 187 ----- .../dts/imx6ull-colibri-eval-v3-u-boot.dtsi | 6 + arch/arm/dts/imx6ull-colibri-eval-v3.dts | 14 - arch/arm/dts/imx6ull-colibri-eval-v3.dtsi | 121 --- arch/arm/dts/imx6ull-colibri-nonwifi.dtsi | 161 ---- arch/arm/dts/imx6ull-colibri.dtsi | 748 ------------------ arch/arm/mach-imx/mx6/Kconfig | 1 + board/toradex/colibri-imx6ull/MAINTAINERS | 8 +- .../toradex/colibri-imx6ull/colibri-imx6ull.c | 45 +- configs/colibri-imx6ull-emmc_defconfig | 4 +- configs/colibri-imx6ull_defconfig | 4 +- drivers/clk/imx/clk-imx6ul.c | 81 +- drivers/clk/imx/clk-pllv3.c | 21 +- 15 files changed, 116 insertions(+), 1304 deletions(-) delete mode 100644 arch/arm/dts/imx6ull-colibri-emmc-eval-v3.dts delete mode 100644 arch/arm/dts/imx6ull-colibri-emmc-nonwifi.dtsi delete mode 100644 arch/arm/dts/imx6ull-colibri-eval-v3.dts delete mode 100644 arch/arm/dts/imx6ull-colibri-eval-v3.dtsi delete mode 100644 arch/arm/dts/imx6ull-colibri-nonwifi.dtsi delete mode 100644 arch/arm/dts/imx6ull-colibri.dtsi
Signature · 1 line
2.56.1
PATCH 1/7 clk: imx: imx6ul: fix the enet clock gate register
From: Francesco Dolcini <[email protected]>
IMX6UL_CLK_ENET was registered on CCGR1 bit 10, which is CG5, the uart3
gate: enabling the FEC clock would have gated uart3 and left ENET alone. The ENET gate is CCM_CCGR0[CG6] on i.MX6ULL and CCM_CCGR3[CG2] on i.MX6UL, as the reference manuals and Linux have it.
--- drivers/clk/imx/clk-imx6ul.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/clk/imx/clk-imx6ul.c +7 -2
@@ -9,6 +9,7 @@#include <log.h> #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> +#include <asm/mach-imx/sys_proto.h> #include <dt-bindings/clock/imx6ul-clock.h> #include "clk.h"
@@ -259,8 +260,12 @@ static int imx6ul_clk_probe(struct udevice *dev)clk_dm (IMX6UL_CLK_PWM1 ,imx_clk_gate2 (dev,"pwm1" ,"perclk" , base +0x78 ,16 )); -clk_dm (IMX6UL_CLK_ENET , -imx_clk_gate2 (dev,"enet" ,"ipg" , base +0x6c ,10 )); +if (is_mx6ull ()) +clk_dm (IMX6UL_CLK_ENET , +imx_clk_gate2 (dev,"enet" ,"ipg" , base +0x68 ,12 )); +else +clk_dm (IMX6UL_CLK_ENET , +imx_clk_gate2 (dev,"enet" ,"ipg" , base +0x74 ,4 ));clk_dm (IMX6UL_CLK_ENET_REF ,imx_clk_fixed_factor (dev,"enet_ref" ,"pll6_enet" ,1 ,1 ));
Signature · 1 line
2.56.1
PATCH 2/7 clk: imx: pllv3: wait for the ENET PLL to lock
In reply to Stefan EichenbergerFrom: Stefan Eichenberger <[email protected]>
The ENET PLL enable powers the PLL up and returns immediately, so a consumer can start using the reference clock before the PLL has locked. The legacy enable_fec_anatop_clock() polled the LOCK bit after powering up the PLL, and Linux does the same in clk_pllv3_prepare().
Poll the LOCK bit after enabling the ENET PLL, with a 10 ms timeout.
--- drivers/clk/imx/clk-pllv3.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
drivers/clk/imx/clk-pllv3.c +18 -1
@@ -14,6 +14,7 @@#include <clk.h> #include "clk.h" #include <linux/err.h> +#include <linux/iopoll.h> #define UBOOT_DM_CLK_IMX_PLLV3_GENERIC "imx_clk_pllv3_generic"#define UBOOT_DM_CLK_IMX_PLLV3_SYS "imx_clk_pllv3_sys"
@@ -31,6 +32,8 @@#define BM_PLL_LOCK (0x1 << 31)#define BM_PLL_LOCK_V2 (0x1 << 29) +#define PLL_LOCK_TIMEOUT_US 10000 +struct clk_pllv3 {struct clk clk;void __iomem *base;
@@ -275,8 +278,22 @@ static ulong clk_pllv3_enet_get_rate(struct clk *clk)return pll->ref_clock; } +static int clk_pllv3_enet_enable (struct clk *clk) +{ +struct clk_pllv3 *pll =to_clk_pllv3 (clk); +u32 val; +int ret; + + ret =clk_pllv3_generic_enable (clk); +if (ret) +return ret; + +return readl_poll_timeout (pll->base, val, val & pll->lock_bit, +PLL_LOCK_TIMEOUT_US ); +} +static const struct clk_ops clk_pllv3_enet_ops = { - .enable = clk_pllv3_generic_enable, + .enable = clk_pllv3_enet_enable, .disable = clk_pllv3_generic_disable, .get_rate = clk_pllv3_enet_get_rate, };
Signature · 1 line
2.56.1
PATCH 3/7 clk: imx: pllv3: do not touch the ENET output gate
In reply to Stefan EichenbergerFrom: Stefan Eichenberger <[email protected]>
The PLLv3 enable and disable set and clear BM_PLL_ENABLE (bit 13) for every PLL type. On PLL_ENET that bit is not a PLL enable but an output
gate: ENET1_125M_EN on i.MX6UL/ULL and the ENET clock output enable on i.MX6Q/DL. Both SoC drivers already model it as their own gate clock (enet1_ref_125m and pll6_enet, respectively), so the bit has two owners. Enabling PLL6 for any of its other outputs turns that output on as well, and disabling PLL6 clears it behind the gate's back.
Linux only handles the power bit for the ENET PLL. Do the same and leave bit 13 to the SoC drivers. The PLL is still powered up and down through BM_PLL_POWER.
--- drivers/clk/imx/clk-pllv3.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/clk/imx/clk-pllv3.c +2 -0
@@ -346,6 +346,8 @@ struct clk *imx_clk_pllv3(struct udevice *dev, enum imx_pllv3_type type,case IMX_PLLV3_ENET : drv_name =UBOOT_DM_CLK_IMX_PLLV3_ENET ; pll->ref_clock =500000000 ; +/* Bit 13 is an output gate, modelled by the SoC driver */ + pll->enable_bit =0 ;break ;default :kfree (pll);
Signature · 1 line
2.56.1
PATCH 4/7 clk: imx: imx6ul: add the enet clock tree
In reply to Stefan EichenbergerFrom: Stefan Eichenberger <[email protected]>
The FEC ipg/ahb/ptp/ref clocks and the regulator-fixed-clock PHY supplies reference clock IDs the driver never registered, so none of them can probe with the clock framework enabled. The CCM request callback only checks the ID range, so clk_get_by_name() still succeeds, but the following clk_set_rate() and clk_enable() fail to look up the clock.
Model the ENET branch as the reference manual and Linux describe it:
- The PLL6 bypass muxes, as this driver already does for PLL3. PLL_ENET comes out of reset with BYPASS set, and the PLLv3 enable only powers the PLL up, so select pll6 at probe time. Otherwise the reference dividers run from the 24 MHz oscillator.
- pll6_enet feeding the two ref dividers and their 125M gates. pll6_enet was registered as a gate on PLL_ENET bit 13, which is the ENET1 125M output enable, not a PLL gate.
- The ENET1/ENET2 reference clock selectors on the IOMUXC_GPR1 ENETn_CLK_SEL bits, choosing between the 125M gates and the ENETn_TX_CLK pads. U-Boot has no GPR mux clock type, so use a plain mux on the GPR1 register. The pad clocks are not modelled and map to "dummy". Unlike the Linux GPR mux, this does not drive
ENETn_TX_CLK_DIR: the U-Boot mux can only update a contiguous bit field, and CLK_SEL and TX_CLK_DIR are not adjacent.
- The PTP reference and the enet AHB gate.
The 125M gates and the selectors carry CLK_SET_RATE_PARENT, so the FEC driver's clk_set_rate() on enet_clk_ref lands on the ref divider. Default both ref dividers to 50 MHz as Linux does, so the clock is already at the RMII rate when a consumer enables it before the FEC sets the rate, such as a regulator-fixed-clock PHY supply that probes before the FEC.
--- drivers/clk/imx/clk-imx6ul.c | 76 +++++++++++++++++++++++++++++++++--- 1 file changed, 71 insertions(+), 5 deletions(-)
drivers/clk/imx/clk-imx6ul.c +71 -5
@@ -34,8 +34,20 @@ static struct clk_ops imx6ul_clk_ops = { .disable = ccf_clk_disable, }; +static const struct clk_div_table clk_enet_ref_table[] = { + { .val =0 , .div =20 , }, + { .val =1 , .div =10 , }, + { .val =2 , .div =5 , }, + { .val =3 , .div =4 , }, + { } +}; +static const char *const pll_bypass_src_sels[] = {"osc" ,"dummy" , };static const char *const pll3_bypass_sels[] = {"pll3" ,"pll3_bypass_src" , }; +static const char *const pll6_bypass_sels[] = {"pll6" ,"pll6_bypass_src" , }; +/* The ENETn_TX_CLK pad clocks are not modelled, hence "dummy" */ +static const char *const enet1_ref_sels[] = {"enet1_ref_125m" ,"dummy" , }; +static const char *const enet2_ref_sels[] = {"enet2_ref_125m" ,"dummy" , };static const char *const bch_sels[] = {"pll2_pfd2_396m" ,"pll2_pfd0_352m" , };static const char *const gpmi_sels[] = {"pll2_pfd2_396m" ,"pll2_pfd0_352m" , };
@@ -103,8 +115,48 @@ static int imx6ul_clk_probe(struct udevice *dev)clk_dm (IMX6UL_CLK_PLL6 ,imx_clk_pllv3 (dev,IMX_PLLV3_ENET ,"pll6" ,"osc" , base +0xe0 ,0x3 )); +clk_dm (IMX6UL_PLL6_BYPASS_SRC , +imx_clk_mux (dev,"pll6_bypass_src" , base +0xe0 ,14 ,1 , + pll_bypass_src_sels, +ARRAY_SIZE (pll_bypass_src_sels))); +clk_dm (IMX6UL_PLL6_BYPASS , +imx_clk_mux_flags (dev,"pll6_bypass" , base +0xe0 ,16 ,1 , + pll6_bypass_sels,ARRAY_SIZE (pll6_bypass_sels), +CLK_SET_RATE_PARENT ));clk_dm (IMX6UL_CLK_PLL6_ENET , -imx_clk_gate (dev,"pll6_enet" ,"pll6" , base +0xe0 ,13 )); +imx_clk_fixed_factor (dev,"pll6_enet" ,"pll6_bypass" ,1 ,1 )); +clk_dm (IMX6UL_CLK_ENET_REF , +clk_register_divider_table (dev,"enet1_ref" ,"pll6_enet" ,0 , + base +0xe0 ,0 ,2 ,0 , + clk_enet_ref_table)); +clk_dm (IMX6UL_CLK_ENET2_REF , +clk_register_divider_table (dev,"enet2_ref" ,"pll6_enet" ,0 , + base +0xe0 ,2 ,2 ,0 , + clk_enet_ref_table)); +clk_dm (IMX6UL_CLK_ENET1_REF_125M , +imx_clk_gate (dev,"enet1_ref_125m" ,"enet1_ref" , base +0xe0 , +13 )); +clk_dm (IMX6UL_CLK_ENET2_REF_125M , +imx_clk_gate (dev,"enet2_ref_125m" ,"enet2_ref" , base +0xe0 , +20 )); +/* +* IOMUXC_GPR1 ENETn_CLK_SEL: the ENET reference clock comes from +* the anatop ENET PLL (0) or from the ENETn_TX_CLK pad (1). +*/ +clk_dm (IMX6UL_CLK_ENET1_REF_SEL , +imx_clk_mux_flags (dev,"enet1_ref_sel" , + (void *)IOMUXC_GPR_BASE_ADDR +0x4 ,13 ,1 , + enet1_ref_sels,ARRAY_SIZE (enet1_ref_sels), +CLK_SET_RATE_PARENT )); +clk_dm (IMX6UL_CLK_ENET2_REF_SEL , +imx_clk_mux_flags (dev,"enet2_ref_sel" , + (void *)IOMUXC_GPR_BASE_ADDR +0x4 ,14 ,1 , + enet2_ref_sels,ARRAY_SIZE (enet2_ref_sels), +CLK_SET_RATE_PARENT )); +clk_dm (IMX6UL_CLK_ENET_PTP_REF , +imx_clk_fixed_factor (dev,"enet_ptp_ref" ,"pll6_enet" ,1 ,20 )); +clk_dm (IMX6UL_CLK_ENET_PTP , +imx_clk_gate (dev,"enet_ptp" ,"enet_ptp_ref" , base +0xe0 ,21 ));/* CCM clocks */ base =dev_read_addr_ptr (dev);
@@ -260,14 +312,17 @@ static int imx6ul_clk_probe(struct udevice *dev)clk_dm (IMX6UL_CLK_PWM1 ,imx_clk_gate2 (dev,"pwm1" ,"perclk" , base +0x78 ,16 )); -if (is_mx6ull ()) +if (is_mx6ull ()) {clk_dm (IMX6UL_CLK_ENET ,imx_clk_gate2 (dev,"enet" ,"ipg" , base +0x68 ,12 )); -else +clk_dm (IMX6UL_CLK_ENET_AHB , +imx_clk_gate2 (dev,"enet_ahb" ,"ahb" , base +0x68 ,12 )); + }else {clk_dm (IMX6UL_CLK_ENET ,imx_clk_gate2 (dev,"enet" ,"ipg" , base +0x74 ,4 )); -clk_dm (IMX6UL_CLK_ENET_REF , -imx_clk_fixed_factor (dev,"enet_ref" ,"pll6_enet" ,1 ,1 )); +clk_dm (IMX6UL_CLK_ENET_AHB , +imx_clk_gate2 (dev,"enet_ahb" ,"ahb" , base +0x74 ,4 )); + }struct clk *clk, *clk1;
@@ -276,6 +331,17 @@ static int imx6ul_clk_probe(struct udevice *dev)clk_set_parent (clk, clk1); +/* Take PLL6 out of bypass, the ENET reference clocks need 500 MHz */ +clk_get_by_id (IMX6UL_PLL6_BYPASS , &clk); +clk_get_by_id (IMX6UL_CLK_PLL6 , &clk1); + +clk_set_parent (clk, clk1); + +clk_get_by_id (IMX6UL_CLK_ENET_REF , &clk); +clk_set_rate (clk,50000000 ); +clk_get_by_id (IMX6UL_CLK_ENET2_REF , &clk); +clk_set_rate (clk,50000000 ); +return 0 ; }
Signature · 1 line
2.56.1
PATCH 5/7 board: toradex: colibri-imx6ull: drop the static serial device
In reply to Stefan EichenbergerFrom: Francesco Dolcini <[email protected]>
uart1 is described in the device tree and enabled there, so the platform-data device binds a second, duplicate serial_mxc instance. It has no device tree node, so once the clock framework is enabled it cannot resolve its clocks and fails to probe.
The device tree instance is still available before relocation: both simple_bus and serial_mxc set DM_FLAG_PRE_RELOC, so the soc/aips/spba buses and uart1 bind without bootph marks, and fsl,dte-mode replaces the use_dte platform data.
--- board/toradex/colibri-imx6ull/colibri-imx6ull.c | 11 ----------- 1 file changed, 11 deletions(-)
board/toradex/colibri-imx6ull/colibri-imx6ull.c +0 -11
@@ -19,7 +19,6 @@#include <asm/mach-imx/iomux-v3.h> #include <asm/io.h> #include <dm.h> -#include <dm/platform_data/serial_mxc.h> #include <env.h> #include <fdt_support.h> #include <imx_thermal.h>
@@ -211,13 +210,3 @@ int ft_board_setup(void *blob, struct bd_info *bd) return ft_common_board_setup(blob, bd); }#endif - -static struct mxc_serial_plat mxc_serial_plat = { - .reg = (struct mxc_uart *)UART1_BASE , - .use_dte =1 , -}; - -U_BOOT_DRVINFO (mxc_serial) = { - .name ="serial_mxc" , - .plat = &mxc_serial_plat, -};
Signature · 1 line
2.56.1
PATCH 7/7 board: toradex: colibri-imx6ull: enable the clock framework
In reply to Stefan EichenbergerFrom: Francesco Dolcini <[email protected]>
The PHY supply is a regulator-fixed-clock, and since commit a5d990854f2c ("regulator: fixed: fix regulator-fixed-clock") gave that driver a probe hook calling devm_clk_get() it cannot probe without CONFIG_CLK, so its 150ms startup delay is skipped and the first FEC probe finds no PHY. Enable the clock framework, which also makes the hand-rolled FEC clock setup redundant. The ENET2 reference clock selector (gpr1[14]) is now the IMX6UL_CLK_ENET2_REF_SEL clock, its parent set through assigned-clock-parents. Only the ENET2_TX_CLK direction (gpr1[18]), which no clock models, stays in board code.
Drop setup_gpmi_nand() as well. The regulator probe now probes the CCM in initr_dm, before board_init(), and the CCM driver sets ENFC_SEL to pll2_pfd2. setup_gpmi_io_clk() then writes MXC_CCM_CS2CDR_ENFC_CLK_SEL(3), which on i.MX6ULL only covers bits 17:16 of the 3-bit field, leaving ENFC_SEL at the reserved value 7 behind the back of the clock framework. The GPMI loses its clock and every NAND command times out. With the clock framework the CCM driver selects the ENFC parent and the mxs_nand driver enables the GPMI clocks and sets their rate.
The serial driver probes the CCM before relocation, and the ~80 clocks it registers need around 13 KiB from the pre-relocation malloc pool, more than the 8 KiB default. Raise SYS_MALLOC_F_LEN to 32 KiB.
With the clock framework the usdhc, i2c and gpmi drivers take their rates from the CCM driver instead of mxc_get_clock(), and the usdhc assigned-clocks in the device tree are now applied.
--- .../dts/imx6ull-colibri-eval-v3-u-boot.dtsi | 6 ++++ .../toradex/colibri-imx6ull/colibri-imx6ull.c | 34 +++---------------- configs/colibri-imx6ull-emmc_defconfig | 2 ++ configs/colibri-imx6ull_defconfig | 2 ++ 4 files changed, 15 insertions(+), 29 deletions(-)
arch/arm/dts/imx6ull-colibri-eval-v3-u-boot.dtsi +6 -0
@@ -29,6 +29,12 @@ bootph-all; }; +/* RMII reference clock from the internal ENET PLL, not from the pad */ +&fec2 { + assigned-clocks = <&clks IMX6UL_CLK_ENET2_REF_SEL>; + assigned-clock-parents = <&clks IMX6UL_CLK_ENET2_REF_125M>; +}; + &lcdif { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lcdif_dat
board/toradex/colibri-imx6ull/colibri-imx6ull.c +5 -29
@@ -7,10 +7,7 @@#include <asm/global_data.h> #include <linux/delay.h> -#include <asm/arch/clock.h> -#include <asm/arch/crm_regs.h> #include <asm/arch/imx-regs.h> -#include <asm/arch-mx6/clock.h> #include <asm/arch-mx6/imx-regs.h> #include <asm/arch-mx6/mx6ull_pins.h> #include <asm/arch/sys_proto.h>
@@ -57,15 +54,6 @@ int dram_init(void)return 0 ; } -#ifdef CONFIG_NAND_MXS -static void setup_gpmi_nand (void ) -{ -setup_gpmi_io_clk ((MXC_CCM_CS2CDR_ENFC_CLK_PODF (0 ) | -MXC_CCM_CS2CDR_ENFC_CLK_PRED (3 ) | -MXC_CCM_CS2CDR_ENFC_CLK_SEL (3 ))); -} -#endif /* CONFIG_NAND_MXS */ -#ifdef CONFIG_VIDEO static const iomux_v3_cfg_t backlight_pads[] = { /* Backlight On */
@@ -94,25 +82,16 @@ static int setup_lcd(void)#endif #ifdef CONFIG_FEC_MXC -static int setup_fec (void ) +static void setup_fec (void ) {struct iomuxc *iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR ; -int ret;/* -* Use 50MHz anatop loopback REF_CLK2 for ENET2, -* clear gpr1[14], set gpr1[18]. +* Drive the ENET2 reference clock out to the PHY: ENET2_TX_CLK_DIR +* (gpr1[18]) output. The ENET2_CLK_SEL (gpr1[14]) half is the +* IMX6UL_CLK_ENET2_REF_SEL clock, set up from the device tree. */ -clrsetbits_le32 (&iomuxc_regs->gpr[1 ],IOMUX_GPR1_FEC2_MASK , -IOMUX_GPR1_FEC2_CLOCK_MUX1_SEL_MASK ); - - ret =enable_fec_anatop_clock (1 ,ENET_50MHZ ); -if (ret) -return ret; - -enable_enet_clk (1 ); - -return 0 ; +setbits_le32 (&iomuxc_regs->gpr[1 ],IOMUX_GPR1_FEC2_CLOCK_MUX1_SEL_MASK ); }#endif /* CONFIG_FEC_MXC */
@@ -135,9 +114,6 @@ int board_init(void)setup_fec ();#endif -#ifdef CONFIG_NAND_MXS -setup_gpmi_nand (); -#endif return 0 ; }
configs/colibri-imx6ull-emmc_defconfig +2 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_MX6=y CONFIG_TEXT_BASE=0x87800000 +CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0xFFFFDE00
@@ -64,6 +65,7 @@ CONFIG_TFTP_BLOCKSIZE=16352 CONFIG_BOUNCE_BUFFER=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_ENV=y +CONFIG_CLK_IMX6UL=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x81100000 CONFIG_FASTBOOT_UUU_SUPPORT=y
configs/colibri-imx6ull_defconfig +2 -0
@@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_MX6=y CONFIG_TEXT_BASE=0x87800000 CONFIG_SYS_MALLOC_LEN=0x2000000 +CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x20000 CONFIG_ENV_OFFSET=0x380000
@@ -74,6 +75,7 @@ CONFIG_TFTP_BLOCKSIZE=16352 CONFIG_BOUNCE_BUFFER=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_ENV=y +CONFIG_CLK_IMX6UL=y CONFIG_DFU_NAND=y CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000 CONFIG_USB_FUNCTION_FASTBOOT=y
Signature · 1 line
2.56.1
PATCH 6/7 arm: dts: imx6ull-colibri: migrate to OF_UPSTREAM
In reply to Stefan EichenbergerFrom: Francesco Dolcini <[email protected]>
Build the Colibri iMX6ULL device trees from dts/upstream so they follow the Linux kernel releases instead of a local copy. The U-Boot specific bits stay in the *-u-boot.dtsi files.
Remove the now obsolete device tree files:
- imx6ull-colibri.dtsi
- imx6ull-colibri-nonwifi.dtsi
- imx6ull-colibri-emmc-nonwifi.dtsi
- imx6ull-colibri-eval-v3.dtsi
- imx6ull-colibri-eval-v3.dts
- imx6ull-colibri-emmc-eval-v3.dts
--- arch/arm/dts/Makefile | 2 - arch/arm/dts/imx6ull-colibri-emmc-eval-v3.dts | 17 - .../arm/dts/imx6ull-colibri-emmc-nonwifi.dtsi | 187 ----- arch/arm/dts/imx6ull-colibri-eval-v3.dts | 14 - arch/arm/dts/imx6ull-colibri-eval-v3.dtsi | 121 --- arch/arm/dts/imx6ull-colibri-nonwifi.dtsi | 161 ---- arch/arm/dts/imx6ull-colibri.dtsi | 748 ------------------ arch/arm/mach-imx/mx6/Kconfig | 1 + board/toradex/colibri-imx6ull/MAINTAINERS | 8 +- configs/colibri-imx6ull-emmc_defconfig | 2 +- configs/colibri-imx6ull_defconfig | 2 +- 11 files changed, 5 insertions(+), 1258 deletions(-) delete mode 100644 arch/arm/dts/imx6ull-colibri-emmc-eval-v3.dts delete mode 100644 arch/arm/dts/imx6ull-colibri-emmc-nonwifi.dtsi delete mode 100644 arch/arm/dts/imx6ull-colibri-eval-v3.dts delete mode 100644 arch/arm/dts/imx6ull-colibri-eval-v3.dtsi delete mode 100644 arch/arm/dts/imx6ull-colibri-nonwifi.dtsi delete mode 100644 arch/arm/dts/imx6ull-colibri.dtsi
arch/arm/dts/Makefile +0 -2
@@ -800,8 +800,6 @@ dtb-$(CONFIG_MX6UL) += \ dtb-$(CONFIG_MX6ULL) += \ imx6ull-14x14-evk.dtb \ - imx6ull-colibri-emmc-eval-v3.dtb \ - imx6ull-colibri-eval-v3.dtb \ imx6ull-myir-mys-6ulx-eval.dtb \ imx6ull-seeed-npi-imx6ull-dev-board.dtb \ imx6ull-phytec-segin-ff-rdk-emmc.dtb \
arch/arm/dts/imx6ull-colibri-emmc-eval-v3.dts deleted +0 -17
@@ -1,17 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* - * Copyright 2021 Toradex - */ - -/dts-v1/; - -#include "imx6ull-colibri-emmc-nonwifi.dtsi" -#include "imx6ull-colibri-eval-v3.dtsi" - -/ { - model = "Toradex Colibri iMX6ULL 1GB (eMMC) on Colibri Evaluation Board V3"; - compatible = "toradex,colibri-imx6ull-emmc-eval", - "toradex,colibri-imx6ull-emmc", - "toradex,colibri-imx6ull", - "fsl,imx6ull"; -};
arch/arm/dts/imx6ull-colibri-emmc-nonwifi.dtsi deleted +0 -187
187 lines not on this page · raw message
arch/arm/dts/imx6ull-colibri-eval-v3.dts deleted +0 -14
@@ -1,14 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2018-2022 Toradex - */ - -/dts-v1/; - -#include "imx6ull-colibri-nonwifi.dtsi" -#include "imx6ull-colibri-eval-v3.dtsi" - -/ { - model = "Toradex Colibri iMX6ULL 256/512MB on Colibri Evaluation Board V3"; - compatible = "toradex,colibri-imx6ull-eval", "fsl,imx6ull"; -};
arch/arm/dts/imx6ull-colibri-eval-v3.dtsi deleted +0 -121
121 lines not on this page · raw message
arch/arm/dts/imx6ull-colibri-nonwifi.dtsi deleted +0 -161
161 lines not on this page · raw message
arch/arm/dts/imx6ull-colibri.dtsi deleted +0 -748
748 lines not on this page · raw message
arch/arm/mach-imx/mx6/Kconfig +1 -0
@@ -170,6 +170,7 @@ config TARGET_COLIBRI_IMX6ULL select DM select DM_THERMAL select IOMUX_LPSR + imply OF_UPSTREAM config TARGET_DART_6UL bool "Variscite imx6ULL dart(DART-SOM-6ULL)"
board/toradex/colibri-imx6ull/MAINTAINERS +2 -6
@@ -3,12 +3,8 @@ M: Francesco Dolcini <[email protected]> W: http://developer.toradex.com/software/linux/linux-software W: https://www.toradex.com/community S: Maintained -F: arch/arm/dts/imx6ull-colibri.dtsi -F: arch/arm/dts/imx6ull-colibri-emmc-eval-v3.dts -F: arch/arm/dts/imx6ull-colibri-emmc-nonwifi.dtsi -F: arch/arm/dts/imx6ull-colibri-eval-v3.dts -F: arch/arm/dts/imx6ull-colibri-eval-v3.dtsi -F: arch/arm/dts/imx6ull-colibri-nonwifi.dtsi +F: arch/arm/dts/imx6ull-colibri-emmc-eval-v3-u-boot.dtsi +F: arch/arm/dts/imx6ull-colibri-eval-v3-u-boot.dtsi F: board/toradex/colibri-imx6ull/ F: board/toradex/common/ F: configs/colibri-imx6ull_defconfig
configs/colibri-imx6ull-emmc_defconfig +1 -1
@@ -8,7 +8,7 @@ CONFIG_MX6ULL=y CONFIG_TARGET_COLIBRI_IMX6ULL=y CONFIG_DM_GPIO=y CONFIG_TARGET_COLIBRI_IMX6ULL_EMMC=y -CONFIG_DEFAULT_DEVICE_TREE="imx6ull-colibri-emmc-eval-v3" +CONFIG_DEFAULT_DEVICE_TREE="nxp/imx/imx6ull-colibri-emmc-eval-v3" CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_SYS_LOAD_ADDR=0x84200000 CONFIG_SYS_MEMTEST_START=0x80000000
configs/colibri-imx6ull_defconfig +1 -1
@@ -9,7 +9,7 @@ CONFIG_MX6ULL=y CONFIG_TARGET_COLIBRI_IMX6ULL=y CONFIG_DM_GPIO=y CONFIG_TARGET_COLIBRI_IMX6ULL_NAND=y -CONFIG_DEFAULT_DEVICE_TREE="imx6ull-colibri-eval-v3" +CONFIG_DEFAULT_DEVICE_TREE="nxp/imx/imx6ull-colibri-eval-v3" CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_SYS_LOAD_ADDR=0x84200000 CONFIG_SYS_MEMTEST_START=0x80000000
Signature · 1 line
2.56.1