diff options
author | Purna Chandra Mandal <purna.mandal@microchip.com> | 2016-01-28 15:30:22 +0530 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-02-01 22:14:02 +0100 |
commit | 7d514a7407756d96996960c2ae539a4b464c65bc (patch) | |
tree | 78faf17ff508a5a805c440d1fd7e6ae195c04660 /arch/mips | |
parent | 23e7578c9b17a5af8804ee2df8e52b9324651b6d (diff) |
board: Enable ethernet, tftpboot support to pic32mzdask board.
This adds ethernet, TFTP support for PIC32MZ[DA] Starter Kit. Also
custom environment variables/scripts are added to help boot from network.
Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/dts/pic32mzda.dtsi | 10 | ||||
-rw-r--r-- | arch/mips/dts/pic32mzda_sk.dts | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/arch/mips/dts/pic32mzda.dtsi b/arch/mips/dts/pic32mzda.dtsi index f1894ec37c..7d180d9918 100644 --- a/arch/mips/dts/pic32mzda.dtsi +++ b/arch/mips/dts/pic32mzda.dtsi @@ -161,4 +161,14 @@ bus-width = <4>; status = "disabled"; }; + + ethernet: ethernet@1f882000 { + compatible = "microchip,pic32mzda-eth"; + reg = <0x1f882000 0x1000>; + interrupts = <153 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clock PB5CLK>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; }; diff --git a/arch/mips/dts/pic32mzda_sk.dts b/arch/mips/dts/pic32mzda_sk.dts index f886a0f87f..e5ce0bdc2e 100644 --- a/arch/mips/dts/pic32mzda_sk.dts +++ b/arch/mips/dts/pic32mzda_sk.dts @@ -42,4 +42,14 @@ &sdhci { status = "okay"; +}; + +ðernet { + reset-gpios = <&gpioJ 15 0>; + status = "okay"; + phy-mode = "rmii"; + phy-handle = <ðernet_phy>; + ethernet_phy: lan8740_phy@0 { + reg = <0>; + }; };
\ No newline at end of file |