mirror of
https://github.com/armbian/build.git
synced 2026-09-08 23:59:54 +08:00
genio-7.1: nio-12l: R/B LED support in extra DT
- I've sent https://lore.kernel.org/linux-mediatek/20260624-nio-12l-add-i2c-40-pin-v2-0-cf3707a6aaf1@pardini.net/ which has the i2c3 also contained here
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "mt8395-radxa-nio-12l.dts"
|
||||
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
model = "Radxa NIO 12L with extra stuff 27:SCL3 28:SDA3";
|
||||
// See https://docs.radxa.com/en/nio/nio12l/hardware-design/hardware-interface#40-pin-gpio-header
|
||||
@@ -13,8 +15,16 @@
|
||||
mmc1 = &mmc0; // emmc - not on UFS models
|
||||
};
|
||||
|
||||
// label and make blue led heartbeat, red led pan
|
||||
// label and make blue led heartbeat, red led panic
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-0 = <&gpio_leds_pins>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
/*
|
||||
* This board has a RGB LED, of which only R and B
|
||||
* are controllable.
|
||||
*/
|
||||
led-0 {
|
||||
color = <LED_COLOR_ID_BLUE>;
|
||||
gpios = <&pio 6 GPIO_ACTIVE_HIGH>;
|
||||
@@ -43,6 +53,15 @@
|
||||
|
||||
|
||||
&pio {
|
||||
// for leds
|
||||
gpio_leds_pins: gpio-leds-pins {
|
||||
pins {
|
||||
pinmux = <PINMUX_GPIO6__FUNC_GPIO6>,
|
||||
<PINMUX_GPIO7__FUNC_GPIO7>;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
i2c3_pins: i2c3-pins {
|
||||
pins-bus {
|
||||
pinmux = <PINMUX_GPIO14__FUNC_SDA3>,
|
||||
|
||||
Reference in New Issue
Block a user