Skip to content

Commit f1e4bb5

Browse files
committed
drivers: gpio_sx1509b: update to use new GPIO API
Update driver code and board files to use new GPIO configuration flags such as GPIO_ACTIVE_LOW. Also add implementation of new port_* driver API. Tested on external SX1509B breakout board and Thingy:52. Signed-off-by: Peter Bigot <[email protected]>
1 parent 2b556e1 commit f1e4bb5

File tree

4 files changed

+319
-206
lines changed

4 files changed

+319
-206
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
/drivers/flash/*stm32* @superna9999
134134
/drivers/gpio/*ht16k33* @henrikbrixandersen
135135
/drivers/gpio/*stm32* @rsalveti @idlethread
136+
/drivers/gpio/*sx1509b* @pabigot
136137
/drivers/hwinfo/ @alexanderwachter
137138
/drivers/i2s/i2s_ll_stm32* @avisconti
138139
/drivers/ieee802154/ @jukkar @tbursztyka

boards/arm/nrf52_pca20020/nrf52_pca20020.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
compatible = "gpio-leds";
3535
/* Lightwell RGB */
3636
led0: led_0 {
37-
gpios = <&sx1509b 5 0>;
37+
gpios = <&sx1509b 5 GPIO_ACTIVE_LOW>;
3838
label = "Green LED";
3939
};
4040
led1: led_1 {
41-
gpios = <&sx1509b 6 0>;
41+
gpios = <&sx1509b 6 GPIO_ACTIVE_LOW>;
4242
label = "Blue LED";
4343
};
4444
led2: led_2 {
45-
gpios = <&sx1509b 7 0>;
45+
gpios = <&sx1509b 7 GPIO_ACTIVE_LOW>;
4646
label = "Red LED";
4747
};
4848
};

0 commit comments

Comments
 (0)