Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.