Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3661252rwo; Mon, 24 Jul 2023 14:47:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGPqygrRzYgMsw8xVkNEIDPobQE8vwG5aEr77/eV9GrJ94VyuLEghJbED6A501dzZCGxSLg X-Received: by 2002:a2e:b6d3:0:b0:2b6:fa3e:f2fa with SMTP id m19-20020a2eb6d3000000b002b6fa3ef2famr6385246ljo.32.1690235243549; Mon, 24 Jul 2023 14:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690235243; cv=none; d=google.com; s=arc-20160816; b=zj7lxLYhON1to1WtI9KLIwQ+gDtZ+Qx01BhpUxvJzWJffcAA65qmXnbi6pVxUYH/jm npNIIWGwbaGrfaE9QTRX0Qj5hEh5qt+vZVHP27raUD0K46brb1Ci4OodPyPjgEVT5cYp Ho2fdd9UcGJlFXZaZe3ZoHwwsy0i75vTwm4Vl1w+IPtnmr0V9NZcTsxlsuzpOYdiEJdR wrfL79jkQ12K/E7HI8ggUr+gtFlQIWpFV4WfrZfEdCB/ghYPhMjJOrq/zNiAYgLFwvRt Nh0ZAMKtma4UYOAFGTrIesxIVOiv5RP3e/YvReiZhWude7Jp7gxOkcssl2xIP2kCrmgJ s2Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PGqd0Dpk0QJClHF7xv6N5WpusRf7KZmTiJZbeW3YVpA=; fh=GcTprByw5PQgHzac0/7WSRzpDB22M3J32p6gwQLFDwQ=; b=r+Ck2W2cndNivpMY4H+Gb0LE0b2mPlBNhTnsUsord+MSdo/YwX6cSldN8r2zRne975 tb7IU1tTtd/xzatoKwfEhhKM8p0W4QqXc8iI3tfIfU4MYO6RPS9nlwD53ykK1uhFT1sP y7ZxPHtZNR6Z+Y/lxFTHoZXpY8xShA2VGwhW24iIUffGItDISIqMaDfhRzWjqb9aULL1 t/hG2b2q49AWfjAeR8m7/EvNljX3aybudQooQAaXkjMpBFi61FEnNBO2QpaWvTMIgBTv fJZ9Bcr4xjZreNns3fdkr++qivpMfei9f+ZG1v7vXQyAliUZB4nVpyAfHNlUmCzrpIHl 2C5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bSo1bzBS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qp1-20020a170907206100b0099a1fb56243si6691010ejb.774.2023.07.24.14.46.58; Mon, 24 Jul 2023 14:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bSo1bzBS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbjGXVfe (ORCPT + 99 others); Mon, 24 Jul 2023 17:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjGXVfc (ORCPT ); Mon, 24 Jul 2023 17:35:32 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B27F126; Mon, 24 Jul 2023 14:35:31 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fb7dc16ff0so7134864e87.2; Mon, 24 Jul 2023 14:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690234529; x=1690839329; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PGqd0Dpk0QJClHF7xv6N5WpusRf7KZmTiJZbeW3YVpA=; b=bSo1bzBSvbXk9nqAD97BGglxykvznOQ1gf/1zYxmZeCE8L1R/RYrEUc23gkSoQG5b8 OiGVU3nLrwYUzG3piGFUzrlD4ZLGf5m7vmiXzV8j9YdW/J60doQdsXBm7X6es4kGhpAP mfYubkIN6x9wEBtPmx3fLSNAT6FEBnrzej2RGRjG2dXe+BWflZTTbYaBA7mm+IJ0+ecJ +1pa1LkyANOg23vHe9P4hN1azoy4vCW56+Bhbis14qz84AUYZToVQeoOpW7pBkBJ/dUe Wm7X5+DZdKg5OF22X5KvFlgnRgfkpG+3ub3dEa8xr8FK7kZ/s9Soqj8dqBVUR29zhyN3 kSpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690234529; x=1690839329; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PGqd0Dpk0QJClHF7xv6N5WpusRf7KZmTiJZbeW3YVpA=; b=CJtmJuobxtHUjSdBj0AOrpGYjoBBrdixUbWzR+oytteH2mCb87zvUHqYuarZ2xW2wt pmM6JJ0U6cCvtS3X2ONvx3HGuItgwYqvBGOrOKWBvNsC/VSf/xemrcby03ILkhzvvWaB OfYl5PNXeMxE9DK9kcPvTw4+BGHSnSuIXMYcwowddB0G5V1Bs+47vNPgaCQ+UnxWxu2l Hc5Cb0MPSLTKtrc+8lPo2nLQ4LVZtIraQlDJd6RFJ1JVN66L/7KoEfElxYPAtqInfh6h 33sw+2irRL4NR2nrFLoV3DoIZY9ox04dy7koj5na+V+kWPPjuAApMqphV/QvLNBDg6qE kN+Q== X-Gm-Message-State: ABy/qLbLOdY6h3z3yE3gXP8hpCyn+y2BX6qJAd9Lr+yyHry8dvmK0zjg PFNyzMVBXkRQpcawbraHV2w= X-Received: by 2002:a05:6512:480d:b0:4fb:9129:705b with SMTP id eo13-20020a056512480d00b004fb9129705bmr5710559lfb.6.1690234529045; Mon, 24 Jul 2023 14:35:29 -0700 (PDT) Received: from new-nest.cgt.local ([2a05:3580:f312:6c00:826c:ae47:61a7:8af8]) by smtp.gmail.com with ESMTPSA id m26-20020a056512015a00b004fb745fd22fsm2406675lfo.32.2023.07.24.14.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 14:35:28 -0700 (PDT) From: Andrey Skvortsov To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Jarrah Gosbell , Arnaud Ferraris Cc: Andrey Skvortsov Subject: [PATCH] arm64: dts: pinephone: Add pstore support for PinePhone A64 Date: Tue, 25 Jul 2023 00:34:57 +0300 Message-Id: <20230724213457.24593-1-andrej.skvortzov@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support. Signed-off-by: Andrey Skvortsov Gbp-Pq: Topic pinephone Gbp-Pq: Name 0161-arm64-dts-pinephone-Add-pstore-support-for-PinePhone.patch --- .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 87847116ab6d..84f9410b0b70 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -19,6 +19,22 @@ aliases { serial0 = &uart0; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + pstore_mem: ramoops@61000000 { + compatible = "ramoops"; + reg = <0x61000000 0x100000>; + record-size = <0x20000>; + console-size = <0x20000>; + ftrace-size = <0x20000>; + pmsg-size = <0x20000>; + ecc-size = <16>; + }; + }; + backlight: backlight { compatible = "pwm-backlight"; pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>; -- 2.39.2