|
发表于 2019-1-14 11:55:02
只看该作者
板凳
版主,我dts是这么改的:
&spi0 {
status = "okay";
max-freq = <48000000>;
spi_wk2xxx: spi_wk2xxx@00{
status = "okay";
compatible = "firefly,spi-wk2xxx";
reg = <0x00>;
spi-max-frequency = <10000000>;
reset-gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
irq-gpio = <&gpio0 GPIO_B4 IRQ_TYPE_EDGE_FALLING>;
cs-gpio = <&gpio1 GPIO_B3 GPIO_ACTIVE_HIGH>;
//pwr-en-gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_HIGH>;
};
};
发现这样改完还是没有节点,于是查资料,又改了这里:
diff --git a/kernel/arch/arm/configs/rk3128-fireprime_defconfig b/kernel/arch/arm/configs/rk3128-fireprime_defconfig
index 536c35e..a74e75a 100644
--- a/kernel/arch/arm/configs/rk3128-fireprime_defconfig
+++ b/kernel/arch/arm/configs/rk3128-fireprime_defconfig
@@ -346,6 +346,7 @@ CONFIG_SPI_ROCKCHIP=y
CONFIG_SPI_ROCKCHIP_DMA=y
CONFIG_SPI_ROCKCHIP_TEST=y
CONFIG_SPI_SPIDEV=y
+CONFIG_SPI_WK2XXX=y
CONFIG_DEBUG_GPIO=y
CONFIG_GPIO_SYSFS=y
CONFIG_CHARGER_RT5025=y
结果还是不行。。。 |
|