1/* 2 * Copyright (c) 2023, Intel Corporation. All rights reserved. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/ { 8 test { 9 #address-cells = <1>; 10 #size-cells = <1>; 11 12 test_int_gpio { 13 #address-cells = <1>; 14 #size-cells = <1>; 15 test_intc: interrupt-controller { 16 compatible = "riscv,cpu-intc"; 17 #address-cells = < 0x0 >; 18 #interrupt-cells = < 0x1 >; 19 interrupt-controller; 20 phandle = < 0x1 >; 21 }; 22 23 test_gpio0: gpio@30070 { 24 interrupt-parent = < &test_intc >; 25 compatible = "altr,pio-1.0"; 26 reg = < 0x30070 0x10 >; 27 gpio-controller; 28 #gpio-cells = < 0x2 >; 29 status = "okay"; 30 ngpios = < 16 >; 31 #direction = "input"; 32 interrupts = <28>; 33 }; 34 }; 35 }; 36 37}; 38