Where is /boot/hw_intfc.conf? (RockPi4b+)

I’m newbie on manjaro, but this is the new best. I have one “problem”, i cant find “hw_intfc.conf” file. (layout editing)

I want to enable(/set) i2c/uart and Raspberry 7" touchscreen, etc.

On debian located in /boot/hw_intfc.conf,

Thank you!

We don’t have such a file. This is not Raspberry Pi OS.

Thank you but its in official radxa debian image, for rock pi 4 b plus, not rpi…
Ref: Rockpi4/hardware/devtree overlays - Radxa Wiki

(This config only turn on-off and linking the dtbo-s)

  • Where can i enable/disable MIPI-DSI (for touchscreen display)
  • Where can i configure i2c? uart? spi?

Thank you

I would imagine this is something that needs to be done in the DTS.

i2c is enabled, so you can configure it like you would on any normal linux system from the CLI. UART can be configured in the /boot/extlinux/extlinux.conf file in the APPEND line. spi is a chip, usually accessible from /dev/mtd0 on the device, if the DTS supports it.

Thank you! So, i need to write and compile dts?

Because lsmod says dw_mipi_dsi already loaded:

[root@qnet-pc qnet]# lsmod | grep mipi
dw_mipi_dsi            20480  1 rockchipdrm
drm_kms_helper        188416  8 drm_cma_helper,drm_dp_helper,dw_mipi_dsi,rockchipdrm,dw_hdmi,analogix_dp
drm                   524288  23 drm_cma_helper,gpu_sched,drm_dp_helper,drm_kms_helper,dw_mipi_dsi,drm_shmem_helper,rockchipdrm,dw_hdmi,panfrost,analogix_dp

So I asked where I could configure it because the module was already loaded.

And reverse compile full of warning (include mipi):

[root@qnet-pc qnet]# dtc -I dtb -O dts -o reverse_compiled.dts /boot/dtbs/rockchip/rk3399-rock-pi-4b-plus.dtb
reverse_compiled.dts: Warning (unit_address_vs_reg): /usb@fe800000: node has a unit name, but no reg or ranges property
reverse_compiled.dts: Warning (unit_address_vs_reg): /usb@fe900000: node has a unit name, but no reg or ranges property
reverse_compiled.dts: Warning (avoid_unnecessary_addr_size): /mipi@ff960000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
reverse_compiled.dts: Warning (avoid_unnecessary_addr_size): /mipi@ff968000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
reverse_compiled.dts: Warning (interrupt_provider): /pinctrl/gpio@ff720000: Missing #address-cells in interrupt provider
reverse_compiled.dts: Warning (interrupt_provider): /pinctrl/gpio@ff730000: Missing #address-cells in interrupt provider
reverse_compiled.dts: Warning (interrupt_provider): /pinctrl/gpio@ff780000: Missing #address-cells in interrupt provider
reverse_compiled.dts: Warning (interrupt_provider): /pinctrl/gpio@ff788000: Missing #address-cells in interrupt provider
reverse_compiled.dts: Warning (interrupt_provider): /pinctrl/gpio@ff790000: Missing #address-cells in interrupt provider
reverse_compiled.dts: Warning (graph_child_address): /mipi@ff960000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
reverse_compiled.dts: Warning (graph_child_address): /mipi@ff968000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
reverse_compiled.dts: Warning (graph_child_address): /edp@ff970000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary

Otherwise, example i have a “raspberrypi-7-inch-lcd.dtbo” (from other, official release), is there any way to load this? (If i cant configure/turn on-off the loaded module?)

Actually running with /boot/dtbs/rockchip/rk3399-rock-pi-4b-plus.dtb: Device Tree Blob version 17

Thank you!