1/* 2 * Copyright (c) 2022, Kumar Gala <galak@kernel.org> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Application overlay for testing driver builds 7 * 8 * Names in this file should be chosen in a way that won't conflict 9 * with real-world devicetree nodes, to allow these tests to run on 10 * (and be extended to test) real hardware. 11 */ 12 13/ { 14 test { 15 #address-cells = <1>; 16 #size-cells = <1>; 17 18 test_gpio: gpio@deadbeef { 19 compatible = "vnd,gpio"; 20 gpio-controller; 21 reg = <0xdeadbeef 0x1000>; 22 #gpio-cells = <0x2>; 23 status = "okay"; 24 }; 25 26 test_i2c: i2c@11112222 { 27 #address-cells = <1>; 28 #size-cells = <0>; 29 compatible = "vnd,i2c"; 30 reg = <0x11112222 0x1000>; 31 status = "okay"; 32 clock-frequency = <100000>; 33 34 test_i2c_mt9m114: mt9m114@0 { 35 compatible = "aptina,mt9m114"; 36 reg = <0>; 37 }; 38 39 test_i2c_ov2640: ov2640@1 { 40 compatible = "ovti,ov2640"; 41 reg = <0x1>; 42 reset-gpios = <&test_gpio 0 0>; 43 }; 44 45 test_i2c_ov7725: ov7725@2 { 46 compatible = "ovti,ov7725"; 47 reg = <0x2>; 48 reset-gpios = <&test_gpio 0 0>; 49 }; 50 }; 51 }; 52}; 53