Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6774910rdb; Fri, 15 Dec 2023 08:03:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXe3L11yWZkdxZMmdpzWWO2NOuk5na5EWf4T34uUH3wQs8AOSdOSs+QNT/bQh/vJqYuw89 X-Received: by 2002:a05:6a00:1913:b0:6cb:42ac:9b69 with SMTP id y19-20020a056a00191300b006cb42ac9b69mr6056483pfi.25.1702656197993; Fri, 15 Dec 2023 08:03:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702656197; cv=none; d=google.com; s=arc-20160816; b=iaMx36M/mp9Uj3+bNHUEZ3Q9HzH8M+UCRl59dfo246HS49FC8u0CFUJ6w61hyrjril u+lzugPkmOdB15gw3cTWEfTqVdL2b9QldLNswCF3jMho90LVd0DnXkGl24p+7On4jgZ+ HZ87QwgaIhEuZsyTPEIBE5R4WVoBKomhrmn3xmf65m+NzVDUpsWrrs25pIhVCFd5XgGS hLkc0IU1g0ZJeh9G9SXVYksEHqiMoCGDJMocFIb5rxEeyiHVo2eE5cWhAOWFBZo7hP6v uM3CtvPCMgfkvcQjoFrw+Zv77UJkAKdX0jeRP9Z+X0nJ5wCiayJBKBJ0wYWNnbzIhifV jQWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=0VcnCj2g0CTMbP7kCr30p3xsaqF30bpbC2Z0SG00ebA=; fh=tS9k5U3g/fJ67AffeQvI2yQqyrhuWX16M2AfOupptX4=; b=JQLe1ceSGdmuoAQXRMQCFk80tUMPqU5pdkxXsdyojiBoJuoV5xNxh8tlOESNRGyXop Dlh53b9BuVE0IWQrZaBT0RLfWKznG2IoaNaojjnJGyE5IPd/SPk+KguuBoTaLBocUd7i C2Ucn1MwM2w2vL0ZMlj5L5ULFmPKXkiEmkcnT2cxadS5VFyAvRDONL6jHiZ74UBW/DmX X7/Pf4noso7UIO5GHTSW6DS2nYr6reOl82J/7vwNjEog/FsAaSxAfWANAztzCb9Q0RkF n0wRkMoliBeqw7BNZctct2QZqmlaCRwQ5UbzSd/sXi51DTmDdnT3BSKBEvr5JAaHAFHR 4e4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BQkKN+gc; spf=pass (google.com: domain of linux-kernel+bounces-1247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1247-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cb22-20020a056a02071600b0056569ee3ae6si13464007pgb.798.2023.12.15.08.03.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 08:03:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BQkKN+gc; spf=pass (google.com: domain of linux-kernel+bounces-1247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1247-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9FC98285672 for ; Fri, 15 Dec 2023 16:03:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB01D3A8E6; Fri, 15 Dec 2023 16:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BQkKN+gc" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (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 6D2E039FC7; Fri, 15 Dec 2023 16:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-5ca0b968d8dso365601a12.1; Fri, 15 Dec 2023 08:03:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702656187; x=1703260987; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=0VcnCj2g0CTMbP7kCr30p3xsaqF30bpbC2Z0SG00ebA=; b=BQkKN+gcNNp9IivBuRKuTG9PWURhUMrakOyUAKEc2tcRr6d8cDKNti4k916DGfce10 fSSVhFV4gyOETxBlxeQjA36o84IHgv6I8YRZadoDVerPrUCCnniqR50IL4a4DPNahFnT lXiceZfTSWjiXgpDxz4ngr1ceP0880/8GR64GVDY2O9nE7Kfo17VhbfvBP7qaqV/7e/l pyQS5WY/OWYwmwfrjKels0rgJQi0JRIP9lMjuGGl7DfdVWqgFmnkVde5tpkjhnQd0hCj gjHcwbnDldLJdi/CMk6MRDzIiD0qDHeerdQUCx51/DWkCAgAaYSaW5hPlaOCTpHcgIq+ xVnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702656187; x=1703260987; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0VcnCj2g0CTMbP7kCr30p3xsaqF30bpbC2Z0SG00ebA=; b=Cb+FRXuACh5Bnpgp0RC4zF9sdr1U3e1YIY2QltFjQKTvl6+e82FYajTpgrns+j9YW7 VIlFVUqywNVTVvZmfIpkXA2ppIK1aEzG5aIdSpuaRfeM049GF502vnkVR8BBnBD6XrWj 6uhVCzq16e9aT1Uk9CIqBPlSVjiKaKyCvDGasjgnRmiOuAY0vY53R8eDAxO4aKW5v6Y6 j/WUzyk/IR5jRJvArE1mAOsG9dAW6kyJ2YIHKHWHcwM+nzK1u2mRhp54s5iToVF5KLiH qoQIAK5vDjyMpnXoOp/NJqa47Ggo4pAlyeyH72tNNGvZh2RHSP92Cz7WOfhjpnMVedYW Sbqg== X-Gm-Message-State: AOJu0YxV/xXVxHIIQ8/xrHVpxF9H2g5e+W40nAgaCNZ6+FHotyCe31Ak X1V7MLC8DfcabujLfMimm4eJGrtPY+8= X-Received: by 2002:a17:902:e789:b0:1d0:5567:5c75 with SMTP id cp9-20020a170902e78900b001d055675c75mr6544213plb.66.1702656186690; Fri, 15 Dec 2023 08:03:06 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b001d077da4ac4sm14280162plf.212.2023.12.15.08.03.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 08:03:06 -0800 (PST) Sender: Guenter Roeck Message-ID: Date: Fri, 15 Dec 2023 08:03:04 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] bindings: hwmon: Add adi,adaq4224_temp as compatible string Content-Language: en-US To: Krzysztof Kozlowski , Daniel Matyas 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 References: <20231214143648.175336-1-daniel.matyas@analog.com> <20231214143648.175336-2-daniel.matyas@analog.com> <43c3f6cb-aeb2-40c8-a79d-c2222414b49c@linaro.org> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+AMon8NULuLBHiEUQARAQABzTJ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pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <43c3f6cb-aeb2-40c8-a79d-c2222414b49c@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/15/23 00:49, Krzysztof Kozlowski wrote: > On 14/12/2023 15:36, Daniel Matyas wrote: >> In the device ada4224 the max31827 temperature sensor will be used, so >> the default values corresponding to adaq4224_temp are the same for >> max31827. >> >> Signed-off-by: Daniel Matyas > > Please use subject prefixes matching the subsystem. You can get them for > example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory > your patch is touching. > >> --- >> Documentation/devicetree/bindings/hwmon/adi,max31827.yaml | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml >> index f60e06ab7d0a..9f3b0839aa46 100644 >> --- a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml >> +++ b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml >> @@ -20,6 +20,7 @@ properties: >> - const: adi,max31827 >> - items: >> - enum: >> + - adi,adaq4224_temp > > Underscores are not allowed > That isn't the main problem with this patch. https://github.com/analogdevicesinc/linux/tree/dev_adaq4224_dts suggests that it may be a development system which utilizes the max31827. From there, we can see that there is a devicetree description of a board with that name which uses temperature1: temperature@5f { compatible = "adi,adaq4224_temp"; reg = <0x5f>; vref-supply = <&vio>; adi,comp-int; adi,alarm-pol = <0>; adi,fault-q = <1>; adi,timeout-enable; }; That doesn't make sense to me. I don't know why they don't just reference max31827. I am most definitely not going to accept a driver change just to map adi,adaq4224_temp (or adi,adaq4224-temp) to the actually used temperature sensor chip. If we start accepting that, we'd end up with no end of ",-{temp,voltage,current,power,...}" compatibles. Looking more into the above mentioned repository/branch, an earlier version of the dts file did reference adi,max31827 for that chip. It also looks like there may be an adaq4224 ADC (per drivers/iio/adc/ad4630.c), but that would be a SPI chip. It seems highly unlikely that a SPI ADC would have a separate I2C interface connected to a temperature sensor. Confusing. There is also some indication that this may some IP to be loaded into an FPGA. which utilizes an FPGA implementation of max31827 (or maybe connects to one). If that is the case, it should still be referenced as max31827. All that wasted time because of "let's provide as little as possible information about what we are actually doing" :-(. Guenter