All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node
@ 2019-09-30  7:28 Eugen.Hristev at microchip.com
  2019-09-30  7:28 ` [U-Boot] [PATCH 2/4] ARM: dts: at91: sam9x60ek: add onewire support Eugen.Hristev at microchip.com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Eugen.Hristev at microchip.com @ 2019-09-30  7:28 UTC (permalink / raw)
  To: u-boot

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

Add onewire node for w1 support.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 arch/arm/dts/sam9x60.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi
index 9c16ba1..e01539e 100644
--- a/arch/arm/dts/sam9x60.dtsi
+++ b/arch/arm/dts/sam9x60.dtsi
@@ -22,6 +22,7 @@
 		serial0 = &dbgu;
 		gpio0 = &pioA;
 		gpio1 = &pioB;
+		gpio3 = &pioD;
 		spi0 = &qspi;
 	};
 
@@ -155,6 +156,14 @@
 				clocks = <&pioB_clk>;
 			};
 
+			pioD: gpio at fffffa00 {
+				compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
+				reg = <0xfffffa00 0x200>;
+				#gpio-cells = <2>;
+				gpio-controller;
+				clocks = <&pioD_clk>;
+			};
+
 			pmc: pmc at fffffc00 {
 				compatible = "atmel,at91sam9x5-pmc";
 				reg = <0xfffffc00 0x200>;
@@ -212,6 +221,11 @@
 						reg = <3>;
 					};
 
+					pioD_clk: pioD_clk {
+						#clock-cells = <0>;
+						reg = <44>;
+					};
+
 					sdhci0_clk: sdhci0_clk {
 						#clock-cells = <0>;
 						reg = <12>;
@@ -282,4 +296,9 @@
 			};
 		};
 	};
+
+	onewire_tm: onewire {
+		compatible = "w1-gpio";
+		status = "disabled";
+	};
 };
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/4] ARM: dts: at91: sam9x60ek: add onewire support
  2019-09-30  7:28 [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node Eugen.Hristev at microchip.com
@ 2019-09-30  7:28 ` Eugen.Hristev at microchip.com
  2019-09-30  7:29 ` [U-Boot] [PATCH 3/4] board: atmel: sam9x60ek: add support for PDA detection Eugen.Hristev at microchip.com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Eugen.Hristev at microchip.com @ 2019-09-30  7:28 UTC (permalink / raw)
  To: u-boot

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

Add support for onewire memory.

Signed-off-by: Eugen Hristev <eugen.hristev@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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 3/4] board: atmel: sam9x60ek: add support for PDA detection
  2019-09-30  7:28 [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node Eugen.Hristev at microchip.com
  2019-09-30  7:28 ` [U-Boot] [PATCH 2/4] ARM: dts: at91: sam9x60ek: add onewire support Eugen.Hristev at microchip.com
