diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2013-02-08 03:02:51 -0500 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2013-02-11 16:48:09 -0500 |
commit | fa59f178552f927bd96771ba84e9706655bea705 (patch) | |
tree | 1c3eefdca5d5b433d9a4c80693452989e69a382d /arch/powerpc/boot/dts/a4m072.dts | |
parent | 4fd0a21353bd40a2f1f726faf0d74cf8cdcbce7f (diff) |
powerpc/5200: Use the gpt* labels to simplify mpc5200 dts files
The DTC labels feature allows a dts file to reference a node without
having to reproduce the entire node hierarchy above it. We can use this
to simplify the MPC5200 board dts files by referencing the gpt nodes by
label.
Cc: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
[agust: fixed gpt7 phandle in the csi node of o2d.dtsi]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/powerpc/boot/dts/a4m072.dts')
-rw-r--r-- | arch/powerpc/boot/dts/a4m072.dts | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/arch/powerpc/boot/dts/a4m072.dts b/arch/powerpc/boot/dts/a4m072.dts index fabe7b7d5f13..1f02034c7e99 100644 --- a/arch/powerpc/boot/dts/a4m072.dts +++ b/arch/powerpc/boot/dts/a4m072.dts | |||
@@ -15,6 +15,11 @@ | |||
15 | 15 | ||
16 | /include/ "mpc5200b.dtsi" | 16 | /include/ "mpc5200b.dtsi" |
17 | 17 | ||
18 | &gpt0 { fsl,has-wdt; }; | ||
19 | &gpt3 { gpio-controller; }; | ||
20 | &gpt4 { gpio-controller; }; | ||
21 | &gpt5 { gpio-controller; }; | ||
22 | |||
18 | / { | 23 | / { |
19 | model = "anonymous,a4m072"; | 24 | model = "anonymous,a4m072"; |
20 | compatible = "anonymous,a4m072"; | 25 | compatible = "anonymous,a4m072"; |
@@ -34,28 +39,6 @@ | |||
34 | fsl,init-fd-counters = <0x3333>; | 39 | fsl,init-fd-counters = <0x3333>; |
35 | }; | 40 | }; |
36 | 41 | ||
37 | timer@600 { | ||
38 | fsl,has-wdt; | ||
39 | }; | ||
40 | |||
41 | gpt3: timer@630 { /* General Purpose Timer in GPIO mode */ | ||
42 | compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio"; | ||
43 | gpio-controller; | ||
44 | #gpio-cells = <2>; | ||
45 | }; | ||
46 | |||
47 | gpt4: timer@640 { /* General Purpose Timer in GPIO mode */ | ||
48 | compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio"; | ||
49 | gpio-controller; | ||
50 | #gpio-cells = <2>; | ||
51 | }; | ||
52 | |||
53 | gpt5: timer@650 { /* General Purpose Timer in GPIO mode */ | ||
54 | compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio"; | ||
55 | gpio-controller; | ||
56 | #gpio-cells = <2>; | ||
57 | }; | ||
58 | |||
59 | spi@f00 { | 42 | spi@f00 { |
60 | status = "disabled"; | 43 | status = "disabled"; |
61 | }; | 44 | }; |