Skip to content

Commit e76f2d3

Browse files
committed
Merge branches 'at91-4.9-trunk/eth' and 'at91-4.9-trunk/dt' into linux-4.9-at91
3 parents 2ea8423 + 464322e + 4a5e249 commit e76f2d3

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

Documentation/devicetree/bindings/net/macb.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Required properties:
1010
Use "cdns,pc302-gem" for Picochip picoXcell pc302 and later devices based on
1111
the Cadence GEM, or the generic form: "cdns,gem".
1212
Use "atmel,sama5d2-gem" for the GEM IP (10/100) available on Atmel sama5d2 SoCs.
13+
Use "atmel,sama5d3-macb" for the 10/100Mbit IP available on Atmel sama5d3 SoCs.
1314
Use "atmel,sama5d3-gem" for the Gigabit IP available on Atmel sama5d3 SoCs.
1415
Use "atmel,sama5d4-gem" for the GEM IP (10/100) available on Atmel sama5d4 SoCs.
1516
Use "cdns,zynq-gem" Xilinx Zynq-7xxx SoC.

arch/arm/boot/dts/sama5d3_emac.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
};
4242

4343
macb1: ethernet@f802c000 {
44-
compatible = "cdns,at91sam9260-macb", "cdns,macb";
44+
compatible = "atmel,sama5d3-macb", "cdns,at91sam9260-macb", "cdns,macb";
4545
reg = <0xf802c000 0x100>;
4646
interrupts = <35 IRQ_TYPE_LEVEL_HIGH 3>;
4747
pinctrl-names = "default";

drivers/net/ethernet/cadence/macb.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2905,6 +2905,13 @@ static const struct macb_config at91sam9260_config = {
29052905
.init = macb_init,
29062906
};
29072907

2908+
static const struct macb_config sama5d3macb_config = {
2909+
.caps = MACB_CAPS_SG_DISABLED
2910+
| MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII,
2911+
.clk_init = macb_clk_init,
2912+
.init = macb_init,
2913+
};
2914+
29082915
static const struct macb_config pc302gem_config = {
29092916
.caps = MACB_CAPS_SG_DISABLED | MACB_CAPS_GIGABIT_MODE_AVAILABLE,
29102917
.dma_burst_length = 16,
@@ -2969,6 +2976,7 @@ static const struct of_device_id macb_dt_ids[] = {
29692976
{ .compatible = "cdns,gem", .data = &pc302gem_config },
29702977
{ .compatible = "atmel,sama5d2-gem", .data = &sama5d2_config },
29712978
{ .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config },
2979+
{ .compatible = "atmel,sama5d3-macb", .data = &sama5d3macb_config },
29722980
{ .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config },
29732981
{ .compatible = "cdns,at91rm9200-emac", .data = &emac_config },
29742982
{ .compatible = "cdns,emac", .data = &emac_config },

0 commit comments

Comments
 (0)