1/* 2 * Copyright (c) 2019 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/ { 8 resources { 9 compatible = "test-gpio-basic-api"; 10 out-gpios = <&sx1509b 0 0>; /* EXT0 */ 11 in-gpios = <&sx1509b 1 0>; /* EXT1 */ 12 }; 13 14 gpio_keys { 15 compatible = "gpio-keys"; 16 iox_button: button_2 { 17 gpios = <&sx1509b 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 18 label = "IOX Button"; 19 }; 20 }; 21}; 22 23&i2c0 { 24 sx1509b: sx1509b@3e { 25 compatible = "semtech,sx1509b"; 26 reg = <0x3e>; 27 gpio-controller; 28 #gpio-cells = <2>; 29 ngpios = <16>; 30 nint-gpios =<&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 31 }; 32}; 33