1// SPDX-License-Identifier: BSD-2-Clause 2/* 3 * Copyright (c) 2022, Linaro Limited 4 */ 5 #include <dt-bindings/gpio/gpio.h> 6 7/ { 8 /* 9 * Device dt-test-consumer consumes resource, it is expected 10 * to defer its probe until resources are ready. 11 */ 12 dt-test-consumer { 13 compatible = "linaro,dt-test-consumer"; 14 clocks = <&dt_test_provider 3>, <&dt_test_provider 7>; 15 clock-names = "clk0", "clk1"; 16 resets = <&dt_test_provider 35>, <&dt_test_provider 5>; 17 reset-names = "rst0", "rst1"; 18 test-gpios = <&dt_test_provider 1 GPIO_ACTIVE_LOW>, 19 <&dt_test_provider 2 GPIO_PULL_UP>; 20 }; 21 22 /* 23 * Resource device are discovered from subnode added to probe 24 * list by related drivers (here all simple-bus). 25 */ 26 dt-test-bus-b0 { 27 compatible = "simple-bus"; 28 29 dt-test-bus-b1 { 30 compatible = "simple-bus"; 31 32 dt-test-bus-b2 { 33 compatible = "simple-bus"; 34 35 dt-test-bus-b3 { 36 compatible = "simple-bus"; 37 #address-cells = <1>; 38 #size-cells = <0>; 39 40 dt_test_provider: dt-test-provider@0 { 41 compatible = "linaro,dt-test-provider"; 42 reg = <0>; 43 #clock-cells = <1>; 44 #reset-cells = <1>; 45 #gpio-cells = <2>; 46 }; 47 }; 48 }; 49 }; 50 }; 51 52 dt-test-crypt-consumer { 53 compatible = "linaro,dt-test-crypt-consumer"; 54 }; 55}; 56