Lines Matching refs:led
30 led-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>, /* red */
42 "led" function, and GPIO 1 as the "power" GPIO:
46 red = gpiod_get_index(dev, "led", 0, GPIOD_OUT_HIGH);
47 green = gpiod_get_index(dev, "led", 1, GPIOD_OUT_HIGH);
48 blue = gpiod_get_index(dev, "led", 2, GPIOD_OUT_HIGH);
52 The led GPIOs will be active-high, while the power GPIO will be active-low (i.e.
58 "led-gpios" example, use the prefix without the "-" as con_id parameter: "led".
86 "led-gpios",
142 GPIO_LOOKUP_IDX("gpio.0", 15, "led", 0, GPIO_ACTIVE_HIGH),
143 GPIO_LOOKUP_IDX("gpio.0", 16, "led", 1, GPIO_ACTIVE_HIGH),
144 GPIO_LOOKUP_IDX("gpio.0", 17, "led", 2, GPIO_ACTIVE_HIGH),
158 red = gpiod_get_index(dev, "led", 0, GPIOD_OUT_HIGH);
159 green = gpiod_get_index(dev, "led", 1, GPIOD_OUT_HIGH);
160 blue = gpiod_get_index(dev, "led", 2, GPIOD_OUT_HIGH);
164 Since the "led" GPIOs are mapped as active-high, this example will switch their