BCM2708: Add core Device Tree support
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / mcp342x-overlay.dts
1 // Overlay for MCP3421-8 ADCs from Microchip Semiconductor
2
3 /dts-v1/;
4 /plugin/;
5
6 / {
7         compatible = "brcm,bcm2835";
8
9         fragment@0 {
10                 target = <&i2c1>;
11                 __overlay__ {
12                         #address-cells = <1>;
13                         #size-cells = <0>;
14
15                         status = "okay";
16
17                         mcp342x: mcp@68 {
18                                 reg = <0x68>;
19
20                                 status = "okay";
21                         };
22                 };
23         };
24
25         fragment@1 {
26                 target = <&mcp342x>;
27                 __dormant__ {
28                         compatible = "microchip,mcp3421";
29                 };
30         };
31
32         fragment@2 {
33                 target = <&mcp342x>;
34                 __dormant__ {
35                         compatible = "microchip,mcp3422";
36                 };
37         };
38
39         fragment@3 {
40                 target = <&mcp342x>;
41                 __dormant__ {
42                         compatible = "microchip,mcp3423";
43                 };
44         };
45
46         fragment@4 {
47                 target = <&mcp342x>;
48                 __dormant__ {
49                         compatible = "microchip,mcp3424";
50                 };
51         };
52
53         fragment@5 {
54                 target = <&mcp342x>;
55                 __dormant__ {
56                         compatible = "microchip,mcp3425";
57                 };
58         };
59
60         fragment@6 {
61                 target = <&mcp342x>;
62                 __dormant__ {
63                         compatible = "microchip,mcp3426";
64                 };
65         };
66
67         fragment@7 {
68                 target = <&mcp342x>;
69                 __dormant__ {
70                         compatible = "microchip,mcp3427";
71                 };
72         };
73
74         fragment@8 {
75                 target = <&mcp342x>;
76                 __dormant__ {
77                         compatible = "microchip,mcp3428";
78                 };
79         };
80
81         __overrides__ {
82                 addr = <&mcp342x>,"reg:0";
83                 mcp3421 = <0>,"=1";
84                 mcp3422 = <0>,"=2";
85                 mcp3423 = <0>,"=3";
86                 mcp3424 = <0>,"=4";
87                 mcp3425 = <0>,"=5";
88                 mcp3426 = <0>,"=6";
89                 mcp3427 = <0>,"=7";
90                 mcp3428 = <0>,"=8";
91         };
92 };
93