ARM: dts: phycore-imx6: refactor fec nodes
Subsystems (2)
PATCH 1/3 ARM: dts: phycore-imx6: refactor fec nodes
Refactor the common settings for device tree node 'fec' into the generic phycore i.MX6 device tree file. This avoid redundant settings and makes common fixes easier. Our kernel device tree files have the same layout.
--- arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts | 17 ++++------------- arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts | 17 ++++------------- arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts | 17 ++++------------- arch/arm/dts/imx6q-phytec-phycore-som-nand.dts | 17 ++++------------- arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 13 +++++++++++++ 5 files changed, 29 insertions(+), 52 deletions(-)
arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts +4 -13
@@ -29,21 +29,12 @@ status = "okay"; }; +ðphy { + max-speed = <100>; +}; + &fec { status = "okay"; - phy-handle = <ðphy>; - phy-mode = "rgmii"; - phy-reset-gpios = <&gpio1 14 1>; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - ethphy: ethernet-phy@3 { - reg = <3>; - max-speed = <100>; - }; - }; }; &flash {
arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts +4 -13
@@ -24,21 +24,12 @@ status = "okay"; }; +ðphy { + max-speed = <100>; +}; + &fec { status = "okay"; - phy-handle = <ðphy>; - phy-mode = "rgmii"; - phy-reset-gpios = <&gpio1 14 1>; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - ethphy: ethernet-phy@3 { - reg = <3>; - max-speed = <100>; - }; - }; }; &gpmi {
arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts +4 -13
@@ -28,21 +28,12 @@ status = "okay"; }; +ðphy { + max-speed = <1000>; +}; + &fec { status = "okay"; - phy-handle = <ðphy>; - phy-mode = "rgmii"; - phy-reset-gpios = <&gpio1 14 1>; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - ethphy: ethernet-phy@3 { - reg = <3>; - max-speed = <1000>; - }; - }; }; &flash {
arch/arm/dts/imx6q-phytec-phycore-som-nand.dts +4 -13
@@ -29,21 +29,12 @@ status = "okay"; }; +ðphy { + max-speed = <1000>; +}; + &fec { status = "okay"; - phy-handle = <ðphy>; - phy-mode = "rgmii"; - phy-reset-gpios = <&gpio1 14 1>; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - ethphy: ethernet-phy@3 { - reg = <3>; - max-speed = <1000>; - }; - }; }; &flash {
arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi +13 -0
@@ -10,6 +10,7 @@ */ #include "imx6qdl.dtsi" +#include <dt-bindings/gpio/gpio.h> / { chosen {
@@ -76,7 +77,19 @@ &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; + phy-handle = <ðphy>; + phy-mode = "rgmii"; + phy-reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; status = "disabled"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@3 { + reg = <3>; + }; + }; }; &gpmi {
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/3 ARM: dts: phycore-imx6: fix missing ?xc-skew-ps settings for ethphy
Add the missing txc-skew-ps and rxc-skew-ps settings for the Micrel PHY. I have seen problems with 1GBit ethernet on a phyCORE-i.MX6 Solo. Oddly enough the missing skew values are no problems for all our other modules.
--- arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi +2 -0
@@ -88,6 +88,8 @@ ethphy: ethernet-phy@3 { reg = <3>; + txc-skew-ps = <1680>; + rxc-skew-ps = <1860>; }; }; };
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/3 ARM: dts: phycore-imx6: remove unnecessary include
In reply to Stefan LengfeldThe file 'imx6qdl.dtsi' is already included by DualLite/Solo and Dual/Quad specific files 'imx6dl.dtsi' and 'imx6q.dtsi'. So the include is not needed here.
--- arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi +0 -1
@@ -9,7 +9,6 @@ * http://www.gnu.org/copyleft/gpl.html */ -#include "imx6qdl.dtsi" #include <dt-bindings/gpio/gpio.h> / {
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 4 lines · Stefan Lengfeld
Refactor the common settings for device tree node 'fec' into the generic phycore i.MX6 device tree file. This avoid redundant settings and makes common fixes easier. Our kernel device tree files have the same layout.
Quoted 8 lines
Signed-off-by Stefan Lengfeld <[email protected]>--- arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts | 17 ++++------------- arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts | 17 ++++------------- arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts | 17 ++++------------- arch/arm/dts/imx6q-phytec-phycore-som-nand.dts | 17 ++++------------- arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 13 +++++++++++++ 5 files changed, 29 insertions(+), 52 deletions(-)
Applied, thanks
Sascha
Quoted 162 lines
arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts +4
-13@@ -29,21 +29,12 @@ status = "okay"; }; +ðphy { + max-speed = <100>; +}; + &fec { status = "okay"; - phy-handle = <ðphy>; - phy-mode = "rgmii"; - phy-reset-gpios = <&gpio1 14 1>; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - ethphy: ethernet-phy@3 { - reg = <3>; - max-speed = <100>; - }; - }; }; &flash {arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts +4
-13@@ -24,21 +24,12 @@ status = "okay"; }; +ðphy { + max-speed = <100>; +}; + &fec { status = "okay"; - phy-handle = <ðphy>; - phy-mode = "rgmii"; - phy-reset-gpios = <&gpio1 14 1>; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - ethphy: ethernet-phy@3 { - reg = <3>; - max-speed = <100>; - }; - }; }; &gpmi {arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts +4
-13@@ -28,21 +28,12 @@ status = "okay"; }; +ðphy { + max-speed = <1000>; +}; + &fec { status = "okay"; - phy-handle = <ðphy>; - phy-mode = "rgmii"; - phy-reset-gpios = <&gpio1 14 1>; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - ethphy: ethernet-phy@3 { - reg = <3>; - max-speed = <1000>; - }; - }; }; &flash {arch/arm/dts/imx6q-phytec-phycore-som-nand.dts +4
-13@@ -29,21 +29,12 @@ status = "okay"; }; +ðphy { + max-speed = <1000>; +}; + &fec { status = "okay"; - phy-handle = <ðphy>; - phy-mode = "rgmii"; - phy-reset-gpios = <&gpio1 14 1>; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - ethphy: ethernet-phy@3 { - reg = <3>; - max-speed = <1000>; - }; - }; }; &flash {arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi +13
-0@@ -10,6 +10,7 @@ */ #include "imx6qdl.dtsi" +#include <dt-bindings/gpio/gpio.h> / { chosen {@@ -76,7 +77,19 @@ &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; + phy-handle = <ðphy>; + phy-mode = "rgmii"; + phy-reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; status = "disabled"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@3 { + reg = <3>; + }; + }; }; &gpmi {Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox