xref: /linux/Documentation/ABI/testing/sysfs-platform-wilco-ec (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
14c1ca625SNick CrewsWhat:		/sys/bus/platform/devices/GOOG000C\:00/boot_on_ac
24c1ca625SNick CrewsDate:		April 2019
34c1ca625SNick CrewsKernelVersion:	5.3
44c1ca625SNick CrewsDescription:
54c1ca625SNick Crews		Boot on AC is a policy which makes the device boot from S5
64c1ca625SNick Crews		when AC power is connected. This is useful for users who
74c1ca625SNick Crews		want to run their device headless or with a dock.
84c1ca625SNick Crews
94c1ca625SNick Crews		Input should be parseable by kstrtou8() to 0 or 1.
1079e3f1d3SRaul E Rangel
1179e3f1d3SRaul E RangelWhat:          /sys/bus/platform/devices/GOOG000C\:00/build_date
1279e3f1d3SRaul E RangelDate:          May 2019
1379e3f1d3SRaul E RangelKernelVersion: 5.3
1479e3f1d3SRaul E RangelDescription:
1579e3f1d3SRaul E Rangel               Display Wilco Embedded Controller firmware build date.
1679e3f1d3SRaul E Rangel               Output will a MM/DD/YY string.
1779e3f1d3SRaul E Rangel
1879e3f1d3SRaul E RangelWhat:          /sys/bus/platform/devices/GOOG000C\:00/build_revision
1979e3f1d3SRaul E RangelDate:          May 2019
2079e3f1d3SRaul E RangelKernelVersion: 5.3
2179e3f1d3SRaul E RangelDescription:
2279e3f1d3SRaul E Rangel               Display Wilco Embedded Controller build revision.
2379e3f1d3SRaul E Rangel               Output will a version string be similar to the example below:
2479e3f1d3SRaul E Rangel               d2592cae0
2579e3f1d3SRaul E Rangel
2679e3f1d3SRaul E RangelWhat:          /sys/bus/platform/devices/GOOG000C\:00/model_number
2779e3f1d3SRaul E RangelDate:          May 2019
2879e3f1d3SRaul E RangelKernelVersion: 5.3
2979e3f1d3SRaul E RangelDescription:
3079e3f1d3SRaul E Rangel               Display Wilco Embedded Controller model number.
3179e3f1d3SRaul E Rangel               Output will a version string be similar to the example below:
3279e3f1d3SRaul E Rangel               08B6
3379e3f1d3SRaul E Rangel
34fdf0fe2dSDaniel CampelloWhat:          /sys/bus/platform/devices/GOOG000C\:00/usb_charge
35fdf0fe2dSDaniel CampelloDate:          October 2019
36fdf0fe2dSDaniel CampelloKernelVersion: 5.5
37fdf0fe2dSDaniel CampelloDescription:
38fdf0fe2dSDaniel Campello               Control the USB PowerShare Policy. USB PowerShare is a policy
39fdf0fe2dSDaniel Campello               which affects charging via the special USB PowerShare port
40fdf0fe2dSDaniel Campello               (marked with a small lightning bolt or battery icon) when in
41fdf0fe2dSDaniel Campello               low power states:
42*002a9c2fSMauro Carvalho Chehab
43fdf0fe2dSDaniel Campello               - In S0, the port will always provide power.
44fdf0fe2dSDaniel Campello               - In S0ix, if usb_charge is enabled, then power will be
45fdf0fe2dSDaniel Campello                 supplied to the port when on AC or if battery is > 50%.
46fdf0fe2dSDaniel Campello                 Else no power is supplied.
47fdf0fe2dSDaniel Campello               - In S5, if usb_charge is enabled, then power will be supplied
48fdf0fe2dSDaniel Campello                 to the port when on AC. Else no power is supplied.
49fdf0fe2dSDaniel Campello
50fdf0fe2dSDaniel Campello               Input should be either "0" or "1".
51fdf0fe2dSDaniel Campello
5279e3f1d3SRaul E RangelWhat:          /sys/bus/platform/devices/GOOG000C\:00/version
5379e3f1d3SRaul E RangelDate:          May 2019
5479e3f1d3SRaul E RangelKernelVersion: 5.3
5579e3f1d3SRaul E RangelDescription:
5679e3f1d3SRaul E Rangel               Display Wilco Embedded Controller firmware version.
5779e3f1d3SRaul E Rangel               The format of the string is x.y.z. Where x is major, y is minor
5879e3f1d3SRaul E Rangel               and z is the build number. For example: 95.00.06
59