mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-21 02:33:07 +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>
155 lines
2.8 KiB
Text
155 lines
2.8 KiB
Text
/*
|
|
* Copyright 2013-2014 Texas Instruments, Inc.
|
|
*
|
|
* Keystone 2 Edison EVM device tree
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
/dts-v1/;
|
|
|
|
#include "keystone.dtsi"
|
|
#include "keystone-k2e.dtsi"
|
|
|
|
/ {
|
|
compatible = "ti,k2e-evm","ti,keystone";
|
|
model = "Texas Instruments Keystone 2 Edison EVM";
|
|
|
|
soc {
|
|
|
|
clocks {
|
|
refclksys: refclksys {
|
|
#clock-cells = <0>;
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <100000000>;
|
|
clock-output-names = "refclk-sys";
|
|
};
|
|
|
|
refclkpass: refclkpass {
|
|
#clock-cells = <0>;
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <100000000>;
|
|
clock-output-names = "refclk-pass";
|
|
};
|
|
|
|
refclkddr3a: refclkddr3a {
|
|
#clock-cells = <0>;
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <100000000>;
|
|
clock-output-names = "refclk-ddr3a";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&usb_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb1_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c0 {
|
|
dtt@50 {
|
|
compatible = "at,24c1024";
|
|
reg = <0x50>;
|
|
};
|
|
};
|
|
|
|
&aemif {
|
|
cs0 {
|
|
#address-cells = <2>;
|
|
#size-cells = <1>;
|
|
clock-ranges;
|
|
ranges;
|
|
|
|
ti,cs-chipselect = <0>;
|
|
/* all timings in nanoseconds */
|
|
ti,cs-min-turnaround-ns = <12>;
|
|
ti,cs-read-hold-ns = <6>;
|
|
ti,cs-read-strobe-ns = <23>;
|
|
ti,cs-read-setup-ns = <9>;
|
|
ti,cs-write-hold-ns = <8>;
|
|
ti,cs-write-strobe-ns = <23>;
|
|
ti,cs-write-setup-ns = <8>;
|
|
|
|
nand@0,0 {
|
|
compatible = "ti,keystone-nand","ti,davinci-nand";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
reg = <0 0 0x4000000
|
|
1 0 0x0000100>;
|
|
|
|
ti,davinci-chipselect = <0>;
|
|
ti,davinci-mask-ale = <0x2000>;
|
|
ti,davinci-mask-cle = <0x4000>;
|
|
ti,davinci-mask-chipsel = <0>;
|
|
nand-ecc-mode = "hw";
|
|
ti,davinci-ecc-bits = <4>;
|
|
nand-on-flash-bbt;
|
|
|
|
partition@0 {
|
|
label = "u-boot";
|
|
reg = <0x0 0x100000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@100000 {
|
|
label = "params";
|
|
reg = <0x100000 0x80000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@180000 {
|
|
label = "ubifs";
|
|
reg = <0x180000 0x1FE80000>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
nor_flash: n25q128a11@0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "Micron,n25q128a11", "jedec,spi-nor";
|
|
spi-max-frequency = <54000000>;
|
|
m25p,fast-read;
|
|
reg = <0>;
|
|
|
|
partition@0 {
|
|
label = "u-boot-spl";
|
|
reg = <0x0 0x80000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@1 {
|
|
label = "misc";
|
|
reg = <0x80000 0xf80000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&mdio {
|
|
status = "ok";
|
|
ethphy0: ethernet-phy@0 {
|
|
compatible = "marvell,88E1514", "marvell,88E1510", "ethernet-phy-ieee802.3-c22";
|
|
reg = <0>;
|
|
};
|
|
|
|
ethphy1: ethernet-phy@1 {
|
|
compatible = "marvell,88E1514", "marvell,88E1510", "ethernet-phy-ieee802.3-c22";
|
|
reg = <1>;
|
|
};
|
|
};
|