Skip to content

Commit

Permalink
riscv: dts: can: add dts for CAN
Browse files Browse the repository at this point in the history
add dts for CAN.

Signed-off-by: William Qiu <[email protected]>

Rebase note: Resolved conflict with own added overlays:
a7e709e

Signed-off-by: MichaIng <[email protected]>
  • Loading branch information
littleqyp authored and MichaIng committed May 11, 2024
1 parent cd83b48 commit 01b7e5e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/riscv/boot/dts/starfive/vf2-overlay/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 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
dtb-$(CONFIG_SOC_STARFIVE_JH7110) += 8GB.dtbo
dtb-$(CONFIG_SOC_STARFIVE_JH7110) += ethernet-A12.dtbo
23 changes: 23 additions & 0 deletions arch/riscv/boot/dts/starfive/vf2-overlay/vf2-overlay-can.dts
Original file line number Diff line number Diff line change
@@ -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";
};
};
};

0 comments on commit 01b7e5e

Please sign in to comment.