Commit 6c60abb0 authored by Marc Reilly's avatar Marc Reilly Committed by Carles Cufi
Browse files

drivers: gpio: add dts support for nrf52 gpio



This adds basic support for declaring gpio nodes in dts for nrf52.
The dts.fixup provides mapping for the generated defines to the config
defines currently used by the nrf gpio driver.

Existing boards that use nrf52 are updated.

Signed-off-by: default avatarMarc Reilly <marc@cpdesign.com.au>
parent a55c72d3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7,6 +7,11 @@

#define FLASH_DEV_NAME			NRF_NRF52_FLASH_CONTROLLER_4001E000_LABEL

#define CONFIG_GPIO_NRF5_P0_DEV_NAME	NORDIC_NRF5_GPIO_50000000_LABEL
#define CONFIG_GPIO_NRF5_P1_DEV_NAME	NORDIC_NRF5_GPIO_50000300_LABEL
#define CONFIG_GPIOTE_NRF5_IRQ_PRI	NORDIC_NRF5_GPIOTE_40006000_IRQ_0_PRIORITY
#define CONFIG_GPIOTE_NRF5_IRQ		NORDIC_NRF5_GPIOTE_40006000_IRQ_0

#define CONFIG_I2C_0_BASE_ADDR		NORDIC_NRF5_I2C_40003000_BASE_ADDRESS
#define CONFIG_I2C_0_NAME		NORDIC_NRF5_I2C_40003000_LABEL
#define CONFIG_I2C_0_BITRATE		NORDIC_NRF5_I2C_40003000_CLOCK_FREQUENCY
+8 −0
Original line number Diff line number Diff line
@@ -19,6 +19,14 @@
	};
};

&gpiote {
	status ="ok";
};

&gpio0 {
	status ="ok";
};

&uart0 {
	compatible = "nordic,nrf-uart";
	current-speed = <115200>;
+1 −0
Original line number Diff line number Diff line
@@ -6,4 +6,5 @@

config BOARD_96B_NITROGEN
	bool "96Boards Nitrogen"
	select HAS_DTS_GPIO
	depends on SOC_NRF52832_QFAA
+1 −0
Original line number Diff line number Diff line
@@ -6,4 +6,5 @@

config  BOARD_NRF52840_PCA10056
	bool "NRF52840 PCA10056"
	select HAS_DTS_GPIO
	depends on SOC_NRF52840_QIAA
+12 −0
Original line number Diff line number Diff line
@@ -22,6 +22,18 @@
	};
};

&gpiote {
	status ="ok";
};

&gpio0 {
	status ="ok";
};

&gpio1 {
	status ="ok";
};

&uart0 {
	compatible = "nordic,nrf-uart";
	current-speed = <115200>;
Loading