mekotronics-r58x-4g: mainline: mark TODO's - waaaay too many

This commit is contained in:
Ricardo Pardini 2026-02-13 09:06:31 -03:00 committed by Igor
parent 51a8b02a7e
commit c05bfd707f

View File

@ -15,8 +15,7 @@
compatible = "mekotronics,r58x-4G", "rockchip,rk3588";
aliases {
mmc0 = &sdmmc; // SD card
mmc1 = &sdhci; // eMMC
mmc0 = &sdhci; // eMMC
};
chosen {
@ -33,6 +32,29 @@
pinctrl-names = "default";
pinctrl-0 = <&power_led_pin>;
};
/* @TODO
eth_led: eth-led {
default-state = "off";
gpios = <&gpio3 0x10 0x00>;
};
hdd_led: hdd-led {
default-state = "off";
gpios = <&gpio3 0x11 0x00>;
};
wifi_led: wifi-led {
default-state = "off";
gpios = <&gpio3 0x15 0x00>;
};
work_led: work-led {
default-state = "on";
gpios = <&gpio3 0x0f 0x00>;
};
*/
};
vcc12v_dcin: vcc12v-dcin {
@ -63,6 +85,7 @@
regulator-max-microvolt = <5000000>;
enable-active-high;
gpio = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>; //USB_HOST_PWREN_H_GPIO2_A6
// @TODO: gpio = <&gpio4 0x08 0x00>; (+ pinctrl?)
vin-supply = <&vcc5v0_sys>;
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_host_en>;
@ -78,20 +101,6 @@
vin-supply = <&vcc5v0_sys>;
};
vdd_3v3_sd: regulator-vdd-3v3-sd {
compatible = "regulator-fixed";
regulator-name = "vdd_3v3_sd";
gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
regulator-boot-on;
enable-active-high;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc12v_dcin>;
pinctrl-names = "default";
pinctrl-0 = <&vdd_sd_en>;
// vendor: startup-delay-us = <100000>;
};
pcie30_avdd0v75: pcie30-avdd0v75 {
compatible = "regulator-fixed";
regulator-name = "pcie30_avdd0v75";
@ -125,17 +134,6 @@
vin-supply = <&vcc12v_dcin>;
};
vcc3v3_pcie2x1l1: vcc3v3-pcie2x1l1{
compatible = "regulator-fixed";
regulator-name = "vcc3v3_pcie2x1l1";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
startup-delay-us = <10000>;
vin-supply = <&vcc12v_dcin>;
};
vcc3v3_wlan: regulator-vcc3v3-wlan {
compatible = "regulator-fixed";
regulator-name = "wlan-en";
@ -148,6 +146,20 @@
vin-supply = <&vcc12v_dcin>;
};
/* @TODO: otg pin is different...
vcc5v0_otg: vcc5v0-otg-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio4 0x07 0x00>;
pinctrl-0 = <&vcc5v0_otg_en>;
pinctrl-names = "default";
regulator-max-microvolt = <0x4c4b40>;
regulator-min-microvolt = <0x4c4b40>;
regulator-name = "vcc5v0_otg";
vin-supply = <&vcc5v0_sys>;
};
*/
hdmi0-con {
compatible = "hdmi-connector";
type = "a";
@ -200,6 +212,9 @@
mem-supply = <&vdd_cpu_lit_mem_s0>;
};
// @TODO: gmac0
// @TODO: gmac1
&gpu {
mali-supply = <&vdd_gpu_s0>;
status = "okay";
@ -211,8 +226,11 @@
&hdmi0 {
status = "okay";
// @TODO: enable-gpios = <&gpio4 0x09 0x00>;
};
// @TODO: hdmi1
&hdmi0_in {
hdmi0_in_vp0: endpoint {
remote-endpoint = <&vp0_out_hdmi0>;
@ -243,6 +261,8 @@
pinctrl-0 = <&hdmim2_rx_cec &hdmim2_rx_hpdin &hdmim2_rx_scl &hdmim2_rx_sda &hdmirx_hpd>;
pinctrl-names = "default";
status = "okay";
// @TODO: hdmirx-det-gpios = <&gpio1 0x1d 0x01>;
// @TODO: pinctrl-0 = <&hdmim1_rx &hdmirx_det>;
};
&i2c0 {
@ -308,6 +328,8 @@
};
};
// @TODO: i2c5
&i2c6 {
status = "okay";
@ -331,6 +353,8 @@
status = "okay";
};
// @TODO: i2s6_8ch ?
&combphy0_ps {
status = "okay";
};
@ -371,6 +395,10 @@
};
};
&combphy0_ps { // @TODO for SATA?
status = "okay";
};
&combphy1_ps { // for &pcie2x1l0 (wifi)
status = "okay";
};
@ -400,35 +428,43 @@
status = "okay";
};
/* @TODO
modem {
compatible = "rockchip,modem";
power-on_gpio = <&gpio0 0x1d 0x00>;
reset_gpio = <&gpio0 0x00 0x00>;
status = "okay";
};
*/
&pinctrl {
// @TODO: gmac0
// @TODO: gmac1
gpio-leds {
power_led_pin: power-led-pin {
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
vdd_sd {
vdd_sd_en: vdd-sd-en {
rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; // from vendor
};
};
pcie {
vcc3v3_pcie30_en: vcc3v3-pcie30-en {
rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
RTL8125B {
RTL8125B_isolate: RTL8125B-isolate {
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
/* @TODO
pcie30x2m1_pins: pcie30x2m1-pins {
rockchip,pins = <0x04 0x06 0x04 &pcfg_pull_none>, <0x04 0x08 0x04 &pcfg_pull_none>, <0x04 0x07 0x04 &pcfg_pull_none>;
};
*/
hdmirx {
hdmirx_hpd: hdmirx-5v-detection {
rockchip,pins = <1 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>;
// @TODO rockchip,pins = <0x01 0x1d 0x00 &pcfg_pull_up>;
};
};
@ -465,11 +501,14 @@
usb {
vcc5v0_host_en: vcc5v0-host-en {
rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
// @TODO: rockchip,pins = <0x04 0x08 0x00 &pcfg_pull_none>;
};
};
};
// @TODO: sata0
&saradc {
status = "okay";
vref-supply = <&vcc_1v8_s0>;
@ -488,19 +527,6 @@
status = "okay";
};
&sdmmc {
bus-width = <4>;
cap-sd-highspeed;
disable-wp;
no-mmc;
no-sdio;
max-frequency = <150000000>; // vendor
sd-uhs-sdr104;
vmmc-supply = <&vdd_3v3_sd>;
vqmmc-supply = <&vccio_sd_s0>;
status = "okay";
};
&spi2 {
assigned-clocks = <&cru CLK_SPI2>;
assigned-clock-rates = <200000000>;
@ -835,12 +861,15 @@
status = "okay";
};
// pins on the back of the board (green connector)
// @TODO: uart0 (?)
// @TODO: uart3 (?)
/* @TODO delete
&uart1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart1m0_xfer>;
};
*/
&uart2 {
pinctrl-0 = <&uart2m0_xfer>;
@ -887,6 +916,8 @@
status = "okay";
};
// @TODO whatever the frak usbhost3_0 is
// XHCI (USB3) stuff is disabled, as it all depends on the fusb302 USB-C controller
// the blue ports on the front of the board, labelled "USB3", arent really USB3, but USB2.
&u2phy1 { // for usbdp_phy1 which is also usb_host1_xhci