Last active
May 11, 2020 06:15
-
-
Save artizirk/96f3db0e389ffa6a3c2cc00ae8e4c9e8 to your computer and use it in GitHub Desktop.
Custom Armbian user device tree overlays for NanoPi devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | |
}; | |
}; | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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