rockchip rk3566: h96-TVbox: prepare i2c Leds to mainline 6.18

This commit is contained in:
Nicolas Pereira
2025-10-03 17:35:33 -03:00
committed by Igor
parent c6857a1594
commit c340b22dcb
4 changed files with 192 additions and 240 deletions

View File

@@ -68,11 +68,13 @@
linux,rc-map-name = "rc-h96-max-v56";
};
i2c-display {
i2c_aux_display: i2c-aux-display {
compatible = "i2c-gpio";
sda-gpios = <&gpio0 RK_PB4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio0 RK_PB3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <5>;
i2c-gpio,sda-output-only;
i2c-gpio,scl-output-only;
#address-cells = <1>;
#size-cells = <0>;
@@ -85,97 +87,93 @@
#size-cells = <0>;
digit@0 {
reg = <0>;
segments = <1 3>,
<1 1>,
<1 2>,
<1 6>,
<1 4>,
<1 5>,
<1 0>;
segments = <4 0>,
<4 1>,
<4 2>,
<4 3>,
<4 4>,
<4 5>,
<4 6>;
};
digit@1 {
reg = <1>;
segments = <2 3>,
<2 1>,
<2 2>,
<2 6>,
<2 4>,
<2 5>,
<2 0>;
segments = <3 0>,
<3 1>,
<3 2>,
<3 3>,
<3 4>,
<3 5>,
<3 6>;
};
digit@2 {
reg = <2>;
segments = <3 3>,
<3 1>,
<3 2>,
<3 6>,
<3 4>,
<3 5>,
<3 0>;
segments = <2 0>,
<2 1>,
<2 2>,
<2 3>,
<2 4>,
<2 5>,
<2 6>;
};
digit@3 {
reg = <3>;
segments = <4 3>,
<4 1>,
<4 2>,
<4 6>,
<4 4>,
<4 5>,
<4 0>;
segments = <1 0>,
<1 1>,
<1 2>,
<1 3>,
<1 4>,
<1 5>,
<1 6>;
};
};
leds {
#address-cells = <2>;
#size-cells = <0>;
led@0,0 {
reg = <0 0>;
function = LED_FUNCTION_ALARM;
};
led@0,1 {
reg = <0 1>;
function = LED_FUNCTION_USB;
function = "usb";
linux,default-trigger = "usb-host";
};
led@0,3 {
reg = <0 3>;
function = "play";
};
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";
};
};
};
};
fddis_dev {
compatible = "fddis_dev";
fddis_gpio_clk = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
fddis_gpio_dat = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&dis_ctl_clk &dis_ctl_dat>;
status = "okay";
};
spdif_dit: spdif-dit {
compatible = "linux,spdif-dit";
#sound-dai-cells = <0>;
@@ -733,16 +731,6 @@
rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
fddis_ctr {
dis_ctl_clk: dis-ctl-clk {
rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
};
dis_ctl_dat: dis-ctl-dat {
rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
&pmu_io_domains {

View File

@@ -62,11 +62,13 @@
linux,rc-map-name = "rc-h96-max-v56";
};
i2c-display {
i2c_aux_display: i2c-aux-display {
compatible = "i2c-gpio";
sda-gpios = <&gpio0 RK_PB4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio0 RK_PB3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <5>;
i2c-gpio,sda-output-only;
i2c-gpio,scl-output-only;
#address-cells = <1>;
#size-cells = <0>;
@@ -79,96 +81,92 @@
#size-cells = <0>;
digit@0 {
reg = <0>;
segments = <1 3>,
<1 1>,
<1 2>,
<1 6>,
<1 4>,
<1 5>,
<1 0>;
segments = <4 0>,
<4 1>,
<4 2>,
<4 3>,
<4 4>,
<4 5>,
<4 6>;
};
digit@1 {
reg = <1>;
segments = <2 3>,
<2 1>,
<2 2>,
<2 6>,
<2 4>,
<2 5>,
<2 0>;
segments = <3 0>,
<3 1>,
<3 2>,
<3 3>,
<3 4>,
<3 5>,
<3 6>;
};
digit@2 {
reg = <2>;
segments = <3 3>,
<3 1>,
<3 2>,
<3 6>,
<3 4>,
<3 5>,
<3 0>;
segments = <2 0>,
<2 1>,
<2 2>,
<2 3>,
<2 4>,
<2 5>,
<2 6>;
};
digit@3 {
reg = <3>;
segments = <4 3>,
<4 1>,
<4 2>,
<4 6>,
<4 4>,
<4 5>,
<4 0>;
segments = <1 0>,
<1 1>,
<1 2>,
<1 3>,
<1 4>,
<1 5>,
<1 6>;
};
};
leds {
#address-cells = <2>;
#size-cells = <0>;
led@0,0 {
reg = <0 0>;
function = LED_FUNCTION_ALARM;
};
led@0,1 {
reg = <0 1>;
function = LED_FUNCTION_USB;
function = "usb";
linux,default-trigger = "usb-host";
};
led@0,3 {
reg = <0 3>;
function = "play";
};
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";
};
};
};
};
fddis_dev {
compatible = "fddis_dev";
fddis_gpio_clk = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
fddis_gpio_dat = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&dis_ctl_clk &dis_ctl_dat>;
status = "okay";
};
spdif_dit: spdif-dit {
compatible = "linux,spdif-dit";
@@ -727,16 +725,6 @@
rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
fddis_ctr {
dis_ctl_clk: dis-ctl-clk {
rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
};
dis_ctl_dat: dis-ctl-dat {
rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
&pmu_io_domains {

View File

@@ -68,11 +68,13 @@
linux,rc-map-name = "rc-h96-max-v56";
};
i2c-display {
i2c_aux_display: i2c-aux-display {
compatible = "i2c-gpio";
sda-gpios = <&gpio0 RK_PB4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio0 RK_PB3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <5>;
i2c-gpio,sda-output-only;
i2c-gpio,scl-output-only;
#address-cells = <1>;
#size-cells = <0>;
@@ -85,96 +87,92 @@
#size-cells = <0>;
digit@0 {
reg = <0>;
segments = <1 3>,
<1 1>,
<1 2>,
<1 6>,
<1 4>,
<1 5>,
<1 0>;
segments = <4 0>,
<4 1>,
<4 2>,
<4 3>,
<4 4>,
<4 5>,
<4 6>;
};
digit@1 {
reg = <1>;
segments = <2 3>,
<2 1>,
<2 2>,
<2 6>,
<2 4>,
<2 5>,
<2 0>;
segments = <3 0>,
<3 1>,
<3 2>,
<3 3>,
<3 4>,
<3 5>,
<3 6>;
};
digit@2 {
reg = <2>;
segments = <3 3>,
<3 1>,
<3 2>,
<3 6>,
<3 4>,
<3 5>,
<3 0>;
segments = <2 0>,
<2 1>,
<2 2>,
<2 3>,
<2 4>,
<2 5>,
<2 6>;
};
digit@3 {
reg = <3>;
segments = <4 3>,
<4 1>,
<4 2>,
<4 6>,
<4 4>,
<4 5>,
<4 0>;
segments = <1 0>,
<1 1>,
<1 2>,
<1 3>,
<1 4>,
<1 5>,
<1 6>;
};
};
leds {
#address-cells = <2>;
#size-cells = <0>;
led@0,0 {
reg = <0 0>;
function = LED_FUNCTION_ALARM;
};
led@0,1 {
reg = <0 1>;
function = LED_FUNCTION_USB;
function = "usb";
linux,default-trigger = "usb-host";
};
led@0,3 {
reg = <0 3>;
function = "play";
};
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";
};
};
};
};
fddis_dev {
compatible = "fddis_dev";
fddis_gpio_clk = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
fddis_gpio_dat = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&dis_ctl_clk &dis_ctl_dat>;
status = "okay";
};
spdif_dit: spdif-dit {
compatible = "linux,spdif-dit";
@@ -733,16 +731,6 @@
rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
fddis_ctr {
dis_ctl_clk: dis-ctl-clk {
rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
};
dis_ctl_dat: dis-ctl-dat {
rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
&pmu_io_domains {

View File

@@ -62,11 +62,13 @@
linux,rc-map-name = "rc-h96-max-v56";
};
i2c-display {
i2c_aux_display: i2c-aux-display {
compatible = "i2c-gpio";
sda-gpios = <&gpio0 RK_PB4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio0 RK_PB3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <5>;
i2c-gpio,sda-output-only;
i2c-gpio,scl-output-only;
#address-cells = <1>;
#size-cells = <0>;
@@ -79,96 +81,92 @@
#size-cells = <0>;
digit@0 {
reg = <0>;
segments = <1 3>,
<1 1>,
<1 2>,
<1 6>,
<1 4>,
<1 5>,
<1 0>;
segments = <4 0>,
<4 1>,
<4 2>,
<4 3>,
<4 4>,
<4 5>,
<4 6>;
};
digit@1 {
reg = <1>;
segments = <2 3>,
<2 1>,
<2 2>,
<2 6>,
<2 4>,
<2 5>,
<2 0>;
segments = <3 0>,
<3 1>,
<3 2>,
<3 3>,
<3 4>,
<3 5>,
<3 6>;
};
digit@2 {
reg = <2>;
segments = <3 3>,
<3 1>,
<3 2>,
<3 6>,
<3 4>,
<3 5>,
<3 0>;
segments = <2 0>,
<2 1>,
<2 2>,
<2 3>,
<2 4>,
<2 5>,
<2 6>;
};
digit@3 {
reg = <3>;
segments = <4 3>,
<4 1>,
<4 2>,
<4 6>,
<4 4>,
<4 5>,
<4 0>;
segments = <1 0>,
<1 1>,
<1 2>,
<1 3>,
<1 4>,
<1 5>,
<1 6>;
};
};
leds {
#address-cells = <2>;
#size-cells = <0>;
led@0,0 {
reg = <0 0>;
function = LED_FUNCTION_ALARM;
};
led@0,1 {
reg = <0 1>;
function = LED_FUNCTION_USB;
function = "usb";
linux,default-trigger = "usb-host";
};
led@0,3 {
reg = <0 3>;
function = "play";
};
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";
};
};
};
};
fddis_dev {
compatible = "fddis_dev";
fddis_gpio_clk = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
fddis_gpio_dat = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&dis_ctl_clk &dis_ctl_dat>;
status = "okay";
};
spdif_dit: spdif-dit {
compatible = "linux,spdif-dit";
@@ -727,16 +725,6 @@
rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
fddis_ctr {
dis_ctl_clk: dis-ctl-clk {
rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
};
dis_ctl_dat: dis-ctl-dat {
rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
&pmu_io_domains {