Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged with altera-opensource u-boot-socfpga socfpga_v2023.10 branch #17

Open
wants to merge 2 commits into
base: socfpga_v2023.10
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) += \
socfpga_agilex_socdk_qspi.dtb \
socfpga_agilex5_socdk.dtb \
socfpga_agilex5_emu.dtb \
socfpga_agilex5_axe5_eagle.dtb \
socfpga_agilex7m_socdk.dtb \
socfpga_agilex7m_socdk_nand.dtb \
socfpga_arria5_secu1.dtb \
Expand Down
143 changes: 143 additions & 0 deletions arch/arm/dts/socfpga_agilex5_axe5_eagle-u-boot.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* U-Boot additions
*
* Copyright (C) 2022-2023 Intel Corporation <www.intel.com>
*/

#include "socfpga_agilex5-u-boot.dtsi"

/{
aliases {
spi0 = &qspi;
freeze_br0 = &freeze_controller;
};

soc {
freeze_controller: freeze_controller@f9000450 {
compatible = "altr,freeze-bridge-controller";
reg = <0xf9000450 0x00000010>;
status = "disabled";
};
};

memory {
/* 1GB on Simics*/
reg = <0 0x80000000 0 0x40000000>;
};

chosen {
stdout-path = "serial0:115200n8";
u-boot,spl-boot-order = &mmc,&flash0,&nand,"/memory";
};
};

&flash0 {
compatible = "jedec,spi-nor";
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
bootph-all;
/delete-property/ cdns,read-delay; // sjk added
};

&flash1 {
bootph-all;
};

&i3c0 {
bootph-all;
};

&i3c1 {
bootph-all;
};

&mmc {
status = "okay";
bus-width = <4>;
sd-uhs-sdr50;
cap-mmc-highspeed;
bootph-all;
};

&combophy0 {
status = "okay";
bootph-all;
cdns,phy-use-ext-lpbk-dqs = <1>;
cdns,phy-use-lpbk-dqs = <1>;
cdns,phy-use-phony-dqs = <1>;
cdns,phy-use-phony-dqs-cmd = <1>;
cdns,phy-io-mask-always-on = <0>;
cdns,phy-io-mask-end = <5>;
cdns,phy-io-mask-start = <0>;
cdns,phy-data-select-oe-end = <1>;
cdns,phy-sync-method = <1>;
cdns,phy-sw-half-cycle-shift = <0>;
cdns,phy-rd-del-sel = <52>;
cdns,phy-underrun-suppress = <1>;
cdns,phy-gate-cfg-always-on = <1>;
cdns,phy-param-dll-bypass-mode = <1>;
cdns,phy-param-phase-detect-sel = <2>;
cdns,phy-param-dll-start-point = <254>;
cdns,phy-read-dqs-cmd-delay = <0>;
cdns,phy-clk-wrdqs-delay = <0>;
cdns,phy-clk-wr-delay = <0>;
cdns,phy-read-dqs-delay = <0>;
cdns,phy-phony-dqs-timing = <0>;
cdns,hrs09-rddata-en = <1>;
cdns,hrs09-rdcmd-en = <1>;
cdns,hrs09-extended-wr-mode = <1>;
cdns,hrs09-extended-rd-mode = <1>;
cdns,hrs10-hcsdclkadj = <3>;
cdns,hrs16-wrdata1-sdclk-dly = <0>;
cdns,hrs16-wrdata0-sdclk-dly = <0>;
cdns,hrs16-wrcmd1-sdclk-dly = <0>;
cdns,hrs16-wrcmd0-sdclk-dly = <0>;
cdns,hrs16-wrdata1-dly = <0>;
cdns,hrs16-wrdata0-dly = <0>;
cdns,hrs16-wrcmd1-dly = <0>;
cdns,hrs16-wrcmd0-dly = <0>;
cdns,hrs07-rw-compensate = <10>;
cdns,hrs07-idelay-val = <0>;
};

