From patchwork Fri Oct 11 15:22:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 834643 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C98A19580F for ; Fri, 11 Oct 2024 15:27:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660454; cv=none; b=lWXT0n5Uf++e4RtYEcQBbnZTC696uS+9F53veLWoW8m+mR78NOGNCCjvqO7yDsF1urfJtufRcz3q9y8a4X/Q7lscwKpjLS7dijxQCd23lUYwBY12iuRcmonpMvg8MR1uCk3//oQd0sZff8ip8GK6s3gtEhZO1Nxesl512QKYOzw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660454; c=relaxed/simple; bh=gygbM/0TWbve0yTggoKlMNvknZTLgYXQh0HMHtv9mEQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tRSX49nHYYR8dLAUbC/4S32OVLU8TL7i0tNCjwvi67nkRgAdcgf0nHVeo0q5FQylF+M6F51zMLOELMbxigNjMNM0wRuyLebHZczGAa6imdiaGLVm6fivLUEGCHqje9s25Ws+WHic4kwpzFOTxdMAfArjg3H84NBBChiHpclTPKE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca; spf=pass smtp.mailfrom=marek.ca; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b=eTAHlZHK; arc=none smtp.client-ip=209.85.222.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marek.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b="eTAHlZHK" Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-7b10e800ba9so246529785a.1 for ; Fri, 11 Oct 2024 08:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek.ca; s=google; t=1728660452; x=1729265252; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0NvbtWswNjmMVigXav8simFFQPZnS0nT4PzjzHauoQI=; b=eTAHlZHKgXdhvHPRoUscEYmUQlokGEzIl1MhqslOrWmVCcPIPKF+f97VN1EXHS66mB BT++1EeDmZKMG/Fpfim9OM/Z7cfxxkyF8PjGa3myr7uqlpEWsFyGEcwcWplwk0umc5Tr MFoYnH5/TUplB/PomtefmpZ/vghoAkSizrfcWI6ssi6MYfSTMLMejqjU7MdadHz2CpSc 4hvnFx9eRNHg8+zRcXO+lHYkR9GrjXBTfDir/EhqCpzLJ4NpZmBUVi9qFywv6dGkBzzZ BCIPmXY+A+e6nE9RfoLTou4IkcygjYxB4bNOO4P5PR9aHRKsm9/y8MXpjruHeHdoVx6G A1JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728660452; x=1729265252; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0NvbtWswNjmMVigXav8simFFQPZnS0nT4PzjzHauoQI=; b=YJAgpEKzuRnkyb87Qg9C3npXqB+An+JOeFJY0aJ4jEpzF72csLyNzDnl5vpl0gxtN5 sVG9/bi1LFTTuf0PBV1eRAPijFWwfxu+4ulWeYWktkLmbFHB7z007b5P9bjwnwg907Ez vxtUeZGqBUTYYK1xOAy0tWscjkdfYjfPyKoXMDcQQ2UoyawX2UfZLcX8MFjwHVm+wxw2 s5ivoFkWQirgfdWG77ldziAMbHCeJKVodTrFO8axOre1CrbuaktwX2yz84AhNnuDS8Ac p/Jp5cYMxbtXLKUUFHxgtt5FWJt0a7e8ww+ixtcOyFqNtycbqplQzHQ7IRLzGFeF/LLx HYzQ== X-Gm-Message-State: AOJu0Yyy0aVmTrHGzp5+btQojvvOtlw6eF/sscG/cnLlaoEDSo+vWSZ0 AiNvNucQpEDXGnKlFQRguGk2edJxBBhxSoGywnaPiKQkdno0601G8PayxYso4f6ZIgbJYmmLNXv nrYI= X-Google-Smtp-Source: AGHT+IEuUyr47HQ77Dj6rHURBePuo97R3GxYp5l2VR2BBG5BruZx4SafyF/ZWlHT/YwBEzdpqhA3lw== X-Received: by 2002:a05:620a:46a5:b0:7af:cea2:75f1 with SMTP id af79cd13be357-7b11a3b5c47mr518993285a.24.1728660451832; Fri, 11 Oct 2024 08:27:31 -0700 (PDT) Received: from localhost.localdomain (modemcable125.110-19-135.mc.videotron.ca. [135.19.110.125]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-460427d5220sm16344131cf.32.2024.10.11.08.27.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:27:31 -0700 (PDT) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Satya Priya , linux-rtc@vger.kernel.org (open list:REAL TIME CLOCK (RTC) SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/5] dt-bindings: rtc: qcom-pm8xxx: document no-alarm flag Date: Fri, 11 Oct 2024 11:22:40 -0400 Message-ID: <20241011152244.31267-2-jonathan@marek.ca> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20241011152244.31267-1-jonathan@marek.ca> References: <20241011152244.31267-1-jonathan@marek.ca> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Qualcomm x1e80100 firmware sets the ownership of the RTC alarm to ADSP. Thus writing to RTC alarm registers and receiving alarm interrupts is not possible. Add a no-alarm flag to support RTC on this platform. Signed-off-by: Jonathan Marek --- Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml index d274bb7a534b5..210f76a819e90 100644 --- a/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml @@ -40,6 +40,11 @@ properties: description: Indicates that the setting of RTC time is allowed by the host CPU. + no-alarm: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicates that RTC alarm is not owned by HLOS (Linux). + nvmem-cells: items: - description: From patchwork Fri Oct 11 15:22:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 834642 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28DCB19753F for ; Fri, 11 Oct 2024 15:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660456; cv=none; b=E1FCSmmwU0s6tW1OdUiDWgLxLBXm5mxECiHodXCmd0qO9xJjdeA27ITp92PFUOXZHntIfpf5w2cJrLzbgptxCRJomSUHmu/uFPvyOJVapNrOSLIIBPQAR1EoT2Npq74PxNWzVEW+vKqC7+pONHCQKPORgBulNhnsrNEYXBqhxqo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660456; c=relaxed/simple; bh=dEvzDCYAXuLeb9shmkvV229Mz3PupSTBjVcy+LVPZCY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BvhVFu1LoB74rm28h9+cU+VvKCfBccWkP+xJn/9aPWmajDdqnE5VuR3rZzAD4E16jujP0z8q10xzcsp+EGtzJCaytxBCTVo4HCKFYU5uuUVPg8k6/yDfaMK2GR1B75vV5uYZoS46OKyWj8v3/bmJVWSJBw3Fnf6X8FQyDH3Dt2E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca; spf=pass smtp.mailfrom=marek.ca; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b=QX5EgXCj; arc=none smtp.client-ip=209.85.160.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marek.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b="QX5EgXCj" Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-46045199e4dso17516211cf.3 for ; Fri, 11 Oct 2024 08:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek.ca; s=google; t=1728660454; x=1729265254; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q571hUiLhwNDOzZzuG6Dkz03yB6v2Tw/xn24I5ji6Yg=; b=QX5EgXCjUW8pYNY3bcFxosbgLMEoKEW5+aS5GKMepxKM+LstlWx0QUFvcTj4CpB7Ul 9WZFzo0UvX8zXSTp6jXB+6Kw86fvLEmVbAUYwhg+no4R4YwUM+p7U6VqFsJtMrONTUFu uKLLbNbSalqKs8ykU7drsmc2tJYJQLIOf6KQtFKzNa+TnVncHEG7KFBiol9fMo+YvRaF c1CsjHVNAdihfwIfmutxOrmvxCbybmlM3ZYCTO9SBK9nC506ZUCdxfeUTyj8RzOT4ubq OVqFSCz5iVKicIGFfQyzKvHIqfGNbZpWe9KR5rQa2Fx9OpULO0zyFcknf5h/evJqGDfK IRsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728660454; x=1729265254; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q571hUiLhwNDOzZzuG6Dkz03yB6v2Tw/xn24I5ji6Yg=; b=gkOMS6XeVNpgh8nM7wTdEk3zpS+4thxaDB1x2FPf7TfH8x850ftPKJZg7H5gRlFcFH 6xEn64n4LwOFCMWjnBCeY9xeUgL2Wa55aaF3qrMthWgetIf7mrQtTfW/tyeXSymB/ur3 yfnEuaD6cDwx88BZKcBQaRrQBrp5MtwexX/avbWWZ82S5Z0CEmjmwth2Q9spz8TX0L+k I44xwS5KyND+1ZK3Dn5unbUeN9smmfQjwxdwSWTldXkGglk5XiYpiT2hUdwhxOkIIPK3 5WnmLVk2NJj9lrOnH8PlrZ63lEn3Xfu+9h7u8mYu7PK8lb4Xwh2zliAmFa2J5gFKHpKh 309w== X-Gm-Message-State: AOJu0YweFXYK40NYHowjhE4a+G4AwvtMTrLKM9Rz1HwaWNW4ncXau/lX 88iALgstyfcdkm0SlgiZUhgiJ0yiedw/KyM6Lk7pZbZWVU9/YUZNL2bNoL62sWg2HZM5deH9Vpu KuSE= X-Google-Smtp-Source: AGHT+IHYfPQwR4zCXOR7gPAHxDGjfJdijerKgatLMcVSSJq8egdoY5LDJMsFjviVfi9qPOvZKtdp2Q== X-Received: by 2002:a05:622a:1b1e:b0:460:3f14:89b6 with SMTP id d75a77b69052e-4604bbd4f30mr46871291cf.28.1728660453911; Fri, 11 Oct 2024 08:27:33 -0700 (PDT) Received: from localhost.localdomain (modemcable125.110-19-135.mc.videotron.ca. [135.19.110.125]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-460427d5220sm16344131cf.32.2024.10.11.08.27.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:27:33 -0700 (PDT) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 4/5] arm64: dts: qcom: x1e80100-crd: add rtc offset to set rtc time Date: Fri, 11 Oct 2024 11:22:42 -0400 Message-ID: <20241011152244.31267-4-jonathan@marek.ca> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20241011152244.31267-1-jonathan@marek.ca> References: <20241011152244.31267-1-jonathan@marek.ca> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 See commit e67b45582c5e for explanation. Note: the 0xbc offset is arbitrary, it just needs to not be already in use. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts index 53e76b3f0c831..c8fac0f2701b9 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts @@ -1224,6 +1224,17 @@ edp_bl_en: edp-bl-en-state { }; }; +&pmk8550_rtc { + nvmem-cells = <&rtc_offset>; + nvmem-cell-names = "offset"; +}; + +&pmk8550_sdam_2 { + rtc_offset: rtc-offset@bc { + reg = <0xbc 0x4>; + }; +}; + &qupv3_0 { status = "okay"; };