From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05E34606A320 for ; Mon, 30 Nov 2026 20:12:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=nbymS1Lf; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=SVwJSX6d DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=OYy8BC0IpJWuo2Pe4EL48CT7FqocD6DrMTP35rYsdRg=; b=nbymS1Lf0jwP/d 47Lr9iRttjldyYFfrhF+EOIAwBYK6NN2hNcbksYAGY+J2IVIi2KteWod75s4mou0h+Nb8uVzUm9oh uLpbTb9v1XnnuwxiW8CJ/WTC2wgl5FHFeKfsxE74koG4mD8It6XAEmil6aLVBlJuVK5QaDnCnwNuO yLHpgDm0ZZ/Vk/KvGT5kkOROIAnKjvPeLN0RkSUA48HU0zdjjhpnqMwYi1BvV94sJJcPjtir5UpxI Qqv3PV2ns8vjBxWXQGWcndbnKg0mSCOjRrKprJjyPE8J8m5Ka/h01EzCfQ5+YRoGP+W9IgX9gSpue so0QY7iDIqlHthQ/EvvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY7jP-00000005mhv-1szF; Mon, 30 Nov 2026 20:12:11 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY7j8-00000005mf9-06gP for linux-mediatek@lists.infradead.org; Mon, 30 Nov 2026 20:12:08 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4a2153c8525so89643005e9.3 for ; Mon, 30 Nov 2026 12:11:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796069511; x=1796674311; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=OYy8BC0IpJWuo2Pe4EL48CT7FqocD6DrMTP35rYsdRg=; b=SVwJSX6dMy9snMH4G6C+91SLcWgjk0tcffb6h0WZcajsL8Kii1kTN/vm75DtBfSL9Z CFnpp6tN2E2tiV4Elz0REt5xK2G+kUf+MRUeo4PEZ5eyFMlLTzHhf4RHAfDWyPr9TOWx yPgszoqoCHLAG4rjJuSDdu2t0JGvzaG8DSd80gzQsvGvFjjCmm0gRFXc0bQ9U6zpZsCL 39BuNIEhHHv+kH/WbEyLgwJfrvdYQ2BncjcZoa4JwRazorEpQeDFIT3ETEs2CpKO8BVK ppapqcrEOqk7T0SF1LGRhtxkODH/zLVob9xjsB7TOX/aC12Xt3NODJxY8czcW/59jMxK R/UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796069511; x=1796674311; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=OYy8BC0IpJWuo2Pe4EL48CT7FqocD6DrMTP35r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xOmSok92KL6G7J1RPClbUdpCqZXmTMBceMHezqB2tamuj8Vyo RVbC5XHRNjTUzajGKGbywLCjUObTfkjP8s6tAdua1e3SI89UBYC562CDbgiel1WLByLKgEZc5j1 AQDi08c5QleEc1NSV3LQzVHIDaKUsV4gOn2L6AlpXh8eHA== X-Received: by 2002:a05:600c:848d:b0:4ac:86c9:b09c with SMTP id 5b1f17b1804b1-4bb88811da9mr719722375e9.13.1796069511159; Mon, 30 Nov 2026 12:11:51 -0800 (PST) Received: from luca-vm.lan ([154.61.61.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6baa397asm67272737f8f.48.2026.11.30.12.11.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 12:11:50 -0800 (PST) From: Luca Leonardo Scorcia To: devnull+rva333.protonmail.com@kernel.org Cc: andrew-ct.chen@mediatek.com, angelogioacchino.delregno@collabora.com, conor+dt@kernel.org, devicetree@vger.kernel.org, krzk+dt@kernel.org, lala.lin@mediatek.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, robh@kernel.org, rva333@protonmail.com, srini@kernel.org Subject: [PATCH v6 3/4] nvmem: mtk-efuse: add CPU speedbin post-processing Date: Mon, 30 Nov 2026 21:11:10 +0100 Message-ID: <20261130201147.439221-1-l.scorcia@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261123-6572-nvmem-v6-3-7ba710b15657@protonmail.com> References: <20261123-6572-nvmem-v6-3-7ba710b15657@protonmail.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_121205_430887_72AC7D07 X-CRM114-Status: GOOD ( 10.56 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hello, I am interested in this series as I have the same need to identify the cpu variant for OPPs on MT8167A/S/D. I have two questions: 1. Is post-processing really needed? It seems that nvmem cells can use the bits property to retrieve only the necessary bits from the cell, e.g.: cpu_speed_bin: cpu-speed-bin@40 { reg = <0x40 0x4>; bits = <0 2>; }; To me this seems more intuitive than driver-based post-processing and is already supported by device tree syntax. I did a quick test and it seems to work, but I'm sure there's some step that I'm missing. 2. Am I correct in saying that at the moment there is no upstream support for nvmem-cells references in the operating-points-v2 OPPs? How do you plan to connect your new cpu-speedbin support to OPPs? Thanks, Luca