Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3284500imm; Fri, 25 May 2018 03:04:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpD3N3tQ4P9r73Y9hE/xL+cuKpgKyZGRjhqgcKvFZkvFxljkNOg5TvErEwcfY2NnrhmV1/S X-Received: by 2002:a63:7f5c:: with SMTP id p28-v6mr1472444pgn.64.1527242677741; Fri, 25 May 2018 03:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527242677; cv=none; d=google.com; s=arc-20160816; b=c+2LMsS71LJVVnXmi4JOt1SLHWgEMqTzSyfLWGOZnh7YsgakkYV8V+gAdRmoEbrOjZ WqQhNP18IO7U0uHLdBE6wE5Xh8agW4OK5jY6itNIOmASbzKLD1OUJJEFbmS2Irz/X/wf lvOlVSD+grQGijqJLVKZu+B+eFui1HyRTzgTC9pXRvOJHbfoLh4UAvzMvvjHqJ8dPHog y1aL0TgvsI62Exrk+hBAMZsPslbcdB+zBvQ/aHu3zR/Dygd/OuB/ZteRUw9D/WkmCL2l 8HZeq9f3cqloV25HeayLMd17BZyVCnhEq0HsCf8vSHZmXqXWwRlUI50FS4Ma6hAUGTbu 3FSQ== 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 :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=50K1C4C0wof5tCha9PUVOcNqlYHhXlTHCuAdEi7BnO4=; b=Ttdb8Mu/8bt/1z5+M8+a4gc2FakZmOGPoV39UEWtQaQael2YEVQAtPNbO8Hka9Cl7g fi4PXEnB66pm0qeE8H1Ovfvc+rWkdWVvu9rPJcTwad7oIq2GDKu8kPsM+b5v2Hq/JXt0 pxb+1vUt+g9LXqG/E0NQNOJP5ttCsXTUJeDZv7RXEjqUA539zUSMW7mQgDR5bzHtQgYS NEpCthmZeaT8iBVRIEcdL9sLPiuuxAXkGx386WNYp7Valk49ZgFpYRCcVSrIEKSVnO2z 8u+0NXw53vo0KVCuUO/TaxODBn5xhczX/cWfRwhHsjiWCfeIPdHlLJNEly7FXQwoI8wU IH9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=MqIORfT3; dkim=pass header.i=@codeaurora.org header.s=default header.b=UCObM9z1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d124-v6si23486410pfc.176.2018.05.25.03.04.22; Fri, 25 May 2018 03:04:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@codeaurora.org header.s=default header.b=MqIORfT3; dkim=pass header.i=@codeaurora.org header.s=default header.b=UCObM9z1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965609AbeEYKBh (ORCPT + 99 others); Fri, 25 May 2018 06:01:37 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45184 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965259AbeEYKBe (ORCPT ); Fri, 25 May 2018 06:01:34 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3CFCD60F71; Fri, 25 May 2018 10:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527242494; bh=4uc9pHZZEmvsi7w+N1e0hWMBwvjyM/ZP3jCqFjfjqCU=; h=From:To:Cc:Subject:Date:From; b=MqIORfT3kHTGR3IW5eVXclZ9GIZsdZw1pkV/QJfK58UgzMYLohr9+V2BhNwDwxj19 RYT2k4gJklKrPL0wcwprbjpmGda6TuesStnEk+nfaarIK3nXx4xzn3Rd2QbyLgZKL4 gbTv6MdQ5jo1Ef2yet3u8HqhCcDWm/T9zixJhJeE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from blr-ubuntu-173.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2D4F960618; Fri, 25 May 2018 10:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527242492; bh=4uc9pHZZEmvsi7w+N1e0hWMBwvjyM/ZP3jCqFjfjqCU=; h=From:To:Cc:Subject:Date:From; b=UCObM9z1zP2CuI8rlrqgDg1uc3yMqoggL+0ocqUCR9deRnNseqlZcLk1A+GKBjTdM fg7SgXzeEdoBxkH2sW1Fc2yEji7ps+Ssc4lpojpV2Lz3Sbp9sBVD+RGh9c5WmMopk4 DnwquXrjs4os8VOFB7mMYhHgZwP8vaJQqVhKLhxE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2D4F960618 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rnayak@codeaurora.org From: Rajendra Nayak To: viresh.kumar@linaro.org, sboyd@kernel.org, andy.gross@linaro.org, ulf.hansson@linaro.org Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, collinsd@codeaurora.org, Rajendra Nayak Subject: [PATCH v2 0/6] Add powerdomain driver for corners on msm8996/sdm845 Date: Fri, 25 May 2018 15:31:15 +0530 Message-Id: <20180525100121.28214-1-rnayak@codeaurora.org> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in v2: * added a powerdomain driver for sdm845 which supports communicating to RPMh * dropped the changes to sdhc driver to move over to using OPP as there is active discussion on using OPP as the interface vs handling all of it in clock drivers * Other minor binding updates based on review of v1 With performance state support for genpd merged, and with some more patches to add support for them in the OPP layer [1] in linux-next, this is an effort to model a powerdomain driver to communicate corner/level values for qualcomm platforms to RPM (Remote Power Manager) and RPMh. The series is based on linux-next as it depends on OPP updates and SMD845 specific patches which are all in linux-next. It also depends on the RPMH communication patches [2] for the sdm845 rpmhpd driver. [1] https://lwn.net/Articles/742136/ [2] https://lkml.org/lkml/2018/5/9/729 Rajendra Nayak (6): soc: qcom: rpmpd: Add a powerdomain driver to model corners dt-bindings: opp: Introduce qcom-opp bindings soc: qcom: rpmpd: Add support for get/set performance state arm64: dts: msm8996: Add rpmpd device node soc: qcom: rpmh powerdomain driver soc: qcom: rpmpd/rpmhpd: Add a max vote on all corners at init .../devicetree/bindings/opp/qcom-opp.txt | 25 ++ .../devicetree/bindings/power/qcom,rpmhpd.txt | 65 +++ .../devicetree/bindings/power/qcom,rpmpd.txt | 55 +++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 40 ++ drivers/soc/qcom/Kconfig | 18 + drivers/soc/qcom/Makefile | 2 + drivers/soc/qcom/rpmhpd.c | 369 ++++++++++++++++++ drivers/soc/qcom/rpmpd.c | 354 +++++++++++++++++ 8 files changed, 928 insertions(+) create mode 100644 Documentation/devicetree/bindings/opp/qcom-opp.txt create mode 100644 Documentation/devicetree/bindings/power/qcom,rpmhpd.txt create mode 100644 Documentation/devicetree/bindings/power/qcom,rpmpd.txt create mode 100644 drivers/soc/qcom/rpmhpd.c create mode 100644 drivers/soc/qcom/rpmpd.c -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation