Skip to content

Commit

Permalink
patches
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Aug 28, 2024
1 parent fffb34c commit ef5cb53
Show file tree
Hide file tree
Showing 8 changed files with 5,777 additions and 0 deletions.
4,167 changes: 4,167 additions & 0 deletions scripts/patches/openhd_cams.patch

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions scripts/patches/openhd_cm3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
commit bbb8fcc59c704fd924891466f62bed04b69e2aa5
Author: Raphael <[email protected]>
Date: Fri Apr 12 22:32:55 2024 +0200

Update rk3566-radxa-cm3-io.dts

diff --git a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
index fb73884b401e..c634e2065fce 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
@@ -191,7 +191,9 @@ &u2phy0_host {
};

&usbhost_dwc3 {
- status = "okay";
+ dr_mode = "host";
+ extcon = <&usb2phy0>;
+ status = "okay";
};

&usbhost30 {
31 changes: 31 additions & 0 deletions scripts/patches/openhd_drm-rock5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
commit d63d3764aa9d4ccb62d64c5c1d3ee0118d23bf09
Author: Raphael Scholle <[email protected]>
Date: Fri Mar 15 19:20:58 2024 +0100

add openhd DRM patches
Co-authored-by: Consti10 <[email protected]>

diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
index f86109b5420a..950ffd54aa8e 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
@@ -5375,7 +5375,11 @@ rockchip_atomic_helper_update_plane(struct drm_plane *plane,
if (plane == crtc->cursor || vpstate->async_commit)
state->legacy_cursor_update = true;

+ // Consti10
+ state->legacy_cursor_update = true;
+ //ret = drm_atomic_nonblocking_commit(state);
ret = drm_atomic_commit(state);
+ ret=0;
fail:
drm_atomic_state_put(state);
return ret;
@@ -9726,6 +9730,7 @@ static void vop2_crtc_atomic_flush(struct drm_crtc *crtc, struct drm_crtc_state
*/
vop2_wait_for_irq_handler(crtc);

+
/**
* move here is to make sure current fs call function is complete,
* so when layer_sel_update is true, we can skip current vblank correctly.
38 changes: 38 additions & 0 deletions scripts/patches/openhd_i2c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
commit b0988eb0223230690e413a6250eaceba1226cdee
Author: Raphael <[email protected]>
Date: Mon Jun 17 02:09:52 2024 +0200

i2c-patch

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
index 62b0e763db2a..9b71b7abd50f 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
@@ -323,6 +323,11 @@ regulator-state-mem {
};
};

+&i2c7 {
+ status = "okay";
+ pinctrl-0 = <&i2c7m3_xfer>;
+};
+
&dmc {
center-supply = <&vdd_ddr_s0>;
mem-supply = <&vdd_log_s0>;
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index ebed3da7a556..e85316332fb0 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -211,6 +211,11 @@ regulator-state-mem {
};
};

+&i2c8 {
+ status = "okay";
+ pinctrl-0 = <&i2c8m2_xfer>;
+};
+
&i2c2 {
status = "okay";
pinctrl-names = "default";
Loading

0 comments on commit ef5cb53

Please sign in to comment.