mirror of https://github.com/armbian/build.git
[rockchip64] add tm16xx led driver for display panels
This commit is contained in:
parent
70cbb6df6e
commit
8b9fd1507e
|
@ -5910,7 +5910,15 @@ CONFIG_DVB_DUMMY_FE=m
|
|||
CONFIG_APERTURE_HELPERS=y
|
||||
CONFIG_VIDEO_CMDLINE=y
|
||||
CONFIG_VIDEO_NOMODESET=y
|
||||
# CONFIG_AUXDISPLAY is not set
|
||||
CONFIG_AUXDISPLAY=y
|
||||
# CONFIG_HD44780 is not set
|
||||
# CONFIG_IMG_ASCII_LCD is not set
|
||||
# CONFIG_HT16K33 is not set
|
||||
CONFIG_TM16XX=m
|
||||
# CONFIG_LCD2S is not set
|
||||
CONFIG_CHARLCD_BL_OFF=y
|
||||
# CONFIG_CHARLCD_BL_ON is not set
|
||||
# CONFIG_CHARLCD_BL_FLASH is not set
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_MIPI_DBI=m
|
||||
CONFIG_DRM_MIPI_DSI=y
|
||||
|
|
|
@ -6026,7 +6026,17 @@ CONFIG_DVB_DUMMY_FE=m
|
|||
#
|
||||
CONFIG_APERTURE_HELPERS=y
|
||||
CONFIG_VIDEO=y
|
||||
# CONFIG_AUXDISPLAY is not set
|
||||
CONFIG_AUXDISPLAY=y
|
||||
# CONFIG_HD44780 is not set
|
||||
CONFIG_TM16XX=m
|
||||
# CONFIG_LCD2S is not set
|
||||
CONFIG_CHARLCD_BL_OFF=y
|
||||
# CONFIG_CHARLCD_BL_ON is not set
|
||||
# CONFIG_CHARLCD_BL_FLASH is not set
|
||||
# CONFIG_IMG_ASCII_LCD is not set
|
||||
# CONFIG_HT16K33 is not set
|
||||
# CONFIG_MAX6959 is not set
|
||||
# CONFIG_SEG_LED_GPIO is not set
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_MIPI_DBI=m
|
||||
CONFIG_DRM_MIPI_DSI=y
|
||||
|
|
|
@ -70,12 +70,13 @@ WIFI_CHIPS+=(["02d0:4330"]="")
|
|||
DT_EMMC_OVERLAYS+=(["rk3318-box-emmc-ddr"]="enable eMMC DDR Mode")
|
||||
DT_EMMC_OVERLAYS+=(["rk3318-box-emmc-hs200"]="enable eMMC HS200 Mode")
|
||||
|
||||
DT_LED_OVERLAYS+=(["rk3318-box-led-conf1"]="Generic (also YX_RK3328, RK3318_V1.x)")
|
||||
DT_LED_OVERLAYS+=(["rk3318-box-led-conf1"]="Generic (like RK3318_V1.x)")
|
||||
DT_LED_OVERLAYS+=(["rk3318-box-led-conf4"]="Generic + wifi on sdmmc-ext")
|
||||
DT_LED_OVERLAYS+=(["rk3318-box-led-conf2"]="X88_PRO_B boards")
|
||||
DT_LED_OVERLAYS+=(["rk3318-box-led-conf3"]="MXQ-RK3328-D4 boards (w/ RK805)")
|
||||
DT_LED_OVERLAYS+=(["rk3318-box-led-conf5"]="YX_RK3318 boards")
|
||||
|
||||
DT_LED_OVERLAYS_ORDER=("rk3318-box-led-conf1" "rk3318-box-led-conf4" "rk3318-box-led-conf2" "rk3318-box-led-conf3")
|
||||
DT_LED_OVERLAYS_ORDER=("rk3318-box-led-conf1" "rk3318-box-led-conf4" "rk3318-box-led-conf2" "rk3318-box-led-conf3" "rk3318-box-led-conf5")
|
||||
|
||||
DT_CPU_OVERLAYS+=(["rk3318-box-cpu-hs"]="RK3318 or RK3328")
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -14,6 +14,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
|
|||
rockchip-rk3318-box-led-conf2.dtbo \
|
||||
rockchip-rk3318-box-led-conf3.dtbo \
|
||||
rockchip-rk3318-box-led-conf4.dtbo \
|
||||
rockchip-rk3318-box-led-conf5.dtbo \
|
||||
rockchip-rk3318-box-wlan-ap6330.dtbo \
|
||||
rockchip-rk3318-box-wlan-ap6334.dtbo \
|
||||
rockchip-rk3318-box-wlan-ext.dtbo \
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
/**
|
||||
* Generic rk3318 board with base common configuration.
|
||||
* Some boards with this configuration have signature: YX_RK3318 (circular board), RK3318_V1.x
|
||||
* Some boards with this configuration have signature: RK3318_V1.x
|
||||
*/
|
||||
|
||||
&gpio_led {
|
||||
|
@ -17,19 +17,6 @@
|
|||
linux,default-trigger = "mmc2";
|
||||
};
|
||||
|
||||
/*
|
||||
* no auxiliary led on YX_RK3328 boards
|
||||
*
|
||||
auxiliary {
|
||||
gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
|
||||
label = "auxiliary";
|
||||
linux,default-trigger = "mmc2";
|
||||
default-state = "off";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&gpio_led_aux>;
|
||||
};
|
||||
*/
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -4,27 +4,75 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
|
||||
&gpio_led {
|
||||
|
||||
working {
|
||||
gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "mmc2";
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
|
||||
/*
|
||||
* no auxiliary led on X88_PRO_B boards
|
||||
*
|
||||
auxiliary {
|
||||
gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
|
||||
label = "auxiliary";
|
||||
linux,default-trigger = "mmc2";
|
||||
default-state = "off";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&gpio_led_aux>;
|
||||
};
|
||||
|
||||
&{/} {
|
||||
|
||||
i2c_aux_display: i2c-aux-display {
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "spi-gpio";
|
||||
sck-gpios = <&gpio2 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
mosi-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
cs-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>;
|
||||
num-chipselects = <1>;
|
||||
|
||||
aux-display-controller@24 {
|
||||
|
||||
compatible = "fdhisi,fd628";
|
||||
|
||||
reg = <0x24>;
|
||||
spi-3wire;
|
||||
spi-lsb-first;
|
||||
spi-rx-delay-us = <1>;
|
||||
spi-max-frequency = <500000>;
|
||||
|
||||
tm16xx,digits = [00 01 02 03];
|
||||
tm16xx,segment-mapping = [03 01 02 06 04 05 00];
|
||||
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
|
||||
led@4,3 {
|
||||
reg = <4 3>;
|
||||
function = LED_FUNCTION_POWER;
|
||||
};
|
||||
|
||||
led@4,2 {
|
||||
reg = <4 2>;
|
||||
function = LED_FUNCTION_LAN;
|
||||
linux,default-trigger = "stmmac-0:00:link";
|
||||
};
|
||||
|
||||
led@4,4 {
|
||||
reg = <4 4>;
|
||||
function = "colon";
|
||||
};
|
||||
|
||||
led@4,5 {
|
||||
reg = <4 5>;
|
||||
function = "wlan-lo";
|
||||
};
|
||||
|
||||
led@4,6 {
|
||||
reg = <4 6>;
|
||||
function = "wlan-hi";
|
||||
linux,default-trigger = "mmc1";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
*/
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -0,0 +1,104 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/**
|
||||
* YX_RK3318 (circular) board
|
||||
*/
|
||||
|
||||
&gpio_led {
|
||||
|
||||
working {
|
||||
gpios = <&gpio2 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&{/} {
|
||||
|
||||
i2c_aux_display: i2c-aux-display {
|
||||
|
||||
compatible = "i2c-gpio";
|
||||
sda-gpios = <&gpio2 RK_PC5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
||||
scl-gpios = <&gpio2 RK_PC6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
||||
i2c-gpio,delay-us = <2>;
|
||||
i2c-gpio,sda-output-only;
|
||||
i2c-gpio,scl-output-only;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
aux-display-controller@24 {
|
||||
compatible = "fdhisi,fd6551";
|
||||
reg = <0x24>;
|
||||
|
||||
tm16xx,digits = [04 03 02 01];
|
||||
tm16xx,segment-mapping = [00 01 02 03 04 05 06];
|
||||
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
|
||||
led@0,0 {
|
||||
reg = <0 0>;
|
||||
function = LED_FUNCTION_ALARM;
|
||||
};
|
||||
|
||||
led@0,1 {
|
||||
reg = <0 1>;
|
||||
function = "usb";
|
||||
linux,default-trigger = "usb-host";
|
||||
};
|
||||
|
||||
led@0,2 {
|
||||
reg = <0 2>;
|
||||
function = "pause";
|
||||
linux,default-trigger = "mmc2";
|
||||
};
|
||||
|
||||
led@0,3 {
|
||||
reg = <0 3>;
|
||||
function = "play";
|
||||
linux,default-trigger = "mmc0";
|
||||
};
|
||||
|
||||
led@0,4 {
|
||||
reg = <0 4>;
|
||||
function = "colon";
|
||||
};
|
||||
|
||||
led@0,5 {
|
||||
reg = <0 5>;
|
||||
function = LED_FUNCTION_LAN;
|
||||
linux,default-trigger = "stmmac-0:00:link";
|
||||
};
|
||||
|
||||
led@0,6 {
|
||||
reg = <0 6>;
|
||||
function = LED_FUNCTION_WLAN;
|
||||
linux,default-trigger = "mmc1";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
* TODO: needs to find the GPIO for this
|
||||
*
|
||||
&gpio_keys {
|
||||
|
||||
reset {
|
||||
gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>;
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
debounce-interval = <200>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
};
|
||||
*/
|
File diff suppressed because it is too large
Load Diff
|
@ -14,6 +14,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
|
|||
rockchip-rk3318-box-led-conf2.dtbo \
|
||||
rockchip-rk3318-box-led-conf3.dtbo \
|
||||
rockchip-rk3318-box-led-conf4.dtbo \
|
||||
rockchip-rk3318-box-led-conf5.dtbo \
|
||||
rockchip-rk3318-box-wlan-ap6330.dtbo \
|
||||
rockchip-rk3318-box-wlan-ap6334.dtbo \
|
||||
rockchip-rk3318-box-wlan-ext.dtbo \
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
/**
|
||||
* Generic rk3318 board with base common configuration.
|
||||
* Some boards with this configuration have signature: YX_RK3318 (circular board), RK3318_V1.x
|
||||
* Some boards with this configuration have signature: RK3318_V1.x
|
||||
*/
|
||||
|
||||
&gpio_led {
|
||||
|
@ -17,19 +17,6 @@
|
|||
linux,default-trigger = "mmc2";
|
||||
};
|
||||
|
||||
/*
|
||||
* no auxiliary led on YX_RK3328 boards
|
||||
*
|
||||
auxiliary {
|
||||
gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
|
||||
label = "auxiliary";
|
||||
linux,default-trigger = "mmc2";
|
||||
default-state = "off";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&gpio_led_aux>;
|
||||
};
|
||||
*/
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -4,27 +4,75 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
|
||||
&gpio_led {
|
||||
|
||||
working {
|
||||
gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "mmc2";
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
|
||||
/*
|
||||
* no auxiliary led on X88_PRO_B boards
|
||||
*
|
||||
auxiliary {
|
||||
gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
|
||||
label = "auxiliary";
|
||||
linux,default-trigger = "mmc2";
|
||||
default-state = "off";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&gpio_led_aux>;
|
||||
};
|
||||
|
||||
&{/} {
|
||||
|
||||
i2c_aux_display: i2c-aux-display {
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "spi-gpio";
|
||||
sck-gpios = <&gpio2 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
mosi-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
cs-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>;
|
||||
num-chipselects = <1>;
|
||||
|
||||
aux-display-controller@24 {
|
||||
|
||||
compatible = "fdhisi,fd628";
|
||||
|
||||
reg = <0x24>;
|
||||
spi-3wire;
|
||||
spi-lsb-first;
|
||||
spi-rx-delay-us = <1>;
|
||||
spi-max-frequency = <500000>;
|
||||
|
||||
tm16xx,digits = [00 01 02 03];
|
||||
tm16xx,segment-mapping = [03 01 02 06 04 05 00];
|
||||
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
|
||||
led@4,3 {
|
||||
reg = <4 3>;
|
||||
function = LED_FUNCTION_POWER;
|
||||
};
|
||||
|
||||
led@4,2 {
|
||||
reg = <4 2>;
|
||||
function = LED_FUNCTION_LAN;
|
||||
linux,default-trigger = "stmmac-1:00:link";
|
||||
};
|
||||
|
||||
led@4,4 {
|
||||
reg = <4 4>;
|
||||
function = "colon";
|
||||
};
|
||||
|
||||
led@4,5 {
|
||||
reg = <4 5>;
|
||||
function = "wlan-lo";
|
||||
};
|
||||
|
||||
led@4,6 {
|
||||
reg = <4 6>;
|
||||
function = "wlan-hi";
|
||||
linux,default-trigger = "mmc1";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
*/
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -0,0 +1,104 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/**
|
||||
* YX_RK3318 (circular) board
|
||||
*/
|
||||
|
||||
&gpio_led {
|
||||
|
||||
working {
|
||||
gpios = <&gpio2 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&{/} {
|
||||
|
||||
i2c_aux_display: i2c-aux-display {
|
||||
|
||||
compatible = "i2c-gpio";
|
||||
sda-gpios = <&gpio2 RK_PC5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
||||
scl-gpios = <&gpio2 RK_PC6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
||||
i2c-gpio,delay-us = <2>;
|
||||
i2c-gpio,sda-output-only;
|
||||
i2c-gpio,scl-output-only;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
aux-display-controller@24 {
|
||||
compatible = "fdhisi,fd6551";
|
||||
reg = <0x24>;
|
||||
|
||||
tm16xx,digits = [04 03 02 01];
|
||||
tm16xx,segment-mapping = [00 01 02 03 04 05 06];
|
||||
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
|
||||
led@0,0 {
|
||||
reg = <0 0>;
|
||||
function = LED_FUNCTION_ALARM;
|
||||
};
|
||||
|
||||
led@0,1 {
|
||||
reg = <0 1>;
|
||||
function = "usb";
|
||||
linux,default-trigger = "usb-host";
|
||||
};
|
||||
|
||||
led@0,2 {
|
||||
reg = <0 2>;
|
||||
function = "pause";
|
||||
linux,default-trigger = "mmc2";
|
||||
};
|
||||
|
||||
led@0,3 {
|
||||
reg = <0 3>;
|
||||
function = "play";
|
||||
linux,default-trigger = "mmc0";
|
||||
};
|
||||
|
||||
led@0,4 {
|
||||
reg = <0 4>;
|
||||
function = "colon";
|
||||
};
|
||||
|
||||
led@0,5 {
|
||||
reg = <0 5>;
|
||||
function = LED_FUNCTION_LAN;
|
||||
linux,default-trigger = "stmmac-1:00:link";
|
||||
};
|
||||
|
||||
led@0,6 {
|
||||
reg = <0 6>;
|
||||
function = LED_FUNCTION_WLAN;
|
||||
linux,default-trigger = "mmc1";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
* TODO: needs to find the GPIO for this
|
||||
*
|
||||
&gpio_keys {
|
||||
|
||||
reset {
|
||||
gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>;
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
debounce-interval = <200>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
};
|
||||
*/
|
Loading…
Reference in New Issue