Skip to content

Instantly share code, notes, and snippets.

@artizirk
Last active May 11, 2020 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artizirk/96f3db0e389ffa6a3c2cc00ae8e4c9e8 to your computer and use it in GitHub Desktop.
Save artizirk/96f3db0e389ffa6a3c2cc00ae8e4c9e8 to your computer and use it in GitHub Desktop.
Custom Armbian user device tree overlays for NanoPi devices
/dts-v1/;
/plugin/;
/ {
compatible = "friendlyelec,nanopi-r2", "rockchip,rk3328";
fragment@0 {
target-path = "/gpio-keys/button@0";
__overlay__ {
linux,code = <116>;
};
};
};
leds.dts
/dts-v1/;
/plugin/;
/ {
compatible = "friendlyelec,nanopi-r2", "rockchip,rk3328";
fragment@0 {
target-path = "/pinctrl/gpio-leds/leds-gpio";
__overlay__ {
rockchip,pins = <0 2 0 &pcfg_pull_none>,
<2 15 0 &pcfg_pull_none>,
<2 18 0 &pcfg_pull_none>;
};
};
fragment@1 {
target = <&leds>;
__overlay__ {
led@1 {
label = "sys_led";
color = <1>;
};
led@2 {
gpios = <&gpio2 15 0>;
label = "lan_led";
color = <2>;
function = "lan";
linux,default-trigger = "mmc0";
};
led@3 {
gpios = <&gpio2 18 0>;
label = "wan_led";
color = <2>;
function = "wan";
};
};
};
};
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
fragment@0 {
target = <&xr819>;
__overlay__ {
status = "disabled";
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment