mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 20:10:50 +07:00
ARM: dts: at91: sama5d3x: separate motherboard gmac and emac definitions
Separate the definitions for the emac and the gmac in different files and include them in the final board dts that uses them. Solves: Warning (unit_address_vs_reg): Node /ahb/apb/ethernet@f0028000 has a unit name, but no reg property Warning (unit_address_vs_reg): Node /ahb/apb/ethernet@f802c000 has a unit name, but no reg property Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
This commit is contained in:
parent
81c940d9be
commit
94197ad713
@ -9,6 +9,7 @@
|
||||
/dts-v1/;
|
||||
#include "sama5d31.dtsi"
|
||||
#include "sama5d3xmb.dtsi"
|
||||
#include "sama5d3xmb_emac.dtsi"
|
||||
#include "sama5d3xdm.dtsi"
|
||||
|
||||
/ {
|
||||
|
@ -9,6 +9,7 @@
|
||||
/dts-v1/;
|
||||
#include "sama5d33.dtsi"
|
||||
#include "sama5d3xmb.dtsi"
|
||||
#include "sama5d3xmb_gmac.dtsi"
|
||||
#include "sama5d3xdm.dtsi"
|
||||
|
||||
/ {
|
||||
|
@ -9,6 +9,7 @@
|
||||
/dts-v1/;
|
||||
#include "sama5d34.dtsi"
|
||||
#include "sama5d3xmb.dtsi"
|
||||
#include "sama5d3xmb_gmac.dtsi"
|
||||
#include "sama5d3xdm.dtsi"
|
||||
|
||||
/ {
|
||||
|
@ -9,6 +9,8 @@
|
||||
/dts-v1/;
|
||||
#include "sama5d35.dtsi"
|
||||
#include "sama5d3xmb.dtsi"
|
||||
#include "sama5d3xmb_emac.dtsi"
|
||||
#include "sama5d3xmb_gmac.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Atmel SAMA5D35-EK";
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "sama5d36.dtsi"
|
||||
#include "sama5d3xmb.dtsi"
|
||||
#include "sama5d3xdm.dtsi"
|
||||
#include "sama5d3xmb_emac.dtsi"
|
||||
#include "sama5d3xmb_gmac.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Atmel SAMA5D36-EK";
|
||||
|
@ -34,40 +34,6 @@ apb {
|
||||
spi0: spi@f0004000 {
|
||||
cs-gpios = <&pioD 13 0>, <0>, <0>, <0>;
|
||||
};
|
||||
|
||||
macb0: ethernet@f0028000 {
|
||||
phy-mode = "rgmii";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
ethernet-phy@1 {
|
||||
reg = <0x1>;
|
||||
interrupt-parent = <&pioB>;
|
||||
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
|
||||
txen-skew-ps = <800>;
|
||||
txc-skew-ps = <3000>;
|
||||
rxdv-skew-ps = <400>;
|
||||
rxc-skew-ps = <3000>;
|
||||
rxd0-skew-ps = <400>;
|
||||
rxd1-skew-ps = <400>;
|
||||
rxd2-skew-ps = <400>;
|
||||
rxd3-skew-ps = <400>;
|
||||
};
|
||||
|
||||
ethernet-phy@7 {
|
||||
reg = <0x7>;
|
||||
interrupt-parent = <&pioB>;
|
||||
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
|
||||
txen-skew-ps = <800>;
|
||||
txc-skew-ps = <3000>;
|
||||
rxdv-skew-ps = <400>;
|
||||
rxc-skew-ps = <3000>;
|
||||
rxd0-skew-ps = <400>;
|
||||
rxd1-skew-ps = <400>;
|
||||
rxd2-skew-ps = <400>;
|
||||
rxd3-skew-ps = <400>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nand0: nand@60000000 {
|
||||
|
@ -117,18 +117,6 @@ &pinctrl_adc0_ad4
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
macb1: ethernet@f802c000 {
|
||||
phy-mode = "rmii";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
phy0: ethernet-phy@1 {
|
||||
interrupt-parent = <&pioE>;
|
||||
interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
|
||||
reg = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
pinctrl@fffff200 {
|
||||
board {
|
||||
pinctrl_mmc0_cd: mmc0_cd {
|
||||
|
26
arch/arm/boot/dts/sama5d3xmb_emac.dtsi
Normal file
26
arch/arm/boot/dts/sama5d3xmb_emac.dtsi
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* sama5d3xmb_emac.dts - Device Tree Include file for SAMA5D3x mother board
|
||||
* Ethernet
|
||||
*
|
||||
* Copyright (C) 2016 Atmel,
|
||||
*
|
||||
* Licensed under GPLv2 or later.
|
||||
*/
|
||||
|
||||
/ {
|
||||
ahb {
|
||||
apb {
|
||||
macb1: ethernet@f802c000 {
|
||||
phy-mode = "rmii";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
phy0: ethernet-phy@1 {
|
||||
interrupt-parent = <&pioE>;
|
||||
interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
|
||||
reg = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
48
arch/arm/boot/dts/sama5d3xmb_gmac.dtsi
Normal file
48
arch/arm/boot/dts/sama5d3xmb_gmac.dtsi
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* sama5d3xmb_gmac.dtsi - Device Tree Include file for SAMA5D3x motherboard
|
||||
* Gigabit Ethernet
|
||||
*
|
||||
* Copyright (C) 2016 Atmel,
|
||||
*
|
||||
* Licensed under GPLv2 or later.
|
||||
*/
|
||||
|
||||
/ {
|
||||
ahb {
|
||||
apb {
|
||||
macb0: ethernet@f0028000 {
|
||||
phy-mode = "rgmii";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
ethernet-phy@1 {
|
||||
reg = <0x1>;
|
||||
interrupt-parent = <&pioB>;
|
||||
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
|
||||
txen-skew-ps = <800>;
|
||||
txc-skew-ps = <3000>;
|
||||
rxdv-skew-ps = <400>;
|
||||
rxc-skew-ps = <3000>;
|
||||
rxd0-skew-ps = <400>;
|
||||
rxd1-skew-ps = <400>;
|
||||
rxd2-skew-ps = <400>;
|
||||
rxd3-skew-ps = <400>;
|
||||
};
|
||||
|
||||
ethernet-phy@7 {
|
||||
reg = <0x7>;
|
||||
interrupt-parent = <&pioB>;
|
||||
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
|
||||
txen-skew-ps = <800>;
|
||||
txc-skew-ps = <3000>;
|
||||
rxdv-skew-ps = <400>;
|
||||
rxc-skew-ps = <3000>;
|
||||
rxd0-skew-ps = <400>;
|
||||
rxd1-skew-ps = <400>;
|
||||
rxd2-skew-ps = <400>;
|
||||
rxd3-skew-ps = <400>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user