Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions Documentation/devicetree/bindings/net/can/holtek,ht42b416.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/can/holtek,ht42b416.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Holtek HT42B416 UART to CAN bus bridge

maintainers:
- Anton Tarasov <ant0@mail.ru>

description:
The Holtek HT42B416-x devices expose a CAN 2.0A/B controller via a UART
interface. The controller is configured with ASCII commands terminated by
carriage return characters and is normally attached to a SoC UART using the
serdev framework.

allOf:
- $ref: /schemas/net/can/can-controller.yaml#

properties:
compatible:
const: holtek,ht42b416

current-speed:
description: UART baud rate used to communicate with the bridge.
default: 115200

enable-gpios:
maxItems: 1
description:
Optional GPIO used to drive the CE pin of the bridge. The line should be
driven high to enable the device and low to reset or power it down.

required:
- compatible

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/gpio/gpio.h>

&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mod3_txrx_uart>;
status = "okay";

can@0 {
compatible = "holtek,ht42b416";
current-speed = <115200>;
enable-gpios = <&pio PG 10 GPIO_ACTIVE_HIGH>;
};
};
...
7 changes: 7 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -9413,6 +9413,13 @@ M: Alexander Shishkin <alexander.shishkin@linux.intel.com>
S: Maintained
F: drivers/hwtracing/

HOLTEK HT42B416 CAN DRIVER
M: Anton Tarasov <ant0@mail.ru>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Наверное лучше Wiren Board team <info@wirenboard.com>

L: linux-can@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/net/can/holtek,ht42b416.yaml
F: drivers/net/can/ht42b416.c

HARMONY SOUND DRIVER
L: linux-parisc@vger.kernel.org
S: Maintained
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/wb8.config
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ CONFIG_INET6_XFRM_MODE_BEET=m
# CAN support
CONFIG_CAN=y
CONFIG_CAN_GS_USB=m
CONFIG_CAN_HT42B416=m

# Docker
CONFIG_BLK_CGROUP=y
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
linux-wb (6.8.0-wb149) stable; urgency=medium

* wbe2-i-can: add support for CAN-module based on Holtek ht42b41
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* wbe2-i-can: add support for CAN-module based on Holtek ht42b41
* wbe2-i-can: add support for CAN-module based on Holtek ht42b41


-- Anton Tarasov <anton.tarasov@wirenboard.com> Fri, 16 Jan 2026 11:05:02 +0300

linux-wb (6.8.0-wb148) stable; urgency=medium

* wb8.5 HDMI: reject >30Hz 4K modes on H616 since T507-H can’t drive 4K60 reliably
Expand Down
11 changes: 11 additions & 0 deletions drivers/net/can/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,17 @@ config CAN_CAN327

If this driver is built as a module, it will be called can327.

config CAN_HT42B416
tristate "Holtek HT42B416 UART-to-CAN bridge"
depends on SERIAL_DEV_BUS && OF
help
Enable support for the Holtek HT42B416 UART to CAN bridge chips.
The driver uses the serdev framework to talk to the bridge via a SoC
UART and exposes a SocketCAN network interface.

To compile this driver as a module, choose M here: the module will be
called ht42b416.

config CAN_FLEXCAN
tristate "Support for Freescale FLEXCAN based chips"
depends on OF || COLDFIRE || COMPILE_TEST
Expand Down
1 change: 1 addition & 0 deletions drivers/net/can/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ obj-y += softing/
obj-$(CONFIG_CAN_AT91) += at91_can.o
obj-$(CONFIG_CAN_BXCAN) += bxcan.o
obj-$(CONFIG_CAN_CAN327) += can327.o
obj-$(CONFIG_CAN_HT42B416) += ht42b416.o
obj-$(CONFIG_CAN_CC770) += cc770/
obj-$(CONFIG_CAN_C_CAN) += c_can/
obj-$(CONFIG_CAN_CTUCANFD) += ctucanfd/
Expand Down
Loading