mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-22 03:03:05 +00:00
ffd4c7c2ec
There is no reason not to use the Linux "jedec,spi-nor" binding in U-Boot dts files. This compatible has been added in sf_probe, let use it. This patch switches to jedec,spi-nor when spi-flash is used in the DTS and DTSI files, and removed spi-flash when jedec,spi-nor is already present. The x86 dts are switched in a separate commit since it depends on a change in fdtdec. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Acked-by: Stefan Roese <sr@denx.de> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Evgeniy Paltsev <paltsev@synopsys.com> Reviewed-by: Rick Chen <rick@andestech.com> Reviewed-by: Patrick Delaunay <Patrick.delaunay@st.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
145 lines
2.1 KiB
Text
145 lines
2.1 KiB
Text
// SPDX-License-Identifier: GPL-2.0
|
|
/dts-v1/;
|
|
|
|
#include "kirkwood.dtsi"
|
|
#include "kirkwood-98dx4122.dtsi"
|
|
|
|
/ {
|
|
model = "Allied Telesis SBx81LIFXCAT Board";
|
|
compatible = "atl,SBx8LIFXCAT", "marvell,kirkwood-98DX4122",
|
|
"marvell,kirkwood";
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x00000000 0x08000000>; /* 128 MB */
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS0,115200n8 earlyprintk";
|
|
stdout-path = &uart0;
|
|
};
|
|
|
|
aliases {
|
|
ethernet0 = ð0;
|
|
i2c0 = &i2c0;
|
|
spi0 = &spi0;
|
|
};
|
|
|
|
dsa {
|
|
compatible = "marvell,dsa";
|
|
#address-cells = <2>;
|
|
#size-cells = <0>;
|
|
dsa,ethernet = <ð0>;
|
|
dsa,mii-bus = <&mdio>;
|
|
status = "okay";
|
|
|
|
switch@0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
reg = <1 0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
label = "internal0";
|
|
};
|
|
port@1 {
|
|
reg = <1>;
|
|
label = "internal1";
|
|
};
|
|
port@8 {
|
|
reg = <8>;
|
|
label = "internal8";
|
|
phy-mode = "rgmii-id";
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|
|
port@9 {
|
|
reg = <9>;
|
|
label = "internal9";
|
|
phy-mode = "rgmii-id";
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|
|
port@10 {
|
|
reg = <10>;
|
|
label = "cpu";
|
|
};
|
|
};
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
ledn {
|
|
label = "status:ledn";
|
|
gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
ledp {
|
|
label = "status:ledp";
|
|
gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
|
|
flash@0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "st,m25p128", "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <50000000>;
|
|
mode = <0>;
|
|
|
|
partition@u-boot {
|
|
reg = <0x00000000 0x00c00000>;
|
|
label = "u-boot";
|
|
};
|
|
partition@u-boot-env {
|
|
reg = <0x00c00000 0x00040000>;
|
|
label = "u-boot-env";
|
|
};
|
|
partition@unused {
|
|
reg = <0x00100000 0x00f00000>;
|
|
label = "unused";
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
|
|
eeprom@52 {
|
|
compatible = "atmel,24c04";
|
|
reg = <0x52>;
|
|
};
|
|
|
|
gpio3: gpio@76 {
|
|
#gpio-cells = <2>;
|
|
compatible = "nxp,pca9539";
|
|
reg = <0x76>;
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&mdio {
|
|
status = "okay";
|
|
};
|
|
|
|
ð0 {
|
|
status = "okay";
|
|
|
|
ethernet0-port@0 {
|
|
speed = <1000>;
|
|
duplex = <1>;
|
|
};
|
|
};
|