rockchip: improve some rk3528 devices support

- Fixes reboot issues with radxa e20c
  - Enable ssd1306 for mangopi-m28k pro
This commit is contained in:
aiamadeus 2024-08-20 23:26:39 +08:00
parent 0c35082a17
commit eb08cc889a
7 changed files with 27 additions and 19 deletions

View File

@ -79,14 +79,14 @@
vin-supply = <&vcc5v0_sys>; vin-supply = <&vcc5v0_sys>;
}; };
vcc3v3_sd: vcc-sd { vcc3v3_sd: vcc3v3-sd {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
gpio = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>; gpio = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>;
regulator-name = "vcc3v3_sd"; regulator-name = "vcc3v3_sd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_3v3>; vin-supply = <&vcc_3v3>;
}; };
@ -144,7 +144,7 @@
regulator-name = "vccio_sd"; regulator-name = "vccio_sd";
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
states = <1800000 0x0 3300000 0x1>; states = <1800000 0x0>, <3300000 0x1>;
vin-supply = <&vcc5v0_sys>; vin-supply = <&vcc5v0_sys>;
}; };

View File

@ -7,6 +7,12 @@
/ { / {
model = "MangoPi M28K Pro"; model = "MangoPi M28K Pro";
compatible = "widora,mangopi-m28k-pro", "rockchip,rk3528"; compatible = "widora,mangopi-m28k-pro", "rockchip,rk3528";
i2c {
compatible = "i2c-gpio";
scl-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
sda-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
};
}; };
&i2c6 { &i2c6 {
@ -26,7 +32,7 @@
ethernet@0,0 { ethernet@0,0 {
compatible = "pci10ec,8125"; compatible = "pci10ec,8125";
reg = <0x000000 0 0 0 0>; reg = <0x000000 0 0 0 0>;
led-data = <0 0 0x3f 0x23f>; led-data = <0 0 0x23f 0x3f>;
}; };
}; };
}; };

View File

@ -82,14 +82,14 @@
vin-supply = <&vcc_sys>; vin-supply = <&vcc_sys>;
}; };
vcc3v3_sd: vcc-sd { vcc3v3_sd: vcc3v3-sd {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
gpio = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>; gpio = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>;
regulator-name = "vcc3v3_sd"; regulator-name = "vcc3v3_sd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_3v3>; vin-supply = <&vcc_3v3>;
}; };
@ -99,7 +99,7 @@
regulator-name = "vccio_sd"; regulator-name = "vccio_sd";
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
states = <1800000 0x0 3300000 0x1>; states = <1800000 0x0>, <3300000 0x1>;
vin-supply = <&vcc_sys>; vin-supply = <&vcc_sys>;
}; };

View File

@ -75,14 +75,14 @@
vin-supply = <&vcc_3v3>; vin-supply = <&vcc_3v3>;
}; };
vcc3v3_sd: vcc-sd { vcc3v3_sd: vcc3v3-sd {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
gpio = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>; gpio = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>;
regulator-name = "vcc3v3_sd"; regulator-name = "vcc3v3_sd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_3v3>; vin-supply = <&vcc_3v3>;
}; };
@ -92,7 +92,7 @@
regulator-name = "vccio_sd"; regulator-name = "vccio_sd";
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
states = <1800000 0x0 3300000 0x1>; states = <1800000 0x0>, <3300000 0x1>;
vin-supply = <&vcc5v0_sys>; vin-supply = <&vcc5v0_sys>;
}; };

View File

@ -85,14 +85,14 @@
vin-supply = <&vcc_3v3>; vin-supply = <&vcc_3v3>;
}; };
vcc3v3_sd: vcc-sd { vcc3v3_sd: vcc3v3-sd {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
gpio = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>; gpio = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>;
regulator-name = "vcc3v3_sd"; regulator-name = "vcc3v3_sd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_3v3>; vin-supply = <&vcc_3v3>;
}; };
@ -102,7 +102,7 @@
regulator-name = "vccio_sd"; regulator-name = "vccio_sd";
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
states = <1800000 0x0 3300000 0x1>; states = <1800000 0x0>, <3300000 0x1>;
vin-supply = <&vcc5v0_sys>; vin-supply = <&vcc5v0_sys>;
}; };

View File

@ -105,9 +105,11 @@
compatible = "regulator-gpio"; compatible = "regulator-gpio";
gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
regulator-name = "vccio_sd"; regulator-name = "vccio_sd";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
states = <1800000 0x0 3300000 0x1>; states = <1800000 0x0>, <3300000 0x1>;
vin-supply = <&vcc5v0_sys>; vin-supply = <&vcc5v0_sys>;
}; };

View File

@ -395,6 +395,6 @@ TARGET_DEVICES += widora_mangopi-m28k
define Device/widora_mangopi-m28k-pro define Device/widora_mangopi-m28k-pro
$(call Device/widora_mangopi-m28k) $(call Device/widora_mangopi-m28k)
DEVICE_MODEL := MangoPi M28K Pro DEVICE_MODEL := MangoPi M28K Pro
DEVICE_PACKAGES := kmod-aic8800 kmod-r8125 wpad-openssl -urngd DEVICE_PACKAGES := kmod-aic8800 kmod-i2c-gpio kmod-r8125 wpad-openssl -urngd
endef endef
TARGET_DEVICES += widora_mangopi-m28k-pro TARGET_DEVICES += widora_mangopi-m28k-pro