File: cros-ec.txt

package info (click to toggle)
u-boot 2025.01-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 330,740 kB
  • sloc: ansic: 2,627,855; python: 60,773; sh: 41,641; asm: 21,854; makefile: 15,048; perl: 12,447; cs: 6,763; cpp: 1,868; yacc: 1,100; lex: 747; awk: 57; tcl: 32; sed: 24
file content (38 lines) | stat: -rw-r--r-- 1,062 bytes parent folder | download | duplicates (11)
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
38
Chrome OS CROS_EC Binding
======================

The device tree node which describes the operation of the CROS_EC interface
is as follows:

Required properties :
- compatible = "google,cros-ec"

Optional properties :
- spi-max-frequency : Sets the maximum frequency (in Hz) for SPI bus
   operation
- i2c-max-frequency : Sets the maximum frequency (in Hz) for I2C bus
   operation
- ec-interrupt : Selects the EC interrupt, defined as a GPIO according
   to the platform
- optimise-flash-write : Boolean property - if present then flash blocks
   containing all 0xff will not be written, since we assume that the EC
   uses that pattern for erased blocks

The CROS_EC node should appear as a subnode of the interrupt that connects it
to the EC (e.g. i2c, spi, lpc). The reg property (as usual) will indicate
the unit address on that bus.


Example
=======

	spi@131b0000 {
		cros-ec@0 {
			reg = <0>;
			compatible = "google,cros-ec";
			spi-max-frequency = <5000000>;
			ec-interrupt = <&gpio 174 1>;
			optimise-flash-write;
			status = "disabled";
		};
	};