zynq启动后,dev/中和ifconfig -a都查找不到spi上的mcp2515,只有设备树里有显示,内核勾选过了mcp251x驱动选项,下面有我的设备树,请问这是什么原因?
/include/ "system-conf.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
compatible = "alientek,zynq-7020","xlnx,zynq-7000";
clocks {
mcp2515_clock: mcp2515_clock {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <8000000>;
};
};
regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
reg_can_3v3: regulator@0 {
compatible = "regulator-fixed";
reg = <0>;
regulator-name = "can-3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
//gpios = <&gpio_spi 3 GPIO_ACTIVE_LOW>;
};
};
};
&spi0 {
is-decoded-cs = <0>;
num-cs = <2>;
status = "okay";
mcp2515_can0: mcp2515@0 {
compatible = "microchip,mcp2515";
reg = <0>;
spi-max-frequency = <2000000>;
clocks = <&mcp2515_clock>;
oscillator_frequency = <8000000>;
interrupt-parent = <&gpio0>;
interrupts = <54 0x2>;
status = "okay";
vdd-supply = <®_can_3v3>;
xceiver-supply = <®_can_3v3>;
};
mcp2515_can1: mcp2515@1 {
compatible = "microchip,mcp2515";
reg = <1>;
spi-max-frequency = <2000000>;
clocks = <&mcp2515_clock>;
oscillator_frequency = <8000000>;
interrupt-parent = <&gpio0>;
interrupts = <55 0x2>;
status = "okay";
vdd-supply = <®_can_3v3>;
xceiver-supply = <®_can_3v3>;
};
};