forked from starfive-tech/linux
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
23
arch/riscv/boot/dts/starfive/vf2-overlay/vf2-overlay-can.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; | ||
}; |