Skip to content

Commit

Permalink
w1: phytium_w1: add Phytium w1 bus master driver
Browse files Browse the repository at this point in the history
This driver supports for the 1-wire master interface of Phytium.

Signed-off-by: Zhu Mingshuai <[email protected]>
Signed-off-by: Chen Zhenhua <[email protected]>
Signed-off-by: Chen Baozi <[email protected]>
Signed-off-by: Wang Yinfeng <[email protected]>
Signed-off-by: Hu Yeqing <[email protected]>
  • Loading branch information
Hu Yeqing authored and Avenger-285714 committed May 24, 2024
1 parent 5b51224 commit c1697e0
Show file tree
Hide file tree
Showing 4 changed files with 660 additions and 0 deletions.
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 <[email protected]>

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

0 comments on commit c1697e0

Please sign in to comment.