Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp417872rdb; Sat, 16 Dec 2023 14:08:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDOsdOQIjoqVsWg2ZVT9+9NOk1ff/X7jQ+Twuv67J4nELPZeREeaIPR5zqBH/ONa2Va/u4 X-Received: by 2002:a05:6e02:3212:b0:35f:aad1:514c with SMTP id cd18-20020a056e02321200b0035faad1514cmr216386ilb.57.1702764492406; Sat, 16 Dec 2023 14:08:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702764492; cv=none; d=google.com; s=arc-20160816; b=n5hKlBST/AW8c+rmNtnjiEvrjprjshsC9WWS4qsCm+67+zLLRZbm4hsQTDUzv4hGc5 TnxVg3lS2PDkuSd6NMHbbmKUAuGL42nLhA2/NxJh+p2fT5ono7gE6b4IkuAX5jYsEfy0 i6HCiNeCKW7VMSxcK4ZkVMiPkJjkXU3zYwANmHUFvYca026uGMZk/QYVgGjKxc9Gbcga 8qgFECpK5b3i9y1sLJRfrauiHOk3mwTfhBIapxxdcmmQMeQs1oc62Kmzxb0HfgKczccH h9n4naisDkpuccSLumfMEL+v7PiUTmzZewo5hvKo5gNnSuNMvmTgpPYcxFrUIpIcpYQR 4NDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jwJtOVzDALEiJLugl6CGKr+41IZkmLCFTtfJq15ISN4=; fh=el21LfNNB3CIvmJyyFjiqLnITcGOtAaOeGxE+l8C0y0=; b=BGPga5k04rM+QG8gHYkbHTlVkyHvi61xhe91d6avUW3AsCNlXddpzbminoruSEPM79 RTvFch/75jr1nsPsP7Ul9nb3tftaFbe7/RHH/UFXCqKtfuKaVZz/HkSOdU4ve4nU2E/b kwCJ5gAeA7GS8PZwP1R8NK0ji6CSDUVxgY6vqtglG3ILpF80z8PgNJXM0h9tUX+nxWTR ECfm+Rvt4ep7CVsegpAJ8pnb09SL/mxfGnoOBrtlZFFzH+cxvjNH3zjIggC/PKUu2dT7 HU4HfgEitmJfU7NfCS0onVBlW/lxkNWzNZWyzyBh+7GgoCuFrJjkNM+EbpUjaZ77ck4l +xUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DqkRTEKL; spf=pass (google.com: domain of linux-kernel+bounces-2381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2381-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id iw18-20020a170903045200b001d060d48fa7si6699402plb.399.2023.12.16.14.08.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 14:08:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DqkRTEKL; spf=pass (google.com: domain of linux-kernel+bounces-2381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2381-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 7D96CB23127 for ; Sat, 16 Dec 2023 22:08:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53201358AA; Sat, 16 Dec 2023 22:07:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DqkRTEKL" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (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 4F7AE36AE6; Sat, 16 Dec 2023 22:07:54 +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-qv1-f51.google.com with SMTP id 6a1803df08f44-67ee17ab697so16830006d6.0; Sat, 16 Dec 2023 14:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702764473; x=1703369273; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jwJtOVzDALEiJLugl6CGKr+41IZkmLCFTtfJq15ISN4=; b=DqkRTEKL4h/rtlHt8Pn94FE1e3ODKansgseDG738nFP1TQbr3aEV/EahzJH3iLIwY2 oB07uFa1Md2nZAWlcwMNC3QwJkuTgrUFAo6+wxWUl8wPjPCINNlkE7SIN3Y0O3qeBYCK TnGj1lJqhTz0GNsBZ9kiffOXDBulxjh4lF8PWMDuQBhK4/an5lp2hMxRkei+OGarHVMF gfJtXTUpHTbfwlRnsW8vJ4AZOPGitkjYO/QvzNETwYBHR/WeFMBAP8Rnzk6qp97RcPib 33pMpujQOdqSiO8zEgdw98gtYXg2aZpy0RIniBvyOx7avD264JMW38yAU5pLWwbTuasE wLMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702764473; x=1703369273; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jwJtOVzDALEiJLugl6CGKr+41IZkmLCFTtfJq15ISN4=; b=vRscS9VdOLE2NyGjjtO+N/7e93VAf4yj8frLALys7sPTdTejBvDB/2TqkCH8AIl38e VTnFmDWlULP/5sgJv65kpMFE8H5MT3ApZSPRni7JF2zWhlvfzLSmfl0Zk3PtqGtxQGIL eB5pCLjuGwFJguYfOdtx6Hm2rne4X1H0VI1Ab4HgENT93qK7MmpJVJCSh5afK4baTlKc 3z9Id2SN9L/MSwtUHoIk1Y1UPHGjDouFY9WkPUBFF5a4iVADU9MZ1Ed16YUd31M9kUkY 6ifx/xa1s2mKBbMASonmUVJS2fgL5NehUIb1/jbNQevM8ztbUI85VAjrXahH82jX4dHi Deaw== X-Gm-Message-State: AOJu0Ywm870QB3VibPwOOKyYTvXXSHFwC7tA2SBzfjSzGk2lpk+YiUU/ lTfpoOCOV2TcukorOn1cIKE= X-Received: by 2002:a05:6214:1023:b0:67a:be9a:e9df with SMTP id k3-20020a056214102300b0067abe9ae9dfmr15601156qvr.17.1702764473088; Sat, 16 Dec 2023 14:07:53 -0800 (PST) Received: from abdel ([174.95.13.129]) by smtp.gmail.com with ESMTPSA id u3-20020a0cf883000000b0067eec0ef4b7sm3122821qvn.66.2023.12.16.14.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 14:07:52 -0800 (PST) Date: Sat, 16 Dec 2023 17:07:42 -0500 From: Abdel Alkuor To: Guenter Roeck Cc: Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH 2/2] hwmon: Add AMS AS6200 temperature sensor Message-ID: References: <149032e99136a9fe47c3533b57a71092646e497d.1702744180.git.alkuor@gmail.com> <63e352150ed51eefce90ca4058af5459730174b2.1702744180.git.alkuor@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Dec 16, 2023 at 10:46:53AM -0800, Guenter Roeck wrote: > On 12/16/23 08:39, Abdel Alkuor wrote: > Please explain why the lm75 driver would not work for this chip. > I don't immediately see the problem, especially with TMP112 using almost > the same configuration register layout. > Hi Guenter, That's a good point, tmp112 is very similar to as6200 except R0/R1 and EM bits don't exist in as6200. That being said, the current config for tmp112 in lm75 driver can be used for as6200 as the default R0/R1 is set to 12bits which is the only resolution supported in as6200. Should I use tmp112 params for as6200? Also, can we add support for hwmon_temp_alarm and alert interrupt? Thanks, Abdel