|
| 1 | +/* |
| 2 | + * Copyright 2024 NXP |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + * |
| 6 | + * Names in this file should be chosen in a way that won't conflict |
| 7 | + * with real-world devicetree nodes, to allow these tests to run on |
| 8 | + * (and be extended to test) real hardware. |
| 9 | + */ |
| 10 | + |
| 11 | +/ { |
| 12 | + test { |
| 13 | + #address-cells = <1>; |
| 14 | + #size-cells = <1>; |
| 15 | + |
| 16 | + test_gpio: gpio@deadbeef { |
| 17 | + compatible = "vnd,gpio"; |
| 18 | + gpio-controller; |
| 19 | + reg = <0xdeadbeef 0x1000>; |
| 20 | + #gpio-cells = <0x2>; |
| 21 | + status = "okay"; |
| 22 | + }; |
| 23 | + |
| 24 | + test_i2c: i2c@11112222 { |
| 25 | + #address-cells = <1>; |
| 26 | + #size-cells = <0>; |
| 27 | + compatible = "vnd,i2c"; |
| 28 | + reg = <0x11112222 0x1000>; |
| 29 | + status = "okay"; |
| 30 | + clock-frequency = <100000>; |
| 31 | + |
| 32 | + test_i2c_ov5640: ov5640@1 { |
| 33 | + compatible = "ovti,ov5640"; |
| 34 | + reg = <0x1>; |
| 35 | + reset-gpios = <&test_gpio 0 0>; |
| 36 | + powerdown-gpios = <&test_gpio 1 0>; |
| 37 | + }; |
| 38 | + }; |
| 39 | + |
| 40 | + test_csi: csi@22223333 { |
| 41 | + compatible = "nxp,imx-csi"; |
| 42 | + reg = <0x22223333 0x4000>; |
| 43 | + status = "okay"; |
| 44 | + interrupt-parent = <&nvic>; |
| 45 | + interrupts = <56 1>; |
| 46 | + source = <&test_mipi_csi2rx>; |
| 47 | + }; |
| 48 | + |
| 49 | + test_mipi_csi2rx: mipi_csi2rx@33334444 { |
| 50 | + compatible = "nxp,mipi-csi2rx"; |
| 51 | + reg = <0x33334444 0x200>; |
| 52 | + status = "okay"; |
| 53 | + sensor = <&test_i2c_ov5640>; |
| 54 | + }; |
| 55 | + }; |
| 56 | +}; |
0 commit comments