From patchwork Mon Jul 5 02:50:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 12357951 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAEDCC07E95 for ; Mon, 5 Jul 2021 02:50:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD01F613D8 for ; Mon, 5 Jul 2021 02:50:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbhGECx2 (ORCPT ); Sun, 4 Jul 2021 22:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbhGECx1 (ORCPT ); Sun, 4 Jul 2021 22:53:27 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C43CCC061574 for ; Sun, 4 Jul 2021 19:50:51 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id o18so16333109pgu.10 for ; Sun, 04 Jul 2021 19:50:51 -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=kIw+0ZT6BfmhVv7NysPEplzl6N6jfg0tZsoiOsyPHrE=; b=QzB1sCLQQMeASoLsv1TWRn0BgjoByZkPM2cz2Lt3nIvZUeHusloVyWsmizU64ogEL4 iNGcxXwLHVtz6kKWDFWLcJXa6LGcwBum0L9FGebA2A7k1XQfb7tDuMkIZfTz35gUGiax RKgSZ7xmbHDf6frABcewhE1CbtdUiOf9TCxCq4GLfxM5MLNBilw+6ADGPhEUB/ih/rTi wFJnh25Y2/ccvnVE9TLFxanuUfJtY0k4QDHFO8Bqajc4+11JKDWtJMVZ+X/jqIdVDHfI oYX1TiRhTPMEK7UrAP1iYvLEc7cS+sDrAAIpQjUFnY5pAanOy2g/CbzvwW5ycodORhGX n1ZQ== 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=kIw+0ZT6BfmhVv7NysPEplzl6N6jfg0tZsoiOsyPHrE=; b=HgGbwWmm8J4M9hfnxKMgDAvyRn994sjvI1LHchvPDKwlZWmt9VMmh0gUEHLvLQDfu3 FggrRtKZ3aSWl/j8xgB4qL8iTlBdciJTuto5FJ/cCrzigYI1XVNUDyMITNnxHCOUVInJ 3AxJ1GWkADIhnpg/BSwJpNtFLmj/B1ggZHF2km8J9W/qZ5ZxCYXk5Cs8uHxXjRpIr3q6 pRgnHLxSPA1A2OFgg5QuOYJ1ZfziBXwzngjge9aRIzXbT+yCnCKIOK83L2c0sLl32NUI erPkwf4gcW9q+4XSHlt6pRNAevKwnKjnXrmEfkcdRFAn84ZUup59vpMnrGIGEFjG6/kh QG/Q== X-Gm-Message-State: AOAM532s1RYP4bykkD6B3XkUUVjXPfG0u0dGxSLnyFDq1pqkjW5728zb qvAFFufT4F0x9J4hSuyClMqsBg== X-Google-Smtp-Source: ABdhPJwPypFsYbfYAt4nC5uRGoqKzLZCxMIeG3NKiaHuv8mWfUZg0KLffZpuXMhHzeEQBjivI3UjyA== X-Received: by 2002:a63:6e09:: with SMTP id j9mr13146021pgc.275.1625453451383; Sun, 04 Jul 2021 19:50:51 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id i13sm11891041pgm.26.2021.07.04.19.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 19:50:50 -0700 (PDT) From: Shawn Guo To: Sebastian Reichel Cc: Stephan Gerhold , 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,pon-reboot-not-used' support in PON driver Date: Mon, 5 Jul 2021 10:50:29 +0800 Message-Id: <20210705025032.12804-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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. The series adds an optional DT property 'qcom,pon-reboot-not-used', and have PON driver skip reboot-mode setup if the property is present. Shawn Guo (3): dt-bindings: power: reset: Convert qcom,pon to DT schema dt-bindings: qcom,pon: Add 'qcom,pon-reboot-not-used' property power: reset: qcom-pon: Add support for 'qcom,pon-reboot-not-used' .../bindings/power/reset/qcom,pon.txt | 49 ----------------- .../bindings/power/reset/qcom,pon.yaml | 53 +++++++++++++++++++ drivers/power/reset/qcom-pon.c | 9 ++++ 3 files changed, 62 insertions(+), 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.yaml