From patchwork Tue Apr 16 15:52:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10903377 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 EE1BD922 for ; Tue, 16 Apr 2019 15:52:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D07E928606 for ; Tue, 16 Apr 2019 15:52:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE1422887D; Tue, 16 Apr 2019 15:52:20 +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 73B6F28A0F for ; Tue, 16 Apr 2019 15:52:20 +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=ztb1YYTGtLGiLdpTAX1ddWb6vNCAEVVeJklFWiV/xtg=; b=DAf FX1/xVGVKGX+KanTq/HVeH6FvUtBLWACz/HZb+g9d0Y9rMxaJkJAAqovC57Ukhx7V+WAO2NjS6BCF 9lalRKGE9KQBWQUxYjFtDJl+8cg8zCJAR2nNtXGfxv/jxzzyWUSUiKPq4OXqLs+j835ZnRg+8Za11 e28fRb/Zm4cea+akcz1uxOi5WMuwXKQIMFPu9iafID9heu6sOoibPbsBcum++prOxN/XJEPunUPw7 IoBx27gug0fnB8qcxwSz4bfeFtJWXSxBi4h1IVi5YUi02B5U9sY0y0VbZqUQBXoBTLYwKIpEk4rT2 8r8Xu3Mzb/57m2RhgunIp4FP6WMWN0w==; 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 1hGQNf-0006bY-GB; Tue, 16 Apr 2019 15:52:19 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGQNb-0006aT-Uh for linux-arm-kernel@lists.infradead.org; Tue, 16 Apr 2019 15:52:17 +0000 Received: by mail-pg1-x543.google.com with SMTP id v12so10559006pgq.1 for ; Tue, 16 Apr 2019 08:52:15 -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=RNm5hn0ohiGFKX5GjGBSbT4h/9N8eRUXb5BNqJM2K28=; b=YrZ3hyF/xiGrw8soDfNUlf5v+tLqP7AWdtidhi/1g183Fw4ZRxLxJDgcaaDWKB1vKH /vrL46Oy9QCw5QF8svw9tff25FPVOO0IJTjI34z9tAu9Dc8EyuBE2ykTrKi6damXUltE lbzj6I5ufSAHsY0tsC4thVEif2y/h2efLgM3xJie7JqOQTa9Mdg8y4SlKMznseIsfbeD gwJlcDWCs72DtopR5I1uHqgRpqzF8y5VxTP/xzHmM/f24tekMeb/bAbEi7M5G8/VcuPI 3xbUdvPTKrYipYOMlrq4Ot5txc9X3M4GDxuYYrt4O4KRHb8CDLo4B2Fg9d3tYCkxXFCm jdtA== 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=RNm5hn0ohiGFKX5GjGBSbT4h/9N8eRUXb5BNqJM2K28=; b=lMZO5ItxWBaIiwb4GbI0hzPHChH6+9PQwfazkZPXgocKshayz4qxpWhaW0j2eHPEmr cw7xQJDgeTRgVLHRL18tTwk9vIW9Hs5l2UmlPH77bMNRr4nqtqsgPBYRh/69tIBYPtXX lVTVjwrmS9B2N0Kp6qE5zv/0a5ownl1PhHNPYTLBvuncnYe0KHqcfs9Vs1HUNMZfwCg4 rMBoxx9y3jq3zuyu5TWJO2n9afxIANV4Pcw2BNdbY2CI0GMq6ciQgrrZVEWlKQY9yROb 9PLmMbu3ob5Y8AZUumlNUFAWZTjv6akNi4HsuTkj28X5VcNwNgYBe479fTUP7T1+8o1u sRrg== X-Gm-Message-State: APjAAAXKpTSljvmZRfkghlb09JjYPivMYKIjugg4xSf7sd2w1+gX9ckH euptmEaMkPXLh4C4GxB4WiQ= X-Google-Smtp-Source: APXvYqxIMwgBNaB5CiejC/3ksrQa2jdGoqCDEA2N8rQ/WwGxOyBMgoKJAirovidm3fv5uB/049SBJw== X-Received: by 2002:a63:6849:: with SMTP id d70mr76862039pgc.21.1555429934311; Tue, 16 Apr 2019 08:52:14 -0700 (PDT) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id a3sm81740695pfn.182.2019.04.16.08.52.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2019 08:52:13 -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 v4 0/2] cpufreq: Add sunxi nvmem based CPU scaling driver Date: Tue, 16 Apr 2019 11:52:07 -0400 Message-Id: <20190416155209.24216-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-20190416_085215_991384_A334905D X-CRM114-Status: UNSURE ( 8.50 ) 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,sun50i-h6-operating-points .../bindings/opp/sun50i-nvmem-cpufreq.txt | 167 +++++++++++++ MAINTAINERS | 7 + drivers/cpufreq/Kconfig.arm | 12 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/cpufreq-dt-platdev.c | 2 + drivers/cpufreq/sun50i-cpufreq-nvmem.c | 226 ++++++++++++++++++ 6 files changed, 415 insertions(+) create mode 100644 Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt create mode 100644 drivers/cpufreq/sun50i-cpufreq-nvmem.c --- v4: -I removed this sunxi_cpufreq_soc_data structure for now. -Convert to less generic name. -Update soc_bin xlate. 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