Commit 9c0c7e8487b7b37d8b30aa790cbc5314011b2796
Committed by
Daniel Schwierzeck
1 parent
15591a9ae1
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
bmips: enable nb4-ser enet support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Showing 2 changed files with 31 additions and 1 deletions Side-by-side Diff
arch/mips/dts/sfr,nb4-ser.dts
... | ... | @@ -53,6 +53,30 @@ |
53 | 53 | status = "okay"; |
54 | 54 | }; |
55 | 55 | |
56 | +&enet0 { | |
57 | + status = "okay"; | |
58 | + phy = <&enet0phy>; | |
59 | + phy-mode = "internal"; | |
60 | + | |
61 | + enet0phy: fixed-link { | |
62 | + reg = <1>; | |
63 | + speed = <100>; | |
64 | + full-duplex; | |
65 | + }; | |
66 | +}; | |
67 | + | |
68 | +&enet1 { | |
69 | + status = "okay"; | |
70 | + phy = <&enet1phy>; | |
71 | + phy-mode = "mii"; | |
72 | + | |
73 | + enet1phy: fixed-link { | |
74 | + reg = <1>; | |
75 | + speed = <100>; | |
76 | + full-duplex; | |
77 | + }; | |
78 | +}; | |
79 | + | |
56 | 80 | &gpio0 { |
57 | 81 | status = "okay"; |
58 | 82 | }; |
configs/sfr_nb4-ser_ram_defconfig
... | ... | @@ -26,11 +26,14 @@ |
26 | 26 | CONFIG_CMD_MEMINFO=y |
27 | 27 | # CONFIG_CMD_LOADS is not set |
28 | 28 | CONFIG_CMD_USB=y |
29 | +CONFIG_CMD_MII=y | |
30 | +CONFIG_CMD_PING=y | |
29 | 31 | # CONFIG_CMD_MISC is not set |
30 | 32 | CONFIG_OF_EMBED=y |
31 | 33 | CONFIG_DEFAULT_DEVICE_TREE="sfr,nb4-ser" |
32 | -# CONFIG_NET is not set | |
34 | +CONFIG_NET_RANDOM_ETHADDR=y | |
33 | 35 | # CONFIG_DM_DEVICE_REMOVE is not set |
36 | +CONFIG_BCM6348_IUDMA=y | |
34 | 37 | CONFIG_DM_GPIO=y |
35 | 38 | CONFIG_BCM6345_GPIO=y |
36 | 39 | CONFIG_LED=y |
... | ... | @@ -42,6 +45,9 @@ |
42 | 45 | CONFIG_CFI_FLASH=y |
43 | 46 | CONFIG_SYS_FLASH_PROTECTION=y |
44 | 47 | CONFIG_SYS_FLASH_CFI=y |
48 | +CONFIG_PHY_FIXED=y | |
49 | +CONFIG_DM_ETH=y | |
50 | +CONFIG_BCM6348_ETH=y | |
45 | 51 | CONFIG_PHY=y |
46 | 52 | CONFIG_BCM6358_USBH_PHY=y |
47 | 53 | CONFIG_DM_RESET=y |