summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorandy.hu <andy.hu@starfivetech.com>2024-03-07 13:46:00 +0300
committerandy.hu <andy.hu@starfivetech.com>2024-03-07 13:46:00 +0300
commit1be1d44b948cd3237326e1bfb64821f4425226b9 (patch)
treec909ca4969ddd8f750d98ad338b71c857e7e9ed9 /arch
parent18425cfe66cef584b243fba4966d8e0322880c7a (diff)
parent735c079091aa3115adc9ee0b41be6a3548d44139 (diff)
downloadlinux-JH7110_VF2_6.1_v5.11.4.tar.xz
Merge branch 'CR_9700_VF2_CAN_6.1_william.qiu' into 'vf2-6.1.y-devel'JH7110_VF2_6.1_v5.11.4
CR_9700_6.1: riscv: dts: can: add dts for CAN See merge request sbc/linux!198
Diffstat (limited to 'arch')
-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";
+ };
+ };
+};