From patchwork Sun Jul 4 07:40:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 470033 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2941453jao; Sun, 4 Jul 2021 00:41:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8SsAHG6ZU6jvtaRwULQcJoC3O1mOaS3ncsFMg0Mckddb8A5owt4nvfuUIDuqsXMgpFbqI X-Received: by 2002:a5d:9c59:: with SMTP id 25mr6938468iof.15.1625384472365; Sun, 04 Jul 2021 00:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625384472; cv=none; d=google.com; s=arc-20160816; b=Se+8C/nSLPfTMKMQ2JU6GWSskXux+T+0X2WZyBkhWSIu7VrQKKGMz2dl3EIK6JDRu1 JsArdnj0rFxHywNbihUvVWm/BnH6LFqJAkxbzO4c8e4NDA2lnoXhuW2kw7pBaVoqo/zp YXa08emiCe5JJ3T7oBhFySCpW9/eJ92iGena6empbx+eflcp74CMafyMd73mWcoffvvg P3sh8KSxpYjsEZMtqXLwQvwIr/Y7GxBjPIJigBFQE3btqBa5Wgx2ZYssSIdyNbkXjpp6 OH5mr5wlJw/CZX/c1q0njN9aj/ALr3uotrzzvcHSrkFnodNaHgMXtSOthndanUOkpyBe GRFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=KaN3RE0+9NsNDRthBW+pFqdpkAjR9drVErioQrFNtSI=; b=ACdYcn5DPwoCfd0qshMd2wMkZ2PAYm2nXa78GQ1417Fc054id6hOvy7qOh1CtJFYTK Utp1YrkdkOytdnd5J9V8auyyJ6lI/DFOvQf3BunHK/HFITf/jA53gB9qwJgR+GQAPp8Q blPeupo/ajFpPKHKaPyYiBaC7ScpRxYgIJeLtW/QW7HZ51G2UKDlFzZreWIN1zF1nWWO jkQTxOVty2T7gE2c9zsBKdrFPnix8kBlDoWIFD/jxBbG5ZgNfTMgD4UJu814DXwEVzaF /Fmd16qHdcju+VO9nXljp719U+iwl/JhenDV3taZ8PB9mFhGvk+R1t9UNxEy7suBf9CB mlGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P2rxe9qC; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si9488287ioe.96.2021.07.04.00.41.11; Sun, 04 Jul 2021 00:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P2rxe9qC; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229559AbhGDHnp (ORCPT + 7 others); Sun, 4 Jul 2021 03:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbhGDHnp (ORCPT ); Sun, 4 Jul 2021 03:43:45 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A69E4C061764 for ; Sun, 4 Jul 2021 00:41:10 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id u14so14918424pga.11 for ; Sun, 04 Jul 2021 00:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=KaN3RE0+9NsNDRthBW+pFqdpkAjR9drVErioQrFNtSI=; b=P2rxe9qCfQwQ254RIgo1HLaGo2dMUvV5ZPc0lMo95rCWioDnPyQv4r6xdSf2ii3kSr /EgFNTEsPgZaCinSa368b9iYqb6Wh+mw3MkDGWxkZaIvG2gsQuxOegqDnP5M4cPvKGpF 96J9rYMokNVeavYNe80+rUFF8Q2JEiszXIGU3XSFzPwVNfr/2KefJqbEvz94ffwFjZkF PPzrq6Y2+yMLlr+29+SZKwdcNX/XDrw3np7vy0lcjJBRkgFeg28oS9UZBdP57uiTb7Jk RIF0PnnENdlD0g9w7bYsAm7e3uw2m727l7yJwAhrgwJQKBQNogGWDSsFsKISLDB2e4DW YAig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KaN3RE0+9NsNDRthBW+pFqdpkAjR9drVErioQrFNtSI=; b=o6EvpTLcDpjpNNpu5SA5KUXRD7AXKcWVhgCQvpgM43rZeTPlrzUT++2xVZmDrwFN7N 8FnV4QN3yEyTI3/nE4rAsKEOlD8+IunYF354MgpA7CUlwxh1rGQfMCEhJAmLuC2ejn3v sUfnibmVxBRGijusffetkeoPaZdJF1z2mgz1a5/3haqYkEgeQRrNt+i0SQ7s+9EdRJDJ ihOadtes210CgV+p5MHO33up4xsWocquaUZRKAQGcZQVEfRbRkABd1/K8wY+liAKADDj a6A/2fU5O4n2gvKyOJmJJeX5z4E2c7DJLuhkkg+uPZhNNLDiu9vj7b1PTFstBqgaM5Ur Vz9Q== X-Gm-Message-State: AOAM5301KxZZ6GUiUq24zJ1uAEyx49XPRrUkpYJZdpk/qyvuf+T3wmOf 3v7B1nNMrQOC+CJgmxo+t7ANXQ== X-Received: by 2002:a05:6a00:216c:b029:30c:5b4b:ee46 with SMTP id r12-20020a056a00216cb029030c5b4bee46mr8416365pff.81.1625384469533; Sun, 04 Jul 2021 00:41:09 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id gz24sm7052956pjb.0.2021.07.04.00.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 00:41:09 -0700 (PDT) From: Shawn Guo To: Sebastian Reichel Cc: Rob Herring , Vinod Koul , Bjorn Andersson , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, Shawn Guo Subject: [PATCH 0/3] Add 'qcom,mode-in-imem' support in PON driver Date: Sun, 4 Jul 2021 15:40:42 +0800 Message-Id: <20210704074045.21643-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org It's not always the case that reboot mode value gets stored in PON register. For example, Sony Xperia M4 Aqua phone (MSM8939) uses a different set of mode values and stores them in IMEM. Add property 'qcom,mode-in-imem' to distinguish this mechanism from the existing one. Shawn Guo (3): dt-bindings: power: reset: Convert qcom,pon to DT schema dt-bindings: qcom,pon: Add 'qcom,mode-in-imem' support power: reset: qcom-pon: Add support for 'qcom,mode-in-imem' .../bindings/power/reset/qcom,pon.txt | 49 ------------- .../bindings/power/reset/qcom,pon.yaml | 68 +++++++++++++++++++ drivers/power/reset/qcom-pon.c | 25 ++++++- 3 files changed, 92 insertions(+), 50 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.yaml -- 2.17.1