summaryrefslogtreecommitdiff
path: root/zephyr/test/ec_app/boards/native_posix.overlay
blob: 69bf044ec67ce9782e7344a9c907cd0048ec5e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* Copyright 2020 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include <board-overlays/native_posix.dts>
#include <cros/binman.dtsi>

/ {
	chosen {
		cros-ec,flash = &flash1;
		cros-ec,flash-controller = &cros_flash;
	};
	aliases {
		gpio-wp = &gpio_wp_l;
	};
	named-gpios {
		compatible = "named-gpios";
		ec_gsc_packet_mode {
			gpios = <&gpio0 2 GPIO_OUTPUT_LOW>;
			enum-name = "GPIO_PACKET_MODE_EN";
		};
		gpio_wp_l: wp_l {
			gpios = <&gpio0 3 (GPIO_INPUT | GPIO_ACTIVE_LOW)>;
		};
	};
	cros_flash: cros-flash {
		compatible = "cros-ec,flash-emul";
	};
	flash1: flash@64000000 {
		reg = <0x64000000 DT_SIZE_K(512)>;
	};
};

&gpio0 {
	ngpios = <4>;
};