0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2025-05-22 22:27:56 +00:00
Files
openwrt/target/linux/ramips/dts/mt7621_genexis_pulse-ex400.dts
David Bauer f828be4d10 ramips: use i2c-gpio driver for EX400
Configure the i2c pins as GPIO outputs and use the i2c-gpio driver to
control the Semtech SX9512 touch controller.

This fixes spurious errors in i2c transactions even at 1kHz with the
native i2c driver.

leds green:wan: Setting an LED's brightness failed (-6)

Signed-off-by: David Bauer <mail@david-bauer.net>
2025-05-10 21:26:08 +02:00

103 lines
1.6 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621_genexis_pulse-ex400-common.dtsi"
/ {
compatible = "genexis,pulse-ex400", "mediatek,mt7621-soc";
model = "Genexis Pulse EX400";
aliases {
led-boot = &led_status_red;
led-failsafe = &led_status_red;
led-running = &led_status_green;
led-upgrade = &led_status_red;
};
};
&leds {
led_wps_green: led-2 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WPS;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
};
&i2c_gpio {
touch@2b {
compatible = "semtech,sx9512";
reg = <0x2b>;
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <150>;
/* Touch area 2.4 GHz */
channel@1 {
reg = <1>;
semtech,cin-delta = <0x3>;
semtech,sense-threshold = <0x04>;
linux,keycodes = <KEY_A>;
};
/* Touch area 5 GHz */
channel@2 {
reg = <2>;
semtech,cin-delta = <0x3>;
semtech,sense-threshold = <0x04>;
linux,keycodes = <KEY_B>;
};
/* Touch area WPS */
channel@3 {
reg = <3>;
semtech,cin-delta = <0x3>;
semtech,sense-threshold = <0x04>;
linux,keycodes = <KEY_WPS_BUTTON>;
};
channel@4 {
reg = <4>;
led {
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_WAN;
};
};
channel@5 {
reg = <5>;
led {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WAN;
};
};
channel@6 {
reg = <6>;
led {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN_5GHZ;
linux,default-trigger = "phy1tpt";
};
};
channel@7 {
reg = <7>;
led {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN_2GHZ;
linux,default-trigger = "phy0tpt";
};
};
};
};