Introduce 'max_charging_power' FAFT attribute

This CL provides information about maximum charging power for board.
This information is used by firmware_PDVbusRequest test to figure out
maximum voltage board will request.

Default value was set to 60W, because it is the most common value of
PD_MAX_POWER_MW. Information about power was taken from EC.

BUG=b:156474928
TEST=./consolidate.py && ./platform_json.py octopus -m fleex

Change-Id: I717a79d9c746cf58685b76776e66d838ee3ced52
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/fw-testing-configs/+/2703413
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
diff --git a/CONSOLIDATED.json b/CONSOLIDATED.json
index 5473405..7cc7358 100644
--- a/CONSOLIDATED.json
+++ b/CONSOLIDATED.json
@@ -117,7 +117,9 @@
 		"dut_can_source_power_in_suspend": true,
 		"dut_can_source_power_in_suspend.DOC": "True if DUT will keep providing power to devices connected via USB-C when going to suspend",
 		"usb_hid_wake_enabled": true,
-		"usb_hid_wake_enabled.DOC": "True if wake from USB HID is supported"
+		"usb_hid_wake_enabled.DOC": "True if wake from USB HID is supported",
+		"max_charging_power": 60.0,
+		"max_charging_power.DOC": "Max charging power for DUT in watts"
 	},
 	"arkham": {
 		"platform": "arkham",
@@ -300,7 +302,8 @@
 		"dark_resume_capable": true,
 		"smm_store": false,
 		"hold_pwr_button_nopowerd_shutdown": 14,
-		"usbc_input_voltage_limit": 15
+		"usbc_input_voltage_limit": 15,
+		"max_charging_power": 45.0
 	},
 	"dragonegg": {
 		"platform": "dragonegg",
@@ -325,7 +328,8 @@
 				"ioex": false
 			}
 		],
-		"smm_store": false
+		"smm_store": false,
+		"max_charging_power": 45.0
 	},
 	"drallion": {
 		"platform": "drallion",
@@ -356,7 +360,8 @@
 	"elm": {
 		"platform": "elm",
 		"parent": "oak",
-		"ec_ro_vbus_bug": true
+		"ec_ro_vbus_bug": true,
+		"max_charging_power": 45.0
 	},
 	"endeavour": {
 		"platform": "endeavour",
@@ -389,7 +394,8 @@
 			"rdd_leakage",
 			"wp_on_in_g3"
 		],
-		"dut_can_source_power_in_suspend": false
+		"dut_can_source_power_in_suspend": false,
+		"max_charging_power": 45.0
 	},
 	"expresso": {
 		"platform": "expresso",
@@ -415,7 +421,8 @@
 			"x86"
 		],
 		"delay_reboot_to_ping": 40,
-		"smm_store": false
+		"smm_store": false,
+		"max_charging_power": 100.0
 	},
 	"gale": {
 		"platform": "gale",
@@ -492,7 +499,8 @@
 		],
 		"servo_prog_state_delay": 10,
 		"smm_store": false,
-		"gsc_can_wake_ec_with_reset": false
+		"gsc_can_wake_ec_with_reset": false,
+		"max_charging_power": 45.0
 	},
 	"guado": {
 		"platform": "guado",
@@ -525,7 +533,8 @@
 				"name": "EN_PP5000_USB_A1_VBUS_DB",
 				"ioex": true
 			}
-		]
+		],
+		"max_charging_power": 65.0
 	},
 	"hana": {
 		"platform": "hana",
@@ -561,6 +570,9 @@
 		"models": {
 			"kled": {
 				"usbc_input_voltage_limit": 15
+			},
+			"mushu": {
+				"max_charging_power": 100.0
 			}
 		}
 	},
@@ -646,7 +658,8 @@
 		"ec_boot_to_console": 2,
 		"ec_boot_to_wp_en": 2,
 		"usbc_input_voltage_limit": 12,
