# 开发板 **Repository Path**: greenhou/development-board ## Basic Information - **Project Name**: 开发板 - **Description**: 用来记录自己学习的一些案例代码 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-05 - **Last Updated**: 2025-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1 如何调整Orange Zero3 I2c的频率 首先开启i2c接口 然后进入到/boot/dtb/allwinner/overlay/ ls能看到一个类似sun50i-h616-ph-i2c3.dtbo的文件 执行dtb反编译命令:sudo dtc -I dtb -O dts -o sun50i-h616-ph-i2c3.dts /boot/dtb/allwinner/overlay/sun50i-h616-ph-i2c3.dtbo 会生成一个sun50i-h616-ph-i2c3.dts文件。vim它 内容为: /dts-v1/; / { fragment@0 { target-path = "/aliases"; __overlay__ { i2c3 = "/soc/i2c@5002c00"; }; }; fragment@1 { target = <0xffffffff>; __overlay__ { pinctrl-names = "default"; pinctrl-0 = <0xffffffff>; status = "okay"; clock-frequency=<1000000>; }; }; __fixups__ { i2c3 = "/fragment@1:target:0"; i2c3_ph_pins = "/fragment@1/__overlay__:pinctrl-0:0"; }; }; 修改文件内容,在fragment@1节点添加i2c频率参数:clock-frequency=<1000000>;【1Mhz】保存文件。 将该dts编译成sun50i-h616-ph-i2c3.dtbo格式: sudo dtc -@ -I dts -O dtb -o sun50i-h616-ph-i2c3.dtbo sun50i-h616-ph-i2c3.dts 重启系统:reboot 测试i2c频率是否提高