Xilinx/FPGA changes for v2020.01
FPGA: - Enable fpga loading on Versal - Minor fix Microblaze: - Fix LMB configurations to support initrds - Some other cleanups Zynq: - Minor config/dt changes - Add distro boot support for usb1 and mmc1 - Remove Xilinx private boot commands and use only distro boot ZynqMP: - Kconfig cleanups, defconfig updates - Update some dt files - Add firmware driver for talking to PMUFW - Extend distro boot support for jtag - Add new IDs - Add system controller configurations - Convert code to talk firmware via mailbox or SMCs Versal: - Add board_late_init() - Add run time DT memory setup - Add DFU support - Extend distro boot support for jtag and dfu - Add clock driver - Tune mini configurations Xilinx: - Improve documentation (boot scripts, dt binding) - Enable run time initrd_high calculation - Define default SYS_PROMPT - Add zynq/zynqmp virtual defconfig Drivers: - Add Xilinx mailbox driver for talking to firmware - Clean zynq_gem for Versal - Move ZYNQ_HISPD_BROKEN to Kconfig - Wire genphy_init() in phy.c - Add Xilinx gii2rgmii bridge - Cleanup zynq_sdhci - dwc3 fix - zynq_gpio fix - axi_emac fix Others: - apalis-tk1 - clean config file -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQbPNTMvXmYlBPRwx7KSWXLKUoMIQUCXZ2mcwAKCRDKSWXLKUoM IT/KAJ4tL49YwINqCVGd7gafWvdfC4htygCcCgr9gLnJ+LjDQkxWT/r6faIcL00= =OnMk -----END PGP SIGNATURE----- Merge tag 'xilinx-for-v2020.01' of https://gitlab.denx.de/u-boot/custodians/u-boot-microblaze Xilinx/FPGA changes for v2020.01 FPGA: - Enable fpga loading on Versal - Minor fix Microblaze: - Fix LMB configurations to support initrds - Some other cleanups Zynq: - Minor config/dt changes - Add distro boot support for usb1 and mmc1 - Remove Xilinx private boot commands and use only distro boot ZynqMP: - Kconfig cleanups, defconfig updates - Update some dt files - Add firmware driver for talking to PMUFW - Extend distro boot support for jtag - Add new IDs - Add system controller configurations - Convert code to talk firmware via mailbox or SMCs Versal: - Add board_late_init() - Add run time DT memory setup - Add DFU support - Extend distro boot support for jtag and dfu - Add clock driver - Tune mini configurations Xilinx: - Improve documentation (boot scripts, dt binding) - Enable run time initrd_high calculation - Define default SYS_PROMPT - Add zynq/zynqmp virtual defconfig Drivers: - Add Xilinx mailbox driver for talking to firmware - Clean zynq_gem for Versal - Move ZYNQ_HISPD_BROKEN to Kconfig - Wire genphy_init() in phy.c - Add Xilinx gii2rgmii bridge - Cleanup zynq_sdhci - dwc3 fix - zynq_gpio fix - axi_emac fix Others: - apalis-tk1 - clean config file
This commit is contained in:
commit
44fb0d6c9f
@ -404,6 +404,7 @@ M: Michal Simek <michal.simek@xilinx.com>
|
||||
S: Maintained
|
||||
T: git https://gitlab.denx.de/u-boot/custodians/u-boot-microblaze.git
|
||||
F: arch/arm/mach-versal/
|
||||
N: (?<!uni)versal
|
||||
|
||||
ARM VERSATILE EXPRESS DRIVERS
|
||||
M: Liviu Dudau <liviu.dudau@foss.arm.com>
|
||||
@ -442,11 +443,13 @@ S: Maintained
|
||||
T: git https://gitlab.denx.de/u-boot/custodians/u-boot-microblaze.git
|
||||
F: arch/arm/mach-zynqmp/
|
||||
F: drivers/clk/clk_zynqmp.c
|
||||
F: driver/firmware/firmware-zynqmp.c
|
||||
F: drivers/fpga/zynqpl.c
|
||||
F: drivers/gpio/zynq_gpio.c
|
||||
F: drivers/i2c/i2c-cdns.c
|
||||
F: drivers/i2c/muxes/pca954x.c
|
||||
F: drivers/i2c/zynq_i2c.c
|
||||
F: drivers/mailbox/zynqmp-ipi.c
|
||||
F: drivers/mmc/zynq_sdhci.c
|
||||
F: drivers/mtd/nand/raw/zynq_nand.c
|
||||
F: drivers/net/phy/xilinx_phy.c
|
||||
@ -458,6 +461,7 @@ F: drivers/timer/cadence-ttc.c
|
||||
F: drivers/usb/host/ehci-zynq.c
|
||||
F: drivers/watchdog/cdns_wdt.c
|
||||
F: include/zynqmppl.h
|
||||
F: include/zynqmp_firmware.h
|
||||
F: tools/zynqmp*
|
||||
N: ultra96
|
||||
N: zynqmp
|
||||
|
@ -462,6 +462,22 @@ config TPL_USE_ARCH_MEMSET
|
||||
Such implementation may be faster under some conditions
|
||||
but may increase the binary size.
|
||||
|
||||
config SET_STACK_SIZE
|
||||
bool "Enable an option to set max stack size that can be used"
|
||||
default y if ARCH_VERSAL || ARCH_ZYNQMP
|
||||
help
|
||||
This will enable an option to set max stack size that can be
|
||||
used by u-boot.
|
||||
|
||||
config STACK_SIZE
|
||||
hex "Define max stack size that can be used by u-boot"
|
||||
depends on SET_STACK_SIZE
|
||||
default 0x4000000 if ARCH_VERSAL || ARCH_ZYNQMP
|
||||
help
|
||||
Defines Max stack size that can be used by u-boot so that the
|
||||
initrd_high will be calculated as base stack pointer minus this
|
||||
stack size.
|
||||
|
||||
config ARM64_SUPPORT_AARCH32
|
||||
bool "ARM64 system support AArch32 execution state"
|
||||
depends on ARM64
|
||||
@ -980,6 +996,7 @@ config ARCH_VERSAL
|
||||
select DM_MMC if MMC
|
||||
select DM_SERIAL
|
||||
select OF_CONTROL
|
||||
imply BOARD_LATE_INIT
|
||||
|
||||
config ARCH_VF610
|
||||
bool "Freescale Vybrid"
|
||||
@ -1034,16 +1051,21 @@ config ARCH_ZYNQMP
|
||||
select CLK
|
||||
select DM
|
||||
select DM_ETH if NET
|
||||
select DM_MAILBOX
|
||||
select DM_MMC if MMC
|
||||
select DM_SERIAL
|
||||
select DM_SPI if SPI
|
||||
select DM_SPI_FLASH if DM_SPI
|
||||
select DM_USB if USB
|
||||
select FIRMWARE
|
||||
select OF_CONTROL
|
||||
select SPL_BOARD_INIT if SPL
|
||||
select SPL_CLK if SPL
|
||||
select SPL_DM_MAILBOX if SPL
|
||||
select SPL_FIRMWARE if SPL
|
||||
select SPL_SEPARATE_BSS if SPL
|
||||
select SUPPORT_SPL
|
||||
select ZYNQMP_IPI
|
||||
imply BOARD_LATE_INIT
|
||||
imply CMD_DM
|
||||
imply FAT_WRITE
|
||||
|
@ -247,6 +247,10 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \
|
||||
dtb-$(CONFIG_ARCH_ZYNQMP) += \
|
||||
avnet-ultra96-rev1.dtb \
|
||||
avnet-ultrazedev-cc-v1.0-ultrazedev-som-v1.0.dtb \
|
||||
zynqmp-a2197-revA.dtb \
|
||||
zynqmp-a2197-g-revA.dtb \
|
||||
zynqmp-a2197-m-revA.dtb \
|
||||
zynqmp-a2197-p-revA.dtb \
|
||||
zynqmp-mini.dtb \
|
||||
zynqmp-mini-emmc0.dtb \
|
||||
zynqmp-mini-emmc1.dtb \
|
||||
|
@ -7,6 +7,10 @@
|
||||
|
||||
#include "zynq-cse-qspi.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Zynq CSE QSPI SINGLE Board";
|
||||
};
|
||||
|
||||
&flash0 {
|
||||
spi-rx-bus-width = <4>;
|
||||
};
|
||||
|
@ -16,6 +16,7 @@
|
||||
serial0 = &uart1;
|
||||
spi0 = &qspi;
|
||||
mmc0 = &sdhci0;
|
||||
usb0 = &usb0;
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
|
282
arch/arm/dts/zynqmp-a2197-g-revA.dts
Normal file
282
arch/arm/dts/zynqmp-a2197-g-revA.dts
Normal file
@ -0,0 +1,282 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* dts file for Xilinx Versal a2197 RevA System Controller on MGT
|
||||
*
|
||||
* (C) Copyright 2019, Xilinx, Inc.
|
||||
*
|
||||
* Michal Simek <michal.simek@xilinx.com>
|
||||
*/
|
||||
/dts-v1/;
|
||||
|
||||
#include "zynqmp.dtsi"
|
||||
#include "zynqmp-clk-ccf.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
model = "Versal System Controller on a2197 MGT Char board RevA";
|
||||
compatible = "xlnx,zynqmp-a2197-g-revA", "xlnx,zynqmp-a2197-revA",
|
||||
"xlnx,zynqmp-a2197", "xlnx,zynqmp";
|
||||
|
||||
aliases {
|
||||
ethernet0 = &gem0;
|
||||
gpio0 = &gpio;
|
||||
i2c0 = &i2c0;
|
||||
mmc0 = &sdhci0;
|
||||
rtc0 = &rtc;
|
||||
serial0 = &uart0;
|
||||
serial1 = &dcc;
|
||||
usb0 = &usb0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon";
|
||||
stdout-path = "serial0:115200n8";
|
||||
xlnx,eeprom = <&eeprom>;
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x0 0x0 0x80000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&sdhci0 { /* emmc MIO 13-23 16GB */
|
||||
status = "okay";
|
||||
non-removable;
|
||||
disable-wp;
|
||||
bus-width = <8>;
|
||||
xlnx,mio_bank = <0>;
|
||||
};
|
||||
|
||||
&uart0 { /* uart0 MIO38-39 */
|
||||
status = "okay";
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
&gem0 { /* eth MDIO 76/77 */
|
||||
status = "okay";
|
||||
phy-handle = <&phy0>;
|
||||
phy-mode = "sgmii";
|
||||
is-internal-pcspma;
|
||||
phy0: phy@0 { /* marwell m88e1512 */
|
||||
reg = <0>;
|
||||
reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
|
||||
/* xlnx,phy-type = <PHY_TYPE_SGMII>; */
|
||||
};
|
||||
/* phy-names = "...";
|
||||
phys = <&lane0 PHY_TYPE_SGMII ... >
|
||||
Note: lane0 sgmii/lane1 usb3 */
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
gpio-line-names = "", "", "", "", "", /* 0 - 4 */
|
||||
"", "", "", "", "", /* 5 - 9 */
|
||||
"", "", "", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
|
||||
"EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
|
||||
"EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */
|
||||
"", "", "", "", "", /* 25 - 29 */
|
||||
"", "", "", "", "LP_I2C0_PMC_SCL", /* 30 - 34 */
|
||||
"LP_I2C0_PMC_SDA", "", "", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
|
||||
"", "", "ETH_RESET_B", "", "", /* 40 - 44 */
|
||||
"", "", "", "", "", /* 45 - 49 */
|
||||
"", "", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
|
||||
"USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
|
||||
"USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "", /* 60 - 64 */
|
||||
"", "", "", "", "", /* 65 - 69 */
|
||||
"", "", "", "", "", /* 70 - 74 */
|
||||
"", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
|
||||
"SYSCTLR_VERSAL_MODE0", "SYSCTLR_VERSAL_MODE1", /* 78 - 79 */
|
||||
"SYSCTLR_VERSAL_MODE2", "SYSCTLR_VERSAL_MODE3", "SYSCTLR_POR_B_LS", "DC_PRSNT", "SYSCTLR_POWER_EN", /* 80 - 84 */
|
||||
"SYSCTLR_JTAG_S0", "SYSCTLR_JTAG_S1", "SYSCTLR_IIC_MUX0_RESET_B", "SYSCTLR_IIC_MUX1_RESET_B", "SYSCTLR_LP_I2C_SM_ALERT", /* 85 -89 */
|
||||
"SYSCTLR_GPIO0", "SYSCTLR_GPIO1", "SYSCTLR_GPIO2", "SYSCTLR_GPIO3", "SYSCTLR_GPIO4", /* 90 - 94 */
|
||||
"SYSCTLR_GPIO5", "VCCO_500_RBIAS", "VCCO_501_RBIAS", "VCCO_502_RBIAS", "VCCO_500_RBIAS_LED", /* 95 - 99 */
|
||||
"VCCO_501_RBIAS_LED", "VCCO_502_RBIAS_LED", "SYSCTLR_VCCINT_EN", "SYSCTLR_VCC_IO_SOC_EN", "SYSCTLR_VCC_PMC_EN", /* 100 - 104 */
|
||||
"SYSCTLR_VCC_RAM_EN", "SYSCTLR_VCC_PSLP_EN", "SYSCTLR_VCC_PSFP_EN", "SYSCTLR_VCCAUX_EN", "SYSCTLR_VCCAUX_PMC_EN", /* 105 - 109 */
|
||||
"SYSCTLR_VCCO_500_EN", "SYSCTLR_VCCO_501_EN", "SYSCTLR_VCCO_502_EN", "SYSCTLR_VCCO_503_EN", "SYSCTLR_VCC1V8_EN", /* 110 - 114 */
|
||||
"SYSCTLR_VCC3V3_EN", "SYSCTLR_VCC1V2_DDR4_EN", "SYSCTLR_VCC1V1_LP4_EN", "SYSCTLR_VDD1_1V8_LP4_EN", "SYSCTLR_VADJ_FMC_EN", /* 115 - 119 */
|
||||
"SYSCTLR_MGTYAVCC_EN", "SYSCTLR_MGTYAVTT_EN", "SYSCTLR_MGTYVCCAUX_EN", "SYSCTLR_UTIL_1V13_EN", "SYSCTLR_UTIL_1V8_EN", /* 120 - 124 */
|
||||
"SYSCTLR_UTIL_2V5_EN", "FMCP1_FMC_PRSNT_M2C_B", "FMCP2_FMC_PRSNT_M2C_B", "FMCP1_FMCP_PRSNT_M2C_B", "FMCP2_FMCP_PRSNT_M2C_B", /* 125 - 129 */
|
||||
"PMBUS1_INA226_ALERT", "PMBUS2_INA226_ALERT", "SYSCTLR_USBC_SBU1", "SYSCTLR_USBC_SBU2", "TI_CABLE1", /* 130 - 134 */
|
||||
"TI_CABLE2", "SYSCTLR_MIC2005_EN_B", "SYSCTLR_MIC2005_FAULT_B", "SYSCTLR_TUSB320_INT_B", "SYSCTLR_TUSB320_ID", /* 135 - 139 */
|
||||
"PMBUS1_ALERT", "PMBUS2_ALERT", "SYSCTLR_ETH_RESET_B", "SYSCTLR_VCC0V85_TG", "MAX6643_OT_B", /* 140 - 144 */
|
||||
"MAX6643_FANFINAL_B", "MAX6643_FULLSPD", "", "", "", /* 145 - 149 */
|
||||
"", "", "", "", "", /* 150 - 154 */
|
||||
"", "", "", "", "", /* 155 - 159 */
|
||||
"", "", "", "", "", /* 160 - 164 */
|
||||
"", "", "", "", "", /* 165 - 169 */
|
||||
"", "", "", ""; /* 170 - 174 */
|
||||
};
|
||||
|
||||
&i2c0 { /* MIO 34-35 - can't stay here */
|
||||
status = "okay";
|
||||
clock-frequency = <400000>;
|
||||
scl-gpios = <&gpio 34 GPIO_ACTIVE_HIGH>;
|
||||
sda-gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
|
||||
i2c-mux@74 { /* u94 */
|
||||
compatible = "nxp,pca9548";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x74>;
|
||||
/* FIXME reset connected to SYSCTRL_IIC_MUX0_RESET */
|
||||
i2c@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0>;
|
||||
/* Use for storing information about SC board */
|
||||
eeprom: eeprom@50 { /* u96 - 24LC32A - 256B */
|
||||
compatible = "atmel,24c32";
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
i2c@1 { /* CM_I2C_SCL - Samtec */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <1>;
|
||||
};
|
||||
i2c@2 { /* PMBUS - AFX_PMBUS */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <2>;
|
||||
tps544@d { /* u85 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0xd>;
|
||||
};
|
||||
tps544@10 { /* u73 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x10>;
|
||||
};
|
||||
tps544@11 { /* u76 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x11>;
|
||||
};
|
||||
tps544@12 { /* u77 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x12>;
|
||||
};
|
||||
tps544@13 { /* u80 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x13>;
|
||||
};
|
||||
tps544@14 { /* u81 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x14>;
|
||||
};
|
||||
tps544@15 { /* u83 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x15>;
|
||||
};
|
||||
tps544@16 { /* u63 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x16>;
|
||||
};
|
||||
tps544@17 { /* u66 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x17>;
|
||||
};
|
||||
tps544@18 { /* u67 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x18>;
|
||||
};
|
||||
tps544@19 { /* u69 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x19>;
|
||||
};
|
||||
tps544@1d { /* u88 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x1d>;
|
||||
};
|
||||
tps544@1e { /* u89 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x1e>;
|
||||
};
|
||||
tps544@1f { /* u87 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x1f>;
|
||||
};
|
||||
tps544@20 { /* u71 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x20>;
|
||||
};
|
||||
ina226@40 { /* u74 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x40>;
|
||||
shunt-resistor = <1000>;
|
||||
};
|
||||
ina226@41 { /* u75 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x41>;
|
||||
shunt-resistor = <1000>;
|
||||
};
|
||||
ina226@42 { /* u78 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x42>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
ina226@43 { /* u79 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x43>;
|
||||
shunt-resistor = <1000>;
|
||||
};
|
||||
ina226@44 { /* u82 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x44>;
|
||||
shunt-resistor = <1000>;
|
||||
};
|
||||
ina226@45 { /* u84 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x45>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
tps53681@c0 { /* u53 - FIXME name - don't know what it does - also vcc_io_soc */
|
||||
compatible = "ti,tps53681"; /* FIXME no linux driver */
|
||||
reg = <0xc0>;
|
||||
};
|
||||
};
|
||||
i2c@3 { /* fmc1 via JA2G */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <3>;
|
||||
eeprom_fmc1: eeprom@50 { /* on FMC */
|
||||
compatible = "atmel,24c04";
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
i2c@4 { /* fmc2 via JA3G */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <4>;
|
||||
eeprom_fmc2: eeprom@50 { /* on FMC */
|
||||
compatible = "atmel,24c04";
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
i2c@5 { /* fmc3 via JA4G */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <5>;
|
||||
eeprom_fmc3: eeprom@50 { /* on FMC */
|
||||
compatible = "atmel,24c04";
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
i2c@6 { /* ddr dimm */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <7>;
|
||||
};
|
||||
/* 7 unused */
|
||||
};
|
||||
};
|
||||
|
||||
&usb0 { /* USB0 MIO52-63 */
|
||||
status = "okay";
|
||||
xlnx,usb-polarity = <0>;
|
||||
xlnx,usb-reset-mode = <0>;
|
||||
};
|
||||
|
||||
&dwc3_0 {
|
||||
status = "okay";
|
||||
dr_mode = "peripheral";
|
||||
maximum-speed = "high-speed";
|
||||
};
|
461
arch/arm/dts/zynqmp-a2197-m-revA.dts
Normal file
461
arch/arm/dts/zynqmp-a2197-m-revA.dts
Normal file
@ -0,0 +1,461 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* dts file for Xilinx Versal a2197 RevA System Controller
|
||||
*
|
||||
* (C) Copyright 2019, Xilinx, Inc.
|
||||
*
|
||||
* Michal Simek <michal.simek@xilinx.com>
|
||||
*/
|
||||
/dts-v1/;
|
||||
|
||||
#include "zynqmp.dtsi"
|
||||
#include "zynqmp-clk-ccf.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
model = "Versal System Controller on a2197 Memory Char board RevA";
|
||||
compatible = "xlnx,zynqmp-a2197-m-revA", "xlnx,zynqmp-a2197-revA",
|
||||
"xlnx,zynqmp-a2197", "xlnx,zynqmp";
|
||||
|
||||
aliases {
|
||||
ethernet0 = &gem0;
|
||||
gpio0 = &gpio;
|
||||
i2c0 = &i2c0;
|
||||
i2c1 = &i2c1;
|
||||
mmc0 = &sdhci0;
|
||||
mmc1 = &sdhci1;
|
||||
rtc0 = &rtc;
|
||||
serial0 = &uart0;
|
||||
serial1 = &uart1;
|
||||
serial2 = &dcc;
|
||||
usb0 = &usb0;
|
||||
usb1 = &usb1;
|
||||
spi0 = &qspi;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon";
|
||||
stdout-path = "serial0:115200n8";
|
||||
xlnx,eeprom = <&eeprom>;
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x0 0x0 0x80000000>; /* FIXME don't know how big memory is there */
|
||||
};
|
||||
};
|
||||
|
||||
&qspi {
|
||||
status = "okay";
|
||||
is-dual = <1>;
|
||||
flash@0 {
|
||||
compatible = "m25p80", "spi-flash"; /* 32MB */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
reg = <0x0>;
|
||||
spi-tx-bus-width = <1>;
|
||||
spi-rx-bus-width = <4>;
|
||||
spi-max-frequency = <108000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&sdhci0 { /* emmc MIO 13-23 - with some settings 16GB */
|
||||
status = "okay";
|
||||
non-removable;
|
||||
disable-wp;
|
||||
bus-width = <8>;
|
||||
xlnx,mio_bank = <0>; /* FIXME tap delay */
|
||||
};
|
||||
|
||||
&uart0 { /* uart0 MIO38-39 */
|
||||
status = "okay";
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
&uart1 { /* uart1 MIO40-41 */
|
||||
status = "okay";
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
&sdhci1 { /* sd1 MIO45-51 cd in place */
|
||||
status = "disable";
|
||||
no-1-8-v;
|
||||
disable-wp;
|
||||
xlnx,mio_bank = <1>;
|
||||
};
|
||||
|
||||
&gem0 {
|
||||
status = "okay";
|
||||
phy-handle = <&phy0>;
|
||||
phy-mode = "sgmii"; /* DTG generates this properly 1512 */
|
||||
phy-reset-gpios = <&gpio 142 GPIO_ACTIVE_LOW>;
|
||||
phy0: phy@0 { /* marwell m88e1512 - SGMII */
|
||||
reg = <0>;
|
||||
/* xlnx,phy-type = <PHY_TYPE_SGMII>; */
|
||||
};
|
||||
/* phy-names = "...";
|
||||
phys = <&lane0 PHY_TYPE_SGMII ... >
|
||||
Note: lane0 sgmii/lane1 usb3 */
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
gpio-line-names = "SCLK_OUT", "MISO_MO1", "MO2", "MO3", "MOSI_MIO0", /* 0 - 4 */
|
||||
"N_SS_OUT", "", "SYS_CTRL0", "SYS_CTRL1", "SYS_CTRL2", /* 5 - 9 */
|
||||
"SYS_CTRL3", "SYS_CTRL4", "SYS_CTRL5", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
|
||||
"EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
|
||||
"EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */
|
||||
"", "RXD0_IN", "TXD0_OUT", "TXD1_OUT", "RXD1_IN", /* 25 - 29 */
|
||||
"", "", "", "", "LP_I2C0_PMC_SCL", /* 30 - 34 */
|
||||
"LP_I2C0_PMC_SDA", "LP_I2C1_SCL", "LP_I2C1_SDA", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
|
||||
"UART1_TXD_OUT", "UART1_RXD_IN", "ETH_RESET_B", "", "", /* 40 - 44 */
|
||||
"SD1_CD_B", "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3", /* 45 - 49 */
|
||||
"SD1_CMD", "SD1_CLK", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
|
||||
"USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
|
||||
"USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "USB1_CLK", /* 60 - 64 */
|
||||
"USB1_DIR", "USB1_DATA2", "USB1_NXT", "USB1_DATA0", "USB1_DATA1", /* 65 - 69 */
|
||||
"USB1_STP", "USB1_DATA3", "USB1_DATA4", "USB1_DATA5", "USB1_DATA6", /* 70 - 74 */
|
||||
"USB1_DATA7", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
|
||||
"", "", "", "", "", /* 78 - 79 */
|
||||
"", "", "", "", "", /* 80 - 84 */
|
||||
"", "", "", "", "", /* 85 -89 */
|
||||
"", "", "", "", "", /* 90 - 94 */
|
||||
"", "", "", "", "", /* 95 - 99 */
|
||||
"", "", "", "", "", /* 100 - 104 */
|
||||
"", "", "", "", "", /* 105 - 109 */
|
||||
"", "", "", "", "", /* 110 - 114 */
|
||||
"", "", "", "", "", /* 115 - 119 */
|
||||
"", "", "", "", "", /* 120 - 124 */
|
||||
"", "", "", "", "", /* 125 - 129 */
|
||||
"", "", "", "", "", /* 130 - 134 */
|
||||
"", "", "", "", "", /* 135 - 139 */
|
||||
"", "", "", "", "", /* 140 - 144 */
|
||||
"", "", "", "", "", /* 145 - 149 */
|
||||
"", "", "", "", "", /* 150 - 154 */
|
||||
"", "", "", "", "", /* 155 - 159 */
|
||||
"", "", "", "", "", /* 160 - 164 */
|
||||
"", "", "", "", "", /* 165 - 169 */
|
||||
"", "", "", ""; /* 170 - 174 */
|
||||
};
|
||||
|
||||
&i2c0 { /* MIO 34-35 - can't stay here */
|
||||
status = "okay";
|
||||
clock-frequency = <400000>;
|
||||
i2c-mux@74 { /* u46 */
|
||||
compatible = "nxp,pca9548";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x74>;
|
||||
/* FIXME reset connected to SYSCTRL_IIC_MUX0_RESET */
|
||||
i2c@0 { /* PMBUS must be enabled via SW21 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0>;
|
||||
reg_vcc1v2_lp4: tps544@15 { /* u97 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x15>;
|
||||
};
|
||||
reg_vcc1v1_lp4: tps544@16 { /* u95 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x16>;
|
||||
};
|
||||
reg_vdd1_1v8_lp4: tps544@17 { /* u99 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x17>;
|
||||
};
|
||||
/* UTIL_PMBUS connection */
|
||||
reg_vcc1v8: tps544@13 { /* u92 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x13>;
|
||||
};
|
||||
reg_vcc3v3: tps544@14 { /* u93 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x14>;
|
||||
};
|
||||
reg_vcc5v0: tps544@1e { /* u94 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x1e>;
|
||||
};
|
||||
};
|
||||
i2c@1 { /* PMBUS_INA226 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <1>;
|
||||
vcc_aux: ina226@42 { /* u86 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x42>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc_ram: ina226@43 { /* u81 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x43>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc1v1_lp4: ina226@46 { /* u96 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x46>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc1v2_lp4: ina226@47 { /* u98 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x47>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vdd1_1v8_lp4: ina226@48 { /* u100 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x48>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc0v6_lp4: ina226@49 { /* u101 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x49>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
};
|
||||
i2c@2 { /* PMBUS1 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <2>;
|
||||
reg_vccint: tps53681@c0 { /* u69 */
|
||||
compatible = "ti,tps53681"; /* FIXME no linux driver */
|
||||
reg = <0xc0>;
|
||||
};
|
||||
reg_vcc_pmc: tps544@7 { /* u80 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x7>;
|
||||
};
|
||||
reg_vcc_ram: tps544@8 { /* u82 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x8>;
|
||||
};
|
||||
reg_vcc_pslp: tps544@9 { /* u83 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x9>;
|
||||
};
|
||||
reg_vcc_psfp: tps544@a { /* u84 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0xa>;
|
||||
};
|
||||
reg_vccaux: tps544@d { /* u85 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0xd>;
|
||||
};
|
||||
reg_vccaux_pmc: tps544@e { /* u87 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0xe>;
|
||||
};
|
||||
reg_vcco_500: tps544@f { /* u88 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0xf>;
|
||||
};
|
||||
reg_vcco_501: tps544@10 { /* u89 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x10>;
|
||||
};
|
||||
reg_vcco_502: tps544@11 { /* u90 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x11>;
|
||||
};
|
||||
reg_vcco_503: tps544@12 { /* u91 */
|
||||
compatible = "ti,tps544b25";
|
||||
reg = <0x12>;
|
||||
};
|
||||
};
|
||||
i2c@3 { /* MEM PMBUS - FIXME bug in schematics */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
/* reg = <3>; */
|
||||
};
|
||||
i2c@4 { /* LP_I2C_SM */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <4>;
|
||||
/* connected to U20G */
|
||||
};
|
||||
/* 5-7 unused */
|
||||
};
|
||||
};
|
||||
|
||||
/* TODO sysctrl via J239 */
|
||||
/* TODO samtec J212G/H via J242 */
|
||||
/* TODO teensy via U30 PCA9543A bus 1 */
|
||||
&i2c1 { /* i2c1 MIO 36-37 */
|
||||
status = "okay";
|
||||
clock-frequency = <400000>;
|
||||
|
||||
/* Must be enabled via J242 */
|
||||
eeprom_versal: eeprom@51 { /* x-prc-01-revA u116, x-prc-02-revA u12 */
|
||||
compatible = "atmel,24c02";
|
||||
reg = <0x51>;
|
||||
};
|
||||
|
||||
i2c-mux@74 { /* u35 */
|
||||
compatible = "nxp,pca9548";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x74>;
|
||||
/* FIXME reset connected to SYSCTRL_IIC_MUX1_RESET */
|
||||
dc_i2c: i2c@0 { /* DC_I2C */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0>;
|
||||
/* Use for storing information about SC board */
|
||||
eeprom: eeprom@54 { /* u51 - m24128 16kB FIXME addr */
|
||||
compatible = "atmel,24c08";
|
||||
reg = <0x54>;
|
||||
};
|
||||
si570_ref_clk: clock-generator@5d { /* u26 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x5d>; /* FIXME addr */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <156250000>; /* FIXME every chip can be different */
|
||||
clock-frequency = <33333333>;
|
||||
clock-output-names = "REF_CLK"; /* FIXME */
|
||||
};
|
||||
/* Connection via Samtec U20D */
|
||||
/* Use for storing information about X-PRC card */
|
||||
x_prc_eeprom: eeprom@52 { /* x-prc-01-revA u120, x-prc-02-revA u16 */
|
||||
compatible = "atmel,24c02";
|
||||
reg = <0x52>;
|
||||
};
|
||||
|
||||
/* Use for setting up certain features on X-PRC card */
|
||||
x_prc_tca9534: gpio@22 { /* x-prc-01-revA u121, x-prc-02-revA u17 */
|
||||
compatible = "nxp,pca9534";
|
||||
reg = <0x22>;
|
||||
gpio-controller; /* IRQ not connected */
|
||||
#gpio-cells = <2>;
|
||||
gpio-line-names = "sw4_1", "sw4_2", "sw4_3", "sw4_4",
|
||||
"", "", "", "";
|
||||
gtr_sel0 {
|
||||
gpio-hog;
|
||||
gpios = <0 0>;
|
||||
input; /* FIXME add meaning */
|
||||
line-name = "sw4_1";
|
||||
};
|
||||
gtr_sel1 {
|
||||
gpio-hog;
|
||||
gpios = <1 0>;
|
||||
input; /* FIXME add meaning */
|
||||
line-name = "sw4_2";
|
||||
};
|
||||
gtr_sel2 {
|
||||
gpio-hog;
|
||||
gpios = <2 0>;
|
||||
input; /* FIXME add meaning */
|
||||
line-name = "sw4_3";
|
||||
};
|
||||
gtr_sel3 {
|
||||
gpio-hog;
|
||||
gpios = <3 0>;
|
||||
input; /* FIXME add meaning */
|
||||
line-name = "sw4_4";
|
||||
};
|
||||
};
|
||||
};
|
||||
i2c@1 { /* UTIL_PMBUS - FIXME incorrect schematics */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
/* reg = <1>; */
|
||||
};
|
||||
i2c@2 { /* C0_LP4 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <2>;
|
||||
si570_c0_lp4: clock-generator@5d { /* u10 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x5d>; /* FIXME addr */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <30000000>;
|
||||
clock-frequency = <30000000>;
|
||||
clock-output-names = "C0_LP4_SI570_CLK";
|
||||
};
|
||||
};
|
||||
i2c@3 { /* C1_LP4 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <3>;
|
||||
si570_c1_lp4: clock-generator@5d { /* u10 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x5d>; /* FIXME addr */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <30000000>;
|
||||
clock-frequency = <30000000>;
|
||||
clock-output-names = "C1_LP4_SI570_CLK";
|
||||
};
|
||||
};
|
||||
i2c@4 { /* C2_LP4 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <4>;
|
||||
si570_c2_lp4: clock-generator@5d { /* u10 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x5d>; /* FIXME addr */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <30000000>;
|
||||
clock-frequency = <30000000>;
|
||||
clock-output-names = "C2_LP4_SI570_CLK";
|
||||
};
|
||||
};
|
||||
i2c@5 { /* C3_LP4 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <5>;
|
||||
si570_c3_lp4: clock-generator@5d { /* u15 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x5d>; /* FIXME addr */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <30000000>;
|
||||
clock-frequency = <30000000>;
|
||||
clock-output-names = "C3_LP4_SI570_CLK";
|
||||
};
|
||||
};
|
||||
i2c@6 { /* HSDP_SI570 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <6>;
|
||||
si570_hsdp: clock-generator@5d { /* u19 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x5d>; /* FIXME addr */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <156250000>; /* FIXME every chip can be different - 10MHZ_TO_810MHZ */
|
||||
clock-frequency = <33333333>;
|
||||
clock-output-names = "HSDP_SI570";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&usb0 {
|
||||
status = "okay";
|
||||
xlnx,usb-polarity = <0>;
|
||||
xlnx,usb-reset-mode = <0>;
|
||||
};
|
||||
|
||||
&dwc3_0 {
|
||||
status = "okay";
|
||||
dr_mode = "host";
|
||||
/* dr_mode = "peripheral"; */
|
||||
maximum-speed = "high-speed";
|
||||
};
|
||||
|
||||
&usb1 {
|
||||
status = "disabled"; /* not at mem board */
|
||||
xlnx,usb-polarity = <0>;
|
||||
xlnx,usb-reset-mode = <0>;
|
||||
};
|
||||
|
||||
&dwc3_1 {
|
||||
/delete-property/ phy-names ;
|
||||
/delete-property/ phys ;
|
||||
maximum-speed = "high-speed";
|
||||
snps,dis_u2_susphy_quirk ;
|
||||
snps,dis_u3_susphy_quirk ;
|
||||
status = "disabled";
|
||||
};
|
567
arch/arm/dts/zynqmp-a2197-p-revA.dts
Normal file
567
arch/arm/dts/zynqmp-a2197-p-revA.dts
Normal file
@ -0,0 +1,567 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* dts file for Xilinx Versal a2197 RevA System Controller
|
||||
*
|
||||
* (C) Copyright 2019, Xilinx, Inc.
|
||||
*
|
||||
* Michal Simek <michal.simek@xilinx.com>
|
||||
*/
|
||||
/dts-v1/;
|
||||
|
||||
#include "zynqmp.dtsi"
|
||||
#include "zynqmp-clk-ccf.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
model = "Versal System Controller on a2197 Processor Char board RevA"; /* Tenzing */
|
||||
compatible = "xlnx,zynqmp-a2197-p-revA", "xlnx,zynqmp-a2197-revA",
|
||||
"xlnx,zynqmp-a2197", "xlnx,zynqmp";
|
||||
|
||||
aliases {
|
||||
ethernet0 = &gem0;
|
||||
gpio0 = &gpio;
|
||||
i2c0 = &i2c0;
|
||||
i2c1 = &i2c1;
|
||||
mmc0 = &sdhci0;
|
||||
mmc1 = &sdhci1;
|
||||
rtc0 = &rtc;
|
||||
serial0 = &uart0;
|
||||
serial1 = &uart1;
|
||||
serial2 = &dcc;
|
||||
usb0 = &usb0;
|
||||
usb1 = &usb1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon";
|
||||
stdout-path = "serial0:115200n8";
|
||||
xlnx,eeprom = <&eeprom>;
|
||||
/* xlnx,fmc-eeprom = FIXME */
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x0 0x0 0x80000000>; /* FIXME don't know how big memory is there */
|
||||
};
|
||||
};
|
||||
|
||||
&sdhci0 { /* emmc MIO 13-23 - with some settings 16GB */
|
||||
status = "okay";
|
||||
non-removable;
|
||||
disable-wp;
|
||||
bus-width = <8>;
|
||||
xlnx,mio_bank = <0>;
|
||||
};
|
||||
|
||||
&uart0 { /* uart0 MIO38-39 */
|
||||
status = "okay";
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
&uart1 { /* uart1 MIO40-41 */
|
||||
status = "okay";
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
&sdhci1 { /* sd1 MIO45-51 cd in place */
|
||||
status = "okay";
|
||||
no-1-8-v;
|
||||
disable-wp;
|
||||
xlnx,mio_bank = <1>;
|
||||
};
|
||||
|
||||
&gem0 {
|
||||
status = "okay";
|
||||
phy-handle = <&phy0>;
|
||||
phy-mode = "sgmii"; /* DTG generates this properly 1512 */
|
||||
is-internal-pcspma;
|
||||
/* phy-reset-gpios = <&gpio 142 GPIO_ACTIVE_LOW>; */
|
||||
phy0: phy@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
gpio-line-names = "", "", "", "", "", /* 0 - 4 */
|
||||
"", "", "DC_SYS_CTRL0", "DC_SYS_CTRL1", "DC_SYS_CTRL2", /* 5 - 9 */
|
||||
"DC_SYS_CTRL3", "DC_SYS_CTRL4", "DC_SYS_CTRL5", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
|
||||
"EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
|
||||
"EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */
|
||||
"", "", "", "", "", /* 25 - 29 */
|
||||
"", "", "", "", "LP_I2C0_PMC_SCL", /* 30 - 34 */
|
||||
"LP_I2C0_PMC_SDA", "LP_I2C1_SCL", "LP_I2C1_SDA", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
|
||||
"UART1_TXD_OUT", "UART1_RXD_IN", "ETH_RESET_B", "", "", /* 40 - 44 */
|
||||
"SD1_CD_B", "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3", /* 45 - 49 */
|
||||
"SD1_CMD", "SD1_CLK", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
|
||||
"USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
|
||||
"USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "USB1_CLK", /* 60 - 64 */
|
||||
"USB1_DIR", "USB1_DATA2", "USB1_NXT", "USB1_DATA0", "USB1_DATA1", /* 65 - 69 */
|
||||
"USB1_STP", "USB1_DATA3", "USB1_DATA4", "USB1_DATA5", "USB1_DATA6", /* 70 - 74 */
|
||||
"USB1_DATA7", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
|
||||
"SYSCTLR_VERSAL_MODE0", "SYSCTLR_VERSAL_MODE1", /* 78 - 79 */
|
||||
"SYSCTLR_VERSAL_MODE2", "SYSCTLR_VERSAL_MODE3", "SYSCTLR_POR_B_LS", "DC_PRSNT", "SYSCTLR_POWER_EN", /* 80 - 84 */
|
||||
"SYSCTLR_JTAG_S0", "SYSCTLR_JTAG_S1", "SYSCTLR_IIC_MUX0_RESET_B", "SYSCTLR_IIC_MUX1_RESET_B", "SYSCTLR_LP_I2C_SM_ALERT", /* 85 -89 */
|
||||
"SYSCTLR_GPIO0", "SYSCTLR_GPIO1", "SYSCTLR_GPIO2", "SYSCTLR_GPIO3", "SYSCTLR_GPIO4", /* 90 - 94 */
|
||||
"SYSCTLR_GPIO5", "VCCO_500_RBIAS", "VCCO_501_RBIAS", "VCCO_502_RBIAS", "VCCO_500_RBIAS_LED", /* 95 - 99 */
|
||||
"VCCO_501_RBIAS_LED", "VCCO_502_RBIAS_LED", "SYSCTLR_VCCINT_EN", "SYSCTLR_VCC_IO_SOC_EN", "SYSCTLR_VCC_PMC_EN", /* 100 - 104 */
|
||||
"SYSCTLR_VCC_RAM_EN", "SYSCTLR_VCC_PSLP_EN", "SYSCTLR_VCC_PSFP_EN", "SYSCTLR_VCCAUX_EN", "SYSCTLR_VCCAUX_PMC_EN", /* 105 - 109 */
|
||||
"SYSCTLR_VCCO_500_EN", "SYSCTLR_VCCO_501_EN", "SYSCTLR_VCCO_502_EN", "SYSCTLR_VCCO_503_EN", "SYSCTLR_VCC1V8_EN", /* 110 - 114 */
|
||||
"SYSCTLR_VCC3V3_EN", "SYSCTLR_VCC1V2_DDR4_EN", "SYSCTLR_VCC1V1_LP4_EN", "SYSCTLR_VDD1_1V8_LP4_EN", "SYSCTLR_VADJ_FMC_EN", /* 115 - 119 */
|
||||
"SYSCTLR_MGTYAVCC_EN", "SYSCTLR_MGTYAVTT_EN", "SYSCTLR_MGTYVCCAUX_EN", "SYSCTLR_UTIL_1V13_EN", "SYSCTLR_UTIL_1V8_EN", /* 120 - 124 */
|
||||
"SYSCTLR_UTIL_2V5_EN", "FMCP1_FMC_PRSNT_M2C_B", "FMCP2_FMC_PRSNT_M2C_B", "FMCP1_FMCP_PRSNT_M2C_B", "FMCP2_FMCP_PRSNT_M2C_B", /* 125 - 129 */
|
||||
"PMBUS1_INA226_ALERT", "PMBUS2_INA226_ALERT", "SYSCTLR_USBC_SBU1", "SYSCTLR_USBC_SBU2", "TI_CABLE1", /* 130 - 134 */
|
||||
"TI_CABLE2", "SYSCTLR_MIC2005_EN_B", "SYSCTLR_MIC2005_FAULT_B", "SYSCTLR_TUSB320_INT_B", "SYSCTLR_TUSB320_ID", /* 135 - 139 */
|
||||
"PMBUS1_ALERT", "PMBUS2_ALERT", "SYSCTLR_ETH_RESET_B", "SYSCTLR_VCC0V85_TG", "MAX6643_OT_B", /* 140 - 144 */
|
||||
"MAX6643_FANFINAL_B", "MAX6643_FULLSPD", "", "", "", /* 145 - 149 */
|
||||
"", "", "", "", "", /* 150 - 154 */
|
||||
"", "", "", "", "", /* 155 - 159 */
|
||||
"", "", "", "", "", /* 160 - 164 */
|
||||
"", "", "", "", "", /* 165 - 169 */
|
||||
"", "", "", ""; /* 170 - 174 */
|
||||
};
|
||||
|
||||
&i2c0 { /* MIO 34-35 - can't stay here */
|
||||
status = "okay";
|
||||
clock-frequency = <400000>;
|
||||
i2c-mux@74 { /* u33 */
|
||||
compatible = "nxp,pca9548";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x74>;
|
||||
/* reset-gpios = <&gpio SYSCTLR_IIC_MUX0_RESET_B GPIO_ACTIVE_HIGH>; */
|
||||
i2c@0 { /* PMBUS1 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0>;
|
||||
/* On connector J98 */
|
||||
reg_vcc_fmc: tps544@7 { /* u80 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x7>;
|
||||
regulator-name = "reg_vcc_fmc";
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <2600000>;
|
||||
/* enable-gpio = <&gpio0 23 0x4>; optional */
|
||||
};
|
||||
reg_vcc_ram: tps544@8 { /* u83 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x8>;
|
||||
};
|
||||
reg_vcc_pslp: tps544@9 { /* u85 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x9>;
|
||||
};
|
||||
reg_vcc_psfp: tps544@a { /* u86 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0xa>;
|
||||
};
|
||||
reg_vccint: tps53681@c0 { /* u70 - FIXME name - don't know what it does - also vcc_io_soc */
|
||||
compatible = "ti,tps53681"; /* FIXME no linux driver */
|
||||
reg = <0xc0>;
|
||||
/* vccint, vcc_io_soc */
|
||||
};
|
||||
};
|
||||
i2c@1 { /* PMBUS1_INA226 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <1>;
|
||||
/* FIXME check alerts comming to SC */
|
||||
vcc_fmc: ina226@42 { /* u81 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x42>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc_ram: ina226@43 { /* u82 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x43>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc_pslp: ina226@44 { /* u84 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x44>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc_psfp: ina226@45 { /* u87 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x45>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
};
|
||||
i2c@2 { /* PMBUS2 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <2>;
|
||||
/* On connector J104 */
|
||||
reg_vccaus: tps544@d { /* u88 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0xd>;
|
||||
};
|
||||
reg_vccaux_fmc: tps544@e { /* u90 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0xe>;
|
||||
};
|
||||
reg_vcco_500: tps544@f { /* u93 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0xf>;
|
||||
};
|
||||
reg_vcco_501: tps544@10 { /* u95 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x10>;
|
||||
};
|
||||
reg_vcco_502: tps544@11 { /* u97 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x11>;
|
||||
};
|
||||
reg_vcco_503: tps544@12 { /* u99 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x12>;
|
||||
};
|
||||
reg_vcc1v8: tps544@13 { /* u101 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x13>;
|
||||
};
|
||||
reg_vcc3v3: tps544@14 { /* u102 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x14>;
|
||||
};
|
||||
reg_vcc1v2_ddr4: tps544@15 { /* u104 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x15>;
|
||||
};
|
||||
reg_vcc1v1_lp4: tps544@16 { /* u106 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x16>;
|
||||
};
|
||||
reg_vcc1_1V8_lp4: tps544@17 { /* u108 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x17>;
|
||||
};
|
||||
reg_vadj_fmc: tps544@19 { /* u109 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x19>;
|
||||
};
|
||||
reg_mgtyavcc: tps544@1a { /* u111 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x1a>;
|
||||
};
|
||||
reg_mgtyavtt: tps544@1b { /* u114 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x1b>;
|
||||
};
|
||||
reg_mgtyvccaux: tps544@1c { /* u115 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x1c>;
|
||||
};
|
||||
reg_util_1v13: tps544@1d { /* u117 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x1d>;
|
||||
};
|
||||
reg_util_1v8: tps544@1e { /* u118 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x1e>;
|
||||
};
|
||||
reg_util_2v5: tps544@1f { /* u119 - FIXME name - don't know what it does */
|
||||
compatible = "ti,tps544b25"; /* Documentation/hwmon/pmbus - wiring is missing */
|
||||
reg = <0x1f>;
|
||||
};
|
||||
};
|
||||
i2c@3 { /* PMBUS2_INA226 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <3>;
|
||||
/* FIXME check alerts coming to SC */
|
||||
vccaux: ina226@40 { /* u89 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x40>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vccaux_fmc: ina226@41 { /* u91 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x41>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcco_500: ina226@42 { /* u92 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x42>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcco_501: ina226@43 { /* u94 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x43>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcco_502: ina226@44 { /* u96 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x44>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcco_503: ina226@45 { /* u98 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x45>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc_1v8: ina226@46 { /* u100 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x46>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc_3v3: ina226@47 { /* u103 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x47>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc_1v2_ddr4: ina226@48 { /* u105 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x48>;
|
||||
shunt-resistor = <1000>;
|
||||
};
|
||||
vcc1v1_lp4: ina226@49 { /* u107 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x49>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vadj_fmc: ina226@4a { /* u110 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x4a>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
mgtyavcc: ina226@4b { /* u112 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x4b>;
|
||||
shunt-resistor = <1000>;
|
||||
};
|
||||
mgtyavtt: ina226@4c { /* u113 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x4c>;
|
||||
shunt-resistor = <1000>;
|
||||
};
|
||||
mgtyvccaux: ina226@4d { /* u116 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x4d>;
|
||||
shunt-resistor = <5000>;
|
||||
};
|
||||
vcc_bat: ina226@4e { /* u12 */
|
||||
compatible = "ti,ina226";
|
||||
reg = <0x4e>;
|
||||
shunt-resistor = <10000000>; /* 10 ohm */
|
||||
};
|
||||
};
|
||||
i2c@4 { /* LP_I2C_SM */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <4>;
|
||||
/* connected to J212G */
|
||||
/* zynqmp sm alert or samtec J212H */
|
||||
};
|
||||
/* 5-7 unused */
|
||||
};
|
||||
};
|
||||
|
||||
&i2c1 { /* i2c1 MIO 36-37 */
|
||||
status = "okay";
|
||||
clock-frequency = <400000>;
|
||||
|
||||
/* Must be enabled via J242 */
|
||||
eeprom_versal: eeprom@51 { /* x-prc-01-revA u116, x-prc-02-revA u12 */
|
||||
compatible = "atmel,24c02";
|
||||
reg = <0x51>;
|
||||
};
|
||||
|
||||
i2c-mux@74 { /* u35 */
|
||||
compatible = "nxp,pca9548";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x74>;
|
||||
/* reset-gpios = <&gpio SYSCTLR_IIC_MUX1_RESET_B GPIO_ACTIVE_HIGH>; */
|
||||
dc_i2c: i2c@0 { /* DC_I2C */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0>;
|
||||
/* Use for storing information about SC board */
|
||||
eeprom: eeprom@54 { /* u34 - m24128 16kB */
|
||||
compatible = "st,24c128", "atmel,24c128";
|
||||
reg = <0x54>;
|
||||
};
|
||||
si570_ref_clk: clock-generator@5d { /* u32 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x5d>; /* 570JAC000900DG */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <156250000>; /* FIXME every chip can be different */
|
||||
clock-frequency = <33333333>;
|
||||
clock-output-names = "REF_CLK"; /* FIXME */
|
||||
};
|
||||
/* Connection via Samtec J212D */
|
||||
/* Use for storing information about X-PRC card */
|
||||
x_prc_eeprom: eeprom@52 { /* x-prc-01-revA u120, x-prc-02-revA u16 */
|
||||
compatible = "atmel,24c02";
|
||||
reg = <0x52>;
|
||||
};
|
||||
|
||||
/* Use for setting up certain features on X-PRC card */
|
||||
x_prc_tca9534: gpio@22 { /* x-prc-01-revA u121, x-prc-02-revA u17 */
|
||||
compatible = "nxp,pca9534";
|
||||
reg = <0x22>;
|
||||
gpio-controller; /* IRQ not connected */
|
||||
#gpio-cells = <2>;
|
||||
gpio-line-names = "sw4_1", "sw4_2", "sw4_3", "sw4_4",
|
||||
"", "", "", "";
|
||||
gtr_sel0 {
|
||||
gpio-hog;
|
||||
gpios = <0 0>;
|
||||
input; /* FIXME add meaning */
|
||||
line-name = "sw4_1";
|
||||
};
|
||||
gtr_sel1 {
|
||||
gpio-hog;
|
||||
gpios = <1 0>;
|
||||
input; /* FIXME add meaning */
|
||||
line-name = "sw4_2";
|
||||
};
|
||||
gtr_sel2 {
|
||||
gpio-hog;
|
||||
gpios = <2 0>;
|
||||
input; /* FIXME add meaning */
|
||||
line-name = "sw4_3";
|
||||
};
|
||||
gtr_sel3 {
|
||||
gpio-hog;
|
||||
gpios = <3 0>;
|
||||
input; /* FIXME add meaning */
|
||||
line-name = "sw4_4";
|
||||
};
|
||||
};
|
||||
};
|
||||
i2c@1 { /* FMCP1_IIC */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <1>;
|
||||
/* FIXME connection to Samtec J51C */
|
||||
/* expected eeprom 0x50 SE cards */
|
||||
};
|
||||
i2c@2 { /* FMCP2_IIC */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <2>;
|
||||
/* FIXME connection to Samtec J53C */
|
||||
/* expected eeprom 0x50 SE cards */
|
||||
};
|
||||
i2c@3 { /* DDR4_DIMM1 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <3>;
|
||||
si570_ddr_dimm1: clock-generator@60 { /* u2 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x60>; /* 570BAB000299DG */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <156250000>; /* FIXME every chip can be different - 10MHZ_TO_810MHZ */
|
||||
clock-frequency = <33333333>;
|
||||
clock-output-names = "REF_CLK"; /* FIXME */
|
||||
};
|
||||
/* 0x50 SPD? */
|
||||
};
|
||||
i2c@4 { /* DDR4_DIMM2 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <4>;
|
||||
si570_ddr_dimm2: clock-generator@60 { /* u3 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x60>; /* 570BAB000299DG */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <156250000>; /* FIXME every chip can be different - 10MHZ_TO_810MHZ */
|
||||
clock-frequency = <33333333>;
|
||||
clock-output-names = "REF_CLK"; /* FIXME */
|
||||
};
|
||||
/* 0x50 SPD? */
|
||||
};
|
||||
i2c@5 { /* LPDDR4_SI570_CLK */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <5>;
|
||||
si570_lpddr4: clock-generator@60 { /* u4 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x60>; /* 570BAB000299DG */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <156250000>; /* FIXME every chip can be different - 10MHZ_TO_810MHZ */
|
||||
clock-frequency = <33333333>;
|
||||
clock-output-names = "LPDDR4_SI570_CLK";
|
||||
};
|
||||
};
|
||||
i2c@6 { /* HSDP_SI570 */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <6>;
|
||||
si570_hsdp: clock-generator@5d { /* u5 */
|
||||
#clock-cells = <0>;
|
||||
compatible = "silabs,si570";
|
||||
reg = <0x5d>; /* 570JAC000900DG */
|
||||
temperature-stability = <50>;
|
||||
factory-fout = <156250000>; /* FIXME every chip can be different - 10MHZ_TO_810MHZ */
|
||||
clock-frequency = <33333333>;
|
||||
clock-output-names = "HSDP_SI570";
|
||||
};
|
||||
};
|
||||
i2c@7 { /* PCIE_CLK */
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <7>;
|
||||
/* u36 0xd8 or 0xde - pcie clk buf - 9ZML1241EKILF PCIe GEN 4 CLOCK BUFFER FIXME - no driver */
|
||||
/* u37 0xd0 DNP - pcie clocking 1 - 9FGV1006BQ505LTGI - PCIe GEN 4 CLOCK GENERATOR FIXME - no linux driver */
|
||||
/* u38 0xca - pcie clocking 2 - 9ZML1241EKILF PCIe GEN 4 CLOCK BUFFER FIXME - no driver */
|
||||
clock_8t49n287: clock-generator@d8 { /* u39 8T49N240 - pcie clocking 3 */
|
||||
#clock-cells = <1>; /* author David Cater <david.cater@idt.com>*/
|
||||
compatible = "idt,8t49n240", "idt,8t49n241"; /* FIXME no driver for 240 */
|
||||
reg = <0xd8>;
|
||||
/* Documentation/devicetree/bindings/clock/idt,idt8t49n24x.txt */
|
||||
/* FIXME there input via J241 Samtec CLK1 and CLK0 from U38 - selection PIN */
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&usb0 {
|
||||
status = "okay";
|
||||
xlnx,usb-polarity = <0>;
|
||||
xlnx,usb-reset-mode = <0>;
|
||||
};
|
||||
|
||||
&dwc3_0 {
|
||||
status = "okay";
|
||||
dr_mode = "peripheral";
|
||||
snps,dis_u2_susphy_quirk;
|
||||
snps,dis_u3_susphy_quirk;
|
||||
maximum-speed = "super-speed";
|
||||
};
|
||||
|
||||
&usb1 {
|
||||
status = "okay";
|
||||
xlnx,usb-polarity = <0>;
|
||||
xlnx,usb-reset-mode = <0>;
|
||||
};
|
||||
|
||||
&dwc3_1 {
|
||||
/delete-property/ phy-names ;
|
||||
/delete-property/ phys ;
|
||||
dr_mode = "host";
|
||||
maximum-speed = "high-speed";
|
||||
snps,dis_u2_susphy_quirk ;
|
||||
snps,dis_u3_susphy_quirk ;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&xilinx_ams {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ams_ps {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ams_pl {
|
||||
status = "okay";
|
||||
};
|
89
arch/arm/dts/zynqmp-a2197-revA.dts
Normal file
89
arch/arm/dts/zynqmp-a2197-revA.dts
Normal file
@ -0,0 +1,89 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* dts file for Xilinx Versal a2197 RevA System Controller
|
||||
*
|
||||
* (C) Copyright 2019, Xilinx, Inc.
|
||||
*
|
||||
* Michal Simek <michal.simek@xilinx.com>
|
||||
*/
|
||||
/dts-v1/;
|
||||
|
||||
#include "zynqmp.dtsi"
|
||||
#include "zynqmp-clk-ccf.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
model = "Versal System Controller on a2197 board RevA";
|
||||
compatible = "xlnx,zynqmp-a2197-revA", "xlnx,zynqmp-a2197", "xlnx,zynqmp";
|
||||
|
||||
aliases {
|
||||
i2c0 = &i2c0;
|
||||
serial0 = &uart0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon";
|
||||
stdout-path = "serial0:115200n8";
|
||||
xlnx,eeprom = <&eeprom1 &eeprom0 &eeprom0>;
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x0 0x0 0x80000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 { /* uart0 MIO38-39 */
|
||||
status = "okay";
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
u-boot,dm-pre-reloc;
|
||||
clock-frequency = <400000>;
|
||||
i2c-mux@74 { /* this cover MGT board */
|
||||
compatible = "nxp,pca9548";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x74>;
|
||||
u-boot,dm-pre-reloc;
|
||||
/* FIXME reset connected to SYSCTRL_IIC_MUX0_RESET */
|
||||
i2c@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0>;
|
||||
/* Use for storing information about SC board */
|
||||
eeprom0: eeprom@50 { /* u96 - 24LC32A - 256B */
|
||||
compatible = "atmel,24c32";
|
||||
u-boot,dm-pre-reloc;
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
u-boot,dm-pre-reloc;
|
||||
clock-frequency = <400000>;
|
||||
i2c-mux@74 { /* This cover processor board */
|
||||
compatible = "nxp,pca9548";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x74>;
|
||||
u-boot,dm-pre-reloc;
|
||||
/* FIXME reset connected to SYSCTRL_IIC_MUX0_RESET */
|
||||
i2c@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0>;
|
||||
/* Use for storing information about SC board */
|
||||
eeprom1: eeprom@50 { /* u96 - 24LC32A - 256B */
|
||||
compatible = "atmel,24c32";
|
||||
u-boot,dm-pre-reloc;
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
@ -38,6 +38,7 @@
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <300000000>;
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
clk600: clk600 {
|
||||
|
@ -64,7 +64,7 @@
|
||||
&qspi {
|
||||
status = "okay";
|
||||
flash0: flash@0 {
|
||||
compatible = "n25q512a11", "spi-flash";
|
||||
compatible = "n25q512a11", "jedec,spi-nor";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
reg = <0x0>;
|
||||
|
@ -96,6 +96,29 @@
|
||||
};
|
||||
};
|
||||
|
||||
zynqmp_ipi {
|
||||
u-boot,dm-pre-reloc;
|
||||
compatible = "xlnx,zynqmp-ipi-mailbox";
|
||||
interrupt-parent = <&gic>;
|
||||
interrupts = <0 35 4>;
|
||||
xlnx,ipi-id = <0>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
ranges;
|
||||
|
||||
ipi_mailbox_pmu1: mailbox@ff990400 {
|
||||
u-boot,dm-pre-reloc;
|
||||
reg = <0x0 0xff9905c0 0x0 0x20>,
|
||||
<0x0 0xff9905e0 0x0 0x20>,
|
||||
<0x0 0xff990e80 0x0 0x20>,
|
||||
<0x0 0xff990ea0 0x0 0x20>;
|
||||
reg-names = "local_request_region" , "local_response_region",
|
||||
"remote_request_region", "remote_response_region";
|
||||
#mbox-cells = <1>;
|
||||
xlnx,ipi-id = <4>;
|
||||
};
|
||||
};
|
||||
|
||||
dcc: dcc {
|
||||
compatible = "arm,dcc";
|
||||
status = "disabled";
|
||||
@ -116,11 +139,22 @@
|
||||
method = "smc";
|
||||
};
|
||||
|
||||
pmufw: firmware {
|
||||
compatible = "xlnx,zynqmp-pm";
|
||||
method = "smc";
|
||||
interrupt-parent = <&gic>;
|
||||
interrupts = <0 35 4>;
|
||||
firmware {
|
||||
zynqmp-firmware {
|
||||
compatible = "xlnx,zynqmp-firmware";
|
||||
method = "smc";
|
||||
#power-domain-cells = <0x1>;
|
||||
u-boot,dm-pre-reloc;
|
||||
|
||||
zynqmp_power: zynqmp-power {
|
||||
u-boot,dm-pre-reloc;
|
||||
compatible = "xlnx,zynqmp-power";
|
||||
interrupt-parent = <&gic>;
|
||||
interrupts = <0 35 4>;
|
||||
mboxes = <&ipi_mailbox_pmu1 0>, <&ipi_mailbox_pmu1 1>;
|
||||
mbox-names = "tx", "rx";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
timer {
|
||||
|
@ -36,11 +36,6 @@ config COUNTER_FREQUENCY
|
||||
config ZYNQ_SDHCI_MAX_FREQ
|
||||
default 200000000
|
||||
|
||||
config VERSAL_OF_BOARD_DTB_ADDR
|
||||
hex
|
||||
default 0x1000
|
||||
depends on OF_BOARD
|
||||
|
||||
config IOU_SWITCH_DIVISOR0
|
||||
hex "IOU switch divisor0"
|
||||
default 0x20
|
||||
@ -54,4 +49,11 @@ config SYS_MEM_RSVD_FOR_MMU
|
||||
MMU table than the one which will be allocated during
|
||||
relocation.
|
||||
|
||||
config DEFINE_TCM_OCM_MMAP
|
||||
bool "Define TCM and OCM memory in MMU Table"
|
||||
default y if MP
|
||||
help
|
||||
This option if enabled defines the TCM and OCM memory and its
|
||||
memory attributes in MMU table entry.
|
||||
|
||||
endif
|
||||
|
@ -12,14 +12,21 @@
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
static struct mm_region versal_mem_map[] = {
|
||||
#define VERSAL_MEM_MAP_USED 5
|
||||
|
||||
#define DRAM_BANKS CONFIG_NR_DRAM_BANKS
|
||||
|
||||
#if defined(CONFIG_DEFINE_TCM_OCM_MMAP)
|
||||
#define TCM_MAP 1
|
||||
#else
|
||||
#define TCM_MAP 0
|
||||
#endif
|
||||
|
||||
/* +1 is end of list which needs to be empty */
|
||||
#define VERSAL_MEM_MAP_MAX (VERSAL_MEM_MAP_USED + DRAM_BANKS + TCM_MAP + 1)
|
||||
|
||||
static struct mm_region versal_mem_map[VERSAL_MEM_MAP_MAX] = {
|
||||
{
|
||||
.virt = 0x0UL,
|
||||
.phys = 0x0UL,
|
||||
.size = 0x80000000UL,
|
||||
.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
|
||||
PTE_BLOCK_INNER_SHARE
|
||||
}, {
|
||||
.virt = 0x80000000UL,
|
||||
.phys = 0x80000000UL,
|
||||
.size = 0x70000000UL,
|
||||
@ -33,12 +40,6 @@ static struct mm_region versal_mem_map[] = {
|
||||
.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
|
||||
PTE_BLOCK_NON_SHARE |
|
||||
PTE_BLOCK_PXN | PTE_BLOCK_UXN
|
||||
}, {
|
||||
.virt = 0xffe00000UL,
|
||||
.phys = 0xffe00000UL,
|
||||
.size = 0x00200000UL,
|
||||
.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
|
||||
PTE_BLOCK_INNER_SHARE
|
||||
}, {
|
||||
.virt = 0x400000000UL,
|
||||
.phys = 0x400000000UL,
|
||||
@ -59,12 +60,36 @@ static struct mm_region versal_mem_map[] = {
|
||||
.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
|
||||
PTE_BLOCK_NON_SHARE |
|
||||
PTE_BLOCK_PXN | PTE_BLOCK_UXN
|
||||
}, {
|
||||
/* List terminator */
|
||||
0,
|
||||
}
|
||||
};
|
||||
|
||||
void mem_map_fill(void)
|
||||
{
|
||||
int banks = VERSAL_MEM_MAP_USED;
|
||||
|
||||
#if defined(CONFIG_DEFINE_TCM_OCM_MMAP)
|
||||
versal_mem_map[banks].virt = 0xffe00000UL;
|
||||
versal_mem_map[banks].phys = 0xffe00000UL;
|
||||
versal_mem_map[banks].size = 0x00200000UL;
|
||||
versal_mem_map[banks].attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
|
||||
PTE_BLOCK_INNER_SHARE;
|
||||
banks = banks + 1;
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
|
||||
/* Zero size means no more DDR that's this is end */
|
||||
if (!gd->bd->bi_dram[i].size)
|
||||
break;
|
||||
|
||||
versal_mem_map[banks].virt = gd->bd->bi_dram[i].start;
|
||||
versal_mem_map[banks].phys = gd->bd->bi_dram[i].start;
|
||||
versal_mem_map[banks].size = gd->bd->bi_dram[i].size;
|
||||
versal_mem_map[banks].attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
|
||||
PTE_BLOCK_INNER_SHARE;
|
||||
banks = banks + 1;
|
||||
}
|
||||
}
|
||||
|
||||
struct mm_region *mem_map = versal_mem_map;
|
||||
|
||||
u64 get_page_table_size(void)
|
||||
@ -83,16 +108,27 @@ int reserve_mmu(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_OF_BOARD)
|
||||
void *board_fdt_blob_setup(void)
|
||||
int versal_pm_request(u32 api_id, u32 arg0, u32 arg1, u32 arg2,
|
||||
u32 arg3, u32 *ret_payload)
|
||||
{
|
||||
static void *fw_dtb = (void *)CONFIG_VERSAL_OF_BOARD_DTB_ADDR;
|
||||
struct pt_regs regs;
|
||||
|
||||
if (fdt_magic(fw_dtb) != FDT_MAGIC) {
|
||||
printf("DTB is not passed via %llx\n", (u64)fw_dtb);
|
||||
return NULL;
|
||||
if (current_el() == 3)
|
||||
return 0;
|
||||
|
||||
regs.regs[0] = PM_SIP_SVC | api_id;
|
||||
regs.regs[1] = ((u64)arg1 << 32) | arg0;
|
||||
regs.regs[2] = ((u64)arg3 << 32) | arg2;
|
||||
|
||||
smc_call(®s);
|
||||
|
||||
if (ret_payload) {
|
||||
ret_payload[0] = (u32)regs.regs[0];
|
||||
ret_payload[1] = upper_32_bits(regs.regs[0]);
|
||||
ret_payload[2] = (u32)regs.regs[1];
|
||||
ret_payload[3] = upper_32_bits(regs.regs[1]);
|
||||
ret_payload[4] = (u32)regs.regs[2];
|
||||
}
|
||||
|
||||
return fw_dtb;
|
||||
return regs.regs[0];
|
||||
}
|
||||
#endif
|
||||
|
@ -51,3 +51,26 @@ struct rpu_regs {
|
||||
};
|
||||
|
||||
#define rpu_base ((struct rpu_regs *)VERSAL_RPU_BASEADDR)
|
||||
|
||||
#define VERSAL_CRP_BASEADDR 0xF1260000
|
||||
|
||||
struct crp_regs {
|
||||
u32 reserved0[128];
|
||||
u32 boot_mode_usr;
|
||||
};
|
||||
|
||||
#define crp_base ((struct crp_regs *)VERSAL_CRP_BASEADDR)
|
||||
|
||||
/* Bootmode setting values */
|
||||
#define BOOT_MODES_MASK 0x0000000F
|
||||
#define QSPI_MODE_24BIT 0x00000001
|
||||
#define QSPI_MODE_32BIT 0x00000002
|
||||
#define SD_MODE 0x00000003 /* sd 0 */
|
||||
#define SD_MODE1 0x00000005 /* sd 1 */
|
||||
#define EMMC_MODE 0x00000006
|
||||
#define USB_MODE 0x00000007
|
||||
#define OSPI_MODE 0x00000008
|
||||
#define SD1_LSHFT_MODE 0x0000000E /* SD1 Level shifter */
|
||||
#define JTAG_MODE 0x00000000
|
||||
#define BOOT_MODE_USE_ALT 0x100
|
||||
#define BOOT_MODE_ALT_SHIFT 12
|
||||
|
@ -8,4 +8,65 @@ enum {
|
||||
TCM_SPLIT,
|
||||
};
|
||||
|
||||
enum pm_api_id {
|
||||
PM_GET_API_VERSION = 1,
|
||||
PM_SET_CONFIGURATION,
|
||||
PM_GET_NODE_STATUS,
|
||||
PM_GET_OPERATING_CHARACTERISTIC,
|
||||
PM_REGISTER_NOTIFIER,
|
||||
PM_REQUEST_SUSPEND,
|
||||
PM_SELF_SUSPEND,
|
||||
PM_FORCE_POWERDOWN,
|
||||
PM_ABORT_SUSPEND,
|
||||
PM_REQUEST_WAKEUP,
|
||||
PM_SET_WAKEUP_SOURCE,
|
||||
PM_SYSTEM_SHUTDOWN,
|
||||
PM_REQUEST_NODE,
|
||||
PM_RELEASE_NODE,
|
||||
PM_SET_REQUIREMENT,
|
||||
PM_SET_MAX_LATENCY,
|
||||
PM_RESET_ASSERT,
|
||||
PM_RESET_GET_STATUS,
|
||||
PM_MMIO_WRITE,
|
||||
PM_MMIO_READ,
|
||||
PM_PM_INIT_FINALIZE,
|
||||
PM_FPGA_LOAD,
|
||||
PM_FPGA_GET_STATUS,
|
||||
PM_GET_CHIPID,
|
||||
PM_SECURE_SHA = 26,
|
||||
PM_SECURE_RSA,
|
||||
PM_PINCTRL_REQUEST,
|
||||
PM_PINCTRL_RELEASE,
|
||||
PM_PINCTRL_GET_FUNCTION,
|
||||
PM_PINCTRL_SET_FUNCTION,
|
||||
PM_PINCTRL_CONFIG_PARAM_GET,
|
||||
PM_PINCTRL_CONFIG_PARAM_SET,
|
||||
PM_IOCTL,
|
||||
PM_QUERY_DATA,
|
||||
PM_CLOCK_ENABLE,
|
||||
PM_CLOCK_DISABLE,
|
||||
PM_CLOCK_GETSTATE,
|
||||
PM_CLOCK_SETDIVIDER,
|
||||
PM_CLOCK_GETDIVIDER,
|
||||
PM_CLOCK_SETRATE,
|
||||
PM_CLOCK_GETRATE,
|
||||
PM_CLOCK_SETPARENT,
|
||||
PM_CLOCK_GETPARENT,
|
||||
PM_SECURE_IMAGE,
|
||||
PM_FPGA_READ = 46,
|
||||
PM_SECURE_AES,
|
||||
PM_CLOCK_PLL_GETPARAM = 49,
|
||||
PM_REGISTER_ACCESS = 52,
|
||||
PM_EFUSE_ACCESS,
|
||||
PM_FEATURE_CHECK = 63,
|
||||
PM_API_MAX,
|
||||
};
|
||||
|
||||
#define PM_SIP_SVC 0xC2000000
|
||||
#define PAYLOAD_ARG_CNT 4U
|
||||
|
||||
void tcm_init(u8 mode);
|
||||
void mem_map_fill(void);
|
||||
|
||||
int versal_pm_request(u32 api_id, u32 arg0, u32 arg1, u32 arg2,
|
||||
u32 arg3, u32 *ret_payload);
|
||||
|
@ -8,7 +8,3 @@ obj-y += cpu.o
|
||||
obj-$(CONFIG_MP) += mp.o
|
||||
obj-$(CONFIG_SPL_BUILD) += spl.o handoff.o
|
||||
obj-$(CONFIG_ZYNQMP_PSU_INIT_ENABLED) += psu_spl_init.o
|
||||
|
||||
ifneq ($(CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE),"")
|
||||
obj-$(CONFIG_SPL_BUILD) += pmu_ipc.o
|
||||
endif
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/armv8/mmu.h>
|
||||
#include <asm/io.h>
|
||||
#include <zynqmp_firmware.h>
|
||||
|
||||
#define ZYNQ_SILICON_VER_MASK 0xF000
|
||||
#define ZYNQ_SILICON_VER_SHIFT 12
|
||||
@ -179,29 +180,6 @@ int __maybe_unused invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2,
|
||||
return regs.regs[0];
|
||||
}
|
||||
|
||||
unsigned int __maybe_unused zynqmp_pmufw_version(void)
|
||||
{
|
||||
int ret;
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
static u32 pm_api_version = ZYNQMP_PM_VERSION_INVALID;
|
||||
|
||||
/*
|
||||
* Get PMU version only once and later
|
||||
* just return stored values instead of
|
||||
* asking PMUFW again.
|
||||
*/
|
||||
if (pm_api_version == ZYNQMP_PM_VERSION_INVALID) {
|
||||
ret = invoke_smc(ZYNQMP_SIP_SVC_GET_API_VERSION, 0, 0, 0, 0,
|
||||
ret_payload);
|
||||
pm_api_version = ret_payload[1];
|
||||
|
||||
if (ret)
|
||||
panic("PMUFW is not found - Please load it!\n");
|
||||
}
|
||||
|
||||
return pm_api_version;
|
||||
}
|
||||
|
||||
static int zynqmp_mmio_rawwrite(const u32 address,
|
||||
const u32 mask,
|
||||
const u32 value)
|
||||
|
@ -10,7 +10,6 @@
|
||||
#define PAYLOAD_ARG_CNT 5
|
||||
|
||||
#define ZYNQMP_CSU_SILICON_VER_MASK 0xF
|
||||
#define ZYNQMP_SIP_SVC_PM_SECURE_IMG_LOAD 0xC200002D
|
||||
#define KEY_PTR_LEN 32
|
||||
|
||||
#define ZYNQMP_FPGA_BIT_AUTH_DDR 1
|
||||
@ -21,21 +20,6 @@
|
||||
|
||||
#define ZYNQMP_FPGA_AUTH_DDR 1
|
||||
|
||||
#define ZYNQMP_SIP_SVC_GET_API_VERSION 0xC2000001
|
||||
|
||||
#define ZYNQMP_PM_VERSION_MAJOR 1
|
||||
#define ZYNQMP_PM_VERSION_MINOR 0
|
||||
#define ZYNQMP_PM_VERSION_MAJOR_SHIFT 16
|
||||
#define ZYNQMP_PM_VERSION_MINOR_MASK 0xFFFF
|
||||
|
||||
#define ZYNQMP_PM_VERSION \
|
||||
((ZYNQMP_PM_VERSION_MAJOR << ZYNQMP_PM_VERSION_MAJOR_SHIFT) | \
|
||||
ZYNQMP_PM_VERSION_MINOR)
|
||||
|
||||
#define ZYNQMP_PM_VERSION_INVALID ~0
|
||||
|
||||
#define PMUFW_V1_0 ((1 << ZYNQMP_PM_VERSION_MAJOR_SHIFT) | 0)
|
||||
|
||||
enum {
|
||||
IDCODE,
|
||||
VERSION,
|
||||
@ -54,12 +38,16 @@ enum {
|
||||
TCM_SPLIT,
|
||||
};
|
||||
|
||||
struct zynqmp_ipi_msg {
|
||||
size_t len;
|
||||
u32 *buf;
|
||||
};
|
||||
|
||||
int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
|
||||
unsigned int zynqmp_get_silicon_version(void);
|
||||
|
||||
void handoff_setup(void);
|
||||
|
||||
unsigned int zynqmp_pmufw_version(void);
|
||||
int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value);
|
||||
int zynqmp_mmio_read(const u32 address, u32 *value);
|
||||
int invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2, u32 arg3,
|
||||
@ -72,6 +60,4 @@ int chip_id(unsigned char id);
|
||||
void tcm_init(u8 mode);
|
||||
#endif
|
||||
|
||||
void zynqmp_pmufw_load_config_object(const void *cfg_obj, size_t size);
|
||||
|
||||
#endif /* _ASM_ARCH_SYS_PROTO_H */
|
||||
|
@ -1,112 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Inter-Processor Communication with the Platform Management Unit (PMU)
|
||||
* firmware.
|
||||
*
|
||||
* (C) Copyright 2019 Luca Ceresoli
|
||||
* Luca Ceresoli <luca@lucaceresoli.net>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
|
||||
/* IPI bitmasks, register base and register offsets */
|
||||
#define IPI_BIT_MASK_APU 0x00001
|
||||
#define IPI_BIT_MASK_PMU0 0x10000
|
||||
#define IPI_REG_BASE_APU 0xFF300000
|
||||
#define IPI_REG_BASE_PMU0 0xFF330000
|
||||
#define IPI_REG_OFFSET_TRIG 0x00
|
||||
#define IPI_REG_OFFSET_OBR 0x04
|
||||
|
||||
/* IPI mailbox buffer offsets */
|
||||
#define IPI_BUF_BASE_APU 0xFF990400
|
||||
#define IPI_BUF_OFFSET_TARGET_PMU 0x1C0
|
||||
#define IPI_BUF_OFFSET_REQ 0x00
|
||||
#define IPI_BUF_OFFSET_RESP 0x20
|
||||
|
||||
#define PMUFW_PAYLOAD_ARG_CNT 8
|
||||
|
||||
/* PMUFW commands */
|
||||
#define PMUFW_CMD_SET_CONFIGURATION 2
|
||||
|
||||
static void pmu_ipc_send_request(const u32 *req, size_t req_len)
|
||||
{
|
||||
u32 *mbx = (u32 *)(IPI_BUF_BASE_APU +
|
||||
IPI_BUF_OFFSET_TARGET_PMU +
|
||||
IPI_BUF_OFFSET_REQ);
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < req_len; i++)
|
||||
writel(req[i], &mbx[i]);
|
||||
}
|
||||
|
||||
static void pmu_ipc_read_response(unsigned int *value, size_t count)
|
||||
{
|
||||
u32 *mbx = (u32 *)(IPI_BUF_BASE_APU +
|
||||
IPI_BUF_OFFSET_TARGET_PMU +
|
||||
IPI_BUF_OFFSET_RESP);
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
value[i] = readl(&mbx[i]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send request to PMU and get the response.
|
||||
*
|
||||
* @req: Request buffer. Byte 0 is the API ID, other bytes are optional
|
||||
* parameters.
|
||||
* @req_len: Request length in number of 32-bit words.
|
||||
* @res: Response buffer. Byte 0 is the error code, other bytes are
|
||||
* optional parameters. Optional, if @res_maxlen==0 the parameters
|
||||
* will not be read.
|
||||
* @res_maxlen: Space allocated for the response in number of 32-bit words.
|
||||
*
|
||||
* @return Error code returned by the PMU (i.e. the first word of the response)
|
||||
*/
|
||||
static int pmu_ipc_request(const u32 *req, size_t req_len,
|
||||
u32 *res, size_t res_maxlen)
|
||||
{
|
||||
u32 status;
|
||||
|
||||
if (req_len > PMUFW_PAYLOAD_ARG_CNT ||
|
||||
res_maxlen > PMUFW_PAYLOAD_ARG_CNT)
|
||||
return -EINVAL;
|
||||
|
||||
pmu_ipc_send_request(req, req_len);
|
||||
|
||||
/* Raise Inter-Processor Interrupt to PMU and wait for response */
|
||||
writel(IPI_BIT_MASK_PMU0, IPI_REG_BASE_APU + IPI_REG_OFFSET_TRIG);
|
||||
do {
|
||||
status = readl(IPI_REG_BASE_APU + IPI_REG_OFFSET_OBR);
|
||||
} while (status & IPI_BIT_MASK_PMU0);
|
||||
|
||||
pmu_ipc_read_response(res, res_maxlen);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a configuration object to the PMU firmware.
|
||||
*
|
||||
* @cfg_obj: Pointer to the configuration object
|
||||
* @size: Size of @cfg_obj in bytes
|
||||
*/
|
||||
void zynqmp_pmufw_load_config_object(const void *cfg_obj, size_t size)
|
||||
{
|
||||
const u32 request[] = {
|
||||
PMUFW_CMD_SET_CONFIGURATION,
|
||||
(u32)((u64)cfg_obj)
|
||||
};
|
||||
u32 response;
|
||||
int err;
|
||||
|
||||
printf("Loading PMUFW cfg obj (%ld bytes)\n", size);
|
||||
|
||||
err = pmu_ipc_request(request, ARRAY_SIZE(request), &response, 1);
|
||||
if (err)
|
||||
panic("Cannot load PMUFW configuration object (%d)\n", err);
|
||||
if (response != 0)
|
||||
panic("PMUFW returned 0x%08x status!\n", response);
|
||||
}
|
@ -20,6 +20,14 @@ config TARGET_MICROBLAZE_GENERIC
|
||||
|
||||
endchoice
|
||||
|
||||
config STACK_SIZE
|
||||
hex "Define max stack size that can be used by u-boot"
|
||||
default 0x200000
|
||||
help
|
||||
Defines Max stack size that can be used by u-boot so that the
|
||||
initrd_high will be calculated as base stack pointer minus this
|
||||
stack size.
|
||||
|
||||
source "board/xilinx/microblaze-generic/Kconfig"
|
||||
|
||||
config SPL_LDSCRIPT
|
||||
|
@ -6,8 +6,12 @@
|
||||
#ifndef _ASM_CONFIG_H_
|
||||
#define _ASM_CONFIG_H_
|
||||
|
||||
#define CONFIG_LMB
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#define CONFIG_NEEDS_MANUAL_RELOC
|
||||
#endif
|
||||
|
||||
#define CONFIG_SYS_BOOT_RAMDISK_HIGH
|
||||
|
||||
#endif
|
||||
|
@ -15,71 +15,111 @@
|
||||
#include <u-boot/zlib.h>
|
||||
#include <asm/byteorder.h>
|
||||
|
||||
int do_bootm_linux(int flag, int argc, char * const argv[],
|
||||
bootm_headers_t *images)
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
static ulong get_sp(void)
|
||||
{
|
||||
/* First parameter is mapped to $r5 for kernel boot args */
|
||||
void (*thekernel) (char *, ulong, ulong);
|
||||
char *commandline = env_get("bootargs");
|
||||
ulong rd_data_start, rd_data_end;
|
||||
ulong ret;
|
||||
|
||||
asm("addik %0, r1, 0" : "=r"(ret) : );
|
||||
return ret;
|
||||
}
|
||||
|
||||
void arch_lmb_reserve(struct lmb *lmb)
|
||||
{
|
||||
ulong sp, bank_end;
|
||||
int bank;
|
||||
|
||||
/*
|
||||
* allow the PREP bootm subcommand, it is required for bootm to work
|
||||
* Booting a (Linux) kernel image
|
||||
*
|
||||
* Allocate space for command line and board info - the
|
||||
* address should be as high as possible within the reach of
|
||||
* the kernel (see CONFIG_SYS_BOOTMAPSZ settings), but in unused
|
||||
* memory, which means far enough below the current stack
|
||||
* pointer.
|
||||
*/
|
||||
if (flag & BOOTM_STATE_OS_PREP)
|
||||
return 0;
|
||||
sp = get_sp();
|
||||
debug("## Current stack ends at 0x%08lx ", sp);
|
||||
|
||||
if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
|
||||
return 1;
|
||||
/* adjust sp by 4K to be safe */
|
||||
sp -= 4096;
|
||||
for (bank = 0; bank < CONFIG_NR_DRAM_BANKS; bank++) {
|
||||
if (sp < gd->bd->bi_dram[bank].start)
|
||||
continue;
|
||||
bank_end = gd->bd->bi_dram[bank].start +
|
||||
gd->bd->bi_dram[bank].size;
|
||||
if (sp >= bank_end)
|
||||
continue;
|
||||
lmb_reserve(lmb, sp, bank_end - sp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int ret;
|
||||
|
||||
char *of_flat_tree = NULL;
|
||||
#if defined(CONFIG_OF_LIBFDT)
|
||||
/* did generic code already find a device tree? */
|
||||
if (images->ft_len)
|
||||
of_flat_tree = images->ft_addr;
|
||||
#endif
|
||||
static void boot_jump_linux(bootm_headers_t *images, int flag)
|
||||
{
|
||||
void (*thekernel)(char *cmdline, ulong rd, ulong dt);
|
||||
ulong dt = (ulong)images->ft_addr;
|
||||
ulong rd_start = images->initrd_start;
|
||||
ulong cmdline = images->cmdline_start;
|
||||
int fake = (flag & BOOTM_STATE_OS_FAKE_GO);
|
||||
|
||||
thekernel = (void (*)(char *, ulong, ulong))images->ep;
|
||||
|
||||
/* find ramdisk */
|
||||
ret = boot_get_ramdisk(argc, argv, images, IH_ARCH_MICROBLAZE,
|
||||
&rd_data_start, &rd_data_end);
|
||||
if (ret)
|
||||
return 1;
|
||||
|
||||
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
|
||||
|
||||
if (!of_flat_tree && argc > 1)
|
||||
of_flat_tree = (char *)simple_strtoul(argv[1], NULL, 16);
|
||||
|
||||
/* fixup the initrd now that we know where it should be */
|
||||
if (images->rd_start && images->rd_end && of_flat_tree) {
|
||||
ret = fdt_initrd(of_flat_tree, images->rd_start,
|
||||
images->rd_end);
|
||||
if (ret)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("## Transferring control to Linux (at address 0x%08lx) ",
|
||||
(ulong)thekernel);
|
||||
printf("ramdisk 0x%08lx, FDT 0x%08lx...\n",
|
||||
rd_data_start, (ulong) of_flat_tree);
|
||||
printf("cmdline 0x%08lx, ramdisk 0x%08lx, FDT 0x%08lx...\n",
|
||||
cmdline, rd_start, dt);
|
||||
#endif
|
||||
|
||||
#ifdef XILINX_USE_DCACHE
|
||||
flush_cache(0, XILINX_DCACHE_BYTE_SIZE);
|
||||
#endif
|
||||
/*
|
||||
* Linux Kernel Parameters (passing device tree):
|
||||
* r5: pointer to command line
|
||||
* r6: pointer to ramdisk
|
||||
* r7: pointer to the fdt, followed by the board info data
|
||||
*/
|
||||
thekernel(commandline, rd_data_start, (ulong)of_flat_tree);
|
||||
/* does not return */
|
||||
|
||||
if (!fake) {
|
||||
/*
|
||||
* Linux Kernel Parameters (passing device tree):
|
||||
* r5: pointer to command line
|
||||
* r6: pointer to ramdisk
|
||||
* r7: pointer to the fdt, followed by the board info data
|
||||
*/
|
||||
thekernel((char *)cmdline, rd_start, dt);
|
||||
/* does not return */
|
||||
}
|
||||
}
|
||||
|
||||
static void boot_prep_linux(bootm_headers_t *images)
|
||||
{
|
||||
if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) {
|
||||
printf("using: FDT\n");
|
||||
if (image_setup_linux(images)) {
|
||||
printf("FDT creation failed! hanging...");
|
||||
hang();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int do_bootm_linux(int flag, int argc, char * const argv[],
|
||||
bootm_headers_t *images)
|
||||
{
|
||||
images->cmdline_start = (ulong)env_get("bootargs");
|
||||
|
||||
/* cmdline init is the part of 'prep' and nothing to do for 'bdt' */
|
||||
if (flag & BOOTM_STATE_OS_BD_T || flag & BOOTM_STATE_OS_CMDLINE)
|
||||
return -1;
|
||||
|
||||
if (flag & BOOTM_STATE_OS_PREP) {
|
||||
boot_prep_linux(images);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (flag & (BOOTM_STATE_OS_GO | BOOTM_STATE_OS_FAKE_GO)) {
|
||||
boot_jump_linux(images, flag);
|
||||
return 0;
|
||||
}
|
||||
|
||||
boot_prep_linux(images);
|
||||
boot_jump_linux(images, flag);
|
||||
return 1;
|
||||
}
|
||||
|
@ -39,3 +39,11 @@ config XILINX_PS_INIT_FILE
|
||||
before the build.
|
||||
|
||||
endif
|
||||
|
||||
config XILINX_OF_BOARD_DTB_ADDR
|
||||
hex
|
||||
default 0x1000 if ARCH_VERSAL
|
||||
default 0x100000 if ARCH_ZYNQ || ARCH_ZYNQMP
|
||||
depends on OF_BOARD
|
||||
help
|
||||
Offset in the memory where the board configuration DTB is placed.
|
||||
|
10
board/xilinx/bootscripts/qspiboot.cmd
Normal file
10
board/xilinx/bootscripts/qspiboot.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
# This is an example file to generate boot.scr - a boot script for U-Boot
|
||||
# This example only target for qspi boot, sameway it can be created for boot
|
||||
# devices like nand.
|
||||
# Generate boot.scr:
|
||||
# ./tools/mkimage -c none -A arm -T script -d qspiboot.cmd boot.scr
|
||||
#
|
||||
# It requires a list of environment variables to be defined before load:
|
||||
# fdt_addr, fdt_offset, fdt_size, kernel_addr, kernel_offset, kernel_size
|
||||
#
|
||||
sf probe 0 0 0 && sf read $fdt_addr $fdt_offset $fdt_size && sf read $kernel_addr $kernel_offset $kernel_size && booti $kernel_addr - $fdt_addr
|
10
board/xilinx/bootscripts/sdboot.cmd
Normal file
10
board/xilinx/bootscripts/sdboot.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
# This is an example file to generate boot.scr - a boot script for U-Boot
|
||||
# This example only target for qspi boot, sameway it can be created for boot
|
||||
# devices like nand.
|
||||
# Generate boot.scr:
|
||||
# ./tools/mkimage -c none -A arm -T script -d sdboot.cmd boot.scr
|
||||
#
|
||||
# It requires a list of environment variables used below to be defined
|
||||
# before load
|
||||
#
|
||||
mmc dev $devnum && mmcinfo && run uenvboot || run sdroot$devnum;load mmc $devnum:$partid $fdt_addr system.dtb && load mmc $devnum:$partid $kernel_addr Image && booti $kernel_addr - $fdt_addr
|
@ -36,3 +36,17 @@ int zynq_board_read_rom_ethaddr(unsigned char *ethaddr)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_OF_BOARD)
|
||||
void *board_fdt_blob_setup(void)
|
||||
{
|
||||
static void *fw_dtb = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR;
|
||||
|
||||
if (fdt_magic(fw_dtb) != FDT_MAGIC) {
|
||||
printf("DTB is not passed via %p\n", fw_dtb);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return fw_dtb;
|
||||
}
|
||||
#endif
|
||||
|
@ -12,20 +12,12 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <dm.h>
|
||||
#include <dm/lists.h>
|
||||
#include <fdtdec.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/microblaze_intc.h>
|
||||
#include <asm/asm.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <dm/uclass.h>
|
||||
#include <wdt.h>
|
||||
#include <linux/sizes.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
ulong ram_base;
|
||||
|
||||
int dram_init_banksize(void)
|
||||
{
|
||||
return fdtdec_setup_memory_banksize();
|
||||
@ -41,6 +33,8 @@ int dram_init(void)
|
||||
|
||||
int board_late_init(void)
|
||||
{
|
||||
ulong max_size, lowmem_size;
|
||||
|
||||
#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_SYSRESET_MICROBLAZE)
|
||||
int ret;
|
||||
|
||||
@ -49,5 +43,21 @@ int board_late_init(void)
|
||||
if (ret)
|
||||
printf("Warning: No reset driver: ret=%d\n", ret);
|
||||
#endif
|
||||
|
||||
if (!(gd->flags & GD_FLG_ENV_DEFAULT)) {
|
||||
debug("Saved variables - Skipping\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
max_size = gd->start_addr_sp - CONFIG_STACK_SIZE;
|
||||
max_size = round_down(max_size, SZ_16M);
|
||||
|
||||
/* Linux default LOWMEM_SIZE is 0x30000000 = 768MB */
|
||||
lowmem_size = gd->ram_base + 768 * 1024 * 1024;
|
||||
|
||||
env_set_addr("initrd_high", (void *)min_t(ulong, max_size,
|
||||
lowmem_size));
|
||||
env_set_addr("fdt_high", (void *)min_t(ulong, max_size, lowmem_size));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -5,3 +5,4 @@
|
||||
#
|
||||
|
||||
obj-y := board.o
|
||||
obj-y += ../common/board.o
|
||||
|
@ -9,13 +9,27 @@
|
||||
#include <malloc.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <dm/device.h>
|
||||
#include <dm/uclass.h>
|
||||
#include <versalpl.h>
|
||||
#include <linux/sizes.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#if defined(CONFIG_FPGA_VERSALPL)
|
||||
static xilinx_desc versalpl = XILINX_VERSAL_DESC;
|
||||
#endif
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
printf("EL Level:\tEL%d\n", current_el());
|
||||
|
||||
#if defined(CONFIG_FPGA_VERSALPL)
|
||||
fpga_init();
|
||||
fpga_add(fpga_xilinx, &versalpl);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -65,9 +79,133 @@ int board_early_init_r(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int board_late_init(void)
|
||||
{
|
||||
u32 reg = 0;
|
||||
u8 bootmode;
|
||||
struct udevice *dev;
|
||||
int bootseq = -1;
|
||||
int bootseq_len = 0;
|
||||
int env_targets_len = 0;
|
||||
const char *mode;
|
||||
char *new_targets;
|
||||
char *env_targets;
|
||||
ulong initrd_hi;
|
||||
|
||||
if (!(gd->flags & GD_FLG_ENV_DEFAULT)) {
|
||||
debug("Saved variables - Skipping\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
reg = readl(&crp_base->boot_mode_usr);
|
||||
|
||||
if (reg >> BOOT_MODE_ALT_SHIFT)
|
||||
reg >>= BOOT_MODE_ALT_SHIFT;
|
||||
|
||||
bootmode = reg & BOOT_MODES_MASK;
|
||||
|
||||
puts("Bootmode: ");
|
||||
switch (bootmode) {
|
||||
case USB_MODE:
|
||||
puts("USB_MODE\n");
|
||||
mode = "dfu_usb";
|
||||
break;
|
||||
case JTAG_MODE:
|
||||
puts("JTAG_MODE\n");
|
||||
mode = "jtag pxe dhcp";
|
||||
break;
|
||||
case QSPI_MODE_24BIT:
|
||||
puts("QSPI_MODE_24\n");
|
||||
mode = "xspi0";
|
||||
break;
|
||||
case QSPI_MODE_32BIT:
|
||||
puts("QSPI_MODE_32\n");
|
||||
mode = "xspi0";
|
||||
break;
|
||||
case OSPI_MODE:
|
||||
puts("OSPI_MODE\n");
|
||||
mode = "xspi0";
|
||||
break;
|
||||
case EMMC_MODE:
|
||||
puts("EMMC_MODE\n");
|
||||
mode = "mmc0";
|
||||
break;
|
||||
case SD_MODE:
|
||||
puts("SD_MODE\n");
|
||||
if (uclass_get_device_by_name(UCLASS_MMC,
|
||||
"sdhci@f1040000", &dev)) {
|
||||
puts("Boot from SD0 but without SD0 enabled!\n");
|
||||
return -1;
|
||||
}
|
||||
debug("mmc0 device found at %p, seq %d\n", dev, dev->seq);
|
||||
|
||||
mode = "mmc";
|
||||
bootseq = dev->seq;
|
||||
break;
|
||||
case SD1_LSHFT_MODE:
|
||||
puts("LVL_SHFT_");
|
||||
/* fall through */
|
||||
case SD_MODE1:
|
||||
puts("SD_MODE1\n");
|
||||
if (uclass_get_device_by_name(UCLASS_MMC,
|
||||
"sdhci@f1050000", &dev)) {
|
||||
puts("Boot from SD1 but without SD1 enabled!\n");
|
||||
return -1;
|
||||
}
|
||||
debug("mmc1 device found at %p, seq %d\n", dev, dev->seq);
|
||||
|
||||
mode = "mmc";
|
||||
bootseq = dev->seq;
|
||||
break;
|
||||
default:
|
||||
mode = "";
|
||||
printf("Invalid Boot Mode:0x%x\n", bootmode);
|
||||
break;
|
||||
}
|
||||
|
||||
if (bootseq >= 0) {
|
||||
bootseq_len = snprintf(NULL, 0, "%i", bootseq);
|
||||
debug("Bootseq len: %x\n", bootseq_len);
|
||||
}
|
||||
|
||||
/*
|
||||
* One terminating char + one byte for space between mode
|
||||
* and default boot_targets
|
||||
*/
|
||||
env_targets = env_get("boot_targets");
|
||||
if (env_targets)
|
||||
env_targets_len = strlen(env_targets);
|
||||
|
||||
new_targets = calloc(1, strlen(mode) + env_targets_len + 2 +
|
||||
bootseq_len);
|
||||
if (!new_targets)
|
||||
return -ENOMEM;
|
||||
|
||||
if (bootseq >= 0)
|
||||
sprintf(new_targets, "%s%x %s", mode, bootseq,
|
||||
env_targets ? env_targets : "");
|
||||
else
|
||||
sprintf(new_targets, "%s %s", mode,
|
||||
env_targets ? env_targets : "");
|
||||
|
||||
env_set("boot_targets", new_targets);
|
||||
|
||||
initrd_hi = gd->start_addr_sp - CONFIG_STACK_SIZE;
|
||||
initrd_hi = round_down(initrd_hi, SZ_16M);
|
||||
env_set_addr("initrd_high", (void *)initrd_hi);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int dram_init_banksize(void)
|
||||
{
|
||||
fdtdec_setup_memory_banksize();
|
||||
int ret;
|
||||
|
||||
ret = fdtdec_setup_memory_banksize();
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
mem_map_fill();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ int board_late_init(void)
|
||||
env_set("modeboot", "norboot");
|
||||
break;
|
||||
case ZYNQ_BM_SD:
|
||||
mode = "mmc";
|
||||
mode = "mmc0";
|
||||
env_set("modeboot", "sdboot");
|
||||
break;
|
||||
case ZYNQ_BM_JTAG:
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <malloc.h>
|
||||
#include <zynqmp_firmware.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/io.h>
|
||||
|
1
board/xilinx/zynqmp/zynqmp-a2197-g-revA
Symbolic link
1
board/xilinx/zynqmp/zynqmp-a2197-g-revA
Symbolic link
@ -0,0 +1 @@
|
||||
zynqmp-a2197-revA
|
1
board/xilinx/zynqmp/zynqmp-a2197-m-revA
Symbolic link
1
board/xilinx/zynqmp/zynqmp-a2197-m-revA
Symbolic link
@ -0,0 +1 @@
|
||||
zynqmp-a2197-revA
|
1
board/xilinx/zynqmp/zynqmp-a2197-p-revA
Symbolic link
1
board/xilinx/zynqmp/zynqmp-a2197-p-revA
Symbolic link
@ -0,0 +1 @@
|
||||
zynqmp-a2197-revA
|
1171
board/xilinx/zynqmp/zynqmp-a2197-revA/psu_init_gpl.c
Normal file
1171
board/xilinx/zynqmp/zynqmp-a2197-revA/psu_init_gpl.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -21,7 +21,9 @@
|
||||
#include <usb.h>
|
||||
#include <dwc3-uboot.h>
|
||||
#include <zynqmppl.h>
|
||||
#include <zynqmp_firmware.h>
|
||||
#include <g_dnl.h>
|
||||
#include <linux/sizes.h>
|
||||
|
||||
#include "pm_cfg_obj.h"
|
||||
|
||||
@ -173,6 +175,14 @@ static const struct {
|
||||
.id = 0x66,
|
||||
.name = "39dr",
|
||||
},
|
||||
{
|
||||
.id = 0x7b,
|
||||
.name = "48dr",
|
||||
},
|
||||
{
|
||||
.id = 0x7e,
|
||||
.name = "49dr",
|
||||
},
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -308,18 +318,6 @@ static char *zynqmp_get_silicon_idcode_name(void)
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
int ret = 0;
|
||||
#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_CLK_ZYNQMP)
|
||||
u32 pm_api_version;
|
||||
|
||||
pm_api_version = zynqmp_pmufw_version();
|
||||
printf("PMUFW:\tv%d.%d\n",
|
||||
pm_api_version >> ZYNQMP_PM_VERSION_MAJOR_SHIFT,
|
||||
pm_api_version & ZYNQMP_PM_VERSION_MINOR_MASK);
|
||||
|
||||
if (pm_api_version < ZYNQMP_PM_VERSION)
|
||||
panic("PMUFW version error. Expected: v%d.%d\n",
|
||||
ZYNQMP_PM_VERSION_MAJOR, ZYNQMP_PM_VERSION_MINOR);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ZYNQMP_PSU_INIT_ENABLED)
|
||||
ret = psu_init();
|
||||
@ -330,6 +328,12 @@ int board_early_init_f(void)
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
struct udevice *dev;
|
||||
|
||||
uclass_get_device_by_name(UCLASS_FIRMWARE, "zynqmp-power", &dev);
|
||||
if (!dev)
|
||||
panic("PMU Firmware device not found - Enable it");
|
||||
|
||||
#if defined(CONFIG_SPL_BUILD)
|
||||
/* Check *at build time* if the filename is an non-empty string */
|
||||
if (sizeof(CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE) > 1)
|
||||
@ -530,6 +534,7 @@ int board_late_init(void)
|
||||
char *new_targets;
|
||||
char *env_targets;
|
||||
int ret;
|
||||
ulong initrd_hi;
|
||||
|
||||
#if defined(CONFIG_USB_ETHER) && !defined(CONFIG_USB_GADGET_DOWNLOAD)
|
||||
usb_ether_init();
|
||||
@ -562,7 +567,7 @@ int board_late_init(void)
|
||||
break;
|
||||
case JTAG_MODE:
|
||||
puts("JTAG_MODE\n");
|
||||
mode = "pxe dhcp";
|
||||
mode = "jtag pxe dhcp";
|
||||
env_set("modeboot", "jtagboot");
|
||||
break;
|
||||
case QSPI_MODE_24BIT:
|
||||
@ -647,6 +652,10 @@ int board_late_init(void)
|
||||
|
||||
env_set("boot_targets", new_targets);
|
||||
|
||||
initrd_hi = gd->start_addr_sp - CONFIG_STACK_SIZE;
|
||||
initrd_hi = round_down(initrd_hi, SZ_16M);
|
||||
env_set_addr("initrd_high", (void *)initrd_hi);
|
||||
|
||||
reset_reason();
|
||||
|
||||
return 0;
|
||||
|
@ -48,6 +48,8 @@ config SYS_LONGHELP
|
||||
|
||||
config SYS_PROMPT
|
||||
string "Shell prompt"
|
||||
default "Zynq> " if ARCH_ZYNQ
|
||||
default "ZynqMP> " if ARCH_ZYNQMP
|
||||
default "=> "
|
||||
help
|
||||
This string is displayed in the command line to the left of the
|
||||
|
@ -583,7 +583,7 @@ ulong env_get_bootm_low(void)
|
||||
|
||||
#if defined(CONFIG_SYS_SDRAM_BASE)
|
||||
return CONFIG_SYS_SDRAM_BASE;
|
||||
#elif defined(CONFIG_ARM)
|
||||
#elif defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE)
|
||||
return gd->bd->bi_dram[0].start;
|
||||
#else
|
||||
return 0;
|
||||
@ -600,7 +600,8 @@ phys_size_t env_get_bootm_size(void)
|
||||
return tmp;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ARM) && defined(CONFIG_NR_DRAM_BANKS)
|
||||
#if (defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE)) && \
|
||||
defined(CONFIG_NR_DRAM_BANKS)
|
||||
start = gd->bd->bi_dram[0].start;
|
||||
size = gd->bd->bi_dram[0].size;
|
||||
#else
|
||||
|
@ -139,6 +139,7 @@ config SPL_TEXT_BASE
|
||||
default 0x10060 if MACH_SUN50I || MACH_SUN50I_H5 || MACH_SUN9I
|
||||
default 0x20060 if MACH_SUN50I_H6
|
||||
default 0x00060 if ARCH_SUNXI
|
||||
default 0xfffc0000 if ARCH_ZYNQMP
|
||||
default 0x0
|
||||
help
|
||||
The address in memory that SPL will be running from.
|
||||
|
@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_ZYNQ_SDHCI_MAX_FREQ=15000000
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_BOOTMENU=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_BIND=y
|
||||
|
@ -9,7 +9,6 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
||||
CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_SPL_ZYNQMP_TWO_SDHCI=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -17,7 +16,6 @@ CONFIG_SPL_LOAD_FIT=y
|
||||
CONFIG_BOOTDELAY=0
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADP=y
|
||||
|
@ -37,10 +37,12 @@ CONFIG_CMD_DHCP=y
|
||||
CONFIG_CMD_TFTPPUT=y
|
||||
CONFIG_CMD_MII=y
|
||||
CONFIG_CMD_PING=y
|
||||
CONFIG_CMD_CACHE=y
|
||||
CONFIG_CMD_JFFS2=y
|
||||
CONFIG_SPL_OF_CONTROL=y
|
||||
CONFIG_OF_EMBED=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="microblaze-generic"
|
||||
CONFIG_NET_RANDOM_ETHADDR=y
|
||||
CONFIG_NETCONSOLE=y
|
||||
CONFIG_SPL_DM=y
|
||||
CONFIG_XILINX_GPIO=y
|
||||
|
@ -19,7 +19,6 @@ CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADFS=y
|
||||
|
@ -8,8 +8,11 @@ CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SYS_MALLOC_LEN=0x2000
|
||||
CONFIG_SYS_MEM_RSVD_FOR_MMU=y
|
||||
CONFIG_COUNTER_FREQUENCY=2720000
|
||||
# CONFIG_PSCI_RESET is not set
|
||||
# CONFIG_EXPERT is not set
|
||||
# CONFIG_LEGACY_IMAGE_FORMAT is not set
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_BOARD_LATE_INIT is not set
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
|
@ -7,7 +7,10 @@ CONFIG_ENV_SIZE=0x80
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SYS_MALLOC_LEN=0x80000
|
||||
CONFIG_COUNTER_FREQUENCY=2720000
|
||||
# CONFIG_PSCI_RESET is not set
|
||||
# CONFIG_EXPERT is not set
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_BOARD_LATE_INIT is not set
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
@ -49,4 +52,5 @@ CONFIG_DEFAULT_DEVICE_TREE="versal-mini-emmc0"
|
||||
# CONFIG_DM_DEVICE_REMOVE is not set
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_ZYNQ=y
|
||||
CONFIG_FAT_WRITE=y
|
||||
# CONFIG_EFI_LOADER is not set
|
||||
|
@ -7,7 +7,10 @@ CONFIG_ENV_SIZE=0x80
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SYS_MALLOC_LEN=0x80000
|
||||
CONFIG_COUNTER_FREQUENCY=2720000
|
||||
# CONFIG_PSCI_RESET is not set
|
||||
# CONFIG_EXPERT is not set
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_BOARD_LATE_INIT is not set
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
@ -49,4 +52,5 @@ CONFIG_DEFAULT_DEVICE_TREE="versal-mini-emmc1"
|
||||
# CONFIG_DM_DEVICE_REMOVE is not set
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_ZYNQ=y
|
||||
CONFIG_FAT_WRITE=y
|
||||
# CONFIG_EFI_LOADER is not set
|
||||
|
@ -2,16 +2,14 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_VERSAL=y
|
||||
CONFIG_SYS_TEXT_BASE=0x8000000
|
||||
CONFIG_SYS_MALLOC_F_LEN=0x8000
|
||||
CONFIG_DEBUG_UART_BASE=0xff000000
|
||||
CONFIG_DEBUG_UART_CLOCK=0
|
||||
CONFIG_COUNTER_FREQUENCY=62500000
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_ENV_VARS_UBOOT_CONFIG=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
|
||||
CONFIG_BOOTDELAY=-1
|
||||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
# CONFIG_BOARD_LATE_INIT is not set
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
@ -44,6 +42,7 @@ CONFIG_OF_BOARD=y
|
||||
CONFIG_NET_RANDOM_ETHADDR=y
|
||||
CONFIG_IP_DEFRAG=y
|
||||
CONFIG_TFTP_BLOCKSIZE=4096
|
||||
CONFIG_CLK_VERSAL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_CADENCE=y
|
||||
@ -66,8 +65,6 @@ CONFIG_PHY_FIXED=y
|
||||
CONFIG_PHY_GIGE=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_ZYNQ_GEM=y
|
||||
CONFIG_DEBUG_UART_PL011=y
|
||||
CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
CONFIG_PL01X_SERIAL=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_DM_SPI=y
|
||||
|
115
configs/xilinx_zynqmp_a2197_g_revA_defconfig
Normal file
115
configs/xilinx_zynqmp_a2197_g_revA_defconfig
Normal file
@ -0,0 +1,115 @@
|
||||
CONFIG_ARM=y
|
||||
CONFIG_ARCH_ZYNQMP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x8000000
|
||||
CONFIG_SYS_MALLOC_F_LEN=0x8000
|
||||
CONFIG_SPL=y
|
||||
CONFIG_DEBUG_UART_BASE=0xff000000
|
||||
CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_IDENT_STRING=" Xilinx ZynqMP SC for Versal"
|
||||
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
||||
CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
CONFIG_SPL_LOAD_FIT=y
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADP=y
|
||||
CONFIG_CMD_FPGA_LOAD_SECURE=y
|
||||
CONFIG_CMD_GPIO=y
|
||||
CONFIG_CMD_GPT=y
|
||||
CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_SDRAM=y
|
||||
CONFIG_CMD_SF=y
|
||||
CONFIG_CMD_USB=y
|
||||
CONFIG_CMD_TFTPPUT=y
|
||||
CONFIG_CMD_TIME=y
|
||||
CONFIG_CMD_TIMER=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
CONFIG_SPL_OF_CONTROL=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="zynqmp-a2197-g-revA"
|
||||
CONFIG_ENV_IS_IN_FAT=y
|
||||
CONFIG_NET_RANDOM_ETHADDR=y
|
||||
CONFIG_SPL_DM=y
|
||||
CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||
CONFIG_SCSI_AHCI=y
|
||||
CONFIG_SATA_CEVA=y
|
||||
CONFIG_CLK_ZYNQMP=y
|
||||
CONFIG_DFU_RAM=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
|
||||
CONFIG_FPGA_XILINX=y
|
||||
CONFIG_FPGA_ZYNQMPPL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_XILINX_GPIO=y
|
||||
CONFIG_DM_PCA953X=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_CADENCE=y
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_GPIO=y
|
||||
CONFIG_MISC=y
|
||||
CONFIG_I2C_EEPROM=y
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR=0x0
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0x0
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_ZYNQ=y
|
||||
CONFIG_SPI_FLASH=y
|
||||
CONFIG_SPI_FLASH_BAR=y
|
||||
CONFIG_SF_DUAL_FLASH=y
|
||||
CONFIG_SPI_FLASH_ISSI=y
|
||||
CONFIG_SPI_FLASH_MACRONIX=y
|
||||
CONFIG_SPI_FLASH_SPANSION=y
|
||||
CONFIG_SPI_FLASH_STMICRO=y
|
||||
CONFIG_SPI_FLASH_WINBOND=y
|
||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||
CONFIG_PHY_MARVELL=y
|
||||
CONFIG_PHY_NATSEMI=y
|
||||
CONFIG_PHY_REALTEK=y
|
||||
CONFIG_PHY_TI=y
|
||||
CONFIG_PHY_VITESSE=y
|
||||
CONFIG_PHY_FIXED=y
|
||||
CONFIG_PHY_GIGE=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_ZYNQ_GEM=y
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_DM_SCSI=y
|
||||
CONFIG_DEBUG_UART_ZYNQ=y
|
||||
CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
CONFIG_ZYNQ_SERIAL=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_ZYNQMP_GQSPI=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_XHCI_HCD=y
|
||||
CONFIG_USB_XHCI_DWC3=y
|
||||
CONFIG_USB_XHCI_ZYNQMP=y
|
||||
CONFIG_USB_DWC3=y
|
||||
CONFIG_USB_DWC3_GADGET=y
|
||||
CONFIG_USB_DWC3_GENERIC=y
|
||||
CONFIG_USB_ULPI_VIEWPORT=y
|
||||
CONFIG_USB_ULPI=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_GADGET_MANUFACTURER="Xilinx"
|
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x03FD
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_SPL_GZIP=y
|
||||
CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
|
115
configs/xilinx_zynqmp_a2197_m_revA_defconfig
Normal file
115
configs/xilinx_zynqmp_a2197_m_revA_defconfig
Normal file
@ -0,0 +1,115 @@
|
||||
CONFIG_ARM=y
|
||||
CONFIG_ARCH_ZYNQMP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x8000000
|
||||
CONFIG_SYS_MALLOC_F_LEN=0x8000
|
||||
CONFIG_SPL=y
|
||||
CONFIG_DEBUG_UART_BASE=0xff000000
|
||||
CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_IDENT_STRING=" Xilinx ZynqMP SC for Versal"
|
||||
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
||||
CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
CONFIG_SPL_LOAD_FIT=y
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADP=y
|
||||
CONFIG_CMD_FPGA_LOAD_SECURE=y
|
||||
CONFIG_CMD_GPIO=y
|
||||
CONFIG_CMD_GPT=y
|
||||
CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_SDRAM=y
|
||||
CONFIG_CMD_SF=y
|
||||
CONFIG_CMD_USB=y
|
||||
CONFIG_CMD_TFTPPUT=y
|
||||
CONFIG_CMD_TIME=y
|
||||
CONFIG_CMD_TIMER=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
CONFIG_SPL_OF_CONTROL=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="zynqmp-a2197-m-revA"
|
||||
CONFIG_ENV_IS_IN_FAT=y
|
||||
CONFIG_NET_RANDOM_ETHADDR=y
|
||||
CONFIG_SPL_DM=y
|
||||
CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||
CONFIG_SCSI_AHCI=y
|
||||
CONFIG_SATA_CEVA=y
|
||||
CONFIG_CLK_ZYNQMP=y
|
||||
CONFIG_DFU_RAM=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
|
||||
CONFIG_FPGA_XILINX=y
|
||||
CONFIG_FPGA_ZYNQMPPL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_XILINX_GPIO=y
|
||||
CONFIG_DM_PCA953X=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_CADENCE=y
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_GPIO=y
|
||||
CONFIG_MISC=y
|
||||
CONFIG_I2C_EEPROM=y
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR=0x0
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0x0
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_ZYNQ=y
|
||||
CONFIG_SPI_FLASH=y
|
||||
CONFIG_SPI_FLASH_BAR=y
|
||||
CONFIG_SF_DUAL_FLASH=y
|
||||
CONFIG_SPI_FLASH_ISSI=y
|
||||
CONFIG_SPI_FLASH_MACRONIX=y
|
||||
CONFIG_SPI_FLASH_SPANSION=y
|
||||
CONFIG_SPI_FLASH_STMICRO=y
|
||||
CONFIG_SPI_FLASH_WINBOND=y
|
||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||
CONFIG_PHY_MARVELL=y
|
||||
CONFIG_PHY_NATSEMI=y
|
||||
CONFIG_PHY_REALTEK=y
|
||||
CONFIG_PHY_TI=y
|
||||
CONFIG_PHY_VITESSE=y
|
||||
CONFIG_PHY_FIXED=y
|
||||
CONFIG_PHY_GIGE=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_ZYNQ_GEM=y
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_DM_SCSI=y
|
||||
CONFIG_DEBUG_UART_ZYNQ=y
|
||||
CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
CONFIG_ZYNQ_SERIAL=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_ZYNQMP_GQSPI=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_XHCI_HCD=y
|
||||
CONFIG_USB_XHCI_DWC3=y
|
||||
CONFIG_USB_XHCI_ZYNQMP=y
|
||||
CONFIG_USB_DWC3=y
|
||||
CONFIG_USB_DWC3_GADGET=y
|
||||
CONFIG_USB_DWC3_GENERIC=y
|
||||
CONFIG_USB_ULPI_VIEWPORT=y
|
||||
CONFIG_USB_ULPI=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_GADGET_MANUFACTURER="Xilinx"
|
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x03FD
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_SPL_GZIP=y
|
||||
CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
|
116
configs/xilinx_zynqmp_a2197_p_revA_defconfig
Normal file
116
configs/xilinx_zynqmp_a2197_p_revA_defconfig
Normal file
@ -0,0 +1,116 @@
|
||||
CONFIG_ARM=y
|
||||
CONFIG_ARCH_ZYNQMP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x8000000
|
||||
CONFIG_SYS_MALLOC_F_LEN=0x8000
|
||||
CONFIG_SPL=y
|
||||
CONFIG_DEBUG_UART_BASE=0xff000000
|
||||
CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_IDENT_STRING=" Xilinx ZynqMP SC for Versal"
|
||||
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
||||
CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_SPL_ZYNQMP_TWO_SDHCI=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
CONFIG_SPL_LOAD_FIT=y
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADP=y
|
||||
CONFIG_CMD_FPGA_LOAD_SECURE=y
|
||||
CONFIG_CMD_GPIO=y
|
||||
CONFIG_CMD_GPT=y
|
||||
CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_SDRAM=y
|
||||
CONFIG_CMD_SF=y
|
||||
CONFIG_CMD_USB=y
|
||||
CONFIG_CMD_TFTPPUT=y
|
||||
CONFIG_CMD_TIME=y
|
||||
CONFIG_CMD_TIMER=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
CONFIG_SPL_OF_CONTROL=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="zynqmp-a2197-p-revA"
|
||||
CONFIG_ENV_IS_IN_FAT=y
|
||||
CONFIG_NET_RANDOM_ETHADDR=y
|
||||
CONFIG_SPL_DM=y
|
||||
CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||
CONFIG_SCSI_AHCI=y
|
||||
CONFIG_SATA_CEVA=y
|
||||
CONFIG_CLK_ZYNQMP=y
|
||||
CONFIG_DFU_RAM=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
|
||||
CONFIG_FPGA_XILINX=y
|
||||
CONFIG_FPGA_ZYNQMPPL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_XILINX_GPIO=y
|
||||
CONFIG_DM_PCA953X=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_CADENCE=y
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_GPIO=y
|
||||
CONFIG_MISC=y
|
||||
CONFIG_I2C_EEPROM=y
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR=0x0
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0x0
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_ZYNQ=y
|
||||
CONFIG_SPI_FLASH=y
|
||||
CONFIG_SPI_FLASH_BAR=y
|
||||
CONFIG_SF_DUAL_FLASH=y
|
||||
CONFIG_SPI_FLASH_ISSI=y
|
||||
CONFIG_SPI_FLASH_MACRONIX=y
|
||||
CONFIG_SPI_FLASH_SPANSION=y
|
||||
CONFIG_SPI_FLASH_STMICRO=y
|
||||
CONFIG_SPI_FLASH_WINBOND=y
|
||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||
CONFIG_PHY_MARVELL=y
|
||||
CONFIG_PHY_NATSEMI=y
|
||||
CONFIG_PHY_REALTEK=y
|
||||
CONFIG_PHY_TI=y
|
||||
CONFIG_PHY_VITESSE=y
|
||||
CONFIG_PHY_FIXED=y
|
||||
CONFIG_PHY_GIGE=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_ZYNQ_GEM=y
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_DM_SCSI=y
|
||||
CONFIG_DEBUG_UART_ZYNQ=y
|
||||
CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
CONFIG_ZYNQ_SERIAL=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_ZYNQMP_GQSPI=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_XHCI_HCD=y
|
||||
CONFIG_USB_XHCI_DWC3=y
|
||||
CONFIG_USB_XHCI_ZYNQMP=y
|
||||
CONFIG_USB_DWC3=y
|
||||
CONFIG_USB_DWC3_GADGET=y
|
||||
CONFIG_USB_DWC3_GENERIC=y
|
||||
CONFIG_USB_ULPI_VIEWPORT=y
|
||||
CONFIG_USB_ULPI=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_GADGET_MANUFACTURER="Xilinx"
|
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x03FD
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_SPL_GZIP=y
|
||||
CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
|
117
configs/xilinx_zynqmp_a2197_revA_defconfig
Normal file
117
configs/xilinx_zynqmp_a2197_revA_defconfig
Normal file
@ -0,0 +1,117 @@
|
||||
CONFIG_ARM=y
|
||||
CONFIG_ARCH_ZYNQMP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x8000000
|
||||
CONFIG_SYS_MALLOC_F_LEN=0x8000
|
||||
CONFIG_SPL=y
|
||||
CONFIG_DEBUG_UART_BASE=0xff000000
|
||||
CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_IDENT_STRING=" Xilinx ZynqMP SC for Versal"
|
||||
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
||||
CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
CONFIG_SPL_LOAD_FIT=y
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADP=y
|
||||
CONFIG_CMD_FPGA_LOAD_SECURE=y
|
||||
CONFIG_CMD_GPIO=y
|
||||
CONFIG_CMD_GPT=y
|
||||
CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_SDRAM=y
|
||||
CONFIG_CMD_SF=y
|
||||
CONFIG_CMD_USB=y
|
||||
CONFIG_CMD_TFTPPUT=y
|
||||
CONFIG_CMD_TIME=y
|
||||
CONFIG_CMD_TIMER=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
CONFIG_SPL_OF_CONTROL=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="zynqmp-a2197-revA"
|
||||
CONFIG_OF_LIST="zynqmp-a2197-revA zynqmp-a2197-g-revA zynqmp-a2197-p-revA zynqmp-a2197-m-revA"
|
||||
CONFIG_ENV_IS_IN_FAT=y
|
||||
CONFIG_NET_RANDOM_ETHADDR=y
|
||||
CONFIG_SPL_DM=y
|
||||
CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||
CONFIG_SCSI_AHCI=y
|
||||
CONFIG_SATA_CEVA=y
|
||||
CONFIG_CLK_ZYNQMP=y
|
||||
CONFIG_DFU_RAM=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
|
||||
CONFIG_FPGA_XILINX=y
|
||||
CONFIG_FPGA_ZYNQMPPL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_XILINX_GPIO=y
|
||||
CONFIG_DM_PCA953X=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_CADENCE=y
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_GPIO=y
|
||||
CONFIG_MISC=y
|
||||
CONFIG_I2C_EEPROM=y
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR=0x0
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0x0
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_ZYNQ=y
|
||||
CONFIG_SPI_FLASH=y
|
||||
CONFIG_SPI_FLASH_BAR=y
|
||||
CONFIG_SF_DUAL_FLASH=y
|
||||
CONFIG_SPI_FLASH_ISSI=y
|
||||
CONFIG_SPI_FLASH_MACRONIX=y
|
||||
CONFIG_SPI_FLASH_SPANSION=y
|
||||
CONFIG_SPI_FLASH_STMICRO=y
|
||||
CONFIG_SPI_FLASH_WINBOND=y
|
||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||
CONFIG_PHY_MARVELL=y
|
||||
CONFIG_PHY_NATSEMI=y
|
||||
CONFIG_PHY_REALTEK=y
|
||||
CONFIG_PHY_TI=y
|
||||
CONFIG_PHY_VITESSE=y
|
||||
CONFIG_PHY_FIXED=y
|
||||
CONFIG_PHY_GIGE=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_ZYNQ_GEM=y
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_DM_SCSI=y
|
||||
CONFIG_DEBUG_UART_ZYNQ=y
|
||||
CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
CONFIG_ZYNQ_SERIAL=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_ZYNQMP_GQSPI=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_XHCI_HCD=y
|
||||
CONFIG_USB_XHCI_DWC3=y
|
||||
CONFIG_USB_XHCI_ZYNQMP=y
|
||||
CONFIG_USB_DWC3=y
|
||||
CONFIG_USB_DWC3_GADGET=y
|
||||
CONFIG_USB_DWC3_GENERIC=y
|
||||
CONFIG_USB_ULPI_VIEWPORT=y
|
||||
CONFIG_USB_ULPI=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_GADGET_MANUFACTURER="Xilinx"
|
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x03FD
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_SPL_GZIP=y
|
||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
|
@ -13,7 +13,6 @@ CONFIG_ZYNQMP_PSU_INIT_ENABLED=y
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
# CONFIG_AUTO_COMPLETE is not set
|
||||
# CONFIG_SYS_LONGHELP is not set
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
|
@ -7,7 +7,6 @@ CONFIG_ENV_SIZE=0x80
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL=y
|
||||
# CONFIG_CMD_ZYNQMP is not set
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_FIT=y
|
||||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
# CONFIG_BOARD_LATE_INIT is not set
|
||||
@ -15,7 +14,6 @@ CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
# CONFIG_AUTO_COMPLETE is not set
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
|
@ -7,7 +7,6 @@ CONFIG_ENV_SIZE=0x80
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL=y
|
||||
# CONFIG_CMD_ZYNQMP is not set
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_FIT=y
|
||||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
# CONFIG_BOARD_LATE_INIT is not set
|
||||
@ -15,7 +14,6 @@ CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
# CONFIG_AUTO_COMPLETE is not set
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
|
@ -14,7 +14,6 @@ CONFIG_BOARD_EARLY_INIT_R=y
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
# CONFIG_AUTO_COMPLETE is not set
|
||||
# CONFIG_SYS_LONGHELP is not set
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
@ -49,4 +48,5 @@ CONFIG_DEFAULT_DEVICE_TREE="zynqmp-mini-nand"
|
||||
# CONFIG_MMC is not set
|
||||
CONFIG_NAND=y
|
||||
CONFIG_NAND_ARASAN=y
|
||||
CONFIG_SYS_NAND_MAX_CHIPS=2
|
||||
# CONFIG_EFI_LOADER is not set
|
||||
|
@ -10,7 +10,6 @@ CONFIG_SYS_MEM_RSVD_FOR_MMU=y
|
||||
CONFIG_ZYNQMP_NO_DDR=y
|
||||
# CONFIG_PSCI_RESET is not set
|
||||
# CONFIG_CMD_ZYNQMP is not set
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
# CONFIG_EXPERT is not set
|
||||
# CONFIG_LEGACY_IMAGE_FORMAT is not set
|
||||
# CONFIG_BOARD_LATE_INIT is not set
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
# CONFIG_AUTO_COMPLETE is not set
|
||||
# CONFIG_SYS_LONGHELP is not set
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
|
108
configs/xilinx_zynqmp_virt_defconfig
Normal file
108
configs/xilinx_zynqmp_virt_defconfig
Normal file
@ -0,0 +1,108 @@
|
||||
CONFIG_ARM=y
|
||||
CONFIG_ARCH_ZYNQMP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x8000000
|
||||
CONFIG_SYS_MALLOC_F_LEN=0x8000
|
||||
CONFIG_SPL=y
|
||||
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
||||
CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
CONFIG_SPL_LOAD_FIT=y
|
||||
# CONFIG_DISPLAY_CPUINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADP=y
|
||||
CONFIG_CMD_FPGA_LOAD_SECURE=y
|
||||
CONFIG_CMD_GPIO=y
|
||||
CONFIG_CMD_GPT=y
|
||||
CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_SDRAM=y
|
||||
CONFIG_CMD_SF=y
|
||||
CONFIG_CMD_USB=y
|
||||
CONFIG_CMD_TFTPPUT=y
|
||||
CONFIG_CMD_TIME=y
|
||||
CONFIG_CMD_TIMER=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
CONFIG_SPL_OF_CONTROL=y
|
||||
CONFIG_OF_BOARD=y
|
||||
CONFIG_ENV_IS_IN_FAT=y
|
||||
CONFIG_NET_RANDOM_ETHADDR=y
|
||||
CONFIG_SPL_DM=y
|
||||
CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||
CONFIG_SCSI_AHCI=y
|
||||
CONFIG_SATA_CEVA=y
|
||||
CONFIG_CLK_ZYNQMP=y
|
||||
CONFIG_DFU_RAM=y
|
||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||
CONFIG_FASTBOOT_FLASH=y
|
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
||||
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
|
||||
CONFIG_FPGA_XILINX=y
|
||||
CONFIG_FPGA_ZYNQMPPL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_XILINX_GPIO=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_CADENCE=y
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_GPIO=y
|
||||
CONFIG_MISC=y
|
||||
CONFIG_I2C_EEPROM=y
|
||||
CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR=0x0
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0x0
|
||||
CONFIG_MMC_IO_VOLTAGE=y
|
||||
CONFIG_MMC_UHS_SUPPORT=y
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_ZYNQ=y
|
||||
CONFIG_SPI_FLASH=y
|
||||
CONFIG_SPI_FLASH_ISSI=y
|
||||
CONFIG_SPI_FLASH_MACRONIX=y
|
||||
CONFIG_SPI_FLASH_SPANSION=y
|
||||
CONFIG_SPI_FLASH_STMICRO=y
|
||||
CONFIG_SPI_FLASH_WINBOND=y
|
||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||
CONFIG_PHY_MARVELL=y
|
||||
CONFIG_PHY_NATSEMI=y
|
||||
CONFIG_PHY_REALTEK=y
|
||||
CONFIG_PHY_TI=y
|
||||
CONFIG_PHY_VITESSE=y
|
||||
CONFIG_PHY_FIXED=y
|
||||
CONFIG_PHY_GIGE=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_ZYNQ_GEM=y
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_DM_SCSI=y
|
||||
CONFIG_ZYNQ_SERIAL=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_ZYNQMP_GQSPI=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_XHCI_HCD=y
|
||||
CONFIG_USB_XHCI_DWC3=y
|
||||
CONFIG_USB_XHCI_ZYNQMP=y
|
||||
CONFIG_USB_DWC3=y
|
||||
CONFIG_USB_DWC3_GADGET=y
|
||||
CONFIG_USB_DWC3_GENERIC=y
|
||||
CONFIG_USB_ULPI_VIEWPORT=y
|
||||
CONFIG_USB_ULPI=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_GADGET_MANUFACTURER="Xilinx"
|
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x03FD
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
|
@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
# CONFIG_SPL_FS_FAT is not set
|
||||
# CONFIG_SPL_LIBDISK_SUPPORT is not set
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
# CONFIG_SPL_FS_FAT is not set
|
||||
# CONFIG_SPL_LIBDISK_SUPPORT is not set
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -9,7 +9,6 @@ CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_SPL_ZYNQMP_TWO_SDHCI=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -20,7 +19,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
|
@ -9,7 +9,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
# CONFIG_SPL_LIBDISK_SUPPORT is not set
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -20,7 +19,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
|
@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DFU=y
|
||||
|
@ -6,7 +6,6 @@ CONFIG_SPL=y
|
||||
CONFIG_DEBUG_UART_BASE=0xff000000
|
||||
CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -17,7 +16,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
|
@ -6,7 +6,6 @@ CONFIG_SPL=y
|
||||
CONFIG_DEBUG_UART_BASE=0xff000000
|
||||
CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -17,7 +16,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
|
@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_ZYNQ_SDHCI_MAX_FREQ=15000000
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_BOOTMENU=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_BIND=y
|
||||
|
@ -10,7 +10,6 @@ CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -21,7 +20,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
@ -59,6 +57,7 @@ CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
|
||||
CONFIG_FPGA_XILINX=y
|
||||
CONFIG_FPGA_ZYNQMPPL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_GPIO_HOG=y
|
||||
CONFIG_XILINX_GPIO=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_CADENCE=y
|
||||
|
@ -10,7 +10,6 @@ CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -21,7 +20,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
@ -59,6 +57,7 @@ CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
|
||||
CONFIG_FPGA_XILINX=y
|
||||
CONFIG_FPGA_ZYNQMPPL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_GPIO_HOG=y
|
||||
CONFIG_XILINX_GPIO=y
|
||||
CONFIG_DM_PCA953X=y
|
||||
CONFIG_DM_I2C=y
|
||||
|
@ -10,7 +10,6 @@ CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -21,7 +20,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_SYS_ALT_MEMTEST=y
|
||||
@ -59,6 +57,7 @@ CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
|
||||
CONFIG_FPGA_XILINX=y
|
||||
CONFIG_FPGA_ZYNQMPPL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_GPIO_HOG=y
|
||||
CONFIG_XILINX_GPIO=y
|
||||
CONFIG_DM_PCA953X=y
|
||||
CONFIG_DM_I2C=y
|
||||
|
@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DFU=y
|
||||
|
@ -5,10 +5,11 @@ CONFIG_SYS_MALLOC_F_LEN=0x8000
|
||||
CONFIG_SPL=y
|
||||
CONFIG_DEBUG_UART_BASE=0xff000000
|
||||
CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
||||
CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -17,8 +18,8 @@ CONFIG_SPL_LOAD_FIT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DFU=y
|
||||
|
@ -10,7 +10,6 @@ CONFIG_SPL_SPI_SUPPORT=y
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -20,7 +19,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
|
@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
CONFIG_ZYNQMP_USB=y
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_AHCI=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DFU=y
|
||||
|
@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
# CONFIG_SPL_FS_FAT is not set
|
||||
# CONFIG_SPL_LIBDISK_SUPPORT is not set
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_CLOCK=100000000
|
||||
# CONFIG_SPL_FS_FAT is not set
|
||||
# CONFIG_SPL_LIBDISK_SUPPORT is not set
|
||||
CONFIG_DEBUG_UART=y
|
||||
CONFIG_SPL_TEXT_BASE=0xfffc0000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
@ -18,7 +17,6 @@ CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_RAM_SUPPORT=y
|
||||
CONFIG_SPL_RAM_DEVICE=y
|
||||
CONFIG_SPL_ATF=y
|
||||
CONFIG_SYS_PROMPT="ZynqMP> "
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -18,7 +18,6 @@ CONFIG_USE_PREBOOT=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_GPIO=y
|
||||
|
@ -17,7 +17,6 @@ CONFIG_SPL_STACK_R=y
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
# CONFIG_AUTO_COMPLETE is not set
|
||||
# CONFIG_SYS_LONGHELP is not set
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
|
@ -17,7 +17,6 @@ CONFIG_SPL_STACK_R=y
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
# CONFIG_AUTO_COMPLETE is not set
|
||||
# CONFIG_SYS_LONGHELP is not set
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
|
@ -26,7 +26,6 @@ CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
# CONFIG_CMDLINE_EDITING is not set
|
||||
# CONFIG_AUTO_COMPLETE is not set
|
||||
# CONFIG_SYS_LONGHELP is not set
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
|
@ -21,7 +21,6 @@ CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -16,7 +16,6 @@ CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -16,7 +16,6 @@ CONFIG_FIT_VERBOSE=y
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -10,7 +10,6 @@ CONFIG_SYS_LDSCRIPT="arch/arm/mach-zynq/u-boot.lds"
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
79
configs/zynq_virt_defconfig
Normal file
79
configs/zynq_virt_defconfig
Normal file
@ -0,0 +1,79 @@
|
||||
CONFIG_ARM=y
|
||||
CONFIG_SPL_SYS_DCACHE_OFF=y
|
||||
CONFIG_ARCH_ZYNQ=y
|
||||
CONFIG_SYS_TEXT_BASE=0x4000000
|
||||
CONFIG_SPL_STACK_R_ADDR=0x200000
|
||||
CONFIG_SPL=y
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_SYS_CUSTOM_LDSCRIPT=y
|
||||
CONFIG_SYS_LDSCRIPT="arch/arm/mach-zynq/u-boot.lds"
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_SIGNATURE=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADFS=y
|
||||
CONFIG_CMD_FPGA_LOADMK=y
|
||||
CONFIG_CMD_FPGA_LOADP=y
|
||||
CONFIG_CMD_GPIO=y
|
||||
CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_SF=y
|
||||
CONFIG_CMD_USB=y
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
CONFIG_CMD_TFTPPUT=y
|
||||
CONFIG_CMD_CACHE=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
CONFIG_OF_BOARD=y
|
||||
CONFIG_ENV_IS_IN_SPI_FLASH=y
|
||||
CONFIG_NET_RANDOM_ETHADDR=y
|
||||
CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||
CONFIG_DFU_MMC=y
|
||||
CONFIG_DFU_RAM=y
|
||||
CONFIG_FPGA_XILINX=y
|
||||
CONFIG_FPGA_ZYNQPL=y
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_CADENCE=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_GPIO=y
|
||||
CONFIG_MISC=y
|
||||
CONFIG_I2C_EEPROM=y
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR=0x0
|
||||
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0x0
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_ZYNQ=y
|
||||
CONFIG_SPI_FLASH=y
|
||||
CONFIG_SF_DEFAULT_SPEED=30000000
|
||||
CONFIG_SPI_FLASH_ISSI=y
|
||||
CONFIG_SPI_FLASH_MACRONIX=y
|
||||
CONFIG_SPI_FLASH_SPANSION=y
|
||||
CONFIG_SPI_FLASH_STMICRO=y
|
||||
CONFIG_SPI_FLASH_WINBOND=y
|
||||
CONFIG_PHY_MARVELL=y
|
||||
CONFIG_PHY_REALTEK=y
|
||||
CONFIG_PHY_XILINX=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_ZYNQ_GEM=y
|
||||
CONFIG_ZYNQ_SERIAL=y
|
||||
CONFIG_ZYNQ_QSPI=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_ULPI_VIEWPORT=y
|
||||
CONFIG_USB_ULPI=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_GADGET_MANUFACTURER="Xilinx"
|
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x03fd
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_CI_UDC=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
@ -19,7 +19,6 @@ CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -20,7 +20,6 @@ CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_DFU=y
|
||||
|
@ -23,7 +23,6 @@ CONFIG_SPL_FPGA_SUPPORT=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -20,7 +20,6 @@ CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADFS=y
|
||||
|
@ -19,7 +19,6 @@ CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADFS=y
|
||||
|
@ -19,7 +19,6 @@ CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADFS=y
|
||||
|
@ -16,7 +16,6 @@ CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_IMLS=y
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADFS=y
|
||||
|
@ -18,7 +18,6 @@ CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_FPGA_LOADBP=y
|
||||
CONFIG_CMD_FPGA_LOADFS=y
|
||||
|
@ -19,7 +19,6 @@ CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -19,7 +19,6 @@ CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -19,7 +19,6 @@ CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
|
||||
CONFIG_SYS_PROMPT="Zynq> "
|
||||
CONFIG_CMD_THOR_DOWNLOAD=y
|
||||
CONFIG_CMD_DFU=y
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
@ -6,4 +6,5 @@ Xilinx
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
xilinx
|
||||
zynq
|
||||
|
38
doc/board/xilinx/xilinx.rst
Normal file
38
doc/board/xilinx/xilinx.rst
Normal file
@ -0,0 +1,38 @@
|
||||
.. SPDX-License-Identifier: GPL-2.0+
|
||||
.. (C) Copyright 2019 Xilinx, Inc.
|
||||
|
||||
U-Boot device tree bindings
|
||||
----------------------------
|
||||
|
||||
All the device tree bindings used in U-Boot are specified in Linux
|
||||
kernel. Please refer dt bindings from below specified paths in Linux
|
||||
kernel.
|
||||
|
||||
* ata
|
||||
- Documentation/devicetree/bindings/ata/ahci-ceva.txt
|
||||
* gpio
|
||||
- Documentation/devicetree/bindings/gpio/gpio-xilinx.txt
|
||||
- Documentation/devicetree/bindings/gpio/gpio-zynq.txt
|
||||
* i2c
|
||||
- Documentation/devicetree/bindings/i2c/i2c-xiic.txt
|
||||
- Documentation/devicetree/bindings/i2c/i2c-cadence.txt
|
||||
* mmc
|
||||
- Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
|
||||
* net
|
||||
- Documentation/devicetree/bindings/net/macb.txt
|
||||
- Documentation/devicetree/bindings/net/xilinx_axienet.txt
|
||||
- Documentation/devicetree/bindings/net/xilinx_emaclite.txt
|
||||
* serial
|
||||
- Documentation/devicetree/bindings/serial/cdns,uart.txt
|
||||
- Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.txt
|
||||
* spi
|
||||
- Documentation/devicetree/bindings/spi/spi-cadence.txt
|
||||
- Documentation/devicetree/bindings/spi/spi-xilinx.txt
|
||||
- Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.txt
|
||||
- Documentation/devicetree/bindings/spi/spi-zynq-qspi.txt
|
||||
* usb
|
||||
- Documentation/devicetree/bindings/usb/dwc3-xilinx.txt
|
||||
- Documentation/devicetree/bindings/usb/dwc3.txt
|
||||
- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt
|
||||
* wdt
|
||||
- Documentation/devicetree/bindings/watchdog/of-xilinx-wdt.txt
|
@ -95,6 +95,14 @@ config CLK_HSDK
|
||||
help
|
||||
Enable this to support the cgu clocks on Synopsys ARC HSDK
|
||||
|
||||
config CLK_VERSAL
|
||||
bool "Enable clock driver support for Versal"
|
||||
depends on ARCH_VERSAL
|
||||
select ZYNQMP_FIRMWARE
|
||||
help
|
||||
This clock driver adds support for clock realted settings for
|
||||
Versal platform.
|
||||
|
||||
config CLK_VEXPRESS_OSC
|
||||
bool "Enable driver for Arm Versatile Express OSC clock generators"
|
||||
depends on CLK && VEXPRESS_CONFIG
|
||||
@ -113,6 +121,7 @@ config CLK_ZYNQ
|
||||
config CLK_ZYNQMP
|
||||
bool "Enable clock driver support for ZynqMP"
|
||||
depends on ARCH_ZYNQMP
|
||||
select ZYNQMP_FIRMWARE
|
||||
help
|
||||
This clock driver adds support for clock realted settings for
|
||||
ZynqMP platform.
|
||||
|
@ -43,3 +43,4 @@ obj-$(CONFIG_SANDBOX) += clk_sandbox_test.o
|
||||
obj-$(CONFIG_SANDBOX_CLK_CCF) += clk_sandbox_ccf.o
|
||||
obj-$(CONFIG_STM32H7) += clk_stm32h7.o
|
||||
obj-$(CONFIG_CLK_TI_SCI) += clk-ti-sci.o
|
||||
obj-$(CONFIG_CLK_VERSAL) += clk_versal.o
|
||||
|
746
drivers/clk/clk_versal.c
Normal file
746
drivers/clk/clk_versal.c
Normal file
@ -0,0 +1,746 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* (C) Copyright 2019 Xilinx, Inc.
|
||||
* Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/bitfield.h>
|
||||
#include <malloc.h>
|
||||
#include <clk-uclass.h>
|
||||
#include <clk.h>
|
||||
#include <dm.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
|
||||
#define MAX_PARENT 100
|
||||
#define MAX_NODES 6
|
||||
#define MAX_NAME_LEN 50
|
||||
|
||||
#define CLK_TYPE_SHIFT 2
|
||||
|
||||
#define PM_API_PAYLOAD_LEN 3
|
||||
|
||||
#define NA_PARENT 0xFFFFFFFF
|
||||
#define DUMMY_PARENT 0xFFFFFFFE
|
||||
|
||||
#define CLK_TYPE_FIELD_LEN 4
|
||||
#define CLK_TOPOLOGY_NODE_OFFSET 16
|
||||
#define NODES_PER_RESP 3
|
||||
|
||||
#define CLK_TYPE_FIELD_MASK 0xF
|
||||
#define CLK_FLAG_FIELD_MASK GENMASK(21, 8)
|
||||
#define CLK_TYPE_FLAG_FIELD_MASK GENMASK(31, 24)
|
||||
#define CLK_TYPE_FLAG2_FIELD_MASK GENMASK(7, 4)
|
||||
#define CLK_TYPE_FLAG_BITS 8
|
||||
|
||||
#define CLK_PARENTS_ID_LEN 16
|
||||
#define CLK_PARENTS_ID_MASK 0xFFFF
|
||||
|
||||
#define END_OF_TOPOLOGY_NODE 1
|
||||
#define END_OF_PARENTS 1
|
||||
|
||||
#define CLK_VALID_MASK 0x1
|
||||
#define NODE_CLASS_SHIFT 26U
|
||||
#define NODE_SUBCLASS_SHIFT 20U
|
||||
#define NODE_TYPE_SHIFT 14U
|
||||
#define NODE_INDEX_SHIFT 0U
|
||||
|
||||
#define CLK_GET_NAME_RESP_LEN 16
|
||||
#define CLK_GET_TOPOLOGY_RESP_WORDS 3
|
||||
#define CLK_GET_PARENTS_RESP_WORDS 3
|
||||
#define CLK_GET_ATTR_RESP_WORDS 1
|
||||
|
||||
#define NODE_SUBCLASS_CLOCK_PLL 1
|
||||
#define NODE_SUBCLASS_CLOCK_OUT 2
|
||||
#define NODE_SUBCLASS_CLOCK_REF 3
|
||||
|
||||
#define NODE_CLASS_CLOCK 2
|
||||
#define NODE_CLASS_MASK 0x3F
|
||||
|
||||
#define CLOCK_NODE_TYPE_MUX 1
|
||||
#define CLOCK_NODE_TYPE_DIV 4
|
||||
#define CLOCK_NODE_TYPE_GATE 6
|
||||
|
||||
enum pm_query_id {
|
||||
PM_QID_INVALID,
|
||||
PM_QID_CLOCK_GET_NAME,
|
||||
PM_QID_CLOCK_GET_TOPOLOGY,
|
||||
PM_QID_CLOCK_GET_FIXEDFACTOR_PARAMS,
|
||||
PM_QID_CLOCK_GET_PARENTS,
|
||||
PM_QID_CLOCK_GET_ATTRIBUTES,
|
||||
PM_QID_PINCTRL_GET_NUM_PINS,
|
||||
PM_QID_PINCTRL_GET_NUM_FUNCTIONS,
|
||||
PM_QID_PINCTRL_GET_NUM_FUNCTION_GROUPS,
|
||||
PM_QID_PINCTRL_GET_FUNCTION_NAME,
|
||||
PM_QID_PINCTRL_GET_FUNCTION_GROUPS,
|
||||
PM_QID_PINCTRL_GET_PIN_GROUPS,
|
||||
PM_QID_CLOCK_GET_NUM_CLOCKS,
|
||||
PM_QID_CLOCK_GET_MAX_DIVISOR,
|
||||
};
|
||||
|
||||
enum clk_type {
|
||||
CLK_TYPE_OUTPUT,
|
||||
CLK_TYPE_EXTERNAL,
|
||||
};
|
||||
|
||||
struct clock_parent {
|
||||
char name[MAX_NAME_LEN];
|
||||
int id;
|
||||
u32 flag;
|
||||
};
|
||||
|
||||
struct clock_topology {
|
||||
u32 type;
|
||||
u32 flag;
|
||||
u32 type_flag;
|
||||
};
|
||||
|
||||
struct versal_clock {
|
||||
char clk_name[MAX_NAME_LEN];
|
||||
u32 valid;
|
||||
enum clk_type type;
|
||||
struct clock_topology node[MAX_NODES];
|
||||
u32 num_nodes;
|
||||
struct clock_parent parent[MAX_PARENT];
|
||||
u32 num_parents;
|
||||
u32 clk_id;
|
||||
};
|
||||
|
||||
struct versal_clk_priv {
|
||||
struct versal_clock *clk;
|
||||
};
|
||||
|
||||
static ulong alt_ref_clk;
|
||||
static ulong pl_alt_ref_clk;
|
||||
static ulong ref_clk;
|
||||
|
||||
struct versal_pm_query_data {
|
||||
u32 qid;
|
||||
u32 arg1;
|
||||
u32 arg2;
|
||||
u32 arg3;
|
||||
};
|
||||
|
||||
static struct versal_clock *clock;
|
||||
static unsigned int clock_max_idx;
|
||||
|
||||
#define PM_QUERY_DATA 35
|
||||
|
||||
static int versal_pm_query(struct versal_pm_query_data qdata, u32 *ret_payload)
|
||||
{
|
||||
struct pt_regs regs;
|
||||
|
||||
regs.regs[0] = PM_SIP_SVC | PM_QUERY_DATA;
|
||||
regs.regs[1] = ((u64)qdata.arg1 << 32) | qdata.qid;
|
||||
regs.regs[2] = ((u64)qdata.arg3 << 32) | qdata.arg2;
|
||||
|
||||
smc_call(®s);
|
||||
|
||||
if (ret_payload) {
|
||||
ret_payload[0] = (u32)regs.regs[0];
|
||||
ret_payload[1] = upper_32_bits(regs.regs[0]);
|
||||
ret_payload[2] = (u32)regs.regs[1];
|
||||
ret_payload[3] = upper_32_bits(regs.regs[1]);
|
||||
ret_payload[4] = (u32)regs.regs[2];
|
||||
}
|
||||
|
||||
return qdata.qid == PM_QID_CLOCK_GET_NAME ? 0 : regs.regs[0];
|
||||
}
|
||||
|
||||
static inline int versal_is_valid_clock(u32 clk_id)
|
||||
{
|
||||
if (clk_id >= clock_max_idx)
|
||||
return -ENODEV;
|
||||
|
||||
return clock[clk_id].valid;
|
||||
}
|
||||
|
||||
static int versal_get_clock_name(u32 clk_id, char *clk_name)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = versal_is_valid_clock(clk_id);
|
||||
if (ret == 1) {
|
||||
strncpy(clk_name, clock[clk_id].clk_name, MAX_NAME_LEN);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ret == 0 ? -EINVAL : ret;
|
||||
}
|
||||
|
||||
static int versal_get_clock_type(u32 clk_id, u32 *type)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = versal_is_valid_clock(clk_id);
|
||||
if (ret == 1) {
|
||||
*type = clock[clk_id].type;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ret == 0 ? -EINVAL : ret;
|
||||
}
|
||||
|
||||
static int versal_pm_clock_get_num_clocks(u32 *nclocks)
|
||||
{
|
||||
struct versal_pm_query_data qdata = {0};
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
int ret;
|
||||
|
||||
qdata.qid = PM_QID_CLOCK_GET_NUM_CLOCKS;
|
||||
|
||||
ret = versal_pm_query(qdata, ret_payload);
|
||||
*nclocks = ret_payload[1];
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int versal_pm_clock_get_name(u32 clock_id, char *name)
|
||||
{
|
||||
struct versal_pm_query_data qdata = {0};
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
int ret;
|
||||
|
||||
qdata.qid = PM_QID_CLOCK_GET_NAME;
|
||||
qdata.arg1 = clock_id;
|
||||
|
||||
ret = versal_pm_query(qdata, ret_payload);
|
||||
if (ret)
|
||||
return ret;
|
||||
memcpy(name, ret_payload, CLK_GET_NAME_RESP_LEN);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int versal_pm_clock_get_topology(u32 clock_id, u32 index, u32 *topology)
|
||||
{
|
||||
struct versal_pm_query_data qdata = {0};
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
int ret;
|
||||
|
||||
qdata.qid = PM_QID_CLOCK_GET_TOPOLOGY;
|
||||
qdata.arg1 = clock_id;
|
||||
qdata.arg2 = index;
|
||||
|
||||
ret = versal_pm_query(qdata, ret_payload);
|
||||
memcpy(topology, &ret_payload[1], CLK_GET_TOPOLOGY_RESP_WORDS * 4);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int versal_pm_clock_get_parents(u32 clock_id, u32 index, u32 *parents)
|
||||
{
|
||||
struct versal_pm_query_data qdata = {0};
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
int ret;
|
||||
|
||||
qdata.qid = PM_QID_CLOCK_GET_PARENTS;
|
||||
qdata.arg1 = clock_id;
|
||||
qdata.arg2 = index;
|
||||
|
||||
ret = versal_pm_query(qdata, ret_payload);
|
||||
memcpy(parents, &ret_payload[1], CLK_GET_PARENTS_RESP_WORDS * 4);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int versal_pm_clock_get_attributes(u32 clock_id, u32 *attr)
|
||||
{
|
||||
struct versal_pm_query_data qdata = {0};
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
int ret;
|
||||
|
||||
qdata.qid = PM_QID_CLOCK_GET_ATTRIBUTES;
|
||||
qdata.arg1 = clock_id;
|
||||
|
||||
ret = versal_pm_query(qdata, ret_payload);
|
||||
memcpy(attr, &ret_payload[1], CLK_GET_ATTR_RESP_WORDS * 4);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __versal_clock_get_topology(struct clock_topology *topology,
|
||||
u32 *data, u32 *nnodes)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < PM_API_PAYLOAD_LEN; i++) {
|
||||
if (!(data[i] & CLK_TYPE_FIELD_MASK))
|
||||
return END_OF_TOPOLOGY_NODE;
|
||||
topology[*nnodes].type = data[i] & CLK_TYPE_FIELD_MASK;
|
||||
topology[*nnodes].flag = FIELD_GET(CLK_FLAG_FIELD_MASK,
|
||||
data[i]);
|
||||
topology[*nnodes].type_flag =
|
||||
FIELD_GET(CLK_TYPE_FLAG_FIELD_MASK, data[i]);
|
||||
topology[*nnodes].type_flag |=
|
||||
FIELD_GET(CLK_TYPE_FLAG2_FIELD_MASK, data[i]) <<
|
||||
CLK_TYPE_FLAG_BITS;
|
||||
debug("topology type:0x%x, flag:0x%x, type_flag:0x%x\n",
|
||||
topology[*nnodes].type, topology[*nnodes].flag,
|
||||
topology[*nnodes].type_flag);
|
||||
(*nnodes)++;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int versal_clock_get_topology(u32 clk_id,
|
||||
struct clock_topology *topology,
|
||||
u32 *num_nodes)
|
||||
{
|
||||
int j, ret;
|
||||
u32 pm_resp[PM_API_PAYLOAD_LEN] = {0};
|
||||
|
||||
*num_nodes = 0;
|
||||
for (j = 0; j <= MAX_NODES; j += 3) {
|
||||
ret = versal_pm_clock_get_topology(clock[clk_id].clk_id, j,
|
||||
pm_resp);
|
||||
if (ret)
|
||||
return ret;
|
||||
ret = __versal_clock_get_topology(topology, pm_resp, num_nodes);
|
||||
if (ret == END_OF_TOPOLOGY_NODE)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __versal_clock_get_parents(struct clock_parent *parents, u32 *data,
|
||||
u32 *nparent)
|
||||
{
|
||||
int i;
|
||||
struct clock_parent *parent;
|
||||
|
||||
for (i = 0; i < PM_API_PAYLOAD_LEN; i++) {
|
||||
if (data[i] == NA_PARENT)
|
||||
return END_OF_PARENTS;
|
||||
|
||||
parent = &parents[i];
|
||||
parent->id = data[i] & CLK_PARENTS_ID_MASK;
|
||||
if (data[i] == DUMMY_PARENT) {
|
||||
strcpy(parent->name, "dummy_name");
|
||||
parent->flag = 0;
|
||||
} else {
|
||||
parent->flag = data[i] >> CLK_PARENTS_ID_LEN;
|
||||
if (versal_get_clock_name(parent->id, parent->name))
|
||||
continue;
|
||||
}
|
||||
debug("parent name:%s\n", parent->name);
|
||||
*nparent += 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int versal_clock_get_parents(u32 clk_id, struct clock_parent *parents,
|
||||
u32 *num_parents)
|
||||
{
|
||||
int j = 0, ret;
|
||||
u32 pm_resp[PM_API_PAYLOAD_LEN] = {0};
|
||||
|
||||
*num_parents = 0;
|
||||
do {
|
||||
/* Get parents from firmware */
|
||||
ret = versal_pm_clock_get_parents(clock[clk_id].clk_id, j,
|
||||
pm_resp);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = __versal_clock_get_parents(&parents[j], pm_resp,
|
||||
num_parents);
|
||||
if (ret == END_OF_PARENTS)
|
||||
return 0;
|
||||
j += PM_API_PAYLOAD_LEN;
|
||||
} while (*num_parents <= MAX_PARENT);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static u32 versal_clock_get_div(u32 clk_id)
|
||||
{
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
u32 div;
|
||||
|
||||
versal_pm_request(PM_CLOCK_GETDIVIDER, clk_id, 0, 0, 0, ret_payload);
|
||||
div = ret_payload[1];
|
||||
|
||||
return div;
|
||||
}
|
||||
|
||||
static u32 versal_clock_set_div(u32 clk_id, u32 div)
|
||||
{
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
|
||||
versal_pm_request(PM_CLOCK_SETDIVIDER, clk_id, div, 0, 0, ret_payload);
|
||||
|
||||
return div;
|
||||
}
|
||||
|
||||
static u64 versal_clock_ref(u32 clk_id)
|
||||
{
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
int ref;
|
||||
|
||||
versal_pm_request(PM_CLOCK_GETPARENT, clk_id, 0, 0, 0, ret_payload);
|
||||
ref = ret_payload[0];
|
||||
if (!(ref & 1))
|
||||
return ref_clk;
|
||||
if (ref & 2)
|
||||
return pl_alt_ref_clk;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static u64 versal_clock_get_pll_rate(u32 clk_id)
|
||||
{
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
u32 fbdiv;
|
||||
u32 res;
|
||||
u32 frac;
|
||||
u64 freq;
|
||||
u32 parent_rate, parent_id;
|
||||
u32 id = clk_id & 0xFFF;
|
||||
|
||||
versal_pm_request(PM_CLOCK_GETSTATE, clk_id, 0, 0, 0, ret_payload);
|
||||
res = ret_payload[1];
|
||||
if (!res) {
|
||||
printf("0%x PLL not enabled\n", clk_id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
parent_id = clock[clock[id].parent[0].id].clk_id;
|
||||
parent_rate = versal_clock_ref(parent_id);
|
||||
|
||||
versal_pm_request(PM_CLOCK_GETDIVIDER, clk_id, 0, 0, 0, ret_payload);
|
||||
fbdiv = ret_payload[1];
|
||||
versal_pm_request(PM_CLOCK_PLL_GETPARAM, clk_id, 2, 0, 0, ret_payload);
|
||||
frac = ret_payload[1];
|
||||
|
||||
freq = (fbdiv * parent_rate) >> (1 << frac);
|
||||
|
||||
return freq;
|
||||
}
|
||||
|
||||
static u32 versal_clock_mux(u32 clk_id)
|
||||
{
|
||||
int i;
|
||||
u32 id = clk_id & 0xFFF;
|
||||
|
||||
for (i = 0; i < clock[id].num_nodes; i++)
|
||||
if (clock[id].node[i].type == CLOCK_NODE_TYPE_MUX)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static u32 versal_clock_get_parentid(u32 clk_id)
|
||||
{
|
||||
u32 parent_id = 0;
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
u32 id = clk_id & 0xFFF;
|
||||
|
||||
if (versal_clock_mux(clk_id)) {
|
||||
versal_pm_request(PM_CLOCK_GETPARENT, clk_id, 0, 0, 0,
|
||||
ret_payload);
|
||||
parent_id = ret_payload[1];
|
||||
}
|
||||
|
||||
debug("parent_id:0x%x\n", clock[clock[id].parent[parent_id].id].clk_id);
|
||||
return clock[clock[id].parent[parent_id].id].clk_id;
|
||||
}
|
||||
|
||||
static u32 versal_clock_gate(u32 clk_id)
|
||||
{
|
||||
u32 id = clk_id & 0xFFF;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < clock[id].num_nodes; i++)
|
||||
if (clock[id].node[i].type == CLOCK_NODE_TYPE_GATE)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static u32 versal_clock_div(u32 clk_id)
|
||||
{
|
||||
int i;
|
||||
u32 id = clk_id & 0xFFF;
|
||||
|
||||
for (i = 0; i < clock[id].num_nodes; i++)
|
||||
if (clock[id].node[i].type == CLOCK_NODE_TYPE_DIV)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static u32 versal_clock_pll(u32 clk_id, u64 *clk_rate)
|
||||
{
|
||||
if (((clk_id >> NODE_SUBCLASS_SHIFT) & NODE_CLASS_MASK) ==
|
||||
NODE_SUBCLASS_CLOCK_PLL &&
|
||||
((clk_id >> NODE_CLASS_SHIFT) & NODE_CLASS_MASK) ==
|
||||
NODE_CLASS_CLOCK) {
|
||||
*clk_rate = versal_clock_get_pll_rate(clk_id);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static u64 versal_clock_calc(u32 clk_id)
|
||||
{
|
||||
u32 parent_id;
|
||||
u64 clk_rate;
|
||||
u32 div;
|
||||
|
||||
if (versal_clock_pll(clk_id, &clk_rate))
|
||||
return clk_rate;
|
||||
|
||||
parent_id = versal_clock_get_parentid(clk_id);
|
||||
if (((parent_id >> NODE_SUBCLASS_SHIFT) &
|
||||
NODE_CLASS_MASK) == NODE_SUBCLASS_CLOCK_REF)
|
||||
return versal_clock_ref(clk_id);
|
||||
|
||||
clk_rate = versal_clock_calc(parent_id);
|
||||
|
||||
if (versal_clock_div(clk_id)) {
|
||||
div = versal_clock_get_div(clk_id);
|
||||
clk_rate = DIV_ROUND_CLOSEST(clk_rate, div);
|
||||
}
|
||||
|
||||
return clk_rate;
|
||||
}
|
||||
|
||||
static int versal_clock_get_rate(u32 clk_id, u64 *clk_rate)
|
||||
{
|
||||
if (((clk_id >> NODE_SUBCLASS_SHIFT) &
|
||||
NODE_CLASS_MASK) == NODE_SUBCLASS_CLOCK_REF)
|
||||
*clk_rate = versal_clock_ref(clk_id);
|
||||
|
||||
if (versal_clock_pll(clk_id, clk_rate))
|
||||
return 0;
|
||||
|
||||
if (((clk_id >> NODE_SUBCLASS_SHIFT) &
|
||||
NODE_CLASS_MASK) == NODE_SUBCLASS_CLOCK_OUT &&
|
||||
((clk_id >> NODE_CLASS_SHIFT) &
|
||||
NODE_CLASS_MASK) == NODE_CLASS_CLOCK) {
|
||||
if (!versal_clock_gate(clk_id))
|
||||
return -EINVAL;
|
||||
*clk_rate = versal_clock_calc(clk_id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int soc_clk_dump(void)
|
||||
{
|
||||
u64 clk_rate = 0;
|
||||
u32 type, ret, i = 0;
|
||||
|
||||
printf("\n ****** VERSAL CLOCKS *****\n");
|
||||
|
||||
printf("alt_ref_clk:%ld pl_alt_ref_clk:%ld ref_clk:%ld\n",
|
||||
alt_ref_clk, pl_alt_ref_clk, ref_clk);
|
||||
for (i = 0; i < clock_max_idx; i++) {
|
||||
debug("%s\n", clock[i].clk_name);
|
||||
ret = versal_get_clock_type(i, &type);
|
||||
if (ret || type != CLK_TYPE_OUTPUT)
|
||||
continue;
|
||||
|
||||
ret = versal_clock_get_rate(clock[i].clk_id, &clk_rate);
|
||||
|
||||
if (ret != -EINVAL)
|
||||
printf("clk: %s freq:%lld\n",
|
||||
clock[i].clk_name, clk_rate);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void versal_get_clock_info(void)
|
||||
{
|
||||
int i, ret;
|
||||
u32 attr, type = 0, nodetype, subclass, class;
|
||||
|
||||
for (i = 0; i < clock_max_idx; i++) {
|
||||
ret = versal_pm_clock_get_attributes(i, &attr);
|
||||
if (ret)
|
||||
continue;
|
||||
|
||||
clock[i].valid = attr & CLK_VALID_MASK;
|
||||
clock[i].type = ((attr >> CLK_TYPE_SHIFT) & 0x1) ?
|
||||
CLK_TYPE_EXTERNAL : CLK_TYPE_OUTPUT;
|
||||
nodetype = (attr >> NODE_TYPE_SHIFT) & NODE_CLASS_MASK;
|
||||
subclass = (attr >> NODE_SUBCLASS_SHIFT) & NODE_CLASS_MASK;
|
||||
class = (attr >> NODE_CLASS_SHIFT) & NODE_CLASS_MASK;
|
||||
|
||||
clock[i].clk_id = (class << NODE_CLASS_SHIFT) |
|
||||
(subclass << NODE_SUBCLASS_SHIFT) |
|
||||
(nodetype << NODE_TYPE_SHIFT) |
|
||||
(i << NODE_INDEX_SHIFT);
|
||||
|
||||
ret = versal_pm_clock_get_name(clock[i].clk_id,
|
||||
clock[i].clk_name);
|
||||
if (ret)
|
||||
continue;
|
||||
debug("clk name:%s, Valid:%d, type:%d, clk_id:0x%x\n",
|
||||
clock[i].clk_name, clock[i].valid,
|
||||
clock[i].type, clock[i].clk_id);
|
||||
}
|
||||
|
||||
/* Get topology of all clock */
|
||||
for (i = 0; i < clock_max_idx; i++) {
|
||||
ret = versal_get_clock_type(i, &type);
|
||||
if (ret || type != CLK_TYPE_OUTPUT)
|
||||
continue;
|
||||
debug("clk name:%s\n", clock[i].clk_name);
|
||||
ret = versal_clock_get_topology(i, clock[i].node,
|
||||
&clock[i].num_nodes);
|
||||
if (ret)
|
||||
continue;
|
||||
|
||||
ret = versal_clock_get_parents(i, clock[i].parent,
|
||||
&clock[i].num_parents);
|
||||
if (ret)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
int versal_clock_setup(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = versal_pm_clock_get_num_clocks(&clock_max_idx);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
debug("%s, clock_max_idx:0x%x\n", __func__, clock_max_idx);
|
||||
clock = calloc(clock_max_idx, sizeof(*clock));
|
||||
if (!clock)
|
||||
return -ENOMEM;
|
||||
|
||||
versal_get_clock_info();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int versal_clock_get_freq_by_name(char *name, struct udevice *dev,
|
||||
ulong *freq)
|
||||
{
|
||||
struct clk clk;
|
||||
int ret;
|
||||
|
||||
ret = clk_get_by_name(dev, name, &clk);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "failed to get %s\n", name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
*freq = clk_get_rate(&clk);
|
||||
if (IS_ERR_VALUE(*freq)) {
|
||||
dev_err(dev, "failed to get rate %s\n", name);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int versal_clk_probe(struct udevice *dev)
|
||||
{
|
||||
int ret;
|
||||
struct versal_clk_priv *priv = dev_get_priv(dev);
|
||||
|
||||
debug("%s\n", __func__);
|
||||
|
||||
ret = versal_clock_get_freq_by_name("alt_ref_clk", dev, &alt_ref_clk);
|
||||
if (ret < 0)
|
||||
return -EINVAL;
|
||||
|
||||
ret = versal_clock_get_freq_by_name("pl_alt_ref_clk",
|
||||
dev, &pl_alt_ref_clk);
|
||||
if (ret < 0)
|
||||
return -EINVAL;
|
||||
|
||||
ret = versal_clock_get_freq_by_name("ref_clk", dev, &ref_clk);
|
||||
if (ret < 0)
|
||||
return -EINVAL;
|
||||
|
||||
versal_clock_setup();
|
||||
|
||||
priv->clk = clock;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static ulong versal_clk_get_rate(struct clk *clk)
|
||||
{
|
||||
struct versal_clk_priv *priv = dev_get_priv(clk->dev);
|
||||
u32 id = clk->id;
|
||||
u32 clk_id;
|
||||
u64 clk_rate = 0;
|
||||
|
||||
debug("%s\n", __func__);
|
||||
|
||||
clk_id = priv->clk[id].clk_id;
|
||||
|
||||
versal_clock_get_rate(clk_id, &clk_rate);
|
||||
|
||||
return clk_rate;
|
||||
}
|
||||
|
||||
static ulong versal_clk_set_rate(struct clk *clk, ulong rate)
|
||||
{
|
||||
struct versal_clk_priv *priv = dev_get_priv(clk->dev);
|
||||
u32 id = clk->id;
|
||||
u32 clk_id;
|
||||
u64 clk_rate = 0;
|
||||
u32 div;
|
||||
int ret;
|
||||
|
||||
debug("%s\n", __func__);
|
||||
|
||||
clk_id = priv->clk[id].clk_id;
|
||||
|
||||
ret = versal_clock_get_rate(clk_id, &clk_rate);
|
||||
if (ret) {
|
||||
printf("Clock is not a Gate:0x%x\n", clk_id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
do {
|
||||
if (versal_clock_div(clk_id)) {
|
||||
div = versal_clock_get_div(clk_id);
|
||||
clk_rate *= div;
|
||||
div = DIV_ROUND_CLOSEST(clk_rate, rate);
|
||||
versal_clock_set_div(clk_id, div);
|
||||
debug("%s, div:%d, newrate:%lld\n", __func__,
|
||||
div, DIV_ROUND_CLOSEST(clk_rate, div));
|
||||
return DIV_ROUND_CLOSEST(clk_rate, div);
|
||||
}
|
||||
clk_id = versal_clock_get_parentid(clk_id);
|
||||
} while (((clk_id >> NODE_SUBCLASS_SHIFT) &
|
||||
NODE_CLASS_MASK) != NODE_SUBCLASS_CLOCK_REF);
|
||||
|
||||
printf("Clock didn't has Divisors:0x%x\n", priv->clk[id].clk_id);
|
||||
|
||||
return clk_rate;
|
||||
}
|
||||
|
||||
static struct clk_ops versal_clk_ops = {
|
||||
.set_rate = versal_clk_set_rate,
|
||||
.get_rate = versal_clk_get_rate,
|
||||
};
|
||||
|
||||
static const struct udevice_id versal_clk_ids[] = {
|
||||
{ .compatible = "xlnx,versal-clk" },
|
||||
{ }
|
||||
};
|
||||
|
||||
U_BOOT_DRIVER(versal_clk) = {
|
||||
.name = "versal-clk",
|
||||
.id = UCLASS_CLK,
|
||||
.of_match = versal_clk_ids,
|
||||
.probe = versal_clk_probe,
|
||||
.ops = &versal_clk_ops,
|
||||
.priv_auto_alloc_size = sizeof(struct versal_clk_priv),
|
||||
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user