1/* 2 * Copyright (c) 2020, Linaro Ltd. 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 #include <freq.h> 14 #include <mem.h> 15 16/ { 17 test { 18 #address-cells = <1>; 19 #size-cells = <1>; 20 21 test_gpio: gpio@deadbeef { 22 compatible = "vnd,gpio"; 23 gpio-controller; 24 reg = <0xdeadbeef 0x1000>; 25 #gpio-cells = <0x2>; 26 status = "okay"; 27 }; 28 29 test_i2c: i2c@11112222 { 30 #address-cells = <1>; 31 #size-cells = <0>; 32 compatible = "vnd,i2c"; 33 reg = <0x11112222 0x1000>; 34 status = "okay"; 35 clock-frequency = <100000>; 36 37 test_i2c_at24: at24@0 { 38 compatible = "atmel,at24"; 39 reg = <0x0>; 40 size = <32768>; 41 pagesize = <64>; 42 address-width = <16>; 43 timeout = <5>; 44 wp-gpios = <&test_gpio 0 0>; 45 /* read-only; */ 46 }; 47 48 test_i2c_mb85rcxx: mb85rcxx@1 { 49 compatible = "fujitsu,mb85rcxx"; 50 reg = <0x1>; 51 size = <131072>; 52 pagesize = <131072>; 53 address-width = <16>; 54 wp-gpios = <&test_gpio 0 0>; 55 /* read-only; */ 56 }; 57 58 test_i2c_tmp116: tmp116@2 { 59 status = "okay"; 60 compatible = "ti,tmp116"; 61 reg = <0x2>; 62 #address-cells = <1>; 63 #size-cells = <0>; 64 65 test_tmp116_eeprom: ti_tmp116_eeprom@0 { 66 compatible = "ti,tmp116-eeprom"; 67 reg = <0x0>; 68 read-only; 69 }; 70 }; 71 }; 72 73 test_spi: spi@33334444 { 74 #address-cells = <1>; 75 #size-cells = <0>; 76 compatible = "vnd,spi"; 77 reg = <0x33334444 0x1000>; 78 status = "okay"; 79 clock-frequency = <2000000>; 80 81 /* one entry for every devices at spi.dtsi */ 82 cs-gpios = <&test_gpio 0 0>; 83 84 test_spi_at25: at25@0 { 85 compatible = "atmel,at25"; 86 reg = <0x0>; 87 spi-max-frequency = <0>; 88 size = <32768>; 89 pagesize = <64>; 90 address-width = <16>; 91 timeout = <5>; 92 wp-gpios = <&test_gpio 0 0>; 93 /* read-only; */ 94 }; 95 96 test_spi_mb85rsxx: mb85rsxx@0 { 97 compatible = "fujitsu,mb85rsxx"; 98 reg = <0x0>; 99 spi-max-frequency = <DT_FREQ_M(25)>; 100 size = <DT_SIZE_K(128)>; 101 }; 102 }; 103 }; 104}; 105