Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6901d947 authored by Richard Genoud's avatar Richard Genoud Committed by Nicolas Ferre
Browse files

ARM: at91/at91sam9x5cm: add 1-wire chip on CM board



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: default avatarRichard Genoud <richard.genoud@gmail.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 62a870cb
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -24,6 +24,16 @@
	};

	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";
@@ -74,4 +84,14 @@
			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";
	};

};