Skip to content

Commit

Permalink
fix build for ante310_skynet
Browse files Browse the repository at this point in the history
  • Loading branch information
catkira committed Apr 19, 2024
1 parent 59c587f commit 3c36394
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 2 deletions.
1 change: 1 addition & 0 deletions arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \
zynq-antsdre200.dtb \
zynq-antsdre200_no_console.dtb \
zynq-ant.dtb \
zynq-ant_no_console.dtb \
zynq-cse-nand.dtb \
zynq-cse-nor.dtb \
zynq-cse-qspi.dtb \
Expand Down
106 changes: 106 additions & 0 deletions arch/arm/dts/zynq-ant_no_console.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/*
* MicroPhase Inc. ANTSDR board DTS
*
* Copyright (C) 2015-2018 MicroPhase Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;
#include "zynq-7000.dtsi"

/ {
model = "Microphase, ANTSDR-E310";
compatible = "xlnx,zynq-7000";

aliases {
ethernet0 = &gem0;
serial0 = &uart1;
spi0 = &qspi;
};

memory {
device_type = "memory";
reg = <0x0 0x40000000>;
};

chosen {
bootargs = "earlyprintk";
stdout-path = &uart1;
};

usb_phy0: phy0 {
compatible = "usb-nop-xceiv";
#phy-cells = <0>;
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
button {
label = "Button";
gpios = <&gpio0 14 0>;
linux,code = <103>; /* up */
wakeup-source;
autorepeat;
};

};

};

&qspi {
status = "okay";
is-dual = <0>;
num-cs = <1>;
flash@0 {
compatible = "n25q512a","micron,m25p80";
reg = <0x0>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
spi-max-frequency = <50000000>;
#address-cells = <1>;
#size-cells = <1>;
partition@qspi-fsbl-uboot {
label = "qspi-fsbl-uboot";
reg = <0x0 0x100000>; /* 1M */
};
partition@qspi-uboot-env {
label = "qspi-uboot-env";
reg = <0x100000 0x20000>; /* 128k */
};
partition@qspi-nvmfs {
label = "qspi-nvmfs";
reg = <0x120000 0xE0000>; /* 1M */
};
partition@qspi-linux {
label = "qspi-linux";
reg = <0x200000 0x1E00000>; /* 30M */
};
};
};

&uart1 {
status = "okay";
};

&usb0 {
status = "okay";
dr_mode = "host";
usb-phy = <&usb_phy0>;
};
&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";

};

&gem0 {
status = "okay";
phy-mode = "rgmii-id";
phy-handle = <&ethernet_phy0>;

ethernet_phy0: ethernet-phy@0 {
reg = <0>;
reset-gpios = <&gpio0 46 0>;
};
};
5 changes: 3 additions & 2 deletions configs/zynq_ant_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ CONFIG_USB_GADGET=y
CONFIG_CI_UDC=y
CONFIG_USB_GADGET_VBUS_DRAW=500
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_G_DNL_MANUFACTURER="Analog Devices Inc."
CONFIG_G_DNL_MANUFACTURER="SkyNET"
CONFIG_G_DNL_VENDOR_NUM=0x0456
CONFIG_G_DNL_PRODUCT_NUM=0xb674
CONFIG_REGEX=y
CONFIG_LIB_RAND=y
CONFIG_LIB_RAND=y
CONFIG_NULL_TTY=y

0 comments on commit 3c36394

Please sign in to comment.