diff options
author | William Qiu <william.qiu@starfivetech.com> | 2024-03-06 09:42:49 +0300 |
---|---|---|
committer | William Qiu <william.qiu@starfivetech.com> | 2024-03-07 06:17:02 +0300 |
commit | 735c079091aa3115adc9ee0b41be6a3548d44139 (patch) | |
tree | c909ca4969ddd8f750d98ad338b71c857e7e9ed9 | |
parent | cb4d2896441e2c2d5d25bb512413f940c6a2ca12 (diff) | |
download | linux-735c079091aa3115adc9ee0b41be6a3548d44139.tar.xz |
riscv: dts: can: add dts for CAN
add dts for CAN.
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
-rw-r--r-- | arch/riscv/boot/dts/starfive/vf2-overlay/Makefile | 1 | ||||
-rw-r--r-- | arch/riscv/boot/dts/starfive/vf2-overlay/vf2-overlay-can.dts | 23 |
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"; + }; + }; +}; |