From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D5601A841E for ; Mon, 30 Dec 2024 14:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735567596; cv=none; b=hjG5Y4x8dEmy2EuGkEbHJkkeAtiR5ScGmyqyW8u2lJCwm3r4fiCmEW/sM6rNoP+fYEY3XrYSQAj3JUG7EBnhVoonlnhrZqaB/xToF+pP2n7UDgez8mhLOHwywsywNIPrA0nnE+uBs/j5FNd4SPLazQJJn2yzP/1c2QYLGD9Mxpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735567596; c=relaxed/simple; bh=Pd7W2GaowCzBlhjM+FPZl5jVACnucqVoUpDs8LGL2i8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QZKb1zN/SVwcrn7oNYhBCohGUPMlTP6XRRpo/ol9Fsla5OgDFNY7altRXKsctM7PgDsmVlhOdC8tWERQB4eV7c9Q4JbGJReqLyVIFO9yT/kh8fez5ZI/m72K60hqkNGujPheOzOtXRqCxjW/1FqdNaOf5dodyfK8aHoApP2iLXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=lvR/qlWk; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="lvR/qlWk" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BUE5nUY025622 for ; Mon, 30 Dec 2024 14:06:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= s2w02fJr/RtLzq61cZCWFNHIWP1TLDcvMW7PA8rh8QI=; b=lvR/qlWkgK665AdU wxhC0lOZU7UzFBWctL1dpWp+LrfOul7NjBklqJZ8NuL4v7uNaTVVQy73aDckWbwb Z+ow/0po2mCFPfvverxnxdUqgHQcNzsC+eFcygfIxuvlTbu1dODI4K6rsAANO95B nDRXdNUr/xwFED8mCLuWcKpd/55vy1pawgZzenHYczoIJiv3odmiTNO50BsK45JD wTTsMH1kQoqyUP7BB92I3uhWlSzoISKV43A1muSp1D11GJwM4U6sfSIscnTtPaTT 8nhqL/r+kwGPjc76c+LSoWbMybVRg0hl/VpuRe9hGzzi/kR3w7N4m+c4VnE5tkR6 cXAdcA== Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43uvyt004a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 30 Dec 2024 14:06:33 +0000 (GMT) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6d8a3cb9dbfso11962086d6.1 for ; Mon, 30 Dec 2024 06:06:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735567592; x=1736172392; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=s2w02fJr/RtLzq61cZCWFNHIWP1TLDcvMW7PA8rh8QI=; b=RnsCDYX6dZRD8zI++rhksOCnL97L3xbZlofKZ7Kl+a4MLWall4uGPvCb7JjMRigRlA 8UdArVuQebL9hkoktJPVCsHilXpWJ2B5ArmlF8OM0QrgBUoiUigetJ/81dz2qdds6jAi OwMaVsT5nJHAZdz+DmH0dlw0NXetB/5R0DTN4BMrHTUz1r4iSbbgEs3GKwCFATfTur+3 Kg3QPxNb3451+2h3QFng6HyH6f8LvLfTzXB7GTVY78Ce496l7mCkPIsekscR5mWKsh4h KnZ0XfjC24WQARcg+8rkgf6SkjJGl6CYXrwHokAt7c7C9dRYv2hIJ8WzXMQ4Ik6bEqNM YRzA== X-Forwarded-Encrypted: i=1; AJvYcCUfybsxGrUonJ6SHmYdcjGFZNCTQFva2koHufthX3pSIQz9ulB1oziIeSUxKkh79S1RmoUyqyALoaUp@vger.kernel.org X-Gm-Message-State: AOJu0YySKDtsLFcbKpnUjZRaoWlxBy0RPIKjph4CdimQX/m2DBrpkqKl dZwaVONRNFBeEt/+5nbXPSvNbWpchUsJ4GCKqDEiMAGwqlk9mdOVPxd/IyX2rkzuiHJ1OvWCW3G +Mhi1weylBaAWqFxW4kwOAYdJRLxmfFdVMtgXpL5wEREw5CegEYFp8u/99OSH X-Gm-Gg: ASbGncsRSTn94XJpIDbHbpjtZ07apOEtAjSKc9uptKHxmrCZjRe8P05WtfoaypIqGB5 30p39ol3rW6Gj2+nD/NxgbxnleJcl/aP0KWw1OPdZbWpk8XlR65Se97I/fC9IKiwR/iutKg08yq 2yHdrftpY1K05Fpe87mctNq7qv49cd0sv9RImawz/jKFhyXVuAGOzKUMHFIzhv14/yCfCneoEuH E4/389mR4sJ6P1uz6nDkdsn5gBk3c2JaCNYvhQYIhcuVRPO1u0lO2bd3m6xfH+C/3rbrfXiqHLF ea07wa7UpHef0J5ZQr0eJdr6xaP5dwnDCck= X-Received: by 2002:a05:6214:3c8c:b0:6d4:d1c:47d with SMTP id 6a1803df08f44-6dd233171a2mr203952636d6.2.1735567592530; Mon, 30 Dec 2024 06:06:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IH77jxsTRMTz1j7SVmCPzUC+ea33QNSEU2xCeoOd+ROJs9SrbfLMz9IWwQQ+fHWoMxGXdjy8A== X-Received: by 2002:a05:6214:3c8c:b0:6d4:d1c:47d with SMTP id 6a1803df08f44-6dd233171a2mr203952456d6.2.1735567592148; Mon, 30 Dec 2024 06:06:32 -0800 (PST) Received: from [192.168.65.90] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0f0160f8sm1477380366b.168.2024.12.30.06.06.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Dec 2024 06:06:30 -0800 (PST) Message-ID: Date: Mon, 30 Dec 2024 15:06:28 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v2 3/5] thermal: qcom: Add support for MBG thermal monitoring To: Satya Priya Kakitapalli , Konrad Dybcio , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Lee Jones , Stephen Boyd , Amit Kucheria , Thara Gopinath , Bjorn Andersson , Konrad Dybcio Cc: Ajit Pandey , Imran Shaik , Taniya Das , Jagadeesh Kona , quic_kamalw@quicinc.com, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org References: <20241212-mbg-v2-support-v2-0-3249a4339b6e@quicinc.com> <20241212-mbg-v2-support-v2-3-3249a4339b6e@quicinc.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: XG1byxQywRzj9uIGE7UFpKHlsuqGr_14 X-Proofpoint-GUID: XG1byxQywRzj9uIGE7UFpKHlsuqGr_14 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 spamscore=0 priorityscore=1501 malwarescore=0 adultscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412300122 On 30.12.2024 10:45 AM, Satya Priya Kakitapalli wrote: > > On 12/13/2024 9:18 PM, Konrad Dybcio wrote: >> On 12.12.2024 5:11 PM, Satya Priya Kakitapalli wrote: >>> Add driver for the MBG thermal monitoring device. It monitors >>> the die temperature, and when there is a level 1 upper threshold >>> violation, it receives an interrupt over spmi. The driver reads >>> the fault status register and notifies thermal accordingly. >>> >>> Signed-off-by: Satya Priya Kakitapalli >>> --- >> [...] >> >>> +static const struct mbg_map_table map_table[] = { >> Is this peripheral/pmic-specific? > > > Yes, peripheral specific. Okay, I asked a question that I don't recall what I meant by. To be clear, is this table specific to all instances of MBG on different kinds of PMIC7, or does it only apply to PM8775 specifically? > >>> +    /* minT    vtemp0    tc */ >>> +    { -60000, 4337, 1967 }, >>> +    { -40000, 4731, 1964 }, >>> +    { -20000, 5124, 1957  }, >>> +    { 0,      5515, 1949 }, >>> +    { 20000,  5905, 1940 }, >>> +    { 40000,  6293, 1930 }, >>> +    { 60000,  6679, 1921 }, >>> +    { 80000,  7064, 1910 }, >>> +    { 100000, 7446, 1896 }, >>> +    { 120000, 7825, 1878 }, >>> +    { 140000, 8201, 1859 }, >>> +}; Konrad