Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3314479yba; Tue, 16 Apr 2019 08:53:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwL4POtXlPsA/yZwMSGW7XN3VdYsOs77MIef4MJMCVA42ejn1B0rYmNq3kohSv+Wbr6czAx X-Received: by 2002:a17:902:4101:: with SMTP id e1mr80220006pld.25.1555429991028; Tue, 16 Apr 2019 08:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555429991; cv=none; d=google.com; s=arc-20160816; b=cYJxfwpXTI3VhN3kQjlIrKlmQ71t+7NcT3tLMMYv9L6qaHXoYjGRyEd22IjEC4yCYl QG6Ff5AGB6Q6WOkn7v+yJSnuMRuiTdXFg0+rj8PVQEYz9QKMiEI+dZCsssNAcHz/X1RO 6EuXAHomj+Wl+WwtmzzMS7a/HMknORHG1a1GYR8lTtPvj8d4CJ7HSZ0SqOXjUS0j/aCT t8J6CZZvD9f7OMsS0kp1hHFtjKAoT76cdvjy9jXBmUnooi4JwjWFtRL/uHZJpHL56Img Y6h9XbZUjEgi1yMz48WY4davgkgnRgADvdHNI/IQ8ttp0SJRUdMZNKBeOXjWoPqGD23j B99A== 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 :dkim-signature; bh=RNm5hn0ohiGFKX5GjGBSbT4h/9N8eRUXb5BNqJM2K28=; b=d1yXiC929s/2JNDDKKpVa76lERlbU7QyWMJEY3ja4PNQus++I79lqz2vcswiWXFZLQ ffwIA0lSJwW9vqDV66kuAjREEGw+kU0u+qVLd5w3Zdinh1fyC/K/wCUZ74hyYUpmsRdg XlXbapE2EyeKQqpkzszGfIdySLK2czcsJx6kTvRm8EydcjzsawzdBhYYTyyBurEX/sDq 5SuCZUBTAlXpdZbmdNSQIfRgUZKi8MUAR1saysm2iTbrtHd5Ml7wmxMCexPpC+o4OZz7 v2SCN5Xwb+l4cvFHN5A1gv77JCYyF4iO0U8yjP/el1Sapy5U/NN5TACUeAC3nIGymDlS p2Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="YrZ3hyF/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n86si50893430pfb.273.2019.04.16.08.52.55; Tue, 16 Apr 2019 08:53:11 -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=@gmail.com header.s=20161025 header.b="YrZ3hyF/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729711AbfDPPwP (ORCPT + 99 others); Tue, 16 Apr 2019 11:52:15 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36151 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfDPPwP (ORCPT ); Tue, 16 Apr 2019 11:52:15 -0400 Received: by mail-pg1-f194.google.com with SMTP id 85so10550453pgc.3; 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=OV59iuoRfHn3x1yCE9lBQKrdU5ZPPT6V+nOHMofWM0T0KbVZL/JtpikxkfAp3/Z+Ou 3UMFO0Mk6Wm/i8xjHxnYZS3oGtesPuFPOd2vQreliqeu4+8IeZqaP+yulwRQi5/oZnsC dKtQ3z9XP1kLKkZEMAka/I+WE2FrcHS3TV2OO/5RtCC+WrKSOdlmuNKj55Ouamt+FvxE LRbkGoBgTs9l7ze12ZA7oblY8oxkgjtlOAZRT2jc6jHbYBFCaB9nVB+zQzqehGc33ZnF /NsnR3cwFEVGsdKC7h+aQKK7z7YSZL4W6A+XBXJNagUQQ0GXjkLX0myZ3Cek51/bmBTP L2KQ== X-Gm-Message-State: APjAAAVjlR4BAHHFholilC0sNoHk56ZySWVGl4R3BMz9S6IiUunuvweJ /CpdGi8Wyc4FnMbArF9ZMSw= 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 Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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