Alexandr Cherkashin

Members
  • Content Count

    1
  • Joined

  • Last visited

About Alexandr Cherkashin

  • Rank
    Newbie
  1. Alexandr  Cherkashin

    DTB - Howto add LEDs?

    Welcome to ARMBIAN 5.68 user-built Debian GNU/Linux 9 (stretch) 4.14.92-sunxi /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target = <&pio>; __overlay__ { gpio_pin: gpio_pin { pins = "PA6","PA3"; function = "gpio_out"; }; }; }; fragment@1 { target-path = "/"; __overlay__ { gpiopull: gpiopull { compatible = "gpio-leds"; pinctrl-names = "default"; pinctrl-0 = <&gpio_pin>; status = "okay"; gpio_out_6 { label = "5-ka:red"; gpios = <&pio 0 6 0>; /* PA6 GPIO_ACTIVE_LOW */ linux,default-trigger = "cpu"; }; gpio_out_3 { label = "5-ka:green"; gpios = <&pio 0 3 1>; /* PA3 GPIO_ACTIVE_HI */ default-state = "om"; linux,default-trigger = "heartbeat"; }; }; }; }; };