spi0: spi@ff450000 {
compatible = "rockchip,rv1126-spi", "rockchip,rk3066-spi";
reg = <0xff450000 0x1000>;
interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&pmucru CLK_SPI0>, <&pmucru PCLK_SPI0>;
clock-names = "spiclk", "apb_pclk";
dmas = <&dmac 1>, <&dmac 0>;
dma-names = "tx", "rx";
pinctrl-names = "default", "high_speed";
pinctrl-0 = <&spi0m0_cs0 &spi0m0_cs1 &spi0m0_pins>;
pinctrl-1 = <&spi0m0_cs0 &spi0m0_cs1 &spi0m0_pins_hs>;
status = "disabled";
};
spi1: spi@ff5b0000 {
compatible = "rockchip,rv1126-spi", "rockchip,rk3066-spi";
reg = <0xff5b0000 0x1000>;
interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&cru CLK_SPI1>, <&cru PCLK_SPI1>;
clock-names = "spiclk", "apb_pclk";
dmas = <&dmac 3>, <&dmac 2>;
dma-names = "tx", "rx";
pinctrl-names = "default", "high_speed";
pinctrl-0 = <&spi1m0_cs0 &spi1m0_cs1 &spi1m0_pins>;
pinctrl-1 = <&spi1m0_cs0 &spi1m0_cs1 &spi1m0_pins_hs>;
status = "disabled";
};
&spi0 {
status = "okay";
max-freq = <50000000>;
pinctrl-names = "default", "high_speed" ;
pinctrl-0 = <&spi0m2_cs0 &spi0m2_cs1 &spi0m2_pins>; /* default */
pinctrl-1 = <&spi0m2_cs0 &spi0m2_cs1 &spi0m2_pins_hs>; /* high_speed*/
spidev@0 {
compatible = "rohm,dh2228fv";
//interrupt-parent = <&gpio2>;
//interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
spi-max-frequency = <24000000>;
reg = <0>;
};
};
&spi1 {
status = "okay";
max-freq = <50000000>;
pinctrl-names = "default", "high_speed1" ;
pinctrl-0 = <&spi1m2_cs1 &spi1m2_cs0 &spi1m2_pins>; /* &spi1m2_cs0 可以删除 */
pinctrl-1 = <&spi1m2_cs1 &spi1m2_cs0 &spi1m2_pins_hs>; /* &spi1m2_cs0 可以删除 */
spidev@0 {
compatible = "rohm,dh2228fv";
//interrupt-parent = <&gpio2>;
//interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
spi-max-frequency = <24000000>;
reg = <1>;
};
};
把 pinctrl-names,pinctrl-0,pinctrl-1屏蔽,不影响spi设备/dev/spi0.0的生成;