mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
559ab6fb7b
[ Upstream commit 05d5de6ba7dbe490dd413b5ca11d0875bd2bc006 ]
According to the bosch,m_can.yaml bindings the first clock shall be the "hclk",
while the second clock "cclk".
This patch fixes the order accordingly.
Fixes: 0adbe832f2
("ARM: dts: dra76x: Add MCAN node")
Cc: Faiz Abbas <faiz_abbas@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
94 lines
2.2 KiB
Plaintext
94 lines
2.2 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
|
|
*/
|
|
|
|
#include "dra74x.dtsi"
|
|
|
|
/ {
|
|
compatible = "ti,dra762", "ti,dra7";
|
|
|
|
ocp {
|
|
target-module@42c01900 {
|
|
compatible = "ti,sysc-dra7-mcan", "ti,sysc";
|
|
ranges = <0x0 0x42c00000 0x2000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
reg = <0x42c01900 0x4>,
|
|
<0x42c01904 0x4>,
|
|
<0x42c01908 0x4>;
|
|
reg-names = "rev", "sysc", "syss";
|
|
ti,sysc-mask = <(SYSC_OMAP4_SOFTRESET |
|
|
SYSC_DRA7_MCAN_ENAWAKEUP)>;
|
|
ti,syss-mask = <1>;
|
|
clocks = <&wkupaon_clkctrl DRA7_WKUPAON_ADC_CLKCTRL 0>;
|
|
clock-names = "fck";
|
|
|
|
m_can0: mcan@1a00 {
|
|
compatible = "bosch,m_can";
|
|
reg = <0x1a00 0x4000>, <0x0 0x18FC>;
|
|
reg-names = "m_can", "message_ram";
|
|
interrupt-parent = <&gic>;
|
|
interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-names = "int0", "int1";
|
|
clocks = <&l3_iclk_div>, <&mcan_clk>;
|
|
clock-names = "hclk", "cclk";
|
|
bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
/* MCAN interrupts are hard-wired to irqs 67, 68 */
|
|
&crossbar_mpu {
|
|
ti,irqs-skip = <10 67 68 133 139 140>;
|
|
};
|
|
|
|
&scm_conf_clocks {
|
|
dpll_gmac_h14x2_ctrl_ck: dpll_gmac_h14x2_ctrl_ck@3fc {
|
|
#clock-cells = <0>;
|
|
compatible = "ti,divider-clock";
|
|
clocks = <&dpll_gmac_x2_ck>;
|
|
ti,max-div = <63>;
|
|
reg = <0x03fc>;
|
|
ti,bit-shift=<20>;
|
|
ti,latch-bit=<26>;
|
|
assigned-clocks = <&dpll_gmac_h14x2_ctrl_ck>;
|
|
assigned-clock-rates = <80000000>;
|
|
};
|
|
|
|
dpll_gmac_h14x2_ctrl_mux_ck: dpll_gmac_h14x2_ctrl_mux_ck@3fc {
|
|
#clock-cells = <0>;
|
|
compatible = "ti,mux-clock";
|
|
clocks = <&dpll_gmac_ck>, <&dpll_gmac_h14x2_ctrl_ck>;
|
|
reg = <0x3fc>;
|
|
ti,bit-shift = <29>;
|
|
ti,latch-bit=<26>;
|
|
assigned-clocks = <&dpll_gmac_h14x2_ctrl_mux_ck>;
|
|
assigned-clock-parents = <&dpll_gmac_h14x2_ctrl_ck>;
|
|
};
|
|
|
|
mcan_clk: mcan_clk@3fc {
|
|
#clock-cells = <0>;
|
|
compatible = "ti,gate-clock";
|
|
clocks = <&dpll_gmac_h14x2_ctrl_mux_ck>;
|
|
ti,bit-shift = <27>;
|
|
reg = <0x3fc>;
|
|
};
|
|
};
|
|
|
|
&rtctarget {
|
|
status = "disabled";
|
|
};
|
|
|
|
&usb4_tm {
|
|
status = "disabled";
|
|
};
|
|
|
|
&mmc3 {
|
|
/* dra76x is not affected by i887 */
|
|
max-frequency = <96000000>;
|
|
};
|