summaryrefslogtreecommitdiffstats
path: root/fpga/ebaz4205/src
diff options
context:
space:
mode:
authorroot <root@new-fish.medaka.james.internal>2025-09-04 01:36:10 +0100
committerroot <root@new-fish.medaka.james.internal>2025-09-04 01:36:10 +0100
commitcf579b99036b7c9f492332d763cd0b843cf340c4 (patch)
tree15effd8fb3141d193877e39d1a71e42b3677355d /fpga/ebaz4205/src
parent0acc5786b98bd472b4fbea8efc52af2206266bc1 (diff)
downloadhp_instrument_lcds-cf579b99036b7c9f492332d763cd0b843cf340c4.tar.gz
hp_instrument_lcds-cf579b99036b7c9f492332d763cd0b843cf340c4.tar.bz2
hp_instrument_lcds-cf579b99036b7c9f492332d763cd0b843cf340c4.zip
ebaz4205
Diffstat (limited to 'fpga/ebaz4205/src')
-rw-r--r--fpga/ebaz4205/src/ebaz4205-board.dtsi110
-rw-r--r--fpga/ebaz4205/src/ebaz4205-pl.dtsi2
-rw-r--r--fpga/ebaz4205/src/ebaz4205-zynq7.dts19
-rw-r--r--fpga/ebaz4205/src/uEnv.txt12
4 files changed, 143 insertions, 0 deletions
diff --git a/fpga/ebaz4205/src/ebaz4205-board.dtsi b/fpga/ebaz4205/src/ebaz4205-board.dtsi
new file mode 100644
index 0000000..4820d9f
--- /dev/null
+++ b/fpga/ebaz4205/src/ebaz4205-board.dtsi
@@ -0,0 +1,110 @@
+/ {
+ chosen {
+ bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw";
+ stdout-path = "serial0:115200n8";
+ };
+
+ aliases {
+ ethernet0 = &gem0;
+ serial0 = &uart1;
+ mmc0 = &sdhci0;
+ };
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x0 0x10000000>;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led-green {
+ label = "led-green";
+ gpios = <&gpio0 55 1>;
+ default-state = "off";
+ linux,default-trigger = "heartbeat";
+ };
+ led-red {
+ label = "led-red";
+ gpios = <&gpio0 54 1>;
+ default-state = "off";
+ };
+ };
+
+ buttons {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ s2-button {
+ gpios = <&gpio0 20 1>;
+ label = "s2-button";
+ default-state = "keep";
+ linux,code = <106>;
+ autorepeat;
+ };
+ s3-button {
+ gpios = <&gpio0 32 1>;
+ label = "s3-button";
+ default-state = "keep";
+ linux,code = <105>;
+ autorepeat;
+ };
+ };
+};
+
+&clkc {
+ fclk-enable = <0xf>;
+};
+
+&uart1 {
+ status = "okay";
+};
+
+&gem0 {
+ status = "okay";
+ phy-mode = "rgmii-id";
+ phy-handle = <&ethernet_phy0>;
+
+ ethernet_phy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
+&sdhci0 {
+ status = "okay";
+};
+
+&gpio0 {
+ gpio-mask-low = <0x5600>;
+};
+
+&mc {
+ status = "okay";
+ nand0: flash@e1000000 {
+ status = "okay";
+ nand-ecc-mode = "none";
+ nand-bus-width = <8>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition0: partition@0 {
+ label = "partition0";
+ reg = <0x0000000 0x1ffffff>;
+ };
+ partition1: partition@2000000 {
+ label = "partition1";
+ reg = <0x2000000 0x3ffffff>;
+ };
+ partition2: partition@4000000 {
+ label = "partition2";
+ reg = <0x4000000 0x5ffffff>;
+ };
+ partition3: partition@6000000 {
+ label = "partition3";
+ reg = <0x6000000 0x7ffffff>;
+ };
+ };
+ };
+};
diff --git a/fpga/ebaz4205/src/ebaz4205-pl.dtsi b/fpga/ebaz4205/src/ebaz4205-pl.dtsi
new file mode 100644
index 0000000..336d7a2
--- /dev/null
+++ b/fpga/ebaz4205/src/ebaz4205-pl.dtsi
@@ -0,0 +1,2 @@
+/ {
+};
diff --git a/fpga/ebaz4205/src/ebaz4205-zynq7.dts b/fpga/ebaz4205/src/ebaz4205-zynq7.dts
new file mode 100644
index 0000000..22afe26
--- /dev/null
+++ b/fpga/ebaz4205/src/ebaz4205-zynq7.dts
@@ -0,0 +1,19 @@
+/dts-v1/;
+/include/ "zynq-7000.dtsi"
+/include/ "ebaz4205-board.dtsi"
+/include/ "ebaz4205-pl.dtsi"
+/ {
+};
+
+&amba {
+// ocm: sram@fffc0000 {
+// compatible = "mmio-sram";
+// reg = <0xfffc0000 0x40000>;
+// };
+
+ ocm: ocm@fffc0000 {
+ compatible = "xlnx,zynq-ocm-1.0";
+ reg = <0xfffc0000 0x40000>;
+ };
+};
+
diff --git a/fpga/ebaz4205/src/uEnv.txt b/fpga/ebaz4205/src/uEnv.txt
new file mode 100644
index 0000000..6935814
--- /dev/null
+++ b/fpga/ebaz4205/src/uEnv.txt
@@ -0,0 +1,12 @@
+machine_name=ebaz4205-zynq7
+kernel_image=uImage
+loadkernel=load mmc 0 ${kernel_load_address} ${kernel_image}
+devicetree_image=ebaz4205-zynq7.dtb
+loaddtb=load mmc 0 ${devicetree_load_address} ${devicetree_image}
+ramdisk_image=nowt.cpio.uboot
+loadramdisk=load mmc 0 ${ramdisk_load_address} ${ramdisk_image}
+bootargs=earlyprintk console=ttyPS0,115200 root=/dev/mmcblk0p3 ro rootwait
+bitstream_image=ebaz4205_top.bin
+bitstream_type=load
+fpga_config=fpga ${bitstream_type} 0 ${bitstream_load_address} ${filesize}
+sdboot=if mmcinfo; then run leds_bootstate_0;run uenvboot;echo Copying Linux from SD to RAM...; run mmc_loadkernel && run mmc_loaddtb && run mmc_loadramdisk && run mmc_loadfpga && run leds_bootstate_1; echo Configure FPGA...; run fpga_config && run leds_bootstate_2; echo Handoff to Linux kernel...;bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address}; fi