1# Copyright (c) 2022 Google LLC 2# SPDX-License-Identifier: Apache-2.0 3 4# Common fields for USB BC1.2 devices 5 6include: base.yaml 7 8properties: 9 charging-mode: 10 required: true 11 type: string 12 description: | 13 Define the charging port mode supported by the BC1.2 device. 14 Charging modes 15 - BC12_TYPE_NONE: Device does not support charging and only supports 16 portable-device mode. 17 - BC12_TYPE_SDP: Device supports SDP (standard downstream port) 18 charging. The USB data lines are active and the 19 maximum current is limited to 0.5A. 20 - BC12_TYPE_CDP: Device supports CDP (charging downstream port) 21 charging. The USB data lines are active and the 22 maximum current is limited to 1.5A. 23 - BC12_TYPE_DCP: Device supports DCP (dedicated charging port) 24 charging. The USB data lines are disabled and the 25 maximum current is limited to 1.5A. 26 enum: 27 - BC12_TYPE_NONE 28 - BC12_TYPE_SDP 29 - BC12_TYPE_CDP 30 - BC12_TYPE_DCP 31