From nobody Tue Oct 7 19:53:01 2025 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 099ED21CC47 for ; Tue, 8 Jul 2025 05:39:29 +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=1751953171; cv=none; b=PwXVwDvEscdmcO0v7ymjAxqExSkuPQeQpwzA6L9EM0eAgn7G2T8NK5dBTb3mxvqSqHbqANqDwhtK2RJ/tZfvxFy6Y6Q8N8wiXIV5PqR2J/aI7J6r9s/6SLyy3BxhwNcCCC6zn70INWNiYePv+SwSepecGhSzoPkY5cIm7MS+1i0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751953171; c=relaxed/simple; bh=ZbRPNTvMEhgKckZRC/YaxL1ERA5o41riyFHmHimT7S4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RD4SbvyMyyoTJroPpk8xlHjJj8ZT8uf/gy4j7D3YqiSkss21QPnssjXf6liOzfMMUYDeDICnoP8UMFLz7s+QysFmM9MtzcEHzUDatQtReelW79NhsP9OQCYV91cUgnpV5MssVYo2dhp5KlVfRhgFJRmDBXKQRnYAPe9eXJ2gEzQ= 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=YoKI9n92; 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="YoKI9n92" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 567JBSJ6008338 for ; Tue, 8 Jul 2025 05:39:29 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= B875Ut1LxkQH0pfjyUMhkUj/begigCh6lFm1ieI8OF4=; b=YoKI9n9246O4Jz6Z rN6uIHwtxzBCippSXinJw7ix3qFjlc+O3+9JA8QasjTE5zQOl4Pj3zs4YuVJmGrO puEUK6I2wb137SqToybekqeKmD4NLfcrD5ha8pQ9jN0PEvmlrWNUB9SGi3DHn1jQ Tu0t1GZu3yEMaJrzvcNS5FIONQ6xq9uVMBZFWYmGNoRDLQw0xIkWX4FazXV9cLXV 2knNlNlVC958iErTF+cuMvkDlPpj3WLn0ry1bH08+iUH/UtH3RD5kPxiqpozquIn OfBNxPG7ZXTDCEAA261/JHdo16Ar60p2PAYKbfSfFhx+TrY9GmZx2qdKVMx6NDjp zLMX3w== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47pv4xuema-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 08 Jul 2025 05:39:29 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-74928291bc3so2971393b3a.0 for ; Mon, 07 Jul 2025 22:39:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751953168; x=1752557968; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B875Ut1LxkQH0pfjyUMhkUj/begigCh6lFm1ieI8OF4=; b=e0DWOFnSGNL0TXB6kFk/magK+lc1mOMG2fFjHELmdwBeO0PTo68HJOJqU5SHAF2ytr grOAjmSJCaS5fZBm28lIaViAAltp0Qp6RHa5Ph6cKpeF7AkeyyTHizhfvzciw63o5NIN GYpzBZLz4w6vDQVl8hP8Gh8oXA7+l+7J05SJQ/JmSsmW7EMu66mhrQJlUu0KRLc6y9h0 4v8Mrbk0OVuohzWE7uPV7g+jppRQkDk1IOMo+0wKXI/lRE7vHZIc5uoSYJL1GkYYkJ90 nJ2Y1vkG08kjpBKSoH7ISE8l46rQeIGim61wmi7VfD2tN6LrnUcQIWkiTsHqg4FF4Mkl gi5A== X-Forwarded-Encrypted: i=1; AJvYcCUgW96aKuJdOQwEs2QwfwuL8HjaSXPNaoxitHeH0f3Uh+V1bheBeWFC8tvAATy9Ya0z3ODGJfD7K098e68=@vger.kernel.org X-Gm-Message-State: AOJu0YwBVUmErmkUGWoIhBVLvvKnnrdQbfu7+QT3dFt2cnwcvYOIInSd vWDU0FjX5CkG3hvzGUo/AqFero3Z+kb0miFeuiiVfBRNs8migL3dlHY/xLADZ4yRQw55Q4zr18D 8kYOVEdwmX7oeP5QuiiRYj7ajVIf4xprA3S8kPLFkjt3JGIUi8qidru/3gSghDfLdAkFjSd+ha2 o= X-Gm-Gg: ASbGnctcge/Vn7tuikQmysK832hSkU139K/e6eAMuaSULeRHU5c3Hual/B9dr/Wr7Se nBhR6/t/2A7T070TDxAdKmITmLGijnX5tUmcMW3Y6kGh0lS8WRJpGypHCu0PL51s1fhZ+Xzyg5O 7CHNUT9pbabQYNs+5jhp30HjGtRu9S7hcwrEEc4r2VbAy52GdmLBYq2wcFLNL+n/XJEHgT1/TPJ PUzB3PApOi6IL8LQPSlRoTkWsWsNZ/2XZxSnpo9p6xpgccLMD+GrQenJme781rsUt+ZXsOyaMyt TG2KS2jpNF59bt25r8rYCRCSZVWxvw+ykh9az8VERhLdZc7oxAdXlO9PpmTUTxY+VqRAFZVIH18 AK9CKNLIxTzVpZCV+2NlrN3BPwt1jRJ5HSDNSon2fvjDxZwzmnc8J22M09A== X-Received: by 2002:a05:6a21:33a8:b0:222:d6a8:d21c with SMTP id adf61e73a8af0-22b45d24086mr3346633637.40.1751953167785; Mon, 07 Jul 2025 22:39:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqsTa8K45ENWVrx3fQaH3DIeugYzrPRudnvz0w9HIKrQLNQ/4aBFLuC8ysM0OhpDRI7LsgCQ== X-Received: by 2002:a05:6a21:33a8:b0:222:d6a8:d21c with SMTP id adf61e73a8af0-22b45d24086mr3346594637.40.1751953167375; Mon, 07 Jul 2025 22:39:27 -0700 (PDT) Received: from hu-kathirav-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b38ee450db7sm10531829a12.4.2025.07.07.22.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 22:39:26 -0700 (PDT) From: Kathiravan Thirumoorthy Date: Tue, 08 Jul 2025 11:09:13 +0530 Subject: [PATCH v2 3/6] arm64: dts: qcom: ipq6018: Add the IMEM node Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250708-imem-v2-3-692eb92b228e@oss.qualcomm.com> References: <20250708-imem-v2-0-692eb92b228e@oss.qualcomm.com> In-Reply-To: <20250708-imem-v2-0-692eb92b228e@oss.qualcomm.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kathiravan Thirumoorthy X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1751953154; l=1423; i=kathiravan.thirumoorthy@oss.qualcomm.com; s=20230906; h=from:subject:message-id; bh=ZbRPNTvMEhgKckZRC/YaxL1ERA5o41riyFHmHimT7S4=; b=BBhmcc275p3+rE4vL/bDxKij+4EN24vjolAUuuq//1QJhjXUY+kCpf/88a8vO67gKC2Hk7vD8 g8vedYUDTphDA8bketJLnmZmdGIjnwFQ3P6OSwX5U7F4LqkqW557Ard X-Developer-Key: i=kathiravan.thirumoorthy@oss.qualcomm.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzA4MDA0MyBTYWx0ZWRfXwoht1KKNk6jK lkIwvFJI2u9kkyn6Yf+pbzBV3LWizpGLrvdMgsDOfePY1pPY4ipk24Gb5Z910lmst9Ine7McBwx wQn1+95/ebSwVZe3rdNipZw7UvbXS+6UBAvA1eAfYUcidq8/7ae7xvetSmLHFVM3zr0Zh2QzPT2 kheTF9cGTjfJwLU946x351jjjVgmNBx5bttHIfN1ELPRXycTO+rUv3fpmw0vRUJocTQaPArBnfI OPUbBBzpo4kT+doe7b2KHl8Sbmc13jzIHeQwKdfzvcnRKAOs41UXGSwgj4hoBfPWSJpLrWzn/sk IBxml/Kos21n7is1+7KarmcUzbS6qV1lyHhPxVK73MCNAFAhp3QLVZ6JXz8ZBahGSoPl0FPNos/ DGmR0gvEXdUd0YuSgTCal8UiVCLkxYR6wnIHqdSWKhq16xGReLT+G0jTL0R5u9fmFJtlALV3 X-Proofpoint-ORIG-GUID: IHsOgCz_kP86grD9kSJPtKGry2PxQg7t X-Authority-Analysis: v=2.4 cv=DNCP4zNb c=1 sm=1 tr=0 ts=686caf11 cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=kuyrhOGAXNEpbtS0LE4A:9 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 X-Proofpoint-GUID: IHsOgCz_kP86grD9kSJPtKGry2PxQg7t X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-08_01,2025-07-07_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 spamscore=0 clxscore=1015 phishscore=0 malwarescore=0 mlxlogscore=706 mlxscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 suspectscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507080043 Add the IMEM node to the device tree to extract debugging information like system restart reason, which is populated via IMEM. Define the IMEM region to enable this functionality. As described, overall IMEM region is 32KB but only initial 4KB is accessible by all masters in the SoC. Signed-off-by: Kathiravan Thirumoorthy Reviewed-by: Konrad Dybcio --- Changes in v2: - Rounded off the size to 0x8000 (Konrad) - Represent the reg's address space in hexadecimal format (Krzysztof) --- In 'ranges' property 0 is used instead of 0x0 to align with the existing format. --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qc= om/ipq6018.dtsi index bfe59b0208415902c69fd0c0c7565d97997d4207..3b9e40045906b26b94e2d2510b0= 570d3eaf084ce 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -659,6 +659,15 @@ qpic_nand: nand-controller@79b0000 { status =3D "disabled"; }; =20 + sram@8600000 { + compatible =3D "qcom,ipq6018-imem", "syscon", "simple-mfd"; + reg =3D <0x0 0x08600000 0x0 0x8000>; + ranges =3D <0 0 0x08600000 0x8000>; + + #address-cells =3D <1>; + #size-cells =3D <1>; + }; + usb3: usb@8af8800 { compatible =3D "qcom,ipq6018-dwc3", "qcom,dwc3"; reg =3D <0x0 0x08af8800 0x0 0x400>; --=20 2.34.1