Skip to content

Commit 97083c2

Browse files
committed
Merge tag 'linux-can-next-for-6.6-20230719' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next
Marc Kleine-Budde says: ==================== pull-request: can-next 2023-07-19 The first 2 patches are by Judith Mendez, target the m_can driver and add hrtimer based polling support for TI AM62x SoCs, where the interrupt of the MCU domain's m_can cores is not routed to the Cortex A53 core. A patch by Rob Herring converts the grcan driver to use the correct DT include files. Michal Simek and Srinivas Neeli add support for optional reset control to the xilinx_can driver. The next 2 patches are by Jimmy Assarsson and add support for new Kvaser pciefd to the kvaser_pciefd driver. Mao Zhu's patch for the ucan driver removes a repeated word from a comment. * tag 'linux-can-next-for-6.6-20230719' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next: can: ucan: Remove repeated word can: kvaser_pciefd: Add support for new Kvaser pciefd devices can: kvaser_pciefd: Move hardware specific constants and functions into a driver_data struct can: Explicitly include correct DT includes can: xilinx_can: Add support for controller reset dt-bindings: can: xilinx_can: Add reset description can: m_can: Add hrtimer to generate software interrupt dt-bindings: net: can: Remove interrupt properties for MCAN ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 36395b2 + 03df47c commit 97083c2

File tree

10 files changed

+331
-90
lines changed

10 files changed

+331
-90
lines changed

Documentation/devicetree/bindings/net/can/bosch,m_can.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ required:
122122
- compatible
123123
- reg
124124
- reg-names
125-
- interrupts
126-
- interrupt-names
127125
- clocks
128126
- clock-names
129127
- bosch,mram-cfg
@@ -132,6 +130,7 @@ additionalProperties: false
132130

133131
examples:
134132
- |
133+
// Example with interrupts
135134
#include <dt-bindings/clock/imx6sx-clock.h>
136135
can@20e8000 {
137136
compatible = "bosch,m_can";
@@ -149,4 +148,21 @@ examples:
149148
};
150149
};
151150
151+
- |
152+
// Example with timer polling
153+
#include <dt-bindings/clock/imx6sx-clock.h>
154+
can@20e8000 {
155+
compatible = "bosch,m_can";
156+
reg = <0x020e8000 0x4000>, <0x02298000 0x4000>;
157+
reg-names = "m_can", "message_ram";
158+
clocks = <&clks IMX6SX_CLK_CANFD>,
159+
<&clks IMX6SX_CLK_CANFD>;
160+
clock-names = "hclk", "cclk";
161+
bosch,mram-cfg = <0x0 0 0 32 0 0 0 1>;
162+
163+
can-transceiver {
164+
max-bitrate = <5000000>;
165+
};
166+
};
167+
152168
...

Documentation/devicetree/bindings/net/can/xilinx,can.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ properties:
4646
$ref: /schemas/types.yaml#/definitions/uint32
4747
description: CAN Tx mailbox buffer count (CAN FD)
4848

49+
resets:
50+
maxItems: 1
51+
4952
required:
5053
- compatible
5154
- reg

drivers/net/can/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,13 @@ config CAN_KVASER_PCIEFD
160160
Kvaser PCIEcan 4xHS
161161
Kvaser PCIEcan 2xHS v2
162162
Kvaser PCIEcan HS v2
163+
Kvaser PCIEcan 1xCAN v3
164+
Kvaser PCIEcan 2xCAN v3
165+
Kvaser PCIEcan 4xCAN v2
163166
Kvaser Mini PCI Express HS v2
164167
Kvaser Mini PCI Express 2xHS v2
168+
Kvaser Mini PCI Express 1xCAN v3
169+
Kvaser Mini PCI Express 2xCAN v3
165170

166171
config CAN_SLCAN
167172
tristate "Serial / USB serial CAN Adaptors (slcan)"

drivers/net/can/grcan.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
#include <linux/ethtool.h>
3131
#include <linux/io.h>
3232
#include <linux/can/dev.h>
33+
#include <linux/platform_device.h>
3334
#include <linux/spinlock.h>
34-
#include <linux/of_platform.h>
35+
#include <linux/of.h>
3536
#include <linux/of_irq.h>
3637

3738
#include <linux/dma-mapping.h>

0 commit comments

Comments
 (0)