1/* 2 * Copyright (c) 2023 MUNIC SA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/ { 8 test { 9 compatible = "test-gpio-reserved-ranges"; 10 11 #address-cells = <1>; 12 #size-cells = <1>; 13 14 test_gpio_1: gpio@deadbeef { 15 compatible = "vnd,gpio-device"; 16 gpio-controller; 17 reg = < 0xdeadbeef 0x10>; 18 #gpio-cells = < 0x2 >; 19 status = "okay"; 20 21 gpio-reserved-ranges = <0 4>, <5 3>, <9 5>, <11 2>, 22 <15 2>, <18 2>, <21 1>, <23 1>, 23 <25 4>, <30 2>; 24 }; 25 26 test_gpio_2: gpio@abcd1234 { 27 compatible = "vnd,gpio-device"; 28 gpio-controller; 29 reg = < 0xabcd1234 0x10>; 30 #gpio-cells = < 0x2 >; 31 status = "okay"; 32 33 gpio-reserved-ranges = <0 8>, <9 5>, <14 0>, <15 16>; 34 }; 35 36 test_gpio_3: gpio@1234 { 37 compatible = "vnd,gpio-device"; 38 gpio-controller; 39 reg = < 0x1234 0x10 >; 40 #gpio-cells = < 0x2 >; 41 status = "okay"; 42 43 ngpios = <18>; 44 gpio-reserved-ranges = <0 0>, <3 2>, <10 1>; 45 }; 46 47 test_gpio_4: gpio@5678 { 48 compatible = "vnd,gpio-device"; 49 gpio-controller; 50 reg = < 0x5678 0x10 >; 51 #gpio-cells = < 0x2 >; 52 status = "okay"; 53 54 ngpios = <16>; 55 gpio-reserved-ranges = <4 16>; 56 }; 57 58 test_gpio_5: gpio@8765 { 59 compatible = "vnd,gpio-device"; 60 gpio-controller; 61 reg = < 0x8765 0x10 >; 62 #gpio-cells = < 0x2 >; 63 status = "okay"; 64 65 ngpios = <0>; 66 gpio-reserved-ranges = <0 0>; 67 }; 68 69 test_gpio_6: gpio@3210 { 70 compatible = "vnd,gpio-device"; 71 gpio-controller; 72 reg = < 0x3210 0x10 >; 73 #gpio-cells = < 0x2 >; 74 status = "okay"; 75 }; 76 }; 77}; 78