platform/chrome: cros_ec_uart: Add DT enumeration support
authorBhanu Prakash Maiya <bhanumaiya@chromium.org>
Tue, 27 Dec 2022 19:32:24 +0000 (12:32 -0700)
committerTzung-Bi Shih <tzungbi@kernel.org>
Thu, 5 Jan 2023 15:27:14 +0000 (23:27 +0800)
commitf9bce00f78ed9ff9c38130388c13a2b2b72b857e
tree6a0f658c694ece003c60c7e9bc8223a686a1049c
parent04a8bdd135cc05b10b665cedb360c7353312602d
platform/chrome: cros_ec_uart: Add DT enumeration support

Existing firmware uses the "PRP0001" _HID and an associated compatible
string to enumerate the cros_ec_uart.

Add DT enumeration support for already shipped firmware.

Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org>
Co-developed-by: Mark Hasemeyer <markhas@chromium.org>
Signed-off-by: Mark Hasemeyer <markhas@chromium.org>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20221227123212.v13.3.Ie23c217d69ff25d7354db942613f143bbc8ef891@changeid
drivers/platform/chrome/cros_ec_uart.c