Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp45573rdb; Thu, 21 Dec 2023 02:16:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8mmTzQZUAvTMDIn3cUQtEbWZiiqGXXsdFiIZd/JCCNk7yY+xNmjlQkpP56ynOCb9hILVC X-Received: by 2002:a05:6870:818e:b0:203:bb0b:cf50 with SMTP id k14-20020a056870818e00b00203bb0bcf50mr1374633oae.42.1703153767980; Thu, 21 Dec 2023 02:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703153767; cv=none; d=google.com; s=arc-20160816; b=YF87LHx7TPBT2LdhxUilkw1GSeNwLkgySs2Mw+Va7OmF4MfTJiTIIsZfoZWP7jQ4yG mvhcsaFkVrpijpax8n8cFpfaFvPAEs45C+mmN/dqROe+chLzOv5QAOykO4U0s8hvLvQG 12lywFxawLevU2UPgKS3xevJb6i2S4BubFMB75RqCg24jlH33aNjXt6mrk0aP0k1vEgj DQKkFcTiXiuChB+TXkkOK1poyKg1W896JNZS0qnadyCCafzKHzYL3Y/JJZcinggVn1vP 4iTg9rfJtsdKPFO2bqydTjy2x0rIniXfAyKIVvJ1Uu18ioI8mgMEG1rTrvccMQ2fZGsm yY4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=0fIP+gY5tjmlfd94qvCRw5zI94zpMLdzYlGd9t55ptY=; fh=/MFNT/9+o9snaEq1Qu1YZ+JF+GW52244T1ncjGMGQh4=; b=ZZK0LUxnC9MRyfR4TmtwIMkKGQhP/Bipyq9wE/rR9JknR71cdmuzUgm0XOu+nDDgFc oLmKgJpOTHdnN1LPFOAWNpQmAcSW+cY4Zcv50VMSOoJZqKEJOnzE4L5QtP8jdTOtv+DF uz1/F1mKHGAKmBmrI3z2OdRpqyb/Fi+ovuq2dPKRwlnVI9g921IuaVarN0riUYdL+/tq goc46Q/W9ryXlJx83I7eDLxruzZchWRprGLcnn+N+TR9MYwfY0mE/B4AnMyDP42wWcF2 wYumQQmcBwPy08NLOLsYDFxhLcNhpZp6QDqDZBq5g2B8pZCK+ycnMeymeZEl1iV/Dbxw A5VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XkLwMoSf; spf=pass (google.com: domain of linux-kernel+bounces-8179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u13-20020a63790d000000b005ca409a5fefsi1299434pgc.643.2023.12.21.02.16.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:16:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XkLwMoSf; spf=pass (google.com: domain of linux-kernel+bounces-8179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3EAC2B235E7 for ; Thu, 21 Dec 2023 10:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33AFD4F203; Thu, 21 Dec 2023 10:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XkLwMoSf" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA2D851C20; Thu, 21 Dec 2023 10:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-50e4a637958so816990e87.2; Thu, 21 Dec 2023 02:10:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703153433; x=1703758233; 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=0fIP+gY5tjmlfd94qvCRw5zI94zpMLdzYlGd9t55ptY=; b=XkLwMoSfHkvLqxfIQH+N2dSVg4fWT/urJyeD5R3AGVdmvzQSydOr16oGx5Pb2je7Uc +BFtkLnIeqQqnxjC4Uf+ORYJ/8F0pqb4tN1LTqpL/libaSHzIfZYUyvNao85Xt+JXIU0 B11QMUeIx2wPEezBgI2jOKZRonzbVjskaE5j8DsTHSQssr7V/MSx7eAO9YIDR4H35CCU DZ8crzxmpudPpLBqAG/QUNTTc0biVRGahZPhDi9NY8L4gRMDokRH/Kf2USmHy6s1BSfw UgD7pZEuEDztz9A0GQfLy57SW6+jFo1Z8LG19qKWpANJyA1LmpFIID28QGr2xpdjlR8Y luvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703153433; x=1703758233; 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=0fIP+gY5tjmlfd94qvCRw5zI94zpMLdzYlGd9t55ptY=; b=dqilKyxLRTpSndEvJXPpHFW+fkUJfhr80hstYutwncRezio6p7XsW8tMtBh21ofBJx cVe+le9QFMCgrxtckq+A8HK7xXrSqTGfo/hMvAjdqPUM7fEROIqnyh7FMTfGzGu2RF7R r68u+9cELl1+l4xeypLDNZYfyB6lCJTOqxfgSxF4nd4gmY03qX4AYKVdZ8k7akpv/2Xb ItAVx4FdgiZEjtPgVLRhAd5fbgCN11wiorv+Eud+UENpuKrO+Rxjl0PMaxddyCXlP+gq i9RPbiTflazO5n/mee7J+0VuRPU1E7WMWDEHQ1Yda9YGf4cRxTJ1dsWGpo14n8nuFNxB 5KOA== X-Gm-Message-State: AOJu0Yy2FUqagOnPB68XyeBRwKpIGakJ3oesqdcIb16lAU6pc0xT7viu fCrP0yZD9XlIAYlS3U7KFIM= X-Received: by 2002:a05:6512:402:b0:50e:51e0:732 with SMTP id u2-20020a056512040200b0050e51e00732mr622482lfk.277.1703153432484; Thu, 21 Dec 2023 02:10:32 -0800 (PST) Received: from localhost.localdomain ([154.72.163.204]) by smtp.gmail.com with ESMTPSA id x7-20020a170906b08700b00a25f5dba09dsm784928ejy.145.2023.12.21.02.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:10:31 -0800 (PST) From: Brandon Cheo Fusi To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Yangtao Li , "Rafael J . Wysocki" , Viresh Kumar , Stephen Rothwell 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: [RFC PATCH v2 0/3] Add support for reading D1 efuse speed bin Date: Thu, 21 Dec 2023 11:10:10 +0100 Message-Id: <20231221101013.67204-1-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi everyone, This series is an attempt to get feedback on decoding D1 efuse speed bins in the Sun50i H6 cpufreq driver, and turning the result into a meaningful value that selects voltage ranges in an OPP table. I want to make sure I get this right before sending in a v3 of the D1 cpufreq support series here https://lore.kernel.org/linux-sunxi/20231218110543.64044-1-fusibrandon13@gmail.com/T/#t which is currently stuck at https://lore.kernel.org/linux-sunxi/aad8302d-a015-44ee-ad11-1a4c6e00074c@sholland.org/ Changes in v2: - Make speed bin decoding generic in one patch and add D1 support in a separate patch - Fix OPP voltage ranges to avoid stability issues Brandon Cheo Fusi (3): cpufreq: sun50i: Refactor speed bin decoding cpufreq: sun50i: Add support for D1's speed bin decoding riscv: dts: allwinner: Fill in OPPs arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 19 +++- drivers/cpufreq/sun50i-cpufreq-nvmem.c | 89 +++++++++++++++---- 2 files changed, 89 insertions(+), 19 deletions(-) -- 2.30.2