summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/riscv/boot/dts/starfive/vf2-overlay/Makefile1
-rw-r--r--arch/riscv/boot/dts/starfive/vf2-overlay/vf2-overlay-can.dts23
2 files changed, 24 insertions, 0 deletions
diff --git a/arch/riscv/boot/dts/starfive/vf2-overlay/Makefile b/arch/riscv/boot/dts/starfive/vf2-overlay/Makefile
index 21e425e9dc1e..b5f6778c91cc 100644
--- a/arch/riscv/boot/dts/starfive/vf2-overlay/Makefile
+++ b/arch/riscv/boot/dts/starfive/vf2-overlay/Makefile
@@ -1,2 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_SOC_STARFIVE_JH7110) += vf2-overlay-uart3-i2c.dtbo
+dtb-$(CONFIG_SOC_STARFIVE_JH7110) += vf2-overlay-can.dtbo
diff --git a/arch/riscv/boot/dts/starfive/vf2-overlay/vf2-overlay-can.dts b/arch/riscv/boot/dts/starfive/vf2-overlay/vf2-overlay-can.dts
new file mode 100644
index 000000000000..c7b7d3292d92
--- /dev/null
+++ b/arch/riscv/boot/dts/starfive/vf2-overlay/vf2-overlay-can.dts
@@ -0,0 +1,23 @@
+/dts-v1/;
+/plugin/;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/starfive,jh7110-pinfunc.h>
+/ {
+ compatible = "starfive,visionfive-v2", "starfive,jh7110";
+
+ /* can0 */
+ fragment@0 {
+ target-path = "/soc/can@130d0000";
+ __overlay__ {
+ status = "okay";
+ };
+ };
+
+ /* can1 */
+ fragment@1 {
+ target-path = "/soc/can@130e0000";
+ __overlay__ {
+ status = "okay";
+ };
+ };
+};