&qspi {
status = "okay";
};

&nand {
bootph-all;
};

&timer0 {
bootph-all;
};

&timer1 {
bootph-all;
};

&timer2 {
bootph-all;
};

&timer3 {
bootph-all;
};

&watchdog0 {
bootph-all;
};

#if !defined(CONFIG_SOCFPGA_SECURE_VAB_AUTH)
&fdt_0_blob {
filename = "arch/arm/dts/socfpga_agilex5_axe5_eagle.dtb";
};

/* To add NAND dtb when ready in future */

&binman {
/delete-node/ kernel;
};
#endif

225 changes: 225 additions & 0 deletions arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2019-2023 Intel Corporation <www.intel.com>
*/
#include "socfpga_agilex5.dtsi"

/ {
model = "SoCFPGA Agilex5 AXE5-Eagle";

aliases {
serial0 = &uart0;
ethernet0 = &gmac0;
ethernet2 = &gmac2;
};

leds {
compatible = "gpio-leds";
hps0 {
label = "hps_led0";
// GPIO bank 0 pin 7
gpios = <&porta 7 GPIO_ACTIVE_HIGH>;
};

hps1 {
label = "hps_led1";
// GPIO bank 0 pin 8
gpios = <&porta 8 GPIO_ACTIVE_HIGH>;
};
};

memory {
device_type = "memory";
/* We expect the bootloader to fill in the reg */
reg = <0 0 0 0>;
};

soc {
clocks {
osc1 {
clock-frequency = <25000000>;
};
};
};
};

&gpio0 {
status = "okay";
};

&gpio1 {
status = "okay";
};

&i2c0 {
status = "okay";
};

&i2c1 {
status = "okay";
};

&i3c0 {
status = "disabled";
};

&i3c1 {
status = "disabled";
};

&mmc {
status = "okay";
};

&combophy0 {
status = "okay";
};

&uart0 {
status = "okay";
};

&usbphy0 {
status = "okay";
};

&usb0 {
status = "disabled";
disable-over-current;
};

&usb31 {
status = "okay";
};

&watchdog0 {
status = "okay";
};

&watchdog1 {
status = "okay";
};

&watchdog2 {
status = "okay";
};

&watchdog3 {
status = "okay";
};

&watchdog4 {
status = "okay";
};

&timer0 {
status = "okay";
};

&timer1 {
status = "okay";
};

&timer2 {
status = "okay";
};

&timer3 {
status = "okay";
};

&spi0 {
status = "okay";
};

&spi1 {
status = "okay";
};

&nand {
status = "disabled";

flash1: flash@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
label = "u-boot";
reg = <0 0x200000>;
};
partition@200000 {
label = "rootubi";
reg = <0x200000 0x3fe00000>;
};
};
};

&qspi {
flash0: flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "mt25qu02g";
reg = <0>;
spi-max-frequency = <100000000>;

m25p,fast-read;
cdns,page-size = <256>;
cdns,block-size = <16>;
cdns,read-delay = <1>;
cdns,tshsl-ns = <50>;
cdns,tsd2d-ns = <50>;
cdns,tchsh-ns = <4>;
cdns,tslch-ns = <4>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

qspi_boot: partition@0 {
label = "u-boot";
reg = <0x0 0x04200000>;
};

root: partition@4200000 {
label = "root";
reg = <0x04200000 0x0BE00000>;
};
};
};
};

&gmac0 {
status = "disabled";
phy-mode = "rgmii";
phy-handle = <&emac0_phy0>;

max-frame-size = <9000>;

mdio0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwxgmac-mdio";
emac0_phy0: ethernet-phy@0 {
reg = <0>;
};
};
};

&gmac2 {
status = "okay";
phy-mode = "rgmii";
phy-handle = <&emac2_phy0>;

max-frame-size = <9000>;

mdio0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwxgmac-mdio";
emac2_phy0: ethernet-phy@0 {
reg = <0>;
};
};
};
Loading