[U-Boot] [PATCH 2/4] ARM: dts: at91: sam9x60ek: add onewire support

Eugen.Hristev at microchip.com Eugen.Hristev at microchip.com
Mon Sep 30 07:28:59 UTC 2019


From: Eugen Hristev <eugen.hristev at microchip.com>

Add support for onewire memory.

Signed-off-by: Eugen Hristev <eugen.hristev at microchip.com>
---
 arch/arm/dts/sam9x60ek.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/dts/sam9x60ek.dts b/arch/arm/dts/sam9x60ek.dts
index 6390427..bed59f3 100644
--- a/arch/arm/dts/sam9x60ek.dts
+++ b/arch/arm/dts/sam9x60ek.dts
@@ -17,6 +17,18 @@
 		stdout-path = &dbgu;
 	};
 
+	onewire_tm: onewire {
+		gpios = <&pioD 14 0>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_onewire_tm_default>;
+		status = "okay";
+
+		w1_eeprom: w1_eeprom at 0 {
+			compatible = "maxim,ds24b33";
+			status = "okay";
+		};
+	};
+
 	ahb {
 		apb {
 			qspi: spi at f0014000 {
@@ -44,6 +56,11 @@
 							 AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
 					};
 
+					pinctrl_onewire_tm_default: onewire_tm_default {
+						atmel,pins =
+							<AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
+					};
+
 			};
 		};
 	};
-- 
2.7.4



More information about the U-Boot mailing list