dts:starfive:Set can1 to canfd
authorWilliam Qiu <william.qiu@starfivetech.com>
Tue, 6 Sep 2022 08:47:35 +0000 (16:47 +0800)
committerWilliam Qiu <william.qiu@starfivetech.com>
Tue, 6 Sep 2022 10:39:49 +0000 (18:39 +0800)
Set can0 to can and set can1 to canfd

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
arch/riscv/boot/dts/starfive/Makefile
arch/riscv/boot/dts/starfive/jh7110-evb-can-pdm-pwmdac.dts
arch/riscv/boot/dts/starfive/jh7110-evb-canfd.dts [deleted file]
arch/riscv/boot/dts/starfive/jh7110.dtsi

index 5598347..fc946b3 100644 (file)
@@ -4,7 +4,6 @@ dtb-$(CONFIG_SOC_STARFIVE_JH7110) += jh7110-visionfive-v2.dtb   \
                                jh7110-evb.dtb                  \
                                jh7110-fpga.dtb                 \
                                jh7110-evb-can-pdm-pwmdac.dtb   \
-                               jh7110-evb-canfd.dtb            \
                                jh7110-evb-dvp-rgb2hdmi.dtb     \
                                jh7110-evb-pcie-i2s-sd.dtb      \
                                jh7110-evb-i2s-ac108.dtb        \
index e947156..2c543cc 100644 (file)
 };
 
 &can0 {
-       syscon,can_or_canfd = <0>;
        status = "okay";
 };
 
 &can1 {
-       syscon,can_or_canfd = <0>;
        status = "okay";
 };
 
diff --git a/arch/riscv/boot/dts/starfive/jh7110-evb-canfd.dts b/arch/riscv/boot/dts/starfive/jh7110-evb-canfd.dts
deleted file mode 100644 (file)
index 81cd20b..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0 OR MIT
-/*
- * Copyright (C) 2022 StarFive Technology Co., Ltd.
- * Copyright (C) 2022 William Qiu <william.qiu@starfivetech.com>
- */
-
-/dts-v1/;
-#include "jh7110-evb.dtsi"
-
-/ {
-       model = "StarFive JH7110 EVB";
-       compatible = "starfive,jh7110-evb", "starfive,jh7110";
-};
-
-/* default sd card */
-&sdio0 {
-       clock-frequency = <102400000>;
-       max-frequency = <200000000>;
-       card-detect-delay = <300>;
-       bus-width = <4>;
-       broken-cd;
-       cap-sd-highspeed;
-       post-power-on-delay-ms = <200>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdcard0_pins>;
-       status = "okay";
-};
-
-&usbdrd30 {
-       status = "okay";
-};
-
-&pcie1 {
-       status = "okay";
-};
-
-&can0 {
-       syscon,can_or_canfd = <1>;
-       status = "okay";
-};
-
-&can1 {
-       syscon,can_or_canfd = <1>;
-       status = "okay";
-};
\ No newline at end of file
index 6ed66a1..47e3436 100755 (executable)
                                 <&rstgen RSTN_U0_CAN_CTRL_TIMER>;
                        reset-names = "rst_apb", "rst_core", "rst_timer";
                        starfive,sys-syscon = <&sys_syscon 0x10 0x3 0x8>;
+                       syscon,can_or_canfd = <0>;
                        status = "disabled";
                };
 
                                 <&rstgen RSTN_U1_CAN_CTRL_TIMER>;
                        reset-names = "rst_apb", "rst_core", "rst_timer";
                        starfive,sys-syscon = <&sys_syscon 0x88 0x12 0x40000>;
+                       syscon,can_or_canfd = <1>;
                        status = "disabled";
                };