From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 2AAFE20E6F3 for ; Thu, 23 Jan 2025 12:26:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737635209; cv=none; b=GtRtJ9KuK0t3htzsh+d34wDg7jDgRzMBK1Q4YjLrTmHuST2wiBEXILUA5XnlxGWn22h8abadsSdgoWn6jB1h951mXzjrsImWTCnBYZnOBVdXN56n69ULiwwDw22wzzti3CVgFFLmYnDwNgyhYXKx32R4RwwEeOR/3x1SaXKPne0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737635209; c=relaxed/simple; bh=G+QKe8FfMJCfm1MlKvKWgZRaCarwwrdjGyBdzMRS4WI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UleQ0PbWYFzO4olJXzu+ohmsDOqwc4NwJSaiV7p9z7TG7lVY0o8TSvFGOjAAzofi0oGsTOMYA7H/xN4bLLBDrmV9avnblXe/Hxc7pJZRhrDypy18Tv51Y5bsWoBjJ+6NvBzujvkM8H/Y7y3/QfWz5tuv3qAGcpWuPatpVBZGG8A= 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=XAz6Cuoz; arc=none smtp.client-ip=205.220.180.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="XAz6Cuoz" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50NB6uYc020861 for ; Thu, 23 Jan 2025 12:26:46 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= SVZW13cVN8pkSk0oQ25DglUpIcmodrG5JxW5IFgDsRg=; b=XAz6CuoznR6A0BDV EP1lnsI5+XxsQvP7/mWfoevtCzh5G/Z4zQz61mB6WKvYciXheynUZidMBXp4g0ik mOT6RK3D+zUVWgpficLDHP3hKWrYds7nLvw2poUbNse90jNpvXfoup3PQZGW+hFz tAmyi74nkC3GiOC3gEOlH6R1Fuj9Q/TTyECjW4YAYHlGobCtqEvSI6hA/PU2Vst4 KBSVSEMlVAy4V8G1s60kVx/naoPZ97EOIHHr3xZJ4soYF759YXU79HTyvuDh+OaS WFGNvt8/pEDPYAxvcaruhrwtbjBN+rH+bAAhd2bJwDtEHx3U6d4PkTxejZ2oJaUB Y4giyg== 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 44bmm1062x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 23 Jan 2025 12:26:46 +0000 (GMT) Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-6d88fe63f21so1960336d6.3 for ; Thu, 23 Jan 2025 04:26:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737635205; x=1738240005; 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=SVZW13cVN8pkSk0oQ25DglUpIcmodrG5JxW5IFgDsRg=; b=xO5Cnm6U7QvY634fpjB/AAPrkZYCtovtH389fXEav3DacjF4Zl2NIeyyGQyqZ6LwFJ yxw99oxPQVtLRi9057+a+aFKWfYdtxeP06Kl57hz3z420fzfcnxcTejldAQJyDNk7xTE e+o9TT7Lgf1dfNC14YD2UXw5lA9OYeQlSd5DV1byNFNPSScsAGP/d+QzEQE0K265Jod6 5JZvE81lOcdWHHim53HAs7HulMF2FZJeodbIdWD3H9Of7kRK1X4e1/EgVMfPdkdfD9cW Bz/HdCcYpWnv6Jowgf/lt8FtxPhlFSATQ9gsPlgyB1E8fcOWUlsdwK49ojq4VNw3c+Rl V2oQ== X-Forwarded-Encrypted: i=1; AJvYcCUaU2Uu5uEwhfjcNhY0g2AZJmJS5lb/kQZxLNhov5Lnl7uTuXyuRF0VedTw2m2ey8blnCUQxvqpQhUk3TM=@vger.kernel.org X-Gm-Message-State: AOJu0YyuOxy10wbvKAn54uhIKLEKP9Stu3S3Ce2atblJsMbiDxYEWvE1 7NlNTBRcbZTcvvYoiAVG9Da6COCboP1/R0cbSorxNG69T3VYkkK4Ki5KtsPwJ/+u1Ol4t+SIp0f Bd7996MqyzD3u09EQLljCtkCBkZQTn1n5gcnmzzBNcS3b9n8McxjTs9oBzvUpfDI= X-Gm-Gg: ASbGncudsbI5noLzYs6xnODuo/YEHC53Tj1/pWR80ERKZemxUnHikwp4GFwVuUzuQov 2Bt8+4GO0n/uxElNqx3Y943c08vHMN6oOslPjRmRyIy7TylHRVfQa3WwxEisDjboa8kzmV6bHH3 W2R6LHYqPcz5un8BoEuOF/+9zZGb8la6+mZohVDRAAaNojo3sWVtCmTk0GV3y2RKaI7uAmnswIa /odOnRUtFU8hBJvktx0olk01Nck3CCFxZVDRV+hf9H2+l4SyDWlsM/lwBMY63qil2GKIWIx6ted FFNryfKsFbDXos9bEObZno2KFACQxWFLYdY8Sy/G4LGcF1y0 X-Received: by 2002:a05:6214:1cc6:b0:6d8:adb8:eb8c with SMTP id 6a1803df08f44-6e1b21fdfe3mr142360546d6.10.1737635205202; Thu, 23 Jan 2025 04:26:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFz7Y8CusS4RA3BkMNLMi1X1MQwL8uOIZ5Z83f5hBMegoiNhIaOyMr2v+dC01obzMP3OpsYeA== X-Received: by 2002:a05:6214:1cc6:b0:6d8:adb8:eb8c with SMTP id 6a1803df08f44-6e1b21fdfe3mr142360346d6.10.1737635204866; Thu, 23 Jan 2025 04:26:44 -0800 (PST) Received: from [192.168.65.90] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab384f223fesm1066630866b.105.2025.01.23.04.26.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jan 2025 04:26:44 -0800 (PST) Message-ID: <3b085773-bc6e-4d03-a9f0-8f8444bdbd45@oss.qualcomm.com> Date: Thu, 23 Jan 2025 13:26:41 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 7/7] arm64: dts: qcom: x1e80100: enable rtc To: Johan Hovold , Alexandre Belloni , Bjorn Andersson Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Jonathan Marek , linux-arm-msm@vger.kernel.org, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250120144152.11949-1-johan+linaro@kernel.org> <20250120144152.11949-8-johan+linaro@kernel.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20250120144152.11949-8-johan+linaro@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: Va-LpEp7roT0s4n2xYxoL_tFk31cmj4I X-Proofpoint-GUID: Va-LpEp7roT0s4n2xYxoL_tFk31cmj4I X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-23_05,2025-01-22_02,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 mlxlogscore=746 impostorscore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501230095 On 20.01.2025 3:41 PM, Johan Hovold wrote: > On many Qualcomm platforms the PMIC RTC control and time registers are > read-only so that the RTC time can not be updated. Instead an offset > needs be stored in some machine-specific non-volatile memory, which a > driver can take into account. > > On X1E based Windows on Arm machines the offset is stored in a Qualcomm > specific UEFI variable. > > Unlike on previous platforms the alarm registers are also unaccessible > on X1E as they are owned by the ADSP. > > Assume all X1E machines use similar firmware and enable the RTC in the > PMIC dtsi for now. > > Based on a patch by Jonathan Marek. [1] > > Link: https://lore.kernel.org/r/20241015004945.3676-4-jonathan@marek.ca # [1] > Signed-off-by: Johan Hovold > --- Reviewed-by: Konrad Dybcio Konrad