Skip to content

Commit 642cdbb

Browse files
committed
Add board files
1 parent 6c68161 commit 642cdbb

File tree

11 files changed

+208
-0
lines changed

11 files changed

+208
-0
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "PYNQ"]
2+
path = PYNQ
3+
url = https://github.com/Xilinx/PYNQ

PYNQ

Submodule PYNQ added at 1a7da28

ZCU216/ZCU216.spec

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ARCH_ZCU216 := aarch64
2+
BSP_ZCU216 := xilinx-zcu216-v2020.2-final.bsp
3+
4+
STAGE4_PACKAGES_ZCU216 := pynq xrfclk xrfdc xsdfec ethernet
5+
STAGE4_PACKAGES_ZCU216 += xrt

ZCU216/packages/zcu111_sensors/pre.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -e
5+
6+
target=$1
7+
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
8+
9+
sudo cp $script_dir/zcu111_sensors.conf $target/etc/sensors.d/
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
bus "i2c-3" "i2c-0-mux (chan_id 0)"
2+
3+
chip "*-i2c-3-40"
4+
ignore in0
5+
label in1 VCC_INT
6+
label curr1 VCC_INT
7+
label power1 VCC_INT
8+
9+
chip "*-i2c-3-41"
10+
ignore in0
11+
label in1 VCC_PSINT
12+
label curr1 VCC_PSINT
13+
label power1 VCC_PSINT
14+
15+
chip "*-i2c-3-42"
16+
ignore in0
17+
label in1 VCC_1V8
18+
label curr1 VCC_1V8
19+
label power1 VCC_1V8
20+
21+
chip "*-i2c-3-43"
22+
ignore in0
23+
label in1 VCC_1V2
24+
label curr1 VCC_1V2
25+
label power1 VCC_1V2
26+
27+
chip "*-i2c-3-45"
28+
ignore in0
29+
label in1 VADJ_FMC
30+
label curr1 VADJ_FMC
31+
label power1 VADJ_FMC
32+
33+
chip "*-i2c-3-46"
34+
ignore in0
35+
label in1 MGTAVCC
36+
label curr1 MGTAVCC
37+
label power1 MGTAVCC
38+
39+
chip "*-i2c-3-47"
40+
ignore in0
41+
label in1 MGT1V2
42+
label curr1 MGT1V2
43+
label power1 MGT1V2
44+
45+
chip "*-i2c-3-48"
46+
ignore in0
47+
label in1 MGT1V8
48+
label curr1 MGT1V8
49+
label power1 MGT1V8
50+
51+
chip "*-i2c-3-49"
52+
ignore in0
53+
label in1 INT_AMS
54+
label curr1 INT_AMS
55+
label power1 INT_AMS
56+
57+
chip "*-i2c-3-4A"
58+
ignore in0
59+
label in1 DAC_AVTT
60+
label curr1 DAC_AVTT
61+
label power1 DAC_AVTT
62+
63+
chip "*-i2c-3-4B"
64+
ignore in0
65+
label in1 DAC_AVCCAUX
66+
label curr1 DAC_AVCCAUX
67+
label power1 DAC_AVCCAUX
68+
69+
chip "*-i2c-3-4C"
70+
ignore in0
71+
label in1 ADC_VACC
72+
label curr1 ADC_VACC
73+
label power1 ADC_VACC
74+
75+
chip "*-i2c-3-4D"
76+
ignore in0
77+
label in1 ADC_AVCCAUX
78+
label curr1 ADC_AVCCAUX
79+
label power1 ADC_AVCCAUX
80+
81+
chip "*-i2c-3-4E"
82+
ignore in0
83+
label in1 DAC_AVCC
84+
label curr1 DAC_AVCC
85+
label power1 DAC_AVCC
86+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
&i2c_clk104 {
2+
sc18is602@2f {
3+
compatible = "nxp,sc18is602b";
4+
reg = <0x2F>;
5+
#address-cells = <0x1>;
6+
#size-cells = <0x0>;
7+
lmk@1 {
8+
compatible = "ti,lmk04828";
9+
reg = <0x1>;
10+
spi-max-frequency = <400000>;
11+
num_bytes = <3>;
12+
};
13+
lmxdac@2 {
14+
compatible = "ti,lmx2594";
15+
reg = <0x2>;
16+
spi-max-frequency = <400000>;
17+
num_bytes = <3>;
18+
};
19+
lmxadc@3 {
20+
compatible = "ti,lmx2594";
21+
reg = <0x3>;
22+
spi-max-frequency = <400000>;
23+
num_bytes = <3>;
24+
};
25+
};
26+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONFIG_I2C_EEPROM=y
2+
CONFIG_SYS_I2C_EEPROM_ADDR=0x54
3+
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0x0
4+
CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
5+
CONFIG_SYS_TEXT_BASE=0x10080000
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
CONFIG_CMD_DHCP=y
2+
CONFIG_CMD_MII=y
3+
CONFIG_CMD_PING=y
4+
CONFIG_CMD_NET=y
5+
CONFIG_NET=y
6+
CONFIG_NET_RANDOM_ETHADDR=y
7+
# CONFIG_NETCONSOLE is not set
8+
CONFIG_NET_TFTP_VARS=y
9+
CONFIG_BOOTP_PXE_CLIENTARCH=0x16
10+
CONFIG_BOOTP_VCI_STRING="U-Boot.armv8"
11+
CONFIG_PHYLIB=y
12+
# CONFIG_MV88E61XX_SWITCH is not set
13+
# CONFIG_PHYLIB_10G is not set
14+
# CONFIG_PHY_AQUANTIA is not set
15+
# CONFIG_PHY_ATHEROS is not set
16+
# CONFIG_PHY_BROADCOM is not set
17+
# CONFIG_PHY_CORTINA is not set
18+
# CONFIG_PHY_DAVICOM is not set
19+
# CONFIG_PHY_ET1011C is not set
20+
# CONFIG_PHY_LXT is not set
21+
# CONFIG_PHY_MARVELL is not set
22+
# CONFIG_PHY_MESON_GXL is not set
23+
# CONFIG_PHY_MICREL is not set
24+
# CONFIG_PHY_MSCC is not set
25+
# CONFIG_PHY_NATSEMI is not set
26+
# CONFIG_PHY_REALTEK is not set
27+
# CONFIG_PHY_SMSC is not set
28+
# CONFIG_PHY_TERANETICS is not set
29+
# CONFIG_PHY_TI is not set
30+
# CONFIG_PHY_VITESSE is not set
31+
CONFIG_PHY_XILINX=y
32+
# CONFIG_PHY_FIXED is not set
33+
CONFIG_DM_ETH=y
34+
CONFIG_NETDEVICES=y
35+
# CONFIG_PHY_GIGE is not set
36+
# CONFIG_ALTERA_TSE is not set
37+
# CONFIG_BCM_SF2_ETH is not set
38+
# CONFIG_DWC_ETH_QOS is not set
39+
# CONFIG_E1000 is not set
40+
# CONFIG_ETH_DESIGNWARE is not set
41+
# CONFIG_ETHOC is not set
42+
# CONFIG_FTMAC100 is not set
43+
CONFIG_MACB=y
44+
# CONFIG_RGMII is not set
45+
# CONFIG_RTL8139 is not set
46+
# CONFIG_RTL8169 is not set
47+
# CONFIG_SMC911X is not set
48+
# CONFIG_SUN7I_GMAC is not set
49+
# CONFIG_SUN4I_EMAC is not set
50+
# CONFIG_SUN8I_EMAC is not set
51+
# CONFIG_XILINX_AXIEMAC is not set
52+
# CONFIG_XILINX_EMACLITE is not set
53+
CONFIG_ZYNQ_GEM=y
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SRC_URI_append = " file://platform-top.h"
2+
SRC_URI += "file://bsp.cfg \
3+
file://ethernet.cfg \
4+
"
5+
6+
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# i2c
3+
#
4+
CONFIG_I2C_CHARDEV=y
5+
CONFIG_I2C_MUX=y
6+
CONFIG_I2C_MUX_PCA954x=y
7+
CONFIG_SPI_SC18IS602=y
8+
CONFIG_SPI_SPIDEV=y
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SRC_URI += " file://bsp.cfg"
2+
SRC_URI += " file://i2c.cfg"
3+
4+
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
5+

0 commit comments

Comments
 (0)