D1-H 使能spi0和spi1的问题
-
板卡: Lichee 86 Panel
OS: Tina问题:
spi0和spi1均无法枚举到设备节点
对dts修改如下:
project device/config/chips/d1-h/ diff --git a/configs/nezha/linux-5.4/board.dts b/configs/nezha/linux-5.4/board.dts index 963aa17..199cb62 100755 --- a/configs/nezha/linux-5.4/board.dts +++ b/configs/nezha/linux-5.4/board.dts @@ -1065,7 +1065,7 @@ tvd_row*tvd_column is the total tvd channel number to be used in multichannel mo spi_slave_mode = <0>; spi0_cs_number = <1>; spi0_cs_bitmap = <1>; - status = "disabled"; + status = "okay"; spi-nand@0 { compatible = "spi-nand"; @@ -1086,7 +1086,7 @@ tvd_row*tvd_column is the total tvd channel number to be used in multichannel mo spi1_cs_number = <1>; spi1_cs_bitmap = <1>; spi_dbi_enable = <1>; - status = "disabled"; + status = "okay"; spi_board1@0 { device_type = "spi-dbi"; diff --git a/configs/nezha/linux-5.4/config-5.4 b/configs/nezha/linux-5.4/config-5.4 index 87ab49e..0837a61 100644 --- a/configs/nezha/linux-5.4/config-5.4 +++ b/configs/nezha/linux-5.4/config-5.4 @@ -1681,7 +1681,7 @@ CONFIG_I2C_SUNXI=y # CONFIG_I3C is not set CONFIG_SPI=y -# CONFIG_SPI_DEBUG is not set +CONFIG_SPI_DEBUG=y CONFIG_SPI_MASTER=y # CONFIG_SPI_MEM is not set
-
@lbuque
驱动要配置SPI 导出User Interface。
Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号