ARM: dts: at91: sam9x60ek: add onewire support
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 30 Sep 2019 07:28:59 +0000 (07:28 +0000)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 8 Oct 2019 06:16:11 +0000 (09:16 +0300)
Add support for onewire memory.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
arch/arm/dts/sam9x60ek.dts

index 63904272f08f7ed8edb9088ff2bbe8a973226cd6..bed59f3da2a41f88d624992f4e42e72a1527d201 100644 (file)
                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@0 {
+                       compatible = "maxim,ds24b33";
+                       status = "okay";
+               };
+       };
+
        ahb {
                apb {
                        qspi: spi@f0014000 {
                                                         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>;
+                                       };
+
                        };
                };
        };