Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359806
b: refs/heads/master
c: 28c55dc
h: refs/heads/master
v: v3
  • Loading branch information
Martin Fuzzey authored and Shawn Guo committed Feb 10, 2013
1 parent dca2078 commit d373cac
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96574a6dc6bee2320276d7468162a72a0e5c3a34
refs/heads/master: 28c55dc1acc863cb29832b5be2464ebcdafdc3d5
19 changes: 19 additions & 0 deletions trunk/Documentation/devicetree/bindings/w1/fsl-imx-owire.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
* Freescale i.MX One wire bus master controller

Required properties:
- compatible : should be "fsl,imx21-owire"
- reg : Address and length of the register set for the device

Optional properties:
- clocks : phandle of clock that supplies the module (required if platform
clock bindings use device tree)

Example:

- From imx53.dtsi:
owire: owire@63fa4000 {
compatible = "fsl,imx53-owire", "fsl,imx21-owire";
reg = <0x63fa4000 0x4000>;
clocks = <&clks 159>;
status = "disabled";
};
9 changes: 8 additions & 1 deletion trunk/drivers/w1/masters/mxc_w1.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,16 @@ static int mxc_w1_remove(struct platform_device *pdev)
return 0;
}

static struct of_device_id mxc_w1_dt_ids[] = {
{ .compatible = "fsl,imx21-owire" },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, mxc_w1_dt_ids);

static struct platform_driver mxc_w1_driver = {
.driver = {
.name = "mxc_w1",
.name = "mxc_w1",
.of_match_table = mxc_w1_dt_ids,
},
.probe = mxc_w1_probe,
.remove = mxc_w1_remove,
Expand Down

0 comments on commit d373cac

Please sign in to comment.