-		"charger_profile_override": true
+		"charger_profile_override": true,
+		"max_charging_power": 45.0
 	},
 	"kunimitsu": {
 		"platform": "kunimitsu",
@@ -709,7 +722,8 @@
 		"gsc_can_wake_ec_with_reset": false,
 		"cr50_capability": [
 			"rdd_leakage"
-		]
+		],
+		"max_charging_power": 70.0
 	},
 	"nasher": {
 		"platform": "nasher",
@@ -731,7 +745,8 @@
 		"servo_prog_state_delay": 10,
 		"delay_reboot_to_ping": 40,
 		"dark_resume_capable": true,
-		"smm_store": false
+		"smm_store": false,
+		"max_charging_power": 45.0
 	},
 	"ninja": {
 		"platform": "ninja",
@@ -764,7 +779,8 @@
 		"cr50_capability": [
 			"wp_on_in_g3",
 			"rdd_off_in_g3"
-		]
+		],
+		"max_charging_power": 45.0
 	},
 	"oak": {
 		"platform": "oak",
@@ -821,7 +837,8 @@
 			"casta": {
 				"usbc_input_voltage_limit": 15
 			}
-		}
+		},
+		"max_charging_power": 45.0
 	},
 	"orco": {
 		"platform": "orco",
@@ -863,7 +880,8 @@
 			"charging",
 			"lid"
 		],
-		"smm_store": false
+		"smm_store": false,
+		"max_charging_power": 45.0
 	},
 	"puff": {
 		"platform": "puff",
@@ -890,7 +908,8 @@
 				"ioex": false
 			}
 		],
-		"smm_store": false
+		"smm_store": false,
+		"max_charging_power": 100.0
 	},
 	"pyro": {
 		"platform": "pyro",
@@ -931,7 +950,8 @@
 		"spi_voltage": "pp3300",
 		"servo_prog_state_delay": 10,
 		"dark_resume_capable": true,
-		"smm_store": false
+		"smm_store": false,
+		"max_charging_power": 45.0
 	},
 	"reef": {
 		"platform": "reef",
@@ -951,7 +971,8 @@
 		"firmware_screen": 25,
 		"usb_plug": 45,
 		"spi_voltage": "pp1800",
-		"smm_store": false
+		"smm_store": false,
+		"max_charging_power": 45.0
 	},
 	"reef_uni": {
 		"platform": "reef_uni",
@@ -1035,7 +1056,8 @@
 			"charging"
 		],
 		"hibernate": false,
-		"is_detachable": true
+		"is_detachable": true,
+		"max_charging_power": 38.55
 	},
 	"sentry": {
 		"platform": "sentry",
@@ -1207,7 +1229,15 @@
 		],
 		"dark_resume_capable": true,
 		"smm_store": false,
-		"hold_pwr_button_nopowerd_shutdown": 14
+		"hold_pwr_button_nopowerd_shutdown": 14,
+		"models": {
+			"halvor": {
+				"max_charging_power": 65.0
+			},
+			"voema": {
+				"max_charging_power": 65.0
+			}
+		}
 	},
 	"whirlwind": {
 		"platform": "whirlwind",
@@ -1253,6 +1283,7 @@
 				"name": "EN_USB_A1_5V_DB",
 				"ioex": true
 			}
-		]
+		],
+		"max_charging_power": 65.0
 	}
 }
\ No newline at end of file
diff --git a/DEFAULTS.json b/DEFAULTS.json
index b4b0429..bfe11f4 100644
--- a/DEFAULTS.json
+++ b/DEFAULTS.json
@@ -174,5 +174,8 @@
     "dut_can_source_power_in_suspend.DOC": "True if DUT will keep providing power to devices connected via USB-C when going to suspend",
 
     "usb_hid_wake_enabled": true,
