radxa-pkg / radxa-overlays

Additional device tree overlays to support different hardwares on Radxa products
GNU General Public License v2.0
39 stars 28 forks source link

radxa cm3: fix the pwm pins not work #277

Closed nascs closed 6 months ago

nascs commented 6 months ago

这里有个 overlay pwm0-disable 是禁掉 fan0 的,还有一个 overlay i2c0-disable 是禁掉 RTC 的

RadxaYuntian commented 6 months ago

pwm0-disable 应该加上fan0的禁用,然后修改title和description称禁止fan0,这样配合打开pwm的overlay可以正常使用pwm功能 i2c的可以不动

nascs commented 6 months ago

pwm0-disable 应该加上fan0的禁用,然后修改title和description称禁止fan0,这样配合打开pwm的overlay可以正常使用pwm功能 i2c的可以不动

你是说 pwm0-disable 的 overlay 和 enable pwm0-m0/pwm0-m1 的 overlay 一起配合使用?

nascs commented 6 months ago

pwm0-disable 应该加上fan0的禁用,然后修改title和description称禁止fan0,这样配合打开pwm的overlay可以正常使用pwm功能 i2c的可以不动

i2c 的那个不改 exclusive 嘛? 这样的话,就只是禁掉了 i2c2, 但是 cm3 io 的 pin3 的 PWM2_M1 和 pin5 PWM1_M1 是无法和 i2c disable 的 overlay 一起使用的

RadxaYuntian commented 6 months ago

pwm0-disable改成fan0-disable然后配合上面的一起使用 i2c2那个就把exclusive改成i2c2吧,然后检查一下i2c2开启的overlay不会在cm3-io上显示

nascs commented 6 months ago

pwm0-disable 的 exclusive GPIO0_C7 是不是得去掉?

RadxaYuntian commented 6 months ago

nascs commented 6 months ago

去掉了