From patchwork Fri Apr 5 10:24:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10887137 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 E0885139A for ; Fri, 5 Apr 2019 10:25:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C495B28AEF for ; Fri, 5 Apr 2019 10:25:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7A3C28B35; Fri, 5 Apr 2019 10:25:11 +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.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 543C128AEF for ; Fri, 5 Apr 2019 10:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=oDfWvfDwuXhT1eGrVRgDf0Boe9m5qU12sosBBGhLnik=; b=VYN IhB+rWZ3PGU64Nf0iti4U6nOnx8EqwBmhooCYlS+5hD5+0KlF52mEFactcbv/yyoQgjAep0Jhct0e 4xZo82fw8KpXDle6Mar2om/FgnLjmms+O0+6CB6c8usNBVKZyJBq3yT1OoXKa5/CM4+UgUvALFxFD bOvqSK4j+lGMzoTTszmsVwC61YfT6YW/UPvR6zZPqjVbFLP407+geyTesfZoDswPsBQHnfu5LkYR5 FFol7N5+gQTyCsNC9xYWuju3GC3W96mw0hN7pXvImQgtiKQ51pdZWecY9BchjPuMLqA+vawdp+0Sf NC2HBAAZhTUkSU02HxOXjiJDCKDk/wg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCM20-0002hm-H4; Fri, 05 Apr 2019 10:25:08 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCM1w-00029Q-7E for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 10:25:05 +0000 Received: by mail-pf1-x444.google.com with SMTP id b3so3055893pfd.1 for ; Fri, 05 Apr 2019 03:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=3QzP4cYm2TOVKPV+VIy+S+5r4WzTpPrfu+RUgD9Xve0=; b=ChzUWipo16dVbOXEVUpC5Y26lnO5dfn9bswfegUDP4ld1sNY70ok/BOC7jfFK91nW6 wj7Xnm192Ops0RXgibS1+qcMFb5GFMy2nhtnD9OFrRvAkhbuf+P4uRLLSdTqkAZZkGrM UsScdCeMi2q9esmC3uzAMWNTDxqYKwNel2sCCoj64uLnnOiWUI8Vzls+kRdmGOUmz4mj lhlh42QOpazHWOBDNeDELFzKLUP4+gdQdMyuveLX6D+Yga8PF+3ncZNw3OdFsyBvsFfY Z5ucejvSstTfkwDfKR5SyD6XS8TBSu3DWM4smFLZLzNaOHxHju/Q/sGpz3ZU7/AwzyqQ N58g== 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=3QzP4cYm2TOVKPV+VIy+S+5r4WzTpPrfu+RUgD9Xve0=; b=SuzRs3fcMrNMH5AXxDLbva+VNnoJ7H/NMW3cWRhKAo5Cui8uv8vf4oUZmstDxhwFR6 OVR+c2rfQRRS7DDzlVmyJ2T4IMuFnuGd/GR+ADxd/7HTamIl+ko6+DntV8wT3KlNASjf BweiHwYIMdKiovqO6MaWaxC/0tFJBMCkhdSaRXrqurWJxvZTbANWLH1eEGNS7XT/Ro62 YbK6BOR9iDZyAGBWOUq/cQaJ1O040a3l24mJl06qdVIzEA5kdFDilX4oGK93Gc5FqTVm ZRUaPTdnJgIJYMjr49/AJbwgHRNrwSlBzlyR5HKTaloXQxQcRGBQ7BN8EzAsxAmhrSDI nWwA== X-Gm-Message-State: APjAAAU6UXtZrQUtzagitj87HNn1HR/G/J+FvRSd2SAWAg4Wrd3V72/N AIxfQcZCQ/wrVosH3e2XGjA= X-Google-Smtp-Source: APXvYqzycCck+YMnCC6BfuSzJ/zZYo1/bQkYsNJEJU8sYPBNGOy8GZ7ZwS0s4gjodO/d1Qtk1AJgYA== X-Received: by 2002:a63:e70c:: with SMTP id b12mr10755758pgi.399.1554459903673; Fri, 05 Apr 2019 03:25:03 -0700 (PDT) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id a80sm50323460pfj.61.2019.04.05.03.25.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 03:25:02 -0700 (PDT) From: Yangtao Li To: tiny.windzz@gmail.com, vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, rjw@rjwysocki.net, davem@davemloft.net, mchehab+samsung@kernel.org, gregkh@linuxfoundation.org, nicolas.ferre@microchip.com Subject: [PATCH 0/2] cpufreq: Add sunxi nvmem based CPU scaling driver Date: Fri, 5 Apr 2019 06:24:53 -0400 Message-Id: <20190405102455.15311-1-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190405_032504_267717_E8D4C6B4 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add sunxi nvmem based CPU scaling driver, refers to qcom-cpufreq-kryo. Yangtao Li (2): cpufreq: Add sunxi nvmem based CPU scaling driver dt-bindings: cpufreq: Document operating-points-v2-sunxi-cpu .../bindings/opp/sunxi-nvmem-cpufreq.txt | 235 +++++++++++++++++ MAINTAINERS | 7 + drivers/cpufreq/Kconfig.arm | 10 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/cpufreq-dt-platdev.c | 2 + drivers/cpufreq/sunxi-cpufreq-nvmem.c | 236 ++++++++++++++++++ 6 files changed, 491 insertions(+) create mode 100644 Documentation/devicetree/bindings/opp/sunxi-nvmem-cpufreq.txt create mode 100644 drivers/cpufreq/sunxi-cpufreq-nvmem.c