diff options
author | andy.hu <andy.hu@starfivetech.com> | 2024-03-07 13:46:00 +0300 |
---|---|---|
committer | andy.hu <andy.hu@starfivetech.com> | 2024-03-07 13:46:00 +0300 |
commit | 1be1d44b948cd3237326e1bfb64821f4425226b9 (patch) | |
tree | c909ca4969ddd8f750d98ad338b71c857e7e9ed9 /arch | |
parent | 18425cfe66cef584b243fba4966d8e0322880c7a (diff) | |
parent | 735c079091aa3115adc9ee0b41be6a3548d44139 (diff) | |
download | linux-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/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"; + }; + }; +}; |