Drop platform data for cpsw for am3/4 and dra7
Subsystems (5)
Tony Lindgren
maintainercover Drop platform data for cpsw for am3/4 and dra7
Hi all,
Here are changes to drop legacy platform data for cpsw for am3, am4 and dra7. Please review and test, I was not able to boot my beagle x15 as it seems to have a power supply problem and have only tested on am3 and 4.
Regards,
Tony
Tony Lindgren (3):
ARM: dts: Add fck for cpsw mdio for omap variants
ARM: OMAP2+: Drop legacy platform data for cpsw on am3 and am4
ARM: OMAP2+: Drop legacy platform data for cpsw on dra7
arch/arm/boot/dts/am33xx-l4.dtsi | 4 +- arch/arm/boot/dts/am437x-l4.dtsi | 6 +- arch/arm/boot/dts/dra7-l4.dtsi | 4 +- .../omap_hwmod_33xx_43xx_common_data.h | 3 - .../omap_hwmod_33xx_43xx_interconnect_data.c | 6 -- .../omap_hwmod_33xx_43xx_ipblock_data.c | 50 -------------- arch/arm/mach-omap2/omap_hwmod_33xx_data.c | 9 --- arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 9 --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 65 ------------------- 9 files changed, 6 insertions(+), 150 deletions(-)
Signature · 1 line
2.21.0
Tony Lindgren
maintainerPATCH 1/3 ARM: dts: Add fck for cpsw mdio for omap variants
In preparation for dropping legacy platform data and custom ti,hwmods property, we need to make functional clock available for mdio for the SoCs so the the mdio driver can find it.
The mdio hardware currently relies on a mdio_hwmod to manage the clock for omap variants. This is wrong though as there are no separate sysconfig registers for mdio. All the cpsw related components are just children of the gmac module.
Note that since mdio is a child of cpsw, just doing pm_runtime_get() in the mdio driver enables the clock. However, since mdio is also used by davinci that does not implement runtime PM, let's just add the fck for now.
Also note that am437x mdio already has a clock, let's update it to not use the legacy clock naming to unify things further.
--- arch/arm/boot/dts/am33xx-l4.dtsi | 2 ++ arch/arm/boot/dts/am437x-l4.dtsi | 4 ++-- arch/arm/boot/dts/dra7-l4.dtsi | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/am33xx-l4.dtsi +2 -0
@@ -719,6 +719,8 @@ davinci_mdio: mdio@1000 { compatible = "ti,cpsw-mdio","ti,davinci_mdio"; + clocks = <&cpsw_125mhz_clkctrl AM3_CPSW_125MHZ_CPGMAC0_CLKCTRL 0>; + clock-names = "fck"; #address-cells = <1>; #size-cells = <0>; ti,hwmods = "davinci_mdio";
arch/arm/boot/dts/am437x-l4.dtsi +2 -2
@@ -559,10 +559,10 @@ davinci_mdio: mdio@1000 { compatible = "ti,am4372-mdio","ti,cpsw-mdio","ti,davinci_mdio"; reg = <0x1000 0x100>; + clocks = <&cpsw_125mhz_clkctrl AM4_CPSW_125MHZ_CPGMAC0_CLKCTRL 0>; + clock-names = "fck"; #address-cells = <1>; #size-cells = <0>; - clocks = <&cpsw_125mhz_gclk>; - clock-names = "fck"; ti,hwmods = "davinci_mdio"; bus_freq = <1000000>; status = "disabled";
arch/arm/boot/dts/dra7-l4.dtsi +2 -0
@@ -3103,6 +3103,8 @@ davinci_mdio: mdio@1000 { compatible = "ti,cpsw-mdio","ti,davinci_mdio"; + clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 0>; + clock-names = "fck"; #address-cells = <1>; #size-cells = <0>; ti,hwmods = "davinci_mdio";
Signature · 1 line
2.21.0
Tony Lindgren
maintainerPATCH 2/3 ARM: OMAP2+: Drop legacy platform data for cpsw on am3 and am4
In reply to Tony LindgrenWe can now probe cpsw with ti-sysc interconnect driver and dts data. Let's drop the related platform data and custom ti,hwmods dts property for am3 and am4.
As we're just dropping data, and the early platform data init is based on the custom ti,hwmods property, we want to drop both the platform data and ti,hwmods property in a single patch.
--- arch/arm/boot/dts/am33xx-l4.dtsi | 2 - arch/arm/boot/dts/am437x-l4.dtsi | 2 - .../omap_hwmod_33xx_43xx_common_data.h | 3 -- .../omap_hwmod_33xx_43xx_interconnect_data.c | 6 --- .../omap_hwmod_33xx_43xx_ipblock_data.c | 50 ------------------- arch/arm/mach-omap2/omap_hwmod_33xx_data.c | 9 ---- arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 9 ---- 7 files changed, 81 deletions(-)
arch/arm/boot/dts/am33xx-l4.dtsi +0 -2
@@ -673,7 +673,6 @@ target-module@100000 { /* 0x4a100000, ap 3 08.0 */ compatible = "ti,sysc-omap4-simple", "ti,sysc"; - ti,hwmods = "cpgmac0"; reg = <0x101200 0x4>, <0x101208 0x4>, <0x101204 0x4>;
@@ -723,7 +722,6 @@ clock-names = "fck"; #address-cells = <1>; #size-cells = <0>; - ti,hwmods = "davinci_mdio"; bus_freq = <1000000>; reg = <0x1000 0x100>; status = "disabled";
arch/arm/boot/dts/am437x-l4.dtsi +0 -2
@@ -512,7 +512,6 @@ target-module@100000 { /* 0x4a100000, ap 3 04.0 */ compatible = "ti,sysc-omap4-simple", "ti,sysc"; - ti,hwmods = "cpgmac0"; reg = <0x101200 0x4>, <0x101208 0x4>, <0x101204 0x4>;
@@ -563,7 +562,6 @@ clock-names = "fck"; #address-cells = <1>; #size-cells = <0>; - ti,hwmods = "davinci_mdio"; bus_freq = <1000000>; status = "disabled"; };
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h +0 -3
@@ -30,7 +30,6 @@ extern struct omap_hwmod_ocp_if am33xx_l3_main__gfx;extern struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc;extern struct omap_hwmod_ocp_if am33xx_l4_per__dcan0;extern struct omap_hwmod_ocp_if am33xx_l4_per__dcan1; -extern struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio;extern struct omap_hwmod_ocp_if am33xx_l4_ls__elm;extern struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss0;extern struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss1;
@@ -72,8 +71,6 @@ extern struct omap_hwmod am33xx_rng_hwmod;extern struct omap_hwmod am33xx_ocmcram_hwmod;extern struct omap_hwmod am33xx_smartreflex0_hwmod;extern struct omap_hwmod am33xx_smartreflex1_hwmod; -extern struct omap_hwmod am33xx_cpgmac0_hwmod; -extern struct omap_hwmod am33xx_mdio_hwmod;extern struct omap_hwmod am33xx_dcan0_hwmod;extern struct omap_hwmod am33xx_dcan1_hwmod;extern struct omap_hwmod am33xx_elm_hwmod;
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c +0 -6
@@ -122,12 +122,6 @@ struct omap_hwmod_ocp_if am33xx_l4_per__dcan1 = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; -struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio = { - .master = &am33xx_cpgmac0_hwmod, - .slave = &am33xx_mdio_hwmod, - .user =OCP_USER_MPU , -}; -struct omap_hwmod_ocp_if am33xx_l4_ls__elm = { .master = &am33xx_l4_ls_hwmod, .slave = &am33xx_elm_hwmod,
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c +0 -50
68 lines not on this page · raw message
arch/arm/mach-omap2/omap_hwmod_33xx_data.c +0 -9
@@ -372,13 +372,6 @@ static struct omap_hwmod_ocp_if am33xx_l4_wkup__adc_tsc = { .user = OCP_USER_MPU, }; -static struct omap_hwmod_ocp_if am33xx_l4_hs__cpgmac0 = { - .master = &am33xx_l4_hs_hwmod, - .slave = &am33xx_cpgmac0_hwmod, - .clk ="cpsw_125mhz_gclk" , - .user =OCP_USER_MPU , -}; -static struct omap_hwmod_ocp_if am33xx_l3_main__lcdc = { .master = &am33xx_l3_main_hwmod, .slave = &am33xx_lcdc_hwmod,
@@ -462,8 +455,6 @@ static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = { &am33xx_l3_main__tptc2, &am33xx_l3_main__ocmc, &am33xx_l3_s__usbss, - &am33xx_l4_hs__cpgmac0, - &am33xx_cpgmac0__mdio, &am33xx_l3_main__sha0, &am33xx_l3_main__aes0, &am33xx_l4_per__rng,
arch/arm/mach-omap2/omap_hwmod_43xx_data.c +0 -9
@@ -597,13 +597,6 @@ static struct omap_hwmod_ocp_if am43xx_l4_wkup__adc_tsc = { .user = OCP_USER_MPU, }; -static struct omap_hwmod_ocp_if am43xx_l4_hs__cpgmac0 = { - .master = &am43xx_l4_hs_hwmod, - .slave = &am33xx_cpgmac0_hwmod, - .clk ="cpsw_125mhz_gclk" , - .user =OCP_USER_MPU , -}; -static struct omap_hwmod_ocp_if am43xx_l4_wkup__timer1 = { .master = &am33xx_l4_wkup_hwmod, .slave = &am33xx_timer1_hwmod,
@@ -859,8 +852,6 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = { &am33xx_l3_main__tptc1, &am33xx_l3_main__tptc2, &am33xx_l3_main__ocmc, - &am43xx_l4_hs__cpgmac0, - &am33xx_cpgmac0__mdio, &am33xx_l3_main__sha0, &am33xx_l3_main__aes0, &am43xx_l3_main__des,
Signature · 1 line
2.21.0
Tony Lindgren
maintainerPATCH 3/3 ARM: OMAP2+: Drop legacy platform data for cpsw on dra7
In reply to Tony LindgrenWe can now probe cpsw with ti-sysc interconnect driver and dts data. Let's drop the related platform data and custom ti,hwmods dts property for am3 and am4.
As we're just dropping data, and the early platform data init is based on the custom ti,hwmods property, we want to drop both the platform data and ti,hwmods property in a single patch.
--- arch/arm/boot/dts/dra7-l4.dtsi | 2 - arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 65 ----------------------- 2 files changed, 67 deletions(-)
arch/arm/boot/dts/dra7-l4.dtsi +0 -2
@@ -3045,7 +3045,6 @@ target-module@84000 { /* 0x48484000, ap 3 10.0 */ compatible = "ti,sysc-omap4-simple", "ti,sysc"; - ti,hwmods = "gmac"; reg = <0x85200 0x4>, <0x85208 0x4>, <0x85204 0x4>;
@@ -3107,7 +3106,6 @@ clock-names = "fck"; #address-cells = <1>; #size-cells = <0>; - ti,hwmods = "davinci_mdio"; bus_freq = <1000000>; reg = <0x1000 0x100>; };
arch/arm/mach-omap2/omap_hwmod_7xx_data.c +0 -65
89 lines not on this page · raw message
Signature · 1 line
2.21.0
Hi Tony,
Quoted 6 lines · Tony Lindgren
Hi all,
Here are changes to drop legacy platform data for cpsw for am3, am4 and dra7. Please review and test, I was not able to boot my beagle x15 as it seems to have a power supply problem and have only tested on am3 and 4.
Thank you.
Quoted 18 lines
Tony Lindgren (3):
ARM: dts: Add fck for cpsw mdio for omap variants
ARM: OMAP2+: Drop legacy platform data for cpsw on am3 and am4
ARM: OMAP2+: Drop legacy platform data for cpsw on dra7arch/arm/boot/dts/am33xx-l4.dtsi | 4 +- arch/arm/boot/dts/am437x-l4.dtsi | 6 +- arch/arm/boot/dts/dra7-l4.dtsi | 4 +- .../omap_hwmod_33xx_43xx_common_data.h | 3 - .../omap_hwmod_33xx_43xx_interconnect_data.c | 6 -- .../omap_hwmod_33xx_43xx_ipblock_data.c | 50 -------------- arch/arm/mach-omap2/omap_hwmod_33xx_data.c | 9 --- arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 9 --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 65 ------------------- 9 files changed, 6 insertions(+), 150 deletions(-)
Signature · 2 lines
Best regards, grygorii
Tony Lindgren
maintainerQuoted 5 lines · grygorii
Hi Tony,
Quoted 2 lines · Tony Lindgren
Hi all,
Quoted 8 lines
Quoted 4 lines
Here are changes to drop legacy platform data for cpsw for am3, am4 and dra7. Please review and test, I was not able to boot my beagle x15 as it seems to have a power supply problem and have only tested on am3 and 4.
Thank you.
Reviewed-by Grygorii Strashko <[email protected]>
Just to update the beagle x15 status, the issue I was seeing turned out to be hung ftdi serial driver on my PC instead of a power supply problem. Reloading USB modules fixed that.
Regards,
Tony