-    "usb_hid_wake_enabled.DOC": "True if wake from USB HID is supported"
+    "usb_hid_wake_enabled.DOC": "True if wake from USB HID is supported",
+
+    "max_charging_power": 60.0,
+    "max_charging_power.DOC": "Max charging power for DUT in watts"
 }
diff --git a/dedede.json b/dedede.json
index 61ad8e1..de233aa 100644
--- a/dedede.json
+++ b/dedede.json
@@ -18,5 +18,6 @@
     "dark_resume_capable": true,
     "smm_store": false,
     "hold_pwr_button_nopowerd_shutdown": 14,
-    "usbc_input_voltage_limit": 15
+    "usbc_input_voltage_limit": 15,
+    "max_charging_power": 45.0
 }
diff --git a/dragonegg.json b/dragonegg.json
index a2d34fd..06e4258 100644
--- a/dragonegg.json
+++ b/dragonegg.json
@@ -21,5 +21,6 @@
             "ioex": false
         }
     ],
-    "smm_store": false
+    "smm_store": false,
+    "max_charging_power": 45.0
 }
diff --git a/elm.json b/elm.json
index 38e6f8d..7d899b4 100644
--- a/elm.json
+++ b/elm.json
@@ -1,5 +1,6 @@
 {
     "platform": "elm",
     "parent": "oak",
-    "ec_ro_vbus_bug": true
+    "ec_ro_vbus_bug": true,
+    "max_charging_power": 45.0
 }
diff --git a/eve.json b/eve.json
index f25a92d..a29f979 100644
--- a/eve.json
+++ b/eve.json
@@ -21,5 +21,6 @@
         "rdd_leakage",
 	"wp_on_in_g3"
     ],
-    "dut_can_source_power_in_suspend": false
+    "dut_can_source_power_in_suspend": false,
+    "max_charging_power": 45.0
 }
diff --git a/fizz.json b/fizz.json
index 2376084..c298adb 100644
--- a/fizz.json
+++ b/fizz.json
@@ -13,5 +13,6 @@
         "x86"
     ],
     "delay_reboot_to_ping": 40,
-    "smm_store": false
+    "smm_store": false,
+    "max_charging_power": 100.0
 }
diff --git a/grunt.json b/grunt.json
index 9550788..1b045bb 100644
--- a/grunt.json
+++ b/grunt.json
@@ -11,5 +11,6 @@
     ],
     "servo_prog_state_delay": 10,
     "smm_store": false,
-    "gsc_can_wake_ec_with_reset": false
+    "gsc_can_wake_ec_with_reset": false,
+    "max_charging_power": 45.0
 }
diff --git a/guybrush.json b/guybrush.json
index f6ac44b..07b44f9 100644
--- a/guybrush.json
+++ b/guybrush.json
@@ -25,5 +25,7 @@
             "name": "EN_PP5000_USB_A1_VBUS_DB",
             "ioex": true
         }
-    ]
+    ],
+    "max_charging_power": 65.0
+
 }
diff --git a/hatch.json b/hatch.json
index 5743e2b..421b5c0 100644
--- a/hatch.json
+++ b/hatch.json
@@ -28,6 +28,9 @@
     "models": {
         "kled": {
             "usbc_input_voltage_limit": 15
-        }
+        },
+	"mushu": {
+	    "max_charging_power": 100.0
+	}
     }
 }
diff --git a/kukui.json b/kukui.json
index b718647..b9f9c54 100644
--- a/kukui.json
+++ b/kukui.json
@@ -16,5 +16,6 @@
     "ec_boot_to_console": 2,
     "ec_boot_to_wp_en": 2,
     "usbc_input_voltage_limit": 12,
-    "charger_profile_override": true
+    "charger_profile_override": true,
+    "max_charging_power": 45.0
 }
diff --git a/nami.json b/nami.json
index ffc8d71..fb3ff49 100644
--- a/nami.json
+++ b/nami.json
@@ -17,5 +17,6 @@
     "gsc_can_wake_ec_with_reset": false,
     "cr50_capability": [
         "rdd_leakage"
-    ]
+    ],
+    "max_charging_power": 70.0
 }
