18.12.2018 ZCU104
Материал из SRNS
Содержание |
Petalinux
Создать проект petalinux
$ petalinux-create --type project --template zynqMP --name <PROJECT>
Для работы eth-phy:
&gem3{
status = "okay";
phy-handle = <&phy0>;
phy-mode = "rgmii-id";
xlnx,eth-mode = <0x1>;
mdio {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
phy0: phy@12 {
compatible = "ethernet-phy-ieee802.3-c22";
device_type = "ethernet-phy";
reg = <12>;
ti,rx-internal-delay = <0x7>;
ti,tx-internal-delay = <0x7>;
ti,fifo-depth = <0x01>;
ti,min-output-impedance;
ti,dp83867-rxctrl-strap-quirk;
status = "okay";
};
};
};
status = "okay";
phy-handle = <&phy0>;
phy-mode = "rgmii-id";
xlnx,eth-mode = <0x1>;
mdio {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
phy0: phy@12 {
compatible = "ethernet-phy-ieee802.3-c22";
device_type = "ethernet-phy";
reg = <12>;
ti,rx-internal-delay = <0x7>;
ti,tx-internal-delay = <0x7>;
ti,fifo-depth = <0x01>;
ti,min-output-impedance;
ti,dp83867-rxctrl-strap-quirk;
status = "okay";
};
};
};
patch dev-tree
device-tree.bbappend:
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://system-user.dtsi"
SRC_URI_append += " file://0001_disable_gen_axi_interface.patch"
SRC_URI += "file://system-user.dtsi"
SRC_URI_append += " file://0001_disable_gen_axi_interface.patch"
Кладем патч-файл рядом с system-user.dtsi, правим device-tree.bbappend
всякое
Настраиваем контроллеры питания
fsbl шлет по i2c следущее:
write to 0x44 ack data: 0x00 0x03
write to 0x44 ack data: 0x01 0x80
write to 0x44 ack data: 0x20 0x14
write to 0x44 ack data: 0x24 0x00 0x80
write to 0x44 ack data: 0x21 0x33 0x13
write to 0x44 ack data: 0x42 0xCD 0x15
write to 0x44 ack data: 0x40 0x66 0x16
write to 0x44 ack data: 0x43 0xCD 0x10
write to 0x44 ack data: 0x44 0x00 0x10
write to 0x44 ack data: 0x01 0x80
write to 0x44 ack data: 0x20 0x14
write to 0x44 ack data: 0x24 0x00 0x80
write to 0x44 ack data: 0x21 0x33 0x13
write to 0x44 ack data: 0x42 0xCD 0x15
write to 0x44 ack data: 0x40 0x66 0x16
write to 0x44 ack data: 0x43 0xCD 0x10
write to 0x44 ack data: 0x44 0x00 0x10
[ Хронологический вид ]Комментарии
Войдите, чтобы комментировать.