Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w1: phytium_w1: add Phytium w1 bus master driver #191

Merged
merged 1 commit into from
May 24, 2024
Merged
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
33 changes: 33 additions & 0 deletions Documentation/devicetree/bindings/w1/phytium,w1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/w1/phytium,w1.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Phytium 1-wire bus master controller

maintainers:
- Chen Baozi <chenbaozi@phytium.com.cn>

properties:
compatible:
const: phytium,w1

reg:
maxItems: 1

interrupts:
maxItems: 1

required:
- compatible
- reg
- interrupts

examples:
- |
onewire0: onewire@2803f000 {
compatible = "phytium,w1";
reg = <0x0 0x2803f000 0x0 0x1000>;
interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
};
10 changes: 10 additions & 0 deletions drivers/w1/masters/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ config HDQ_MASTER_OMAP
Say Y here if you want support for the 1-wire or HDQ Interface
on an OMAP processor.

config W1_MASTER_PHYTIUM
bool "Phytium 1-wire driver"
depends on ARCH_PHYTIUM || COMPILE_TEST
help
Say Y here if you want to get support for the 1-wire interface
on an Phytium SoC.

This driver can also be built as a module. If so, the module
will be called phytium-w1.

config W1_MASTER_SGI
tristate "SGI ASIC driver"
help
Expand Down
1 change: 1 addition & 0 deletions drivers/w1/masters/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ obj-$(CONFIG_W1_MASTER_MXC) += mxc_w1.o

obj-$(CONFIG_W1_MASTER_GPIO) += w1-gpio.o
obj-$(CONFIG_HDQ_MASTER_OMAP) += omap_hdq.o
obj-$(CONFIG_W1_MASTER_PHYTIUM) += phytium_w1.o
obj-$(CONFIG_W1_MASTER_SGI) += sgi_w1.o
Loading