of_irq.h // 中断相关的函数 of_mdio.h // MDIO (Ethernet PHY) API of_net.h // OF helpers for network devices. of_pci.h // PCI相关函数 of_pdt.h // 很少用到 of_reserved_mem.h // reserved_mem的相关函数 of_platform.h // 把device_node转换为platform_device时用到的函数 4.1 设备资...
例如要增加phy芯片信息,可以在system-user.dtsi增加如下内容。 /dts-v1/;/include/"system-conf.dtsi"/ { }; &gem0 { phy-handle = <&phy0>; ps7_ethernet_0_mdio: mdio { phy0: phy@7{ compatible ="marvell,88e1116r"; device_type ="ethernet-phy"; reg = <7>; }; }; }; plnx-proj...
phy-handle = <ðphy0>; status = "okay"; }; /*---以下内容省略---*/ imx6ull.dtsi头文件 (内核源码/arch/arm/boot/dts/imx6ull.dtsi): cpus { #address-cells = <1>; #size-cells = <0>; cpu0: cpu@0 { compatible = "arm,cortex-a7"; device_type = "cpu"; /*---以下内容省...
&gem0 { phy-handle = 《&phy0》; ps7_ethernet_0_mdio: mdio { phy0: phy@7 { compatible = “marvell,88e1116r”; device_type = “ethernet-phy”; reg = 《7》; }; }; }; gpio-leds { compatible = “gpio-leds”; led-ds23 { label = “led-ds23”; gpios = 《&ps7_gpio_0 10...
(从matches数组中取出与当前设备最匹配的一项)of_dma.h//设备树中DMA相关属性的函数of_gpio.h//GPIO相关的函数of_graph.h//GPU相关驱动中用到的函数, 从设备树中获得GPU信息of_iommu.h//很少用到of_irq.h//中断相关的函数of_mdio.h//MDIO (Ethernet PHY) APIof_net.h//OF helpers for network devices...
(从 matches 数组中取出与当前设备最匹配的一项)of_dma.h // 设备树中 DMA 相关属性的函数of_gpio.h // GPIO 相关的函数of_graph.h // GPU 相关驱动中用到的函数, 从设备树中获得 GPU 信息of_iommu.h // 很少用到of_irq.h // 中断相关的函数of_mdio.h // MDIO (Ethernet PHY) APIof_net.h /...
device_type = "ethernet-phy"; reg = <7>; }; }; }; gpio-leds { compatible = "gpio-leds"; led-ds23 { label = "led-ds23"; gpios = <&ps7_gpio_0 10 0>; default-state = "on"; linux,default-trigger = "heartbeat";
在嵌入式系统里,以太网是一个基本的接口,既用于调试,也用于数据传输。所以在单板调试过程中,以太网...
27 ethernet_phy: ethernet-phy@7 { 28 reg = <0x7>; 29 }; 30 }; 31 32 &gem0 { 33 psu_ethernet_0_mdio: mdio { 34 #address-cells = <1>; 35 #size-cells = <0>; 36 phy1:phy@4 { ...
axi_ethernet_0_mdio: mdio { #address-cells = <1>; #size-cells = <0>; phy0: phy@1 { device_type = "ethernet-phy"; reg = <0x1>; }; }; }; axi_vdma_0: dma@43000000 { #dma-cells = <1>; clock-names = "s_axi_lite_aclk", "m_axi_mm2s_aclk", "m_ax...