Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5889389rdb; Thu, 14 Dec 2023 02:34:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IECRluMYm06bXlyGQKVCqQLURgIQQ8eynpxZox9TIcIvsnjPXJ+DAabSsBNM+uVuI/C0/mE X-Received: by 2002:a05:6830:616:b0:6d9:ebe3:a86 with SMTP id w22-20020a056830061600b006d9ebe30a86mr9123983oti.14.1702550078752; Thu, 14 Dec 2023 02:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702550078; cv=none; d=google.com; s=arc-20160816; b=J4okW/2ueERwJLQEQD7B/zIiQ55cbIaW8hs3J+V5Cvx6rOJmk1tV52GAGYW7ZURtT6 sciRpQb9TukQIsVCc3QoAlVdPDIH+CaRwK+FvOI8FqqZ76H/gac3jn9100HZjSasLBGY MD00qwZmhUMIZq7UpE2Wv7YZx5FxWfuOicB+jGtBO8RSJ34ruFF8xcSs7IBkkySUCbhO fR0ayP9t6fnamtJNIBPwujakMApilMURBQeLs+5Wx8Ikb/XH7YJbIxBxcBdCT7aIzihk oD8k3BurYTVfUrDdiDUmqHDsO3Q9HEkvnvMxcYNXtfEdOTxGl7Wv6lBiJYo6JRNHF+Uu 8W3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=d9Bav5GT9+DiIlOayf2xo0fOPFAMpMbevtPaUgb/OCo=; fh=rnrrVEVjIAVXEBXz1TJ37fn0yEjCSK95u4kuSjKp5h0=; b=W2bJVkNNohu7lNeWbeWQk7VXpqUut7m+nRWh5FLwknbN7fcL2FLPHg+FjiVEg++L1R KhDacocjnbnMLzKowY3Pjg/6N4WZIZUofsHWE+5fTVXLSKOeNP9yNa7w2rbH1PjIuXUl zhQ+a5O6WK57v1kJnqUrlKqhudUPwFmcvXUDzdGqdj6rXbH5ROh/wnOdMwTxaZN4ZbVA zOwJgR4MtMzsPIFx9IoszuSxvD2hy0NYNHSCgOj61Va9s4T83pIJqW99Ntn//6G+2IZO BYm4OYUa8UD+xxIw8fZ4h9IIli/ZlsH7+s8bj1//luRCczV6VuVXeZ34j8zmROQaCXOX u5KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="nQaKIJ/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d3-20020a056a0010c300b006bd360e70edsi11171156pfu.103.2023.12.14.02.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:34:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="nQaKIJ/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2E5018026DBE; Thu, 14 Dec 2023 02:34:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443662AbjLNKeH (ORCPT + 99 others); Thu, 14 Dec 2023 05:34:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443655AbjLNKeG (ORCPT ); Thu, 14 Dec 2023 05:34:06 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 980D2E3; Thu, 14 Dec 2023 02:34:12 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-336353782efso2008381f8f.0; Thu, 14 Dec 2023 02:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702550051; x=1703154851; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=d9Bav5GT9+DiIlOayf2xo0fOPFAMpMbevtPaUgb/OCo=; b=nQaKIJ/P/Ugz4s7qKSZc/YfLwNHCSF9O5XHwLccAEDkVb9f+j9oaNGRpTQ0u68ftgc BZFQAs134IMIxTLn247Vk2zKNv+KVz+diTr0yByYzZ2XNZljeZ4aDEHAjhSoyiYJl7K+ dQ3wyjdi52wnt9R2XwhmUyOz7iT1B62ALqeAi3+bGfRyFtbc1xoum+QGsmpMj1+cF9mr aN5bPUT9E0cRfBmtzE+WJZzS1qMy1pUlHfrlJMTnLRubEjxhiNHNmxjWFvrNqxehNVLT R4yMXV8puqeXhNAnY8m/KATU0bdJwpKWD0TNuerNxie6T2LMzgWXDLLWhrpekmPWasce EKOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702550051; x=1703154851; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d9Bav5GT9+DiIlOayf2xo0fOPFAMpMbevtPaUgb/OCo=; b=VfB2Y8sYNyqFvqjVronyaMbwlPa08nQg9+0HnqgrgYnreMTCJfq38HbywptWOvnWKw mTNcBc2uNx5+umZHOjX3bgfEISW4uf6AGY4geuHZLdu8TLwv+9Y2txY7uhym8/l0G07d 8S2Hzn3wQPUWXXr7n62R6+eQd068zmeC5G89yJEJbTGebbTWO95sBJ5a9fV2VWbNie0O +8wFLWwla1HRtn63q7GgoUPDzwWo9bjO7khpaiQzyWSLyZizCN/+bGJPyfZfEYjHnEjp yHYADLKobJd/kNnuztqKfGLe6jyFBH6Ga+6UF6DmJu3KtHKneBmpiIJGAsdyxZo7oD4I BeAw== X-Gm-Message-State: AOJu0Yxlt+X1dehB7q6cNHTLaG8yBzp89Sn1aLzIVmFmOvRS1HthX3k6 kR2cpAXm8+YibGhBqBWRdaM= X-Received: by 2002:adf:ec8e:0:b0:333:2fd2:51d1 with SMTP id z14-20020adfec8e000000b003332fd251d1mr5060094wrn.74.1702550050755; Thu, 14 Dec 2023 02:34:10 -0800 (PST) Received: from localhost.localdomain ([129.0.226.240]) by smtp.gmail.com with ESMTPSA id e4-20020a5d65c4000000b003333ed23356sm15849623wrw.4.2023.12.14.02.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:34:09 -0800 (PST) From: Brandon Cheo Fusi To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Viresh Kumar , Yangtao Li Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Brandon Cheo Fusi Subject: [PATCH 0/5] cpufreq support for the D1 Date: Thu, 14 Dec 2023 11:33:37 +0100 Message-Id: <20231214103342.30775-1-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Dec 2023 02:34:36 -0800 (PST) This patch series adds support for cpufreq on the D1 SoC, and a new Kconfig.riscv file to cater to cpufreq drivers that support RISC-V SoCs. The changes have been tested on a Lichee RV module. Brandon Cheo Fusi (5): riscv: dts: allwinner: Update opp table to allow CPU frequency scaling cpufreq: sun50i: Add D1 support cpufreq: dt-platdev: Blocklist allwinner,sun20i-d1 SoC cpufreq: Add support for RISC-V CPU Frequency scaling drivers cpufreq: Make sun50i h6 cpufreq Kconfig option generic arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 18 +++++++++++++++--- drivers/cpufreq/Kconfig | 4 ++++ drivers/cpufreq/Kconfig.arm | 4 ++-- drivers/cpufreq/Kconfig.riscv | 16 ++++++++++++++++ drivers/cpufreq/Makefile | 2 +- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + drivers/cpufreq/sun50i-cpufreq-nvmem.c | 1 + 7 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 drivers/cpufreq/Kconfig.riscv -- 2.30.2