Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/chrome: chromeos_acpi: support official HID GOOG0016

Support official HID GOOG0016 for ChromeOS ACPI (see [1]).

[1]: https://crrev.com/c/2266713

Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/20230731024214.908235-1-tzungbi@kernel.org
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>

+18 -4
+15
Documentation/ABI/testing/sysfs-driver-chromeos-acpi
··· 1 1 What: /sys/bus/platform/devices/GGL0001:*/BINF.2 2 + /sys/bus/platform/devices/GOOG0016:*/BINF.2 2 3 Date: May 2022 3 4 KernelVersion: 5.19 4 5 Description: ··· 11 10 == =============================== 12 11 13 12 What: /sys/bus/platform/devices/GGL0001:*/BINF.3 13 + /sys/bus/platform/devices/GOOG0016:*/BINF.3 14 14 Date: May 2022 15 15 KernelVersion: 5.19 16 16 Description: ··· 25 23 == ===================================== 26 24 27 25 What: /sys/bus/platform/devices/GGL0001:*/CHSW 26 + /sys/bus/platform/devices/GOOG0016:*/CHSW 28 27 Date: May 2022 29 28 KernelVersion: 5.19 30 29 Description: ··· 41 38 ==== =========================================== 42 39 43 40 What: /sys/bus/platform/devices/GGL0001:*/FMAP 41 + /sys/bus/platform/devices/GOOG0016:*/FMAP 44 42 Date: May 2022 45 43 KernelVersion: 5.19 46 44 Description: ··· 49 45 processor firmware flashmap. 50 46 51 47 What: /sys/bus/platform/devices/GGL0001:*/FRID 48 + /sys/bus/platform/devices/GOOG0016:*/FRID 52 49 Date: May 2022 53 50 KernelVersion: 5.19 54 51 Description: ··· 57 52 main processor firmware. 58 53 59 54 What: /sys/bus/platform/devices/GGL0001:*/FWID 55 + /sys/bus/platform/devices/GOOG0016:*/FWID 60 56 Date: May 2022 61 57 KernelVersion: 5.19 62 58 Description: ··· 65 59 main processor firmware. 66 60 67 61 What: /sys/bus/platform/devices/GGL0001:*/GPIO.X/GPIO.0 62 + /sys/bus/platform/devices/GOOG0016:*/GPIO.X/GPIO.0 68 63 Date: May 2022 69 64 KernelVersion: 5.19 70 65 Description: ··· 80 73 =========== ================================== 81 74 82 75 What: /sys/bus/platform/devices/GGL0001:*/GPIO.X/GPIO.1 76 + /sys/bus/platform/devices/GOOG0016:*/GPIO.X/GPIO.1 83 77 Date: May 2022 84 78 KernelVersion: 5.19 85 79 Description: ··· 92 84 == ======================= 93 85 94 86 What: /sys/bus/platform/devices/GGL0001:*/GPIO.X/GPIO.2 87 + /sys/bus/platform/devices/GOOG0016:*/GPIO.X/GPIO.2 95 88 Date: May 2022 96 89 KernelVersion: 5.19 97 90 Description: ··· 100 91 controller. 101 92 102 93 What: /sys/bus/platform/devices/GGL0001:*/GPIO.X/GPIO.3 94 + /sys/bus/platform/devices/GOOG0016:*/GPIO.X/GPIO.3 103 95 Date: May 2022 104 96 KernelVersion: 5.19 105 97 Description: 106 98 Returns name of the GPIO controller. 107 99 108 100 What: /sys/bus/platform/devices/GGL0001:*/HWID 101 + /sys/bus/platform/devices/GOOG0016:*/HWID 109 102 Date: May 2022 110 103 KernelVersion: 5.19 111 104 Description: 112 105 Returns hardware ID for the Chromebook. 113 106 114 107 What: /sys/bus/platform/devices/GGL0001:*/MECK 108 + /sys/bus/platform/devices/GOOG0016:*/MECK 115 109 Date: May 2022 116 110 KernelVersion: 5.19 117 111 Description: ··· 125 113 present, or if the firmware was unable to read the extended registers, this buffer size can be zero. 126 114 127 115 What: /sys/bus/platform/devices/GGL0001:*/VBNV.0 116 + /sys/bus/platform/devices/GOOG0016:*/VBNV.0 128 117 Date: May 2022 129 118 KernelVersion: 5.19 130 119 Description: ··· 135 122 clock data). 136 123 137 124 What: /sys/bus/platform/devices/GGL0001:*/VBNV.1 125 + /sys/bus/platform/devices/GOOG0016:*/VBNV.1 138 126 Date: May 2022 139 127 KernelVersion: 5.19 140 128 Description: ··· 143 129 storage block. 144 130 145 131 What: /sys/bus/platform/devices/GGL0001:*/VDAT 132 + /sys/bus/platform/devices/GOOG0016:*/VDAT 146 133 Date: May 2022 147 134 KernelVersion: 5.19 148 135 Description:
+2 -3
Documentation/firmware-guide/acpi/chromeos-acpi-device.rst
··· 5 5 ===================== 6 6 7 7 Hardware functionality specific to Chrome OS is exposed through a Chrome OS ACPI device. 8 - The plug and play ID of a Chrome OS ACPI device is GGL0001. GGL is a valid PNP ID of Google. 9 - PNP ID can be used with the ACPI devices according to the guidelines. The following ACPI 10 - objects are supported: 8 + The plug and play ID of a Chrome OS ACPI device is GGL0001 and the hardware ID is 9 + GOOG0016. The following ACPI objects are supported: 11 10 12 11 .. flat-table:: Supported ACPI Objects 13 12 :widths: 1 2
+1 -1
drivers/platform/chrome/chromeos_acpi.c
··· 235 235 return 0; 236 236 } 237 237 238 - /* GGL is valid PNP ID of Google. PNP ID can be used with the ACPI devices. */ 239 238 static const struct acpi_device_id chromeos_device_ids[] = { 240 239 { "GGL0001", 0 }, 240 + { "GOOG0016", 0 }, 241 241 {} 242 242 }; 243 243 MODULE_DEVICE_TABLE(acpi, chromeos_device_ids);