mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 05:42:58 +00:00
ecc3bd73b3
Set ethernet mac address in late init for Tinker Board, prevents getting a random mac address each boot. Read mac address from eeprom, first 6 bytes from m24c08@50. Same as /etc/init.d/rockchip.sh on Tinker OS. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Simon Glass <sjg@chromium.org>
76 lines
1.1 KiB
Text
76 lines
1.1 KiB
Text
/*
|
|
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+ X11
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "rk3288-tinker.dtsi"
|
|
|
|
/ {
|
|
model = "Tinker-RK3288";
|
|
compatible = "rockchip,rk3288-tinker", "rockchip,rk3288";
|
|
|
|
chosen {
|
|
stdout-path = &uart2;
|
|
};
|
|
};
|
|
|
|
&dmc {
|
|
rockchip,pctl-timing = <0x215 0xc8 0x0 0x35 0x26 0x2 0x70 0x2000d
|
|
0x6 0x0 0x8 0x4 0x17 0x24 0xd 0x6
|
|
0x4 0x8 0x4 0x76 0x4 0x0 0x30 0x0
|
|
0x1 0x2 0x2 0x4 0x0 0x0 0xc0 0x4
|
|
0x8 0x1f4>;
|
|
rockchip,phy-timing = <0x48d7dd93 0x187008d8 0x121076
|
|
0x0 0xc3 0x6 0x2>;
|
|
rockchip,sdram-params = <0x20d266a4 0x5b6 2 533000000 6 9 0>;
|
|
};
|
|
|
|
|
|
&pinctrl {
|
|
u-boot,dm-pre-reloc;
|
|
|
|
usb {
|
|
host_vbus_drv: host-vbus-drv {
|
|
rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pwm1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart2 {
|
|
u-boot,dm-pre-reloc;
|
|
reg-shift = <2>;
|
|
};
|
|
|
|
&usb_host1 {
|
|
vbus-supply = <&vcc5v0_host>;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&emmc {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&gpio3 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&gpio8 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
&i2c2 {
|
|
m24c08@50 {
|
|
compatible = "at,24c08", "i2c-eeprom";
|
|
reg = <0x50>;
|
|
};
|
|
};
|