ARM: dts: lpc4357-ea4357: add ethernet
authorJoachim Eastwood <manabian@gmail.com>
Thu, 2 Apr 2015 03:56:57 +0000 (05:56 +0200)
committerJoachim Eastwood <manabian@gmail.com>
Tue, 14 Jul 2015 13:12:10 +0000 (15:12 +0200)
Enable Ethernet and add pin muxing and set the correct
frequency on the enet tx clock input.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
arch/arm/boot/dts/lpc4357-ea4357-devkit.dts

index ee9d97350d34b99032b1fcbf52fbc8f0b99c0153..0d04a8e8dbc1fd5594bc75f7ada3343e2df2d30c 100644 (file)
 };
 
 &pinctrl {
+       enet_rmii_pins: enet-rmii-pins {
+               enet_rmii_rxd_cfg {
+                       pins = "p1_15", "p0_0";
+                       function = "enet";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               enet_rmii_txd_cfg {
+                       pins = "p1_18", "p1_20";
+                       function = "enet";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               enet_rmii_rx_dv_cfg {
+                       pins = "p1_16";
+                       function = "enet";
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               enet_rmii_tx_en_cfg {
+                       pins = "p0_1";
+                       function = "enet";
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               enet_ref_clk_cfg {
+                       pins = "p1_19";
+                       function = "enet";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               enet_mdio_cfg {
+                       pins = "p1_17";
+                       function = "enet";
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+
+               enet_mdc_cfg {
+                       pins = "pc_1";
+                       function = "enet";
+                       slew-rate = <1>;
+                       bias-disable;
+                       input-enable;
+                       input-schmitt-disable;
+               };
+       };
+
        gpio_joystick_pins: gpio-joystick-pins {
                gpio_joystick_cfg {
                        pins =  "p9_0", "p9_1", "pa_1", "pa_2", "pa_3";
        };
 };
 
+&enet_tx_clk {
+       clock-frequency = <50000000>;
+};
+
+&mac {
+       status = "okay";
+       phy-mode = "rmii";
+       pinctrl-names = "default";
+       pinctrl-0 = <&enet_rmii_pins>;
+};
+
 &mmcsd {
        status = "okay";
        bus-width = <4>;