diff --git a/nautilus.json b/nautilus.json
index e5f33c0..18200f7 100644
--- a/nautilus.json
+++ b/nautilus.json
@@ -14,5 +14,6 @@
     "servo_prog_state_delay": 10,
     "delay_reboot_to_ping": 40,
     "dark_resume_capable": true,
-    "smm_store": false
+    "smm_store": false,
+    "max_charging_power": 45.0
 }
diff --git a/nocturne.json b/nocturne.json
index 74e7ac3..0fd0366 100644
--- a/nocturne.json
+++ b/nocturne.json
@@ -16,5 +16,6 @@
     "cr50_capability": [
         "wp_on_in_g3",
         "rdd_off_in_g3"
-    ]
+    ],
+    "max_charging_power": 45.0
 }
diff --git a/octopus.json b/octopus.json
index 0e6773b..e6419a7 100644
--- a/octopus.json
+++ b/octopus.json
@@ -40,5 +40,6 @@
         "casta": {
             "usbc_input_voltage_limit": 15
         }
-    }
+    },
+    "max_charging_power": 45.0
 }
diff --git a/poppy.json b/poppy.json
index 011a8ea..1b89e31 100644
--- a/poppy.json
+++ b/poppy.json
@@ -14,5 +14,6 @@
         "charging",
         "lid"
     ],
-    "smm_store": false
+    "smm_store": false,
+    "max_charging_power": 45.0
 }
diff --git a/puff.json b/puff.json
index bba699e..4e435ee 100644
--- a/puff.json
+++ b/puff.json
@@ -23,5 +23,6 @@
             "ioex": false
         }
     ],
-    "smm_store": false
+    "smm_store": false,
+    "max_charging_power": 100.0
 }
diff --git a/rammus.json b/rammus.json
index 6283de3..560a90e 100644
--- a/rammus.json
+++ b/rammus.json
@@ -13,5 +13,6 @@
     "spi_voltage": "pp3300",
     "servo_prog_state_delay": 10,
     "dark_resume_capable": true,
-    "smm_store": false
+    "smm_store": false,
+    "max_charging_power": 45.0
 }
diff --git a/reef.json b/reef.json
index a3bd7da..c9d226f 100644
--- a/reef.json
+++ b/reef.json
@@ -16,5 +16,6 @@
     "firmware_screen": 25,
     "usb_plug": 45,
     "spi_voltage": "pp1800",
-    "smm_store": false
+    "smm_store": false,
+    "max_charging_power": 45.0
 }
diff --git a/scarlet.json b/scarlet.json
index f9eee06..8a7e585 100644
--- a/scarlet.json
+++ b/scarlet.json
@@ -10,5 +10,6 @@
         "charging"
     ],
     "hibernate": false,
-    "is_detachable": true
+    "is_detachable": true,
+    "max_charging_power": 38.55
 }
diff --git a/volteer.json b/volteer.json
index f625877..bb1414e 100644
--- a/volteer.json
+++ b/volteer.json
@@ -23,5 +23,13 @@
     ],
     "dark_resume_capable": true,
     "smm_store": false,
-    "hold_pwr_button_nopowerd_shutdown": 14
+    "hold_pwr_button_nopowerd_shutdown": 14,
+    "models": {
+	"halvor": {
+	    "max_charging_power": 65.0
+	},
+	"voema": {
+	    "max_charging_power": 65.0
+	}
+    }
 }
diff --git a/zork.json b/zork.json
index ce2cf04..e0a5ae0 100644
--- a/zork.json
+++ b/zork.json
@@ -26,5 +26,6 @@
             "name": "EN_USB_A1_5V_DB",
             "ioex": true
         }
-    ]
+    ],
+    "max_charging_power": 65.0
 }