gpio: sx1509b: Add device tree support for GPIO generation

Add the missing bits to the yaml & dts to enable GPIO pin generation
based on device tree.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-10-04 17:38:51 -05:00 committed by Anas Nashif
commit db74c62398
2 changed files with 14 additions and 0 deletions

View file

@ -51,6 +51,8 @@
compatible = "semtech,sx1509b";
reg = <0x3e>;
label = "GPIO_P0";
gpio-controller;
#gpio-cells = <2>;
};
lps22hb_press: lps22hb_press@5c {

View file

@ -17,4 +17,16 @@ inherits:
properties:
compatible:
constraint: "semtech,sx1509b"
label:
type: string
category: required
description: Human readable string describing the device (used by Zephyr for API name)
generation: define
cell_string: GPIO
"#cells":
- pin
- flags
...