Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit b20ef685 authored by zhangxianzhu's avatar zhangxianzhu Committed by Michael Bestas
Browse files

[ALM:11027108] [FP4]:add USB connector temperature node to mmitest

 &&&%%%comment:[FP4]:create FP4 DTS
 &&&%%%bug number:11027108
 &&&%%%product name:sm7225_r_fp4
 &&&%%%root cause:Specification
 &&&%%%Bug category:T2M
 &&&%%%Module_Impact:kernel
 &&&%%%Test_Suggestion:test mmitest USB NTC value
 &&&%%%Solution:add USB connector temerture node
 &&&%%%Test_Report:test is ok
 &&&%%%VAL Can Test:NO
parent 9868a730
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -400,6 +400,8 @@ static struct device_attribute power_supply_attrs[] = {
#else
	POWER_SUPPLY_ATTR(safety_timer_enabled),
#endif
	POWER_SUPPLY_ATTR(connector_temp),

	POWER_SUPPLY_ATTR(charge_done),
	POWER_SUPPLY_ATTR(flash_active),
	POWER_SUPPLY_ATTR(flash_trigger),
+6 −0
Original line number Diff line number Diff line
@@ -981,6 +981,7 @@ static enum power_supply_property smb5_usb_props[] = {
	POWER_SUPPLY_PROP_APSD_TIMEOUT,
	POWER_SUPPLY_PROP_CHARGER_STATUS,
	POWER_SUPPLY_PROP_INPUT_VOLTAGE_SETTLED,
	POWER_SUPPLY_PROP_CONNECTOR_TEMP,
};

static int smb5_usb_get_prop(struct power_supply *psy,
@@ -1094,6 +1095,11 @@ static int smb5_usb_get_prop(struct power_supply *psy,
	case POWER_SUPPLY_PROP_CONNECTOR_HEALTH:
		val->intval = smblib_get_prop_connector_health(chg);
		break;

	case POWER_SUPPLY_PROP_CONNECTOR_TEMP:
		val->intval = chg->connector_temp;
		break;

	case POWER_SUPPLY_PROP_SCOPE:
		rc = smblib_get_prop_scope(chg, val);
		break;
+1 −0
Original line number Diff line number Diff line
@@ -266,6 +266,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_BUCK_FREQ,
	POWER_SUPPLY_PROP_BOOST_CURRENT,
	POWER_SUPPLY_PROP_SAFETY_TIMER_ENABLE,
	POWER_SUPPLY_PROP_CONNECTOR_TEMP,
	POWER_SUPPLY_PROP_CHARGE_DONE,
	POWER_SUPPLY_PROP_FLASH_ACTIVE,
	POWER_SUPPLY_PROP_FLASH_TRIGGER,