forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/sama5d3_can.dtsi
....@@ -1,10 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * sama5d3_can.dtsi - Device Tree Include file for SAMA5D3 SoC with
34 * CAN support
45 *
56 * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com>
6
- *
7
- * Licensed under GPLv2.
87 */
98
109 #include <dt-bindings/pinctrl/at91.h>
....@@ -32,29 +31,13 @@
3231
3332 };
3433
35
- pmc: pmc@fffffc00 {
36
- periphck {
37
- can0_clk: can0_clk {
38
- #clock-cells = <0>;
39
- reg = <40>;
40
- atmel,clk-output-range = <0 83000000>;
41
- };
42
-
43
- can1_clk: can1_clk {
44
- #clock-cells = <0>;
45
- reg = <41>;
46
- atmel,clk-output-range = <0 83000000>;
47
- };
48
- };
49
- };
50
-
5134 can0: can@f000c000 {
5235 compatible = "atmel,at91sam9x5-can";
5336 reg = <0xf000c000 0x300>;
5437 interrupts = <40 IRQ_TYPE_LEVEL_HIGH 3>;
5538 pinctrl-names = "default";
5639 pinctrl-0 = <&pinctrl_can0_rx_tx>;
57
- clocks = <&can0_clk>;
40
+ clocks = <&pmc PMC_TYPE_PERIPHERAL 40>;
5841 clock-names = "can_clk";
5942 status = "disabled";
6043 };
....@@ -65,7 +48,7 @@
6548 interrupts = <41 IRQ_TYPE_LEVEL_HIGH 3>;
6649 pinctrl-names = "default";
6750 pinctrl-0 = <&pinctrl_can1_rx_tx>;
68
- clocks = <&can1_clk>;
51
+ clocks = <&pmc PMC_TYPE_PERIPHERAL 41>;
6952 clock-names = "can_clk";
7053 status = "disabled";
7154 };