From patchwork Thu Mar 7 20:25:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 778548 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 00132137C54 for ; Thu, 7 Mar 2024 20:26:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843199; cv=none; b=Mdcc7BKPCaT6eHFdHKHPcshyVJy/xhgoQFGlXMiQ9NRuEdpNBGSTzOgJGPuRg0LbwK/y90nuu4cpH3xgeZWalWwHzE3c3kjz602lTaXmdqk87z0LZ8CKhDztwva81Zf5nffvrp5NgbYWYioJBab3OHedxHXRvB1ZCuZYzz53iKA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843199; c=relaxed/simple; bh=OdCHOQHuWkm9qqqHGBjNAd4irZiJRWhVY3hQ9M9FgE0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=k+Oo2hMNCLlBbMsNaPcMBQLWEUAI44si0QgkCtqLS1VlvM888r+bIk/iDTRwISSfgetqWR28XVRoq5FcbPDIXfpydO3dvE8CVMZPQBLnI+zQRdGfyOCWof7ilweu9Q4BzSPziaHD7n1EyUNU1kSq+xkeJBhm63tUZf0oAsgSuZc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=kxYCuIWr; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kxYCuIWr" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5133d26632fso198196e87.2 for ; Thu, 07 Mar 2024 12:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709843196; x=1710447996; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=DJ/59AT7XyPNsXT+2SXTLSVHkazkHTBMB3Mbjed8awk=; b=kxYCuIWrp5uZJmmHxr+F+foR570bRHa9RamFnyBdY7F21KI7lQg6KdYazQIgO7Evxf VWn3fAnmGT37XEzA8a9Uapasg8gUD3VRUDOAWQ+fAzJAXSBWOwC+TmyfjjA86iL/TsQn YPJp1Hp+4aQz0LO89nvMqN49EXO5u0uG+Eii9OPdg85rWi1gfdaWRPhOZ5HOoEwGgU2q iwT9AeqG12/fbHT95zu/ZxF1V8uq9TBpx1bw4l8NmEUtktWT8u2jPb2behhZi+Cj/L3I qSbkNRmcX2O8fqUTnygn5ECNhlLMMZbDX2TqxI3JDjPPMhXLpx3hicE+k5NMxM/0bjLz tfaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709843196; x=1710447996; 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=DJ/59AT7XyPNsXT+2SXTLSVHkazkHTBMB3Mbjed8awk=; b=b/wqJzXWWYAQKRh1ZFdVDrhYSbHtlb34AXQZHmBBpt7S9sBATdCwXYkQ3XGrFD5iWx og7ASC//q6VTIWMtzds7hWr/SttSl6lBpOEBR7SsdMwyO6Lh5dkazeMN0qHmVJMf8KRw W0aboAkeL6zf1m8Js/B7r1aTtyKqCH8M+8AkNve+usDf4Q40ewA0KyyMFBmNHEuweYrX 6dHOdhJVWTHjrZD7CcI6MO1Upe5Ee7yL7u3KS82LaaGwnyxry77TQeWdLLeibupQo6OB KyN2hN3vbGo7myldQTwrYAaRIi3mrDz2+BgfnmEUPWtV10IhAj/WczLOgUcsFtxAa5kJ m90A== X-Gm-Message-State: AOJu0Yzb9B42Mz6RSgtbeGZJ0U6qpFp8z3fHBT6TUSKXwPPer4Dxh1ru f3+p1qBuJ4sdXOE6PYGyjd2U3JfvDmmUFdk+ua+CYXlbTdHvd0SCYPuhR5ly7ys= X-Google-Smtp-Source: AGHT+IEfD6u+VCQGcqKF65l57UC1kpuwX15xyXNivXKLkxtQTHFvVIQ/y+jYYKfv1Hw25zJB4dJWIg== X-Received: by 2002:a19:520b:0:b0:513:572f:88f1 with SMTP id m11-20020a19520b000000b00513572f88f1mr1985430lfb.27.1709843196010; Thu, 07 Mar 2024 12:26:36 -0800 (PST) Received: from [127.0.1.1] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id dw20-20020a0565122c9400b005132bf9f8dcsm2957606lfb.303.2024.03.07.12.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 12:26:35 -0800 (PST) From: Konrad Dybcio Date: Thu, 07 Mar 2024 21:25:54 +0100 Subject: [PATCH 1/4] dt-bindings: nvmem: Add compatible for SC8280XP Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240307-topic-8280_nodes-v1-1-4eba20e08902@linaro.org> References: <20240307-topic-8280_nodes-v1-0-4eba20e08902@linaro.org> In-Reply-To: <20240307-topic-8280_nodes-v1-0-4eba20e08902@linaro.org> To: Bjorn Andersson , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Konrad Dybcio X-Mailer: b4 0.13-dev-0438c Document the QFPROM block found on SC8280XP. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml index 8c8f05d9eaf1..65df38bfc17c 100644 --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml @@ -34,6 +34,7 @@ properties: - qcom,qcs404-qfprom - qcom,sc7180-qfprom - qcom,sc7280-qfprom + - qcom,sc8280xp-qfprom - qcom,sdm630-qfprom - qcom,sdm670-qfprom - qcom,sdm845-qfprom From patchwork Thu Mar 7 20:25:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 778899 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 CC0AD130E48 for ; Thu, 7 Mar 2024 20:26:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843200; cv=none; b=LFrDL1M/BwahS4DfvG+mY9CcLwhUPhfj7/oLnftK0bJJZbD9ynQsyUjL4OdpFWM0NidwJmWzDZhKMs71Jaw4D+hS2QdeAscTrremyvqd4JaETTYpG6pEA+CFclojIrjOFDJ4LT2tpj5CV0YcgkYFB/9WcTvumVN8KQyHNgpPt2s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843200; c=relaxed/simple; bh=8/DGQ83cSrSaq7LKUH+VcyTeHlJ4+6SBCpMrcm8Id5w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eMUx24sXdNg0Mq9VdUpqPulkbjJkxVnES66u1HaEGW36exD7xbiWT0AQPKyT8DAC9t/RfBW+HrkGyNHJO85oA47J5e2oIcQbPlg9z0ZWfEgPOjf3DbDnrq152FZW/P7GBeS/dEXNW8kKtPuZaO3qLPZyXYoSmiBZeUPNFymaK2Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FeF0tkYM; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FeF0tkYM" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-513181719easo1112800e87.3 for ; Thu, 07 Mar 2024 12:26:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709843197; x=1710447997; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=KXLwWeiszGpI6rrdYGEs9FVibKJ/VcRC9EN9PxgZG1A=; b=FeF0tkYM7p8K+uO++OZ+5ekUyR1DFYG/YzA+aWPOQXeW/qiIZpWxAhmJW4QSQL1m8F K54AIDCUW7xBfSeFn92dcNV2mawKKHTXo4f2kYXkUmjWlq+i4DGldo/H9LpuJzqNl/UP 9un2Pe1hL274UPyaElKN1lVzOJUNloP5IbZ7snDh2cQuyqbxAtrdUUi0YrrEdHbGLBQ/ cd9EvjQvBOXxGQeMyh6Se2qbbZCuYlteYGlPq3QzMzagiCcoWN3LcDLb8yDf398CROgD 3ZqHKqn9WqM7mPm/Mw7s1SwxJwKXCaMvsKzO9xBYa5o+2zVIMwrcDYkZjUyWt+1OqBTn sOuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709843197; x=1710447997; 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=KXLwWeiszGpI6rrdYGEs9FVibKJ/VcRC9EN9PxgZG1A=; b=qcn2nxgbIMn4ygmILwe6vFC7v8DWXy3sV9+VS/wLuXGNlIXoFj6LJaEvi44836aVAV KETgeyBtCtQEzp0XCi1I2QcjayLNPeEntfLgBG7XGtae7pVqkQ/ATumIcjxftR/wdpxj 0V6mTOBn46P8G5SitUum99rdRZ+gI1fS0LwfH5IIRGbyqCvmzrPArILUebCcFkbY/hsV ug1aosbWUJ1aZ5Vxgh7MJvUWwLX08dUS3TNxvJFP+TRhI67I0imJr63mDGQDQIA8swxO 1RinIrMZXMTIgoVZ5Ur+rGGRqoLyl2XfCRuhWSfrQetQG9JVzzUAj6XjvpOgn1tuyEH0 15ng== X-Gm-Message-State: AOJu0Yxacd0+3LHvMxNO6XOLW+R1UPzLK2wRi9mwVvc2FekioC/pBm2J UCmdWGLvW9+sFKWh3jwVcG2HvXbT4zHDQgySUO3IyKynm2qf1pCgtN6RTIqOsPk= X-Google-Smtp-Source: AGHT+IH93hG+h+Zy3uBuBwbbaDvrwkiy3pPB5UMxB0V3Sm698sVGTruTmwRMuXQR/YJ5ItnZI0ed2A== X-Received: by 2002:a19:e047:0:b0:513:5b81:f2f8 with SMTP id g7-20020a19e047000000b005135b81f2f8mr2139044lfj.54.1709843197150; Thu, 07 Mar 2024 12:26:37 -0800 (PST) Received: from [127.0.1.1] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id dw20-20020a0565122c9400b005132bf9f8dcsm2957606lfb.303.2024.03.07.12.26.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 12:26:36 -0800 (PST) From: Konrad Dybcio Date: Thu, 07 Mar 2024 21:25:55 +0100 Subject: [PATCH 2/4] arm64: dts: qcom: sc8280xp: Add QFPROM node Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240307-topic-8280_nodes-v1-2-4eba20e08902@linaro.org> References: <20240307-topic-8280_nodes-v1-0-4eba20e08902@linaro.org> In-Reply-To: <20240307-topic-8280_nodes-v1-0-4eba20e08902@linaro.org> To: Bjorn Andersson , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Konrad Dybcio X-Mailer: b4 0.13-dev-0438c Describe the QFPROM NVMEM block. Also, add a subnode to represent the GPU speed bin region within it. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index a5b194813079..a3725d917bef 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -862,6 +862,18 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; + qfprom: efuse@784000 { + compatible = "qcom,sc8280xp-qfprom", "qcom,qfprom"; + reg = <0 0x00784000 0 0x3000>; + #address-cells = <1>; + #size-cells = <1>; + + gpu_speed_bin: gpu-speed-bin@18b { + reg = <0x18b 0x1>; + bits = <5 3>; + }; + }; + qup2: geniqup@8c0000 { compatible = "qcom,geni-se-qup"; reg = <0 0x008c0000 0 0x2000>; From patchwork Thu Mar 7 20:25:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 778547 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 5D0A9139571 for ; Thu, 7 Mar 2024 20:26:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843202; cv=none; b=aeZ/gLL1RrQy0FZMkGs17QuUUg/W+At6Iqt7SFN6NcDaQ3tGziBpDuCqFhqI0JtP0lLSLoLL+CsLHTRbg8+EInxZiJRYRktOdDMKGfBEKt0x3x/I6kt9p9zgFbmQE6Ig88oKXgdjaYAM79b5Kk1jRx4QFBstaXDhjyCBZZe9+do= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843202; c=relaxed/simple; bh=X88G2FAej3PmBxt17XiJ31e6Y+NzBpD9H6c5ItuxDfw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sfZSNq4xI6bx5y6hwURyB5Zm2ttTWhGvN0+Ms1m4haqwW4Bo0D0ZioD27Xsg8COUUxf9CpOibfIgB9aAh6pZAz63PkBgDw2T/wpvEGWQYxgH/oK4WAIU9rsUfNbPkoj78CX+rkso+4txSWOtj3CSeM7TMKpFDx6ie5KCmoUSaOM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=W7zKGP3L; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="W7zKGP3L" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-512bde3d197so1329412e87.0 for ; Thu, 07 Mar 2024 12:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709843198; x=1710447998; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=d0TmD/+bSNy0i2UXEWLDDUBW107WaHdsG6ntcrYPB/o=; b=W7zKGP3LC9G69hKkd/7kuI6jz51k+/9db5BGRXp6Y+ypdQLjNeCzaN7HMr7trFMCon A7e2PyKsqCVoYN1iYlnAycKv+GWZ3cG/6nsEL3YHB6WBHUhDJW13jUZKDIIU1GfqUXCY SR+Til0b2L6jFHPlClTruir53KvpjTdM8lJh2YqVJ7hanDOcicoOZ79CwyCYD4XSbybd xDDFCzbVFYMYkN6P3o6KNxCF4hq3gxDuYGRsUm5N4zuWACV64yPL6Wc9S1HZaKxU51rA ifKRmMQpS6d6EPPKhZb+dxVWUwF2S7PTnbaUVg99OA5tH00cyT4xujDic0HWy0XHnJgD 9x0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709843198; x=1710447998; 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=d0TmD/+bSNy0i2UXEWLDDUBW107WaHdsG6ntcrYPB/o=; b=SG2EB7fbmF1EEgAat6+HjoSLViNbyxOsxUpvrYQSQJbsmQSItfQdptpNLtKpgkm4+U +cjn40QtQ06x1dn6vqV6+/HF3a+bJ89sJzt9vPX7myD8bOFlfS3qnJgElIZDJQ68lWa8 DkrHY933O6ZAHZfwcvCo5HwEsq7YWZEom+1FXOHsbsrhiJ1H5bakOyyivlEw6OoGWBMI E7Ii7N/rUyvRpWrKnNez+pNVazH/Y9ITc1azBmERiFT4rsjgBE+4QUl0r7FHvAy+cv2/ SYND+RId1/wYXEd8MhazldDVmlJX7f4KQ1uHe3lopferSInPE9m9F9blN82JET6wbSkw EC9g== X-Gm-Message-State: AOJu0Yy6rD4Ui/qG7Csl7X0oVe8fSnEGBkoZrmKSZKb7swuRg54jClY6 xkdZ9jA89SFufYX8Co+1ZSGX3YNUiqUUwqcejeVWjFftzu+Zr61CwxRHm2bFuM8= X-Google-Smtp-Source: AGHT+IFINYOtVbitN2J3giG8Mx1gVJS/NaU4sqF7A7hzGW4ucQRrUCd9XIEIiyCE+MA0IkaSmGz/PA== X-Received: by 2002:a19:8c08:0:b0:512:dfa1:6a1c with SMTP id o8-20020a198c08000000b00512dfa16a1cmr2167169lfd.10.1709843198424; Thu, 07 Mar 2024 12:26:38 -0800 (PST) Received: from [127.0.1.1] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id dw20-20020a0565122c9400b005132bf9f8dcsm2957606lfb.303.2024.03.07.12.26.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 12:26:37 -0800 (PST) From: Konrad Dybcio Date: Thu, 07 Mar 2024 21:25:56 +0100 Subject: [PATCH 3/4] arm64: dts: qcom: sc8280xp: Add PS_HOLD restart Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240307-topic-8280_nodes-v1-3-4eba20e08902@linaro.org> References: <20240307-topic-8280_nodes-v1-0-4eba20e08902@linaro.org> In-Reply-To: <20240307-topic-8280_nodes-v1-0-4eba20e08902@linaro.org> To: Bjorn Andersson , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Konrad Dybcio X-Mailer: b4 0.13-dev-0438c Killing the platform with a single write and no firmware involvement is pretty cool, add support for it. Note that due to restart notifier priority settings, PSCI reset will be used instead, unless: a) PSCI is not exposed by the firmware (e.g. because the fw was replaced) or b) PSCI restart fails for some reason Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index a3725d917bef..44c8d543eb67 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -4460,6 +4460,11 @@ tsens0: thermal-sensor@c263000 { #thermal-sensor-cells = <1>; }; + restart@c264000 { + compatible = "qcom,pshold"; + reg = <0 0x0c264000 0 0x4>; + }; + tsens1: thermal-sensor@c265000 { compatible = "qcom,sc8280xp-tsens", "qcom,tsens-v2"; reg = <0 0x0c265000 0 0x1ff>, /* TM */ From patchwork Thu Mar 7 20:25:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 778898 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 4ED4B13A241 for ; Thu, 7 Mar 2024 20:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843202; cv=none; b=C/o15Zw8ug7QIrVLeK4UmYAIwhAPWNvDo5H6Fx75dK71El7vH7HdxEWkuV8aAZr/40I/AEa3pSeVsluq7oCQLb1AUpHePktSeHpATniSW9GFDc2VTIBtFpjVgqxlblOgVMGOtOb5a1rquD2pJ36vP3umbvhN7nbxuCXucxn197Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843202; c=relaxed/simple; bh=R8dlxZ1dL3OvX88UWru4D0wpduTJJJAyqR4VxSwIyG8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eK9T9s4RojlSJjsFucaPYUeSOX6jumEhjii/RO+Ay2E86tAauj/I1ooHJSFomyRI9rK+rLrQa96ksdiE7MGPBfmHElibGSkjDhrnQB+TqUOJEYetVc/WfoEnR8LphjMoLieNv968WsZKDQc/IQvyt+HenAasUY/+cEbLhE9AGpM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=isoJdhp/; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="isoJdhp/" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-51320ca689aso162675e87.2 for ; Thu, 07 Mar 2024 12:26:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709843199; x=1710447999; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=KCBc9I/4oSGOdNN/iaVU4s4pU6JlIs3DbcJQb4sXpL0=; b=isoJdhp/0Z2NeZOiugz+n+9TsmEL/ef8dZLOXHUk/grrJ/uyFI5wjrdG/kGOz4AVfu x0uYUbOzmdTqAm28EihSM5xUEGdU9JY/x1RZZriOgd2YQNJ0PDuVBea4+7HHRm5UudGS e5M8dp6hDJoMAjMaNafgb+vfxeHYNBCxa6ofrpkeUUPXJd2EvnzuwcaHLkquetd0+uCe arcTZCI7PyBYExAs+mJP+MF/O6SnFTCExVJZYrgnclCBed3eI8JLDUo9lP5JGT4F+zkH PCJ409NWq5nWSy3dbp/c8sACeGB0bewnwzrhHSTdC2ZNe48U1aOtUTMlUTw9x4jUr4Zp kSBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709843199; x=1710447999; 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=KCBc9I/4oSGOdNN/iaVU4s4pU6JlIs3DbcJQb4sXpL0=; b=G9LAhR4o1WBjCra5JeGCjJ1MrL1bzKr4dfoGG3bmTRp8dCgfuVoqD3yZHCLNlG1TTy zb419jgyadbdN7M9zcM6aADCiXLzwcA2iaTmQAGu6WfKgOgdIebuHvNC2N8NyyBNSmdj ghcIoTvdOk0HNNkgrIznUfn1E3APTvHybvgIRT50Wr25FtzmVOWJedPUh5PLlw2nzISb sMWFGLzxDrQzuiMMpPE3eg2Dr6gmSfQlUVrOS/+DlkJqwtNtG/hlGvByNOrBt9c5Q9w7 3ZRanpdtOd5aprMa96n1x06mpiaRH92IYBtQmStS4+c7VGVXHD3nFpWV2HnyKVh/g9xA MOHw== X-Gm-Message-State: AOJu0YysgIj2QToDJZtKp6V/zHJgBnFole1cifNU613zX13kEiYyAEDk /zdEkG/aaMqHAwC9hh3BkZMMj4JCpPltYw7asOcKqWz3Ps8uTGT3HNhIsLIeG6o= X-Google-Smtp-Source: AGHT+IF0QtTfnjNxc7RaucC2xKlJ8lzE42wr693p1q+ZVNMxs/Coym5IIOj+4d2YDPz/4k6JNRK4yg== X-Received: by 2002:a05:6512:3b9f:b0:512:a4ce:abaa with SMTP id g31-20020a0565123b9f00b00512a4ceabaamr3014389lfv.48.1709843199561; Thu, 07 Mar 2024 12:26:39 -0800 (PST) Received: from [127.0.1.1] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id dw20-20020a0565122c9400b005132bf9f8dcsm2957606lfb.303.2024.03.07.12.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 12:26:39 -0800 (PST) From: Konrad Dybcio Date: Thu, 07 Mar 2024 21:25:57 +0100 Subject: [PATCH 4/4] arm64: dts: qcom: sc8280xp: Describe TCSR download mode register Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240307-topic-8280_nodes-v1-4-4eba20e08902@linaro.org> References: <20240307-topic-8280_nodes-v1-0-4eba20e08902@linaro.org> In-Reply-To: <20240307-topic-8280_nodes-v1-0-4eba20e08902@linaro.org> To: Bjorn Andersson , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Konrad Dybcio X-Mailer: b4 0.13-dev-0438c To allow for swift EDL reboots, describe the respective register under the scm node. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 44c8d543eb67..505cae44f828 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -300,6 +300,7 @@ firmware { scm: scm { compatible = "qcom,scm-sc8280xp", "qcom,scm"; interconnects = <&aggre2_noc MASTER_CRYPTO 0 &mc_virt SLAVE_EBI1 0>; + qcom,dload-mode = <&tcsr 0x13000>; }; };