From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 3EE113D9550 for ; Mon, 12 Oct 2026 13:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791813028; cv=none; b=Dt7hXSUmgQ/gKytX+MdHHfi0koZHwOHshD+WinnV77WoPUHa9mafyl4iet+E0LqO8mZitvR27CJdB/ac+89nDx+c+/ZsapnCjt71JMr4MVS19RaAkQOzAWdl9JOTlMaE/wUWEsIVORl6ef3oXkDS5WOMuGS1tmWclmRR6F46uIA= 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.128.42 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-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4a02667ccebso13078835e9.0 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=SmZiHIf3wUmA0zKdOGazxgvq0L2RE3DCBZFN8gnofoqdlatyXDm/YgBEjK1n1tPsgI N8oOlRbrmbfT8JMqwXr+bLaow4jel5ehbhiguSGmVIi1N1/i06HiiRHbIlguFFxw+f4n Ire+GiLkabs9uC+XFzpzD+9UuWZYb6JBfJH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Z7N22kxRFV54g+q5cU 0NMZs7FjtsxcQgfOyPGe+a9LtaxaFA14PmTukaNm9dCj8MdZSrZwjs8ldObFjT3mrCqeT7ja3Ck UlAZej 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: linux-iio@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