
led
极创it
这个作者很懒,什么都没留下…
展开
-
flash调试-用adb通过sysfs点亮flash
向led:flash_0节点写入亮度值 向led:switch_0节点的bringhtness写1,开启闪光灯。原创 2020-08-24 15:33:35 · 1349 阅读 · 0 评论 -
led-gpio
有一个gpio控制LED,我echo 255 > brightness会输出一个高电平。gpio-leds { compatible = "gpio-leds"; pinctrl-names = "default"; pinctrl-0 = <&gpio_led_off>; button-backlight { gpios = <&tlmm 42 0>; //label = "原创 2021-04-24 09:24:23 · 373 阅读 · 0 评论 -
aw2013驱动分析
static int aw2013_led_probe(struct i2c_client *client, const struct i2c_device_id *id){ struct aw2013_led *led_array; struct device_node *node; int ret, hall_gpio_state,num_leds = 0; node = client->dev.of_node; if (node == NULL) return -.原创 2020-09-04 18:00:55 · 1504 阅读 · 0 评论 -
qcom sdm660 led 分析
msm-pm660l.dtsi相关节点。qcom,leds@d000 { compatible = "qcom,leds-qpnp"; reg = <0xd000 0x100>; label = "rgb"; red_led: qcom,rgb_0 { label = "rgb"; qcom,id = <3>; qcom,mode = "pwm"; pwms = <&pm660l_pwm_3 0 0>原创 2020-08-29 13:50:19 · 1014 阅读 · 0 评论