From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 413F53EBF1A for ; Mon, 12 Oct 2026 13:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791813028; cv=none; b=rgVBkZp83tuJ73trlMdRHk09vFWNTqfsfWtvSx56XknPDzA+JawaoOY0dRsPE1niqg9UQNV6tAbS3evJUy2df1I8SA++6u2f826NlrAlKT30K5oi47n6bCFc+/zf50zkecKbArJK4LhRFfjQmI5acSOAFRWgdFc2WM3OH2DuoAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791813028; c=relaxed/simple; bh=AOaJHzkVSqUbswf92A6xGyprhL7vg46+nlQdZPHjJRg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W2fSKX3lOGwBCgfUOTUja0dVfjnpvelcCi9njoVW8bAcToHyHKvmHX/RPXzjJbB6+GvqrkJIhJ/pNsYX5AOQN2zBAxkktFyn8iDHiAWwDoAPgPSgWLWyposp+Mk0PFWTwH4ZmiH2llIoRKQ8Gvop7EsftTYo+ghdXKLoKtQokYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Jz0QyIzX; arc=none smtp.client-ip=209.85.221.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jz0QyIzX" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-48afcd7ba9bso1072070f8f.3 for ; Mon, 12 Oct 2026 06:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791813025; x=1792417825; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=zE6VoN+PiWAA9KAYU57i+n0fCcZ23h1hk73tpEWp1XQ=; b=Jz0QyIzXS6SOTx4hk1NekRhn8qhOepd9UyGB4Vg+zYY+4ufxsVw2viqS3KebXUD+NX jigTDkHE7NdJzugKAXUqtSw5+ObIu3Ok1KdVySagZnN6Upb3OHpdDv8QxKEtYAWoz4j1 kMcBJS9wkFNbYADLxk9V8Vj4bSL8+iKr5v5XLR2oUAZbO0oN9q8KDXxbH58plTFNVrdn bROvq9sDJPPwXP5zfPwvSlrgyJFlmpcUvE0eNDLhZYJ9YZTdajV2Ngx12oT4tgvhw03N uzuGNTp3cbhZCjVJpBv1KSyFFaFE8zwpCmVObVVVt3wB346fI6s7IZfNaevagsgLjtRL MA9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791813025; x=1792417825; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zE6VoN+PiWAA9KAYU57i+n0fCcZ23h1hk73tpEWp1XQ=; b=b3NygTVIjN5Q8b5ZHPElqfl+PNuiEBHDJQoeEEhEUppQfVbSlM2MonvCioFcTGtjBf e7hkmpIxLOnw7gIaBiD9/ChhN0vAT9ZJ02tWb7ARnGlAMVG7mtI2eMN0MlHfoMJZTo9b aE2GkrUa1btcaBhwTjMp70Hv/Quv7yysp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KnQqc6+OZLodb68vjMK I2nbNcT+GTEWFF4ohi/CW7vV+VdarfM/dSlQ/6WgmFiAqB1dQ6YieWtNeIPVcfYM7jzVWuySGsd 9YAwTm X-Received: by 2002:a05:600c:8b28:b0:49f:ff7b:f056 with SMTP id 5b1f17b1804b1-4a18e4a3c24mr158578585e9.9.1791813025261; Mon, 12 Oct 2026 06:50:25 -0700 (PDT) Received: from localhost (90-182-112-124.rcp.o2.cz. [90.182.112.124]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a19f249692sm166741385e9.3.2026.10.12.06.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2026 06:50:24 -0700 (PDT) Date: Mon, 12 Oct 2026 15:50:22 +0200 From: Joshua Crofts To: Antoniu Miclaus Cc: Nuno =?ISO-8859-1?Q?S=E1?= , Michael Hennerich , Jonathan Cameron , David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , "Shuah Khan" , Randy Dunlap , Marcelo Schmitt , Radu Sabau , Janani Sunil , Salih Erim , Jishnu Prakash , Jakub Szczudlo , , , , , Subject: Re: [PATCH 3/4] iio: adc: ade9000: add support for ADE9039 Message-ID: <20261012155022.00000412@gmail.com> In-Reply-To: <20261012111342.48040-4-antoniu.miclaus@analog.com> References: <20261012111342.48040-1-antoniu.miclaus@analog.com> <20261012111342.48040-4-antoniu.miclaus@analog.com> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.51; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 12 Oct 2026 14:13:39 +0300 Antoniu Miclaus wrote: > The ADE9039 is a polyphase energy metering device that is register > compatible with the ADE9000 for every register the driver touches. The > differences relevant to the driver are that it shares the full-scale codes > of the ADE9078 rather than those of the ADE9000, and that it has no total > reactive power register: the register map has no AVAR at 0x211 and no > AVAROS at 0x010, only the fundamental AFVAR and AFVAROS. > > Add a chip_info for it and a channel table that keeps the dip/swell events > of the ADE9000 but drops the three total reactive power channels. The > fundamental reactive energy channels are unaffected, as AFVARHR is present. > > No change is needed in the CALIBBIAS path: with no channel carrying the > AVAR address, that case is simply never reached for this part. > > Signed-off-by: Antoniu Miclaus > --- Reviewed-by: Joshua Crofts -- Kind regards, Joshua Crofts