From patchwork Tue Apr 9 17:25:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10891869 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 5257C1515 for ; Tue, 9 Apr 2019 17:26:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3968D26E4F for ; Tue, 9 Apr 2019 17:26:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DBD42893C; Tue, 9 Apr 2019 17:26:14 +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 D683426E4F for ; Tue, 9 Apr 2019 17:26:13 +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=u0R6S5GkkyMMG6TMpc0pCalpRSGP31ewBmLeGL+9onE=; b=KlC p8gTWOXr8SMY8UyF6F0xNZmVMl5zdRseyH609wL5V3qeFQ5kkdhgtxKsUtzVAqXqEDUqLMFpNNgMT tzq31xD8O8Wf3aVszGmtKhEMQBUGTMXAMCHBgm4YzEdnEU3jjDmnWl3p5Gk4SZWxCa/g6sRulcM+Y DdgETYe0uT0pkSvxGxXbP/jdtS5mo9sOvBLHYk3xWoK9XtA1wpeGlntApvUdfHTR9ZucKB12/SE59 5Gf6+R8Xu9OphzjCt9T14tBHCIeDV6fulVZ5actvDGWiD4F5JK0PlVXYtQAh0hyjAvwzpiZdzNrHW RkQ3jnhOxVdN+H1K3GByiENs74wYRoQ==; 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 1hDuVc-00058n-0n; Tue, 09 Apr 2019 17:26:08 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDuVY-00057u-Ob for linux-arm-kernel@lists.infradead.org; Tue, 09 Apr 2019 17:26:06 +0000 Received: by mail-pf1-x441.google.com with SMTP id 10so10117016pfo.5 for ; Tue, 09 Apr 2019 10:26: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=2OPzDwOe7I+UnNSxlX5RL4h6AHbqcWSwv2DhZC078Jw=; b=uR+W9FF4/Rg4RzQuHf+07C5aW4QXNJi4CuEpLlGsB3GRMSkG4vHqsRMfZ0t/rB3ulw iLrXRHMXCpdEPsrWvSHKyN4SWpvGNy3EKPn8oFkDuN/WHwrqCvCZBjfSYzk1A5iblOGK 76zYYsKy3dUV9v40WAJLOawqFa0IJN90Ly0/8QHVDse/1kU9uraDf/Va1S2No51sAj3H 43DNzY7kRuvIckHH6bG1UN11tsTbPhcI5Tj2Tmtzvv/eSSvxO1yyP7cAWVyvOKCq4nc2 89/s1vYQ3YZQCgyPuFe1hCW4z8u2QzCQjM0opgohwogbXKGFwA2/H3M0XDrpFXHYsT4o Vvvw== 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=2OPzDwOe7I+UnNSxlX5RL4h6AHbqcWSwv2DhZC078Jw=; b=k5IX/Q8dEG+bSzD3N5nwS13y1U11dsf7UPBFNV7kcrjmknDaeXqDilJoLJSYe9Dpx3 ZUjDboDsgeanDDtqRLI4iGN4RDStcASmhEEfISQuFa4zM0bVGvItfWUxX+nSBNko/4HJ m+gkfXwi6oOmw9L2PchyZ6nNFWZx/7x24+KuI6+She2Jvb5fUjGBGowiJ3r/97yW8FGf +qpN9PAZ2YG5dN2hbeRggndtp6Qu4TkuQUFcmDhB9X2mqY/7Xk/EOygLld13aqONn5Qf Gol4bGoJBz2SBap9lW4L8/e2JfR7/j7Mt3P3vwhEFKlze77uIWsoc6Z8FA+PKwGEe6RR OsLw== X-Gm-Message-State: APjAAAX65o61/GUP1ghVsizpSXODqYcuKu4KAqoSf/wPUQHWRoqbryvc VRoVEevFPmv+Aib6ntGEAyg= X-Google-Smtp-Source: APXvYqxtg3Eugmatg8OYWhdBA2qBSJZvTrXbtIXDQQUzLNVk3FhZRvnz6SKW7593A5zaeSeSmbJYvQ== X-Received: by 2002:a63:e20b:: with SMTP id q11mr36565491pgh.263.1554830763853; Tue, 09 Apr 2019 10:26:03 -0700 (PDT) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id l10sm23922205pfc.46.2019.04.09.10.26.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Apr 2019 10:26: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 v2 0/2] cpufreq: Add sunxi nvmem based CPU scaling driver Date: Tue, 9 Apr 2019 13:25:56 -0400 Message-Id: <20190409172558.18778-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-20190409_102604_799384_79E14318 X-CRM114-Status: UNSURE ( 8.87 ) 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 | 166 +++++++++++++ MAINTAINERS | 7 + drivers/cpufreq/Kconfig.arm | 10 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/cpufreq-dt-platdev.c | 2 + drivers/cpufreq/sunxi-cpufreq-nvmem.c | 234 ++++++++++++++++++ 6 files changed, 420 insertions(+) create mode 100644 Documentation/devicetree/bindings/opp/sunxi-nvmem-cpufreq.txt create mode 100644 drivers/cpufreq/sunxi-cpufreq-nvmem.c --- v2: -update changelog -convert to dev_pm_opp_set_prop_name use instead of dev_pm_opp_set_supported_hw -some change in OPP Node --- 2.17.0