From patchwork Wed Apr 10 17:41:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10894501 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 B005E17E1 for ; Wed, 10 Apr 2019 17:41:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E6C328BA9 for ; Wed, 10 Apr 2019 17:41:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82B7828BA6; Wed, 10 Apr 2019 17:41:52 +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 0A3E028BA9 for ; Wed, 10 Apr 2019 17:41:51 +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=TRZxEHM4rWIqkT7ovqjj7o7rPe8vw2VElmS5Oe1Ko7Y=; b=OUf 9Sq5TjKO91GfV4P8QNeT5Nk+96PUOGV56exZEps0Ske9tdtluLZUK6aD9Xv69Vg2Kt1RdXA/pMWBM aMJGp9UHactowVvsb7/PLDS/B35DZJEXnB1Pv4+rKf4i3+BkJP0SbaJpuCMYIGzWjuRXJlSnn7ntB IjoYRfIdYhstKusG/8G0wbiz/GIuM37LDN2owh5SSlvQmpaKUOVYfgEavt+nAQZOC9gcPTCX9dMMq +y+5gJuOl+WPm1xlueROJTRG5XfoRfFWkzxAj0568/yMzmHYEZwWGJQqcwYOjMF0/g7bGT3dQ0JQO 85FgBZO8hE44HOVYabSHPfgjDLFJF2A==; 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 1hEHEM-0006M7-AT; Wed, 10 Apr 2019 17:41:50 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEHEJ-0006LP-7L for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2019 17:41:48 +0000 Received: by mail-pf1-x442.google.com with SMTP id c207so1905686pfc.7 for ; Wed, 10 Apr 2019 10:41:46 -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=cIF48K8XpxYwNR94LDHijnfSJcxVFagLr9cYV08b7iE=; b=kLPZDRdqAXR2xTAx1wWtZslBLXTGP4lcjNw96zxh14Nxt4kMztbVJh3WRbm7LRybZl flvy6UEYRARIBNMDrTTEL4Zl3XggpyHMGTbHcKNgwH7XSfJ5nsdEoX56fRXjbwhZkAfI xTFzlH/kard/QtBGMRBibBnYKPZNE+EnyOB5hhoKYoe19Nd20csm14/C0ysOIziFrX7G gNFR5I/tB6P7Y8bch9i9QkP51uANBA8dmeO4Vn3KsxAYNRhrKzdbn97btvJK5Ue8BVPE QYDJYxH/5/H5zDIWU3/oSqxDbp8VNP8zuhums+5dbo75GKSjAWLX1MHWmi3s0lHwop4P r94w== 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=cIF48K8XpxYwNR94LDHijnfSJcxVFagLr9cYV08b7iE=; b=AxnIS7VGORbTWpkvAvLNT+mZkrsnxqcRzZlyDZH6t5iH7YnoRvWSx2KSBqa6uQUVOF l6EeUTbjwrQ5rQAvVFzx3SROmc06P5xmQTPNEOZhENe6apKURvRNBRo7g4ttoD1UJ4+y KNX4E10BleuP8ZgrsvdHuqcjLXfPrYHjAjNk1W5FO/i0cQMtbyxsYaBU1eOwnwm2gcBj GcCsrNKEv07tGRaxA6Z6xjN2LRFIB2ruk649cHPbktrSpuowshZrVTuKSmmAGdPpo926 Xm6s4iz0O69SFdeLtCVsF0iyxHj0rz9NzcF9YSY5/qQ6igCIjzkLN9J1+P+A7S33Az9u EWNg== X-Gm-Message-State: APjAAAUto3oNRBdEWjlxTg4xcNviV/pIntv6+iOJC1WSSZs/RcRCELvK tUGVSjvUKix+0OAU2A4NQhU= X-Google-Smtp-Source: APXvYqxy07eYlruoHBkz2KKPT88J0+/pcwSr4sisLJg3WgSfTg142Srfcy3lkTlik6gv4A4Kki9cKQ== X-Received: by 2002:a62:b61a:: with SMTP id j26mr45122885pff.203.1554918105532; Wed, 10 Apr 2019 10:41:45 -0700 (PDT) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id j20sm20609850pfn.84.2019.04.10.10.41.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 10:41:44 -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 v3 0/2] cpufreq: Add sunxi nvmem based CPU scaling driver Date: Wed, 10 Apr 2019 13:41:37 -0400 Message-Id: <20190410174139.20012-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-20190410_104147_289615_FDA81523 X-CRM114-Status: UNSURE ( 9.23 ) 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 allwinner,cpu-operating-points-v2 .../bindings/opp/sunxi-nvmem-cpufreq.txt | 168 +++++++++++++ MAINTAINERS | 7 + drivers/cpufreq/Kconfig.arm | 10 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/cpufreq-dt-platdev.c | 2 + drivers/cpufreq/sunxi-cpufreq-nvmem.c | 232 ++++++++++++++++++ 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 --- v3: -update changelog and title -convert compatibles to allwinner,cpu-operating-points-v2 -document the valid names for opp-microvolt- v2: -update changelog -convert to dev_pm_opp_set_prop_name instead of dev_pm_opp_set_supported_hw -some change in OPP Node --- 2.17.0