主板装机回来了,后盖发热明显,但将背光亮度调低一点,发热就没那么明显了。
将后盖拆下来,发现是mt6371发烫(可以煮鸡蛋的那种),可能跟背光相关,那要好好看看了。
默认的控制背光原理是cpu控制BL_PWM的占空比,从而调节BL_LED的电流,从而改变背光亮度。
默认的dts配置
bled {
compatible = "mediatek,mt6370_pmu_bled";
interrupt-names = "bled_ocp";
mt,bled_name = "mt6370_pmu_bled";
/* mt,ext_en_pin; */
mt,chan_en = <0xF>; /* bit 0 1 2 3 -> chan 1 2 3 4 */
mt,map_linear;
mt,bl_ovp_level = <3>; /* 0: 17v */
/* 1: 21v */
/* 2: 25v */
/* 3: 29v */
mt,bl_ocp_level = <2>; /* 0: 900mA */
/* 1: 1200mA */
/* 2: 1500mA */
/* 3: 1800mA */
mt,use_pwm;
mt,pwm_fsample = <2>; /* 0: 1MHz */
/* 1: 4MHz */
/* 2: or 3: 24mHz */
mt,pwm_deglitch = <1>; /* 0: no filter */
/* 1: 100ns */
/* 2: 160ns */
/* 3: 200ns */
mt,pwm_hys_en = <1>; /* PWM Input Hysteresis */
mt,pwm_hys = <0>; /* 0: 1 bit, 1: 2 bit */
/* 2: 4 bit, 3: 6 bit */
mt,pwm_avg_cycle = <0>; /* 0: disable avg */
/* 1: avg 2 cycle */
/* 2: avg 4 cycle */
/* 3: avg 8 cycle */
/* 4: avg 16 cycle */
/* 5: avg 32 cycle */
mt,bled_ramptime = <3>; /* 0, 500us, 750us, 1ms, 2ms */
/* 5ms, 10ms, 20ms, 50ms */
/* 100ms, 250ms, 800ms */
/* 1s, 2s, 4s, 8s */
mt,bled_flash_ramp = <1>; /* 0, 500us, 750us */
/* 1ms, 2ms, 5ms */
/* we have 11 bit resolution, quantize in driver */
mt,max_bled_brightness = <512>; /* maximum 2047 */
mt,bled_curr_scale = <0>; /* 0: 30mA, 1: 22.5mA */
/* 2: 20mA, 3: 17.5mA */
/* If use bled lpf,
* Set //mt,map_linear;
* pwm_lpf_coef = <2>;
* mt,pwm_lpf_en;
* mt,bled_curr_mode;
* Else
* Set mt,map_linear;
* pwm_lpf_coef = <0>;
* //mt,pwm_lpf_en;
* //mt,bled_curr_mode;
*/
mt,pwm_lpf_coef = <0>; /* 0: (1)/(2^15) */
/* 1: (2)/(2^15) */
/* 2: (3)/(2^15) */
/* 3: (4)/(2^15) */
/* with it, Alpha-LPF enable */
/* mt,pwm_lpf_en; */
/* with it, pwm duty is multiplied after
* linear/expenential mapper
*/
/* mt,bled_curr_mode; */
};
之前由于最低亮度,几乎看不见屏幕内容,将mt,max_bled_brightness的值由改成了2147,把mt,max_bled_brightness的值改成800多,发热没那么明显了,但背光亮度调节感觉不明显,最低亮度也比较暗 ,总感觉不对。
再看下有没有其他参数可以调节下,发现有个mt,chan_en = <0xF>就是默认4路背光都使能了,但由于项目配的是小分辨率的屏幕,不需要那么大的电流,只接了两路背光。将该值改为0xC,mt,max_bled_brightness还是改为2147,发现一点也不烫了,背光亮度也能满足要求,是不是很神奇。
理论上就算是使能了,但电路没接,应该没影响的,但刚好就影响了,在某种原因下造成了发热。