Skip to content
Snippets Groups Projects
Commit 31f0ab43 authored by Dmitry Osipenko's avatar Dmitry Osipenko
Browse files

reserved-memory improvement

parent c6048f02
Branches
Tags
No related merge requests found
...@@ -52,20 +52,6 @@ led_rgb_b { ...@@ -52,20 +52,6 @@ led_rgb_b {
}; };
}; };
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
/* 4k HDMI capture controller */
hdmirx_cma: hdmirx_cma {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x0 0x0 0xffffffff>;
size = <0x0 (160 * 0x100000)>; /* 160MiB */
no-map;
};
};
fan: pwm-fan { fan: pwm-fan {
compatible = "pwm-fan"; compatible = "pwm-fan";
cooling-levels = <0 95 145 195 255>; cooling-levels = <0 95 145 195 255>;
...@@ -226,7 +212,10 @@ &hdptxphy_hdmi0 { ...@@ -226,7 +212,10 @@ &hdptxphy_hdmi0 {
status = "okay"; status = "okay";
}; };
/* Should work with at least 160MiB cma reserved above. */ &hdmirx_cma {
status = "okay";
};
&hdmirx_ctrler { &hdmirx_ctrler {
status = "okay"; status = "okay";
hdmirx-5v-detection-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; hdmirx-5v-detection-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
......
...@@ -7,6 +7,25 @@ ...@@ -7,6 +7,25 @@
#include "rk3588-pinctrl.dtsi" #include "rk3588-pinctrl.dtsi"
/ { / {
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
/*
* The 4k HDMI capture controller works only with 32bit
* phys addresses and doesn't support IOMMU. HDMI RX CMA
* must be reserved below 4GB.
*/
hdmirx_cma: hdmirx_cma {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x0 0x0 0xffffffff>;
size = <0x0 (160 * 0x100000)>; /* 160MiB */
no-map;
status = "disabled";
};
};
usb_host1_xhci: usb@fc400000 { usb_host1_xhci: usb@fc400000 {
compatible = "rockchip,rk3588-dwc3", "snps,dwc3"; compatible = "rockchip,rk3588-dwc3", "snps,dwc3";
reg = <0x0 0xfc400000 0x0 0x400000>; reg = <0x0 0xfc400000 0x0 0x400000>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment