eth: eth@0{ compatible = "cdns,macb"; interrupt-parent = <&plic0>; interrupts = <65>, <66>; reg = <0x0 0x83040000 0x0 0x4000>; #local-mac-address = [00 00 00 00 00 00]; status = "okay"; clocks = <&pclk &hclk>; clock-names = "pclk", "hclk"; phy-mode = "rgmii-id"; #address-cells = <1>; #size-cells = <0>; fixed-link { speed = <100>; full-duplex; }; };
root@ubuntu:~/riscv_learn# ls /sys/bus/ acpi/ clockevents/ cpu/ fsl-mc/ hid/ mdio_bus/ mmc/ node/ pci-epf/ pnp/ scsi/ serio/ usb/ workqueue/ amba/ clocksource/ edac/ genpd/ i2c/ memory/ mmc_rpmb/ nvmem/ pci_express/ rapidio/ sdio/ soc/ virtio/ xen/ cec/ container/ event_source/ gpio/ iscsi_flashnode/ mipi-dsi/ nd/ pci/ platform/ scmi_protocol/ serial/ spi/ vme/ xen-backend/ root@ubuntu:~/riscv_learn# ls /sys/bus/platform/ devices drivers drivers_autoprobe drivers_probe uevent root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/ ACPI0013:00 dmi-ipmi-si.0 HISI00C2:00 HISI00C2:03 HISI0152:01 HISI0152:04 HISI0152:07 HISI0162:00 HISI0202:00 HISI0202:03 PNP0D20:00 sbsa-gwdt.0 alarmtimer 'Fixed MDIO bus.0' HISI00C2:01 HISI0141:00 HISI0152:02 HISI0152:05 HISI0152:08 HISI0162:01 HISI0202:01 HISI02A1:00 reg-dummy serial8250 ARMH0011:00 HISI00B2:00 HISI00C2:02 HISI0152:00 HISI0152:03 HISI0152:06 HISI0152:09 HISI0191:00 HISI0202:02 PNP0C0C:00 rtc-efi root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/'Fixed MDIO bus.0' driver_override mdio_bus modalias power subsystem uevent root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/Fixed\ MDIO\ bus.0/mdio_bus/ fixed-0 root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/Fixed\ MDIO\ bus.0/mdio_bus/fixed-0/ device power subsystem uevent root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/Fixed\ MDIO\ bus.0/mdio_bus/fixed-0/device driver_override mdio_bus modalias power subsystem uevent root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/Fixed\ MDIO\ bus.0/mdio_bus/fixed-0/device -al lrwxrwxrwx 1 root root 0 Dec 14 20:09 '/sys/bus/platform/devices/Fixed MDIO bus.0/mdio_bus/fixed-0/device' -> '../../../Fixed MDIO bus.0' root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/'Fixed MDIO bus.0' driver_override mdio_bus modalias power subsystem uevent root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/'Fixed MDIO bus.0' -al lrwxrwxrwx 1 root root 0 Sep 2 19:17 '/sys/bus/platform/devices/Fixed MDIO bus.0' -> '../../../devices/platform/Fixed MDIO bus.0' root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/'Fixed MDIO bus.0'/ -al total 0 drwxr-xr-x 4 root root 0 Dec 14 20:09 . drwxr-xr-x 38 root root 0 Sep 2 19:17 .. -rw-r--r-- 1 root root 4096 Dec 14 20:08 driver_override drwxr-xr-x 3 root root 0 Sep 2 19:17 mdio_bus -r--r--r-- 1 root root 4096 Dec 14 20:08 modalias drwxr-xr-x 2 root root 0 Dec 14 20:08 power lrwxrwxrwx 1 root root 0 Sep 2 19:17 subsystem -> ../../../bus/platform -rw-r--r-- 1 root root 4096 Sep 2 19:17 uevent root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/Fixed\ MDIO\ bus.0/mdio_bus/ -al total 0 drwxr-xr-x 3 root root 0 Dec 14 20:09 . drwxr-xr-x 4 root root 0 Dec 14 20:09 .. drwxr-xr-x 3 root root 0 Sep 2 19:17 fixed-0 root@ubuntu:~/riscv_learn# ls /sys/bus/platform/devices/Fixed\ MDIO\ bus.0/mdio_bus/fixed-0/ -al total 0 drwxr-xr-x 3 root root 0 Dec 14 20:09 . drwxr-xr-x 3 root root 0 Dec 14 20:09 .. lrwxrwxrwx 1 root root 0 Dec 14 20:09 device -> '../../../Fixed MDIO bus.0' drwxr-xr-x 2 root root 0 Dec 14 20:09 power lrwxrwxrwx 1 root root 0 Sep 2 19:17 subsystem -> ../../../../../class/mdio_bus -rw-r--r-- 1 root root 4096 Sep 2 19:17 uevent root@ubuntu:~/riscv_learn# ls /sys/bus/platform/drivers acpi-fan berlin4ct-pinctrl clk-mt7622 gpio-clk i2c_designware meson-pcie omap_i2c qcom-pcie sh-pfc sun50i-h6-r-pinctrl uart-sccnxp acpi-ged bgmac-enet clk-mt7622-aud gpio-mpc8xxx imx8mq-ccm mobiveil-pcie owl-sps qcom_scm sh_tmu sun6i-a31-apb0-clk vexpress-osc ahci-imx bman_ccsr clk-mt7622-eth gpio-mxc imx8mq-pinctrl msm-restart owl-uart qman_ccsr simple-framebuffer sun6i-a31-apb0-gates-clk vexpress-reset alarmtimer bman_portal clk-mt7622-hif gpio-xilinx imx8qxp-clk msm_serial palmas-gpio qman_portal simple-pm-bus sun6i-a31-ar100-clk vexpress-syscfg altr_edac_device brcm-sata-phy cmd-db hi3660-clk imx8qxp-lpcg-clk mt6577-uart palmas-pinctrl raspberrypi-firmware simple-reset sun6i-prcm vexpress-sysreg altr_sdram_edac brcmstb-dpfe cpufreq-dt hi3660-stub-clk imx8qxp-pinctrl mt6765-pinctrl pci-host-generic raspberrypi-power smc91x sun6i-rtc virtio-mmio amd_gpio cdns-pcie-ep dw-apb-uart hi3670-clk imx-irqsteer mt6797-pinctrl pci_thunder_ecam rc5t583-gpio socfpga_a10_ecc_manager sun8i-a23-apb0-clk xgene-gpio ARM-CCI cdns-pcie-host dwc2 hi6220-stub-clk imx-scu mt7622-pinctrl pci_thunder_pem rcar-pcie socfpga_ecc_manager sun8i-a83t-ccu xgene-msi 'ARM-CCI PMU' charger-manager dw-pcie Hi-HNS_MDIO imx-scu-pd mt8183-pinctrl pinctrl-bcm2835 rcar-usb2-clock-sel sprd-i2c sun8i-h3-r-pinctrl xgene-pcie arm-ccn clk-mt2712 efi-framebuffer hisi_ddrc_pmu imx-uart mtk-pcie pinctrl-ocelot reg-dummy sprd-pinctrl sun9i-a80-mmc-config-clk xgene-phy arm-scmi clk-mt2712-bdp ehci-platform hisi_hha_pmu ipmi mtk-scpsys pinctrl-s700 renesas_irqc sram sunxi-de2-clks xgene-pmu arm-smmu clk-mt2712-img fec hisi_l3c_pmu ipmi_si mtk-smi-common pinctrl-s900 restart-gpio sr-clk sunxi-sram xgene-rtc arm-smmu-v3 clk-mt2712-jpgdec fsl_dpaa_mac 'Hisilicon MBIGEN-V2' ipmi_ssif mtk-smi-larb pinctrl-single rpmh stmpe-gpio syscon xilinx-pcie as370-pinctrl clk-mt2712-mfg fsl-fman hisi-lpc iproc-gpio mv_xor_v2 poweroff-gpio rtc-efi stratix10-clkmgr syscon-poweroff zynqmp_clock as3722-pinctrl clk-mt2712-mm fsl-fman-port hisi-pcie kirin-pcie mx3_sdc_fb poweroff-restart rtd1295-rtc sun4i-a10-mod0-clk syscon-reboot zynqmp_firmware as3722-power-off clk-mt2712-vdec fsl-fman_xmdio hisi-pcie-almost-ecam leds-syscon mxs_phy qcom_aoss_reset rtd1295-watchdog sun50i-a64-ccu tc3589x-gpio basic-mmio-gpio clk-mt2712-venc fsl-guts hisi-reboot ls-scfg-msi ns2-pinmux qcom-ebi2 s700-cmu sun50i-a64-pinctrl tpm_tis bcm2835-aux-clk clk-mt6797 fsl-ifc hisi_sas_v2_hw ltc2952-poweroff nwl-pcie qcom-iommu s900-cmu sun50i-a64-r-pinctrl tps6586x-gpio bcm2835-clk clk-mt6797-img fsl_mc_bus histb-pcie mdio-mux-iproc of_fixed_clk qcom-iommu-ctx sbsa-uart sun50i-de2-bus tps65910-gpio bcm2835-dma clk-mt6797-mm fsl_spi hns_dsaf mediatek-mt2712-pinctrl of_fixed_factor_clk qcom-irq-combiner sc27xx-poweroff sun50i-h5-pinctrl tps68470-gpio bcm2835-mbox clk-mt6797-vdec ftgpio010-gpio hns-nic mediatek-mt6397-pinctrl of_serial qcom-l2cache-pmu serial8250 sun50i-h6-ccu tps68470_pmic_opregion berlin2-reset clk-mt6797-venc ftpci100 hsdk-gp-pll-clock mediatek-mt8173-pinctrl omap2_mcspi qcom-l3cache-pmu sh_cmt sun50i-h6-pinctrl twl4030-audio root@ubuntu:~/riscv_learn# ls /sys/bus/platform/drivers/f fec/ fsl_dpaa_mac/ fsl-fman/ fsl-fman-port/ fsl-fman_xmdio/ fsl-guts/ fsl-ifc/ fsl_mc_bus/ fsl_spi/ ftgpio010-gpio/ ftpci100/ root@ubuntu:~/riscv_learn# find /sys/bus/platform/drivers/ -name '*mdio*' /sys/bus/platform/drivers/mdio-mux-iproc /sys/bus/platform/drivers/fsl-fman_xmdio root@ubuntu:~/riscv_learn# find /sys/bus/platform/drivers/ -name '*MDIO*' /sys/bus/platform/drivers/Hi-HNS_MDIO root@ubuntu:~/riscv_learn# ls /sys/bus/platform/drivers/Hi-HNS_MDIO bind HISI0141:00 module uevent unbind root@ubuntu:~/riscv_learn# ls /sys/bus/platform/drivers/Hi-HNS_MDIO/HISI0141\:00 driver driver_override firmware_node mdio_bus modalias power subsystem uevent root@ubuntu:~/riscv_learn# ls /sys/bus/platform/drivers/Hi-HNS_MDIO/HISI0141\:00 -al lrwxrwxrwx 1 root root 0 Dec 14 20:11 /sys/bus/platform/drivers/Hi-HNS_MDIO/HISI0141:00 -> ../../../../devices/platform/HISI0141:00 root@ubuntu:~/riscv_learn# ls /sys/bus/platform/drivers/Hi-HNS_MDIO -al total 0 drwxr-xr-x 2 root root 0 Dec 14 20:11 . drwxr-xr-x 237 root root 0 Sep 2 19:17 .. --w------- 1 root root 4096 Dec 14 20:11 bind lrwxrwxrwx 1 root root 0 Dec 14 20:11 HISI0141:00 -> ../../../../devices/platform/HISI0141:00 lrwxrwxrwx 1 root root 0 Dec 14 20:11 module -> ../../../../module/hns_mdio --w------- 1 root root 4096 Sep 2 19:17 uevent --w------- 1 root root 4096 Dec 14 20:11 unbind root@ubuntu:~/riscv_learn#