mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 00:18:51 +09:00
![Neil Armstrong](/assets/img/avatar_default.png)
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>
129 lines
1.6 KiB
Plaintext
129 lines
1.6 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2018 Álvaro Fernández Rojas <noltari@gmail.com>
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "brcm,bcm6318.dtsi"
|
|
|
|
/ {
|
|
model = "Comtrend AR-5315u";
|
|
compatible = "comtrend,ar5315-un", "brcm,bcm6318";
|
|
|
|
aliases {
|
|
serial0 = &uart0;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
};
|
|
|
|
&ehci {
|
|
status = "okay";
|
|
};
|
|
|
|
&enet {
|
|
status = "okay";
|
|
|
|
port@0 {
|
|
compatible = "brcm,enetsw-port";
|
|
reg = <0>;
|
|
label = "fe4";
|
|
brcm,phy-id = <1>;
|
|
};
|
|
|
|
port@1 {
|
|
compatible = "brcm,enetsw-port";
|
|
reg = <1>;
|
|
label = "fe3";
|
|
brcm,phy-id = <2>;
|
|
};
|
|
|
|
port@2 {
|
|
compatible = "brcm,enetsw-port";
|
|
reg = <2>;
|
|
label = "fe2";
|
|
brcm,phy-id = <3>;
|
|
};
|
|
|
|
port@3 {
|
|
compatible = "brcm,enetsw-port";
|
|
reg = <3>;
|
|
label = "fe1";
|
|
brcm,phy-id = <4>;
|
|
};
|
|
};
|
|
|
|
&leds {
|
|
status = "okay";
|
|
|
|
led@0 {
|
|
reg = <0>;
|
|
active-low;
|
|
label = "AR-5315u:green:wps";
|
|
};
|
|
|
|
led@1 {
|
|
reg = <1>;
|
|
active-low;
|
|
label = "AR-5315u:green:power";
|
|
};
|
|
|
|
led@2 {
|
|
reg = <2>;
|
|
active-low;
|
|
label = "AR-5315u:green:usb";
|
|
};
|
|
|
|
led@8 {
|
|
reg = <8>;
|
|
active-low;
|
|
label = "AR-5315u:green:inet";
|
|
};
|
|
|
|
led@9 {
|
|
reg = <9>;
|
|
active-low;
|
|
label = "AR-5315u:red:inet";
|
|
};
|
|
|
|
led@10 {
|
|
reg = <10>;
|
|
active-low;
|
|
label = "AR-5315u:green:dsl";
|
|
};
|
|
|
|
led@11 {
|
|
reg = <11>;
|
|
active-low;
|
|
label = "AR-5315u:red:power";
|
|
};
|
|
};
|
|
|
|
&ohci {
|
|
status = "okay";
|
|
};
|
|
|
|
&spi {
|
|
status = "okay";
|
|
|
|
spi-flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
spi-max-frequency = <62500000>;
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
u-boot,dm-pre-reloc;
|
|
status = "okay";
|
|
};
|
|
|
|
&usbh {
|
|
status = "okay";
|
|
};
|