Fill Type-C VBUS and CC holes from CabCon R2.5 and R2.0 (2.76.0).

R2.5 keeps Rp/Rd/Ra, charger 4.75/4.0 V, zOPEN, tCCDebounce, tVBUSON.
R2.0 August 2019 Table 4-32 fills Source CC shall-detect only. vSafe5V stays UNKNOWN.
This commit is contained in:
2026-09-22 17:55:47 +02:00
parent c4cd046ea9
commit 421f659054
5 changed files with 547 additions and 72 deletions
+40 -2
View File
@@ -77,6 +77,7 @@ def test_type_c_rp_rd_from_cabcon_r25_vbus_volts_unknown():
_cite_ok(by["rp"])
assert by["rp"].value == 56000.0
assert by["rp"].source.table == "Table 4-27"
assert by["rp"].source.revision == "Release 2.5, March 2026"
assert by["rp"].source_type == "CONNECTOR"
_cite_ok(by["rd"])
assert by["rd"].value == 5100.0
@@ -84,8 +85,45 @@ def test_type_c_rp_rd_from_cabcon_r25_vbus_volts_unknown():
_cite_ok(by["ra"])
assert by["ra"].value == 800.0
assert by["ra"].source_type == "CABLE"
assert by["voltage"].value_kind == "UNKNOWN"
assert "vSafe5V" in (by["voltage"].needed_document or "")
_cite_ok(by["voltage"])
assert by["voltage"].value == 4.75
assert by["voltage"].unit == "V"
assert by["voltage"].source.table == "Figure 4-39"
assert by["voltage"].source.page == "233"
assert "2.5" in by["voltage"].source.revision
assert by["voltage"].source_type == "CABLE"
assert any("not USB PD vSafe5V" in x for x in by["voltage"].conditions)
_cite_ok(by["vbus_requirements"])
assert by["vbus_requirements"].value == 4.0
assert by["vbus_requirements"].source.table == "Figure 4-39"
_cite_ok(by["electrical_thresholds"])
assert by["electrical_thresholds"].value == 1.50
assert by["electrical_thresholds"].source.table == "Table 4-32"
assert by["electrical_thresholds"].source.page == "240"
assert "August 2019" in by["electrical_thresholds"].source.revision
assert by["electrical_thresholds"].source_type == "PCB"
_cite_ok(by["vopen_source_default"])
assert by["vopen_source_default"].value == 1.65
_cite_ok(by["vra_source_default_max"])
assert by["vra_source_default_max"].value == 0.15
_cite_ok(by["vrd_detect_threshold_default"])
assert by["vrd_detect_threshold_default"].value == 1.60
_cite_ok(by["termination"])
assert by["termination"].value == 126000.0
assert by["termination"].source.table == "Table 4-30"
assert "2.5" in by["termination"].source.revision
assert by["termination"].source_type == "CONNECTOR"
_cite_ok(by["timing"])
assert by["timing"].value == 100.0
assert by["timing"].source.table == "Table 4-34"
assert "2.5" in by["timing"].source.revision
_cite_ok(by["t_vbuson_max"])
assert by["t_vbuson_max"].value == 275.0
assert by["t_vbuson_max"].source.table == "Table 4-32"
assert by["t_vbuson_max"].source.page == "247"
assert "2.5" in by["t_vbuson_max"].source.revision
assert by["vsafe5v"].value_kind == "UNKNOWN"
assert "vSafe5V" in (by["vsafe5v"].needed_document or "")
_cite_ok(by["gnd_ir_drop_cable"])
assert by["gnd_ir_drop_cable"].value == 250.0
assert by["gnd_ir_drop_cable"].source_type == "CABLE"