![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux驱动
jianlong.huang
这个作者很懒,什么都没留下…
展开
-
uboot下使用I2C命令操作AT24FC04第2个block(地址0x100~0x1FF)失败
问题uboot下使用I2C命令读写AT24FC04第2个block失败,如往0x100地址写入数据0x66,读取数据为0xFF从逻分抓的波形看,读写都符合芯片波形和驱动文件的流程,但不知道为什么会失败?注:24FC04芯片,内含two blocks of 256 x 8-bit memoryblock1: 0x00~0xFFblock2: 0x100~0x1FF相关配置CONFIG_I2C=yCONFIG_DM_I2C=yCONFIG_SYS_I2C_DW=yCONFIG_I2C原创 2021-10-29 15:06:39 · 671 阅读 · 1 评论 -
linux下eeprom调试(AT24c02)
仓库https://github.com/starfive-tech/linux.gitbranchstarlight使能配置make menuconfig ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu-Device Drivers > Misc devices > EEPROM support > "I2C EEPROMs / RAMs / ROMs from most vendors"增加dts节点diff --git a原创 2021-10-19 13:44:43 · 1269 阅读 · 1 评论 -
pinctrl学习笔记---描述/获得引脚
查看单个引脚在文件中定义引脚描述~/drivers/pinctrl/pinctrl-starfive.cstatic const struct pinctrl_pin_desc starfive_pins[] = { PINCTRL_PIN(PAD_GPIO(0), "GPIO[0]"), PINCTRL_PIN(PAD_GPIO(1), "GPIO[1]"), PINCTRL_PIN(PAD_GPIO(2), "GPIO[2]"), PINCTRL_PIN(PAD_GPIO(3), "GPI原创 2021-08-12 14:14:19 · 638 阅读 · 0 评论 -
pinctrl学习笔记---概念介绍
系统框图dts重要概念~/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt2.1 Pinctrl client devices相当于GPIO/I2C等模块,是pinctrl客户,使用pinctrl系统的设备声明自己要使用哪些引脚的哪些功能,怎么配置2.2 Pin controller devicespinctrl复用引脚,配置引脚2.3 例子device { pinctrl-names = "act.原创 2021-08-12 08:43:38 · 235 阅读 · 0 评论 -
pinctrl学习笔记---重要结构体
struct platform_device { const char *name; int id; bool id_auto; struct device dev; u64 platform_dma_mask; struct device_dma_parameters dma_parms; u32 num_resources; struct resource *resource; const struct platform_device_id *id_entry; char原创 2021-08-10 17:16:34 · 374 阅读 · 0 评论