ARM: at91/at91sam9x5cm: add 1-wire chip on CM board
authorRichard Genoud <richard.genoud@gmail.com>
Wed, 20 Mar 2013 11:23:40 +0000 (12:23 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 21 Mar 2013 15:07:15 +0000 (16:07 +0100)
This add the 1-wire chip present on the CM board to the DTS.
As the pin is also used by leds, it's disabled by default.
If the board really wants it, it can be enabled in the board DTS.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/boot/dts/at91sam9x5cm.dtsi

index 4027ac7e45028c83d8e52edb12be9ff7a6248a68..347a74a857f62ec1d91b696da027adc14d8f614e 100644 (file)
        };
 
        ahb {
+               apb {
+                       pinctrl@fffff400 {
+                               1wire_cm {
+                                       pinctrl_1wire_cm: 1wire_cm-0 {
+                                               atmel,pins = <1 18 0x0 0x2>; /* PB18 multidrive, conflicts with led */
+                                       };
+                               };
+                       };
+               };
+
                nand0: nand@40000000 {
                        nand-bus-width = <8>;
                        nand-ecc-mode = "hw";
                        gpios = <&pioD 21 0>;
                };
        };
+
+       1wire_cm {
+               compatible = "w1-gpio";
+               gpios = <&pioB 18 0>;
+               linux,open-drain;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_1wire_cm>;
+               status = "okay";
+       };
+
 };
This page took 0.02553 seconds and 5 git commands to generate.