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 A8F7578F34 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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BU2kVVf027261 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-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43uk121922-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-f72.google.com with SMTP id 6a1803df08f44-6d881a3e466so15590006d6.3 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=lI/fcpbWNXdGt8sxl8C/YoBSJh5x7NCY+gTCoPnnEKZPNktTavkutpaPC5TwWaqqj3 4If67NUClhUMiJBIwYT7Pa3Y3h/Nb7WPwST13L8yxKoDwF+htfh4sjCR+eRWj5Iq8tl+ spFbU7u7XKYf7+OKa4WwRfv4BTIX8H8Z5RKA0em5sjzfInC9/zP2xXTWTgImBpbdLRQm wURKZjuUEtAhJmneVjZs18xxR4l2GT19apTx2sT7tfUjMzngKJmG75Ly224ZgmwpXIhA RuWnrWNJHN0sCc2OwZXQ8jInBsHzDnUlO61OYRXBJjEdhWyQD/D0GGmngwrBaybOUg/k TY0w== X-Forwarded-Encrypted: i=1; AJvYcCVjOr9j/NYWJ2ML4s4eSyQE+BE8lb6+9Tb9unxoZtFbJfoewx1yHDSXkg/dRUh1UmYLKMO/vpy/G1Y=@vger.kernel.org X-Gm-Message-State: AOJu0YyCUCaBZ88sDfOI5dQPCvdkzImfWuB6uqXhTbk//pdi6VRT9U5y AfZdlh4DaDrRDm2O7WbZ+CFFXQEPASIu76jyyZpZt0XCbVoN/s5VWU6/prcYj2V62R2IWY3yKSs vmAz7mlpCoiAm2AVVCxUc3tSg133Fqwo5yYBbzizpYtDqWMFhH0WFTiKSTlY= X-Gm-Gg: ASbGncvuENPJUjlIsHjQ1ijSlN2QWToJ2OcdRzwXeChaC2aQCKlflHXUanu36dqXvxg 24qZsMq9qqelIQBaWrMG2G2/0guxTStYswdTKzEetpXqpl9q9DEdTxqsyecOUlBFsmQrRMkJbmG BKPH2XhYwdt+31JPyGVH7k3rIaeTop56nea1p7q9M36tgyKDt4LATIA1s1NnXKIkgVm9+RC2DHy HCI2KCi1vlwTaGmBAkgfJhzcPUt1vZkCMQ9RGOopYuqJpBJSd3y85QpYVynMVakRui61Kqjcri4 DnR1AMohVUAy7B6aKVJmn6s4eWM8HFMfoyw= X-Received: by 2002:a05:6214:3c8c:b0:6d4:d1c:47d with SMTP id 6a1803df08f44-6dd233171a2mr203952706d6.2.1735567592534; 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: linux-iio@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: sMrMwYhaTEUrOqTOgRg_ZvMoT6Wr1P6w X-Proofpoint-GUID: sMrMwYhaTEUrOqTOgRg_ZvMoT6Wr1P6w 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 adultscore=0 spamscore=0 priorityscore=1501 phishscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 impostorscore=0 suspectscore=0 mlxlogscore=999 malwarescore=0 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