@ 2019-09-30  7:29 ` Eugen.Hristev at microchip.com
  2019-09-30  7:29 ` [U-Boot] [PATCH 4/4] configs: sam9x60ek: enable onewire support Eugen.Hristev at microchip.com
  2019-10-07  6:45 ` [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node Eugen.Hristev at microchip.com
  3 siblings, 0 replies; 5+ messages in thread
From: Eugen.Hristev at microchip.com @ 2019-09-30  7:29 UTC (permalink / raw)
  To: u-boot

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

Automatically detect PDA at boot.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 board/atmel/sam9x60ek/sam9x60ek.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/board/atmel/sam9x60ek/sam9x60ek.c b/board/atmel/sam9x60ek/sam9x60ek.c
index e352afc..182b3ae 100644
--- a/board/atmel/sam9x60ek/sam9x60ek.c
+++ b/board/atmel/sam9x60ek/sam9x60ek.c
@@ -16,6 +16,8 @@
 #include <debug_uart.h>
 #include <asm/mach-types.h>
 
+extern void at91_pda_detect(void);
+
 DECLARE_GLOBAL_DATA_PTR;
 
 void at91_prepare_cpu_var(void);
@@ -80,6 +82,9 @@ static void sam9x60ek_nand_hw_init(void)
 int board_late_init(void)
 {
 	at91_prepare_cpu_var();
+
+	at91_pda_detect();
+
 	return 0;
 }
 #endif
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 4/4] configs: sam9x60ek: enable onewire support
  2019-09-30  7:28 [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node Eugen.Hristev at microchip.com
  2019-09-30  7:28 ` [U-Boot] [PATCH 2/4] ARM: dts: at91: sam9x60ek: add onewire support Eugen.Hristev at microchip.com
  2019-09-30  7:29 ` [U-Boot] [PATCH 3/4] board: atmel: sam9x60ek: add support for PDA detection Eugen.Hristev at microchip.com
@ 2019-09-30  7:29 ` Eugen.Hristev at microchip.com
  2019-10-07  6:45 ` [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node Eugen.Hristev at microchip.com
  3 siblings, 0 replies; 5+ messages in thread
From: Eugen.Hristev at microchip.com @ 2019-09-30  7:29 UTC (permalink / raw)
  To: u-boot

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

Enable support for onewire memories and onewire commands.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 configs/sam9x60ek_mmc_defconfig       | 4 ++++
 configs/sam9x60ek_nandflash_defconfig | 4 ++++
 configs/sam9x60ek_qspiflash_defconfig | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/configs/sam9x60ek_mmc_defconfig b/configs/sam9x60ek_mmc_defconfig
index 6cdc819..0d3746a 100644
--- a/configs/sam9x60ek_mmc_defconfig
+++ b/configs/sam9x60ek_mmc_defconfig
@@ -49,4 +49,8 @@ CONFIG_DEBUG_UART_ANNOUNCE=y
 CONFIG_ATMEL_USART=y
 CONFIG_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_W1=y
+CONFIG_W1_GPIO=y
+CONFIG_W1_EEPROM=y
+CONFIG_W1_EEPROM_DS24XXX=y
 CONFIG_OF_LIBFDT_OVERLAY=y
diff --git a/configs/sam9x60ek_nandflash_defconfig b/configs/sam9x60ek_nandflash_defconfig
index 4858539..d93f944 100644
--- a/configs/sam9x60ek_nandflash_defconfig
+++ b/configs/sam9x60ek_nandflash_defconfig
@@ -48,4 +48,8 @@ CONFIG_DEBUG_UART_ANNOUNCE=y
 CONFIG_ATMEL_USART=y
 CONFIG_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_W1=y
+CONFIG_W1_GPIO=y
+CONFIG_W1_EEPROM=y
+CONFIG_W1_EEPROM_DS24XXX=y
 CONFIG_OF_LIBFDT_OVERLAY=y
diff --git a/configs/sam9x60ek_qspiflash_defconfig b/configs/sam9x60ek_qspiflash_defconfig
index 8e3bf5e..5c37e6f 100644
--- a/configs/sam9x60ek_qspiflash_defconfig
+++ b/configs/sam9x60ek_qspiflash_defconfig
@@ -70,4 +70,8 @@ CONFIG_DM_SPI=y
 CONFIG_ATMEL_QSPI=y
 CONFIG_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_W1=y
+CONFIG_W1_GPIO=y
+CONFIG_W1_EEPROM=y
+CONFIG_W1_EEPROM_DS24XXX=y
 CONFIG_OF_LIBFDT_OVERLAY=y
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node
  2019-09-30  7:28 [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node Eugen.Hristev at microchip.com
                   ` (2 preceding siblings ...)
  2019-09-30  7:29 ` [U-Boot] [PATCH 4/4] configs: sam9x60ek: enable onewire support Eugen.Hristev at microchip.com
@ 2019-10-07  6:45 ` Eugen.Hristev at microchip.com
  3 siblings, 0 replies; 5+ messages in thread
From: Eugen.Hristev at microchip.com @ 2019-10-07  6:45 UTC (permalink / raw)
  To: u-boot



On 30.09.2019 10:28, Eugen Hristev - M18282 wrote:
> From: Eugen Hristev <eugen.hristev@microchip.com>
> 
> Add onewire node for w1 support.
> 
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> ---

Applied this series to u-boot-atmel/next

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-07  6:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30  7:28 [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node Eugen.Hristev at microchip.com
2019-09-30  7:28 ` [U-Boot] [PATCH 2/4] ARM: dts: at91: sam9x60ek: add onewire support Eugen.Hristev at microchip.com
2019-09-30  7:29 ` [U-Boot] [PATCH 3/4] board: atmel: sam9x60ek: add support for PDA detection Eugen.Hristev at microchip.com
2019-09-30  7:29 ` [U-Boot] [PATCH 4/4] configs: sam9x60ek: enable onewire support Eugen.Hristev at microchip.com
2019-10-07  6:45 ` [U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node Eugen.Hristev at microchip.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.