From 51d19cbbeeee718152dddf4e8a3beb7a4c269c94 Mon Sep 17 00:00:00 2001 From: Peter Bigot Date: Thu, 31 Oct 2019 09:06:42 -0500 Subject: [PATCH] dts: bindings: semtech,sx1509b: add fixed ngpios property Unlike most other GPIO controllers which support 32 pins this device only supports 16. (There is an SX1508B that has 8 pins, but the driver doesn't support it.) Signed-off-by: Peter Bigot --- boards/arm/nrf52_pca20020/nrf52_pca20020.dts | 1 + dts/bindings/gpio/semtech,sx1509b-gpio.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/boards/arm/nrf52_pca20020/nrf52_pca20020.dts b/boards/arm/nrf52_pca20020/nrf52_pca20020.dts index 7bd7c3f4706..57273bebc93 100644 --- a/boards/arm/nrf52_pca20020/nrf52_pca20020.dts +++ b/boards/arm/nrf52_pca20020/nrf52_pca20020.dts @@ -90,6 +90,7 @@ label = "GPIO_P0"; gpio-controller; #gpio-cells = <2>; + ngpios = <16>; }; lps22hb_press: lps22hb_press@5c { diff --git a/dts/bindings/gpio/semtech,sx1509b-gpio.yaml b/dts/bindings/gpio/semtech,sx1509b-gpio.yaml index 2d5f8847c45..ac3cd2e97d9 100644 --- a/dts/bindings/gpio/semtech,sx1509b-gpio.yaml +++ b/dts/bindings/gpio/semtech,sx1509b-gpio.yaml @@ -17,6 +17,10 @@ properties: "#gpio-cells": const: 2 + ngpios: + required: true + const: 16 + gpio-cells: - pin - flags