mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-11-20 17:12:45 +07:00
The gpio-leds driver is used to control orangepizero2 led lights
This commit is contained in:
@@ -4327,14 +4327,25 @@
|
|||||||
device_type = "gpio_para";
|
device_type = "gpio_para";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
compatible = "allwinner,sunxi-init-gpio";
|
compatible = "allwinner,sunxi-init-gpio";
|
||||||
gpio_num = <0x2>;
|
gpio_num = <0x0>;
|
||||||
gpio_pin_1 = <0x53 0x2 0xc 0x1 0xffffffff 0xffffffff 0x0>;
|
|
||||||
gpio_pin_2 = <0x53 0x2 0xd 0x1 0xffffffff 0xffffffff 0x1>;
|
|
||||||
normal_led = "gpio_pin_2";
|
|
||||||
easy_light_used = <0x1>;
|
|
||||||
normal_led_light = <0x1>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
|
power {
|
||||||
|
label = "orangepi:red:power";
|
||||||
|
gpios = <0x53 0x2 0xc 0x1 0xffffffff 0xffffffff 0x0>; /* PC12 */
|
||||||
|
default-state = "off";
|
||||||
|
};
|
||||||
|
|
||||||
|
status {
|
||||||
|
label = "orangepi:green:status";
|
||||||
|
gpios = <0x53 0x2 0xd 0x1 0xffffffff 0xffffffff 0x0>; /* PC13 */
|
||||||
|
default-state = "on";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
product {
|
product {
|
||||||
device_type = "product";
|
device_type = "product";
|
||||||
version = "100";
|
version = "100";
|
||||||
|
|||||||
Reference in New Issue
Block a user