
On 09/05/2020 15:25, Amit Singh Tomar wrote:
This patch adds node for ethernet controller found on Action Semi OWL S700 SoC.
Since, there is no upstream Linux binding exist for S700 ethernet controller, Changes are put in u-boot specific dtsi file.
But that should not be the S700 SoC .dtsi, instead the cubieboard .dts file, since you specify the PHY mode in here (which is board specific).
Signed-off-by: Amit Singh Tomar amittomer25@gmail.com
arch/arm/dts/s700-u-boot.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/arch/arm/dts/s700-u-boot.dtsi b/arch/arm/dts/s700-u-boot.dtsi index a527cccc75f2..1b2768272c62 100644 --- a/arch/arm/dts/s700-u-boot.dtsi +++ b/arch/arm/dts/s700-u-boot.dtsi @@ -6,6 +6,19 @@ /{ soc { u-boot,dm-pre-reloc;
gmac: ethernet@e0220000 {
compatible = "actions,s700-ethernet";
reg = <0 0xe0220000 0 0x2000>;
interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
local-mac-address = [ 00 18 fe 66 66 66 ];
Is there another solution to that? Maybe put that in the environment instead? Or generate this randomly or ideally by hashing some serial number?
Cheers, Andre.
clocks = <&cmu CLK_ETHERNET>, <&cmu CLK_RMII_REF>;
clock-names = "ethernet", "rmii_ref";
phy-mode = "rmii";
status = "okay";
};
- };
};