From patchwork Thu Sep 20 01:50:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 10606803 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 048421390 for ; Thu, 20 Sep 2018 01:48:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA2AF2CC38 for ; Thu, 20 Sep 2018 01:48:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD1782CCCE; Thu, 20 Sep 2018 01:48:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_DBL_ABUSE_MALW autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D4B82CC38 for ; Thu, 20 Sep 2018 01:48:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726020AbeITH3M (ORCPT ); Thu, 20 Sep 2018 03:29:12 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46317 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbeITH3L (ORCPT ); Thu, 20 Sep 2018 03:29:11 -0400 Received: by mail-pg1-f196.google.com with SMTP id b129-v6so3590401pga.13 for ; Wed, 19 Sep 2018 18:48:27 -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=yN2zUY5edYc6D8gSNP8BZ4gN3nerLrJ4B3IZw7tW/wQ=; b=Ju4FPyuktZjGg3MFdV9C1fWMFbigCumIKYUIY7VFCyyjN9kj9+OXgAr46JwG8cCnnG N4+9cEMqOwu+/17oWRq6TPNm/IG2IDHvHIEDnq0xjD9yxVhVw7kz0GdRAOEAeFSMkpjo 5BxR9XVQZjKlgOBxGO9uaGzTeX2EH2vIsZmVE= 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=yN2zUY5edYc6D8gSNP8BZ4gN3nerLrJ4B3IZw7tW/wQ=; b=N9DOaxDPA8KscbK/G/R7qFPvW8WNSsqThFvfYgO2P1nUslmFaAS5vQviHo5dloJqR4 tnQqT45UispwEPcSNvbGYfUrxWODyZG0tuSJI2nIlDuvkVuPkE+Mk3U3GrwOGbpvIFXh My19R6lm9GeXlYTVsPLgh5farfGWUQvoCW5Mw6ON69v6Op2um8d1GzMcZq0OVVXC0TV7 ya+FSHUd/0hqXaemjz1KIA7uVPnnVIu7J6Ozow70NOsjRnkAIX7AdOClZi4S/ecljVW5 Z4brFEV8S/M/pgt6GuS7kpekk4yAt5MPZWWFx9G/dAwDjbMvikGkm3DfazHYmwE/I1Fa PwiQ== X-Gm-Message-State: APzg51Aw8jH8sEVzzZCytPFiSR34cYX+7QiGmdWq+fMvMHu77mr8PnQY mS8jkYpU59j5RTXj13dcBAzT4Q== X-Google-Smtp-Source: ANB0VdYL3awTwr+aQiCqiLtHKoz4ZUQnt+u5/IeMi5qy1zd3oKZqQVJQYyTRxac4fjIB5AUpse+c3Q== X-Received: by 2002:a63:d518:: with SMTP id c24-v6mr33226908pgg.357.1537408107138; Wed, 19 Sep 2018 18:48:27 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id s27-v6sm49841820pfk.133.2018.09.19.18.48.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Sep 2018 18:48:26 -0700 (PDT) From: Bjorn Andersson To: Sebastian Reichel , Rob Herring , Mark Rutland Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH] power: reset: qcom-pon: Add pms405 pon support Date: Wed, 19 Sep 2018 18:50:44 -0700 Message-Id: <20180920015044.15686-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Vinod Koul Update the binding and driver for pms405 pon. Signed-off-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Documentation/devicetree/bindings/power/reset/qcom,pon.txt | 5 ++++- drivers/power/reset/qcom-pon.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt index 651491bb63b7..5705f575862d 100644 --- a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt @@ -6,7 +6,10 @@ and resin along with the Android reboot-mode. This DT node has pwrkey and resin as sub nodes. Required Properties: --compatible: "qcom,pm8916-pon" +-compatible: Must be one of: + "qcom,pm8916-pon" + "qcom,pms405-pon" + -reg: Specifies the physical address of the pon register Optional subnode: diff --git a/drivers/power/reset/qcom-pon.c b/drivers/power/reset/qcom-pon.c index 0c4caaa7e88f..3fa1642d4c54 100644 --- a/drivers/power/reset/qcom-pon.c +++ b/drivers/power/reset/qcom-pon.c @@ -74,6 +74,7 @@ static int pm8916_pon_probe(struct platform_device *pdev) static const struct of_device_id pm8916_pon_id_table[] = { { .compatible = "qcom,pm8916-pon" }, + { .compatible = "qcom,pms405-pon" }, { } }; MODULE_DEVICE_TABLE(of, pm8916_pon_id_table);