Skip to content

Commit

Permalink
Adjust Rockpi S patch to align with upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Jul 5, 2024
1 parent c27c55b commit f696f6d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ index e9810d2f0407..0d917658d24a 100644
chosen {
stdout-path = "serial0:1500000n8";
};
@@ -27,44 +22,102 @@ leds {
pinctrl-0 = <&green_led_gio>, <&heartbeat_led_gpio>;
@@ -27,48 +22,106 @@ leds {
pinctrl-0 = <&green_led>, <&heartbeat_led>;

green-led {
color = <LED_COLOR_ID_GREEN>;
- default-state = "on";
function = LED_FUNCTION_POWER;
- gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
label = "rockpis:green:power";
+ gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
Expand All @@ -59,7 +61,9 @@ index e9810d2f0407..0d917658d24a 100644
};

blue-led {
color = <LED_COLOR_ID_BLUE>;
- default-state = "on";
function = LED_FUNCTION_HEARTBEAT;
- gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
label = "rockpis:blue:user";
+ gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
Expand Down Expand Up @@ -237,12 +241,10 @@ index e9810d2f0407..0d917658d24a 100644
&cpu0 {
cpu-supply = <&vdd_core>;
};
@@ -128,23 +182,60 @@ &cpu0 {
&emmc {
bus-width = <4>;
cap-mmc-highspeed;
- mmc-hs200-1_8v;
@@ -138,21 +138,59 @@
non-removable;
pinctrl-names = "default";
pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
- vmmc-supply = <&vcc_io>;
status = "okay";
};
Expand All @@ -268,11 +270,11 @@ index e9810d2f0407..0d917658d24a 100644
+ status = "okay";
+
+ rtl8723ds: wifi@1 {
+ interrupt-parent = <&gpio0>;
+ interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
+ interrupt-names = "host-wake";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_host_wake>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
+ interrupt-names = "host-wake";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_host_wake>;
+ };
+};
+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ index e9810d2f0407..0d917658d24a 100644
chosen {
stdout-path = "serial0:1500000n8";
};
@@ -27,44 +22,102 @@ leds {
pinctrl-0 = <&green_led_gio>, <&heartbeat_led_gpio>;
@@ -27,48 +22,106 @@ leds {
pinctrl-0 = <&green_led>, <&heartbeat_led>;

green-led {
color = <LED_COLOR_ID_GREEN>;
- default-state = "on";
function = LED_FUNCTION_POWER;
- gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
label = "rockpis:green:power";
+ gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
Expand All @@ -59,7 +61,9 @@ index e9810d2f0407..0d917658d24a 100644
};

blue-led {
color = <LED_COLOR_ID_BLUE>;
- default-state = "on";
function = LED_FUNCTION_HEARTBEAT;
- gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
label = "rockpis:blue:user";
+ gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
Expand Down Expand Up @@ -237,12 +241,10 @@ index e9810d2f0407..0d917658d24a 100644
&cpu0 {
cpu-supply = <&vdd_core>;
};
@@ -128,15 +128,45 @@ &cpu0 {
&emmc {
bus-width = <4>;
cap-mmc-highspeed;
- mmc-hs200-1_8v;
@@ -132,13 +132,43 @@
non-removable;
pinctrl-names = "default";
pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
- vmmc-supply = <&vcc_io>;
status = "okay";
};
Expand All @@ -268,14 +270,13 @@ index e9810d2f0407..0d917658d24a 100644
+ status = "okay";
+
+ rtl8723ds: wifi@1 {
+ interrupt-parent = <&gpio0>;
+ interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
+ interrupt-names = "host-wake";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_host_wake>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
+ interrupt-names = "host-wake";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_host_wake>;
+ };
+};
+
+
&gmac {
+ phy-supply = <&vcc_phy>;
Expand All @@ -286,11 +287,12 @@ index e9810d2f0407..0d917658d24a 100644
snps,reset-gpio = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
snps,reset-active-low;
snps,reset-delays-us = <0 50000 50000>;
@@ -205,8 +235,16 @@ &gpio3 {
@@ -207,8 +237,16 @@
"", "", "", "", "", "", "", "";
};

-&i2c1 {
- status = "okay";
+&i2s_8ch_0 {
+ assigned-clocks = <&cru SCLK_I2S0_8CH_RX>;
+ assigned-clock-parents = <&cru SCLK_I2S0_8CH_TX_MUX>;
Expand All @@ -299,7 +301,7 @@ index e9810d2f0407..0d917658d24a 100644
+};
+
+&i2s_8ch_2 {
status = "okay";
+ status = "okay";
+ #sound-dai-cells = <0>;
};

Expand Down Expand Up @@ -403,3 +405,4 @@ index e9810d2f0407..0d917658d24a 100644
};
--
Armbian

0 comments on commit f696f6d

Please sign in to comment.