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: 147079 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1383499ljw; Wed, 19 Sep 2018 18:48:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZYHzKgv/ZWH7zqRe3aV9aLZXeii65qyyO8w5+8uLVs32MKCxApRTuhU9qWL+qdS5r3Knue X-Received: by 2002:a62:71c4:: with SMTP id m187-v6mr38521412pfc.232.1537408108849; Wed, 19 Sep 2018 18:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537408108; cv=none; d=google.com; s=arc-20160816; b=jHK5fzX7fe/xfqECYDQbB6OGH4ozGYYReKikdyIXiTfvr2hh3/t4zyAvgQ5MbRGZzg P8/DrRD6z6vY2nzxTWE9YuZL4fZtAc90MxmeK+smqQOuRQkAU2h6Ym1iZ8dJZ5WXKWaL 131pogbFnnoQ9H/LNJ/Ezq5o1fkdIKt5pSnqgdBlZtd0glV/443Ky2QGp2c88kdIIE5d i5udVZOW3rDcCRcHxgfDcjXIqdPXJyTjOZStQag9pcHcpvpJJwruXmRJqbaRha/JVuaA UQwOIZkC4b9d15ePwWYnOPy/ypJpZxdvEz0jWzT63Yx0bBSPnZ8Ktn1HhqU+R4VZwVP0 2w/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=yN2zUY5edYc6D8gSNP8BZ4gN3nerLrJ4B3IZw7tW/wQ=; b=Mri8MLYHOfLGt9tYwXnAjjeOl5vCiBLu4s9gbo9pz3FlaJ0+cXj7EhJB98wouCoShi hPKBR649WPvIYxsJeeKoVQFDVEjJlmAJkib5+66hO1V0nQuBuopPi/oFMTzJBz0fHtW0 1P9pB8yiBzyKGulVtA2SbrFau1DSF9nfaSjY+AZuzrrBj6h4eNcwQB2U44arie1m8zrt xgtH9wcEB+yNbCU0a/RggXvOEKxkh1SZOfEHaLgHxKEBZdoDcGDKkRI8f/GfXMeZkYlS 1gCM9NRQWOf1G8/soWGMhU6kj3PZvrwaYThtRKne2s+AyTp5QM4cvG0IhqbZOJF7E2BZ /fdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ju4FPyuk; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [209.132.180.67]) by mx.google.com with ESMTP id i35-v6si22163379plg.123.2018.09.19.18.48.28; Wed, 19 Sep 2018 18:48:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ju4FPyuk; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1731804AbeITH3L (ORCPT + 13 others); Thu, 20 Sep 2018 03:29:11 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42646 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731738AbeITH3L (ORCPT ); Thu, 20 Sep 2018 03:29:11 -0400 Received: by mail-pg1-f194.google.com with SMTP id y4-v6so3601511pgp.9 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=iZteoUZe+YZdptM05Sbj+s8YdVrqNoKMkyg6hSzhtz8NCvuq2CQsgLZW5LTJFMxv8S zKweZ9V+3h7tvgjFW4MjJtiujlC248Tb6iV+ibbecs2Q+yXN5ovWY6BmeOtmKYwoXF7Y VzGC9MAgXmGlQd63ExwV78Gccn7bossrvmXIBVR17qK6nsaOXdYC+TZn7kR4ar7VjhcS lgoDRaCPnSs7GydEjtJnCAQ5oaLsWYPXuOUxYdqLuUdA53SplB0tGfJCINuC8AQMCUjq 85z8uQz9GUa8phE3NU/Ofmwjv9CeC04q2jMQDPKOZl3EqvlfyxfzVqaxo7Xd294ShQhu UlNA== X-Gm-Message-State: APzg51DMJ4/Rx2WaaR5hfbCMRDcNvHVtqH4/lRZ6zwKj+OpeqMytZ8a8 Vl5l12jvus3HQy57lhi2KAxJSA== 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(-) -- 2.18.0 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);