Skip to content

Commit

Permalink
enable rproc driver
Browse files Browse the repository at this point in the history
  • Loading branch information
SamulKyull authored and SamulKyull committed Jul 6, 2024
1 parent 0848618 commit 89557df
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 4 deletions.
72 changes: 68 additions & 4 deletions tina/device/config/chips/v851se/configs/tinyvision/board.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,62 @@

/{
compatible = "allwinner,sun8iw21p1", "arm,sun8iw21p1", "allwinner,v851se";

reserved-memory {
e907_dram: riscv_memserve {
reg = <0x0 0x43c00000 0x0 0x00400000>;
no-map;
};

vdev0buffer: vdev0buffer@0x43000000 {
/* 256k reserved for shared mem pool */
compatible = "shared-dma-pool";
reg = <0x0 0x43000000 0x0 0x40000>;
no-map;
};

vdev0vring0: vdev0vring0@0x43040000 {
reg = <0x0 0x43040000 0x0 0x20000>;
no-map;
};

vdev0vring1: vdev0vring1@0x43060000 {
reg = <0x0 0x43060000 0x0 0x20000>;
no-map;
};
};

e907_rproc: e907_rproc@0 {
compatible = "allwinner,sun8iw21p1-e907-rproc";
clock-frequency = <600000000>;
memory-region = <&e907_dram>, <&vdev0buffer>,
<&vdev0vring0>, <&vdev0vring1>;

mboxes = <&msgbox 0>;
mbox-names = "mbox-chan";

memory-mappings =
/* DA len PA */
/* DDR for e907 */
< 0x43c00000 0x00400000 0x43c00000 >;
core-name = "sun8iw21p1-e907";
firmware-name = "melis-elf";
status = "okay";
};

rpbuf_controller0: rpbuf_controller@0 {
compatible = "allwinner,rpbuf-controller";
remoteproc = <&e907_rproc>;
ctrl_id = <0>; /* index of /dev/rpbuf_ctrl */
status = "okay";
};

rpbuf_sample: rpbuf_sample@0 {
compatible = "allwinner,rpbuf-sample";
rpbuf = <&rpbuf_controller0>;
status = "okay";
};

soc@03000000 {
wlan: wlan@0 {
compatible = "allwinner,sunxi-wlan";
Expand Down Expand Up @@ -364,7 +420,7 @@
pinctrl-names = "default", "sleep";
pinctrl-0 = <&uart3_pins_active>;
pinctrl-1 = <&uart3_pins_sleep>;
status = "disabled";
status = "okay";
};

&pio {
Expand Down Expand Up @@ -411,15 +467,15 @@
};

uart3_pins_active: uart3@0 {
allwinner,pins = "PH0", "PH1";
allwinner,pins = "PE0", "PE1";
allwinner,function = "uart3";
allwinner,muxsel = <5>;
allwinner,muxsel = <7>;
allwinner,drive = <1>;
allwinner,pull = <1>;
};

uart3_pins_sleep: uart3@1 {
allwinner,pins = "PH0", "PH1";
allwinner,pins = "PE0", "PE1";
allwinner,function = "gpio_in";
allwinner,muxsel = <0>;
};
Expand Down Expand Up @@ -1171,3 +1227,11 @@
&cpu0 {
vf_tbl_sel = <0>;
};

&msgbox {
status = "okay";
};

&e907_standby {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ CONFIG_MEDIA_SUPPORT=y
CONFIG_MEDIA_CAMERA_SUPPORT=y
CONFIG_MEDIA_CONTROLLER=y
CONFIG_VIDEO_V4L2_SUBDEV_API=y
CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_V4L_PLATFORM_DRIVERS=y
CONFIG_VIDEO_SUNXI_VIN=m
# CONFIG_CSI_CCI is not set
Expand Down Expand Up @@ -252,7 +254,17 @@ CONFIG_FB_TFT=y
CONFIG_FB_TFT_ST7789V=y
# CONFIG_COMMON_CLK_DEBUG is not set
# CONFIG_ARM_ARCH_TIMER_EVTSTREAM is not set
CONFIG_MAILBOX=y
CONFIG_SUNXI_MBOX=y
CONFIG_SUNXI_RV32_STANBY=y
CONFIG_SUNXI_IOMMU=y
CONFIG_SUNXI_RPROC=y
CONFIG_SUNXI_MSGBOX=y
CONFIG_SUNXI_RPMSG_E907=y
CONFIG_RPMSG_CTRL=y
CONFIG_RPMSG_NOTIFY=y
CONFIG_RPMSG_CHAR=y
CONFIG_RPMSG_VIRTIO=y
CONFIG_PWM=y
CONFIG_PWM_SUNXI_GROUP=y
CONFIG_ANDROID=y
Expand Down

0 comments on commit 89557df

Please sign in to comment.