Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2326716rwb; Thu, 17 Nov 2022 09:17:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ZoWUawXfa2DXbAmzarK47V8pB7+eY2SkDDntTNGvzhiIIx1beFDeqODAX/5CMbDq1x8EJ X-Received: by 2002:a17:907:9616:b0:7b2:9f1f:48cc with SMTP id gb22-20020a170907961600b007b29f1f48ccmr2763619ejc.164.1668705438919; Thu, 17 Nov 2022 09:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668705438; cv=none; d=google.com; s=arc-20160816; b=md7AoA7c5BLJYWGJKWD4tsMsIcMD+ObXaiygt13v3L/SnJPGC8tlCot8aCnX0IJMyz a3IAjpmOr5w4TPe6F9g9V9DBVGf87PHdSo1Szpvf9f4K3DQubDhH4Z8f/O6scUEE9PpM r+rvKvNuaoijIqHbVbqiL6up2EfIFMwV/GaY58WhvS4mN5HpDBXw5WpTcnp0JugC8wWp g4p4nm+jLtcV+kFwtdWjLvmmsWc7dDusoCqW0s3bEYdP9rvH0RVS53zZcdgrjbWDD4og l+UccTy3DAQIKzhzGc5x1hZX9rpzY5IkfSVLktspjCiIF1l/dOTS8wTffhalG6sknwAx i/Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Co+xNPknRdslE+ve1SWV9w+08JftBqMysDzIYY/FMuI=; b=BFon/5f8yauTZELon5zNaDXiNwwLY1yuPZsop8843lgwknydIkcK9omObzzbY4fwWL wOe6sxChurQonftQHs8SQF3WHURIXl7TKB6oGyuu9igWazjGLb+QuVe/g5mPlC97/YaR RdkhCFb5/UWam2+vlbicwE1M0qm33GZY7Y8Kcp5rwoblmQDLJD65OQT6kCu4U17mdblO lwlkexK3VKcPJZCiI5v7NuQDoTbqV20RFhITOoiSOgA4JUfkP1ZYzRFICahKm7ZeMTxb k0j0TSVI/fXQA1oDJ/jEcMrilI3uOGuFmzQeEqcuX2oeaoETaueOagGEcIsGWLk5PfVs fNfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq6-20020a1709073f0600b007adf3ed5d20si1100607ejc.376.2022.11.17.09.16.54; Thu, 17 Nov 2022 09:17:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239870AbiKQQyK (ORCPT + 92 others); Thu, 17 Nov 2022 11:54:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239783AbiKQQyG (ORCPT ); Thu, 17 Nov 2022 11:54:06 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 726B06CA01; Thu, 17 Nov 2022 08:54:05 -0800 (PST) Received: from frapeml500003.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4NCm8w429Gz67MQZ; Fri, 18 Nov 2022 00:49:20 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (7.191.163.240) by frapeml500003.china.huawei.com (7.182.85.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 17 Nov 2022 17:54:03 +0100 Received: from localhost (10.122.247.231) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 17 Nov 2022 16:54:03 +0000 Date: Thu, 17 Nov 2022 16:54:02 +0000 From: Jonathan Cameron To: Krzysztof Kozlowski CC: Gerald Loacker , , , , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko , Nikita Yushchenko , Jakob Hauser , Michael Riesch Subject: Re: [PATCH 1/2] dt-bindings: iio: magnetometer: add ti tmag5273 documentation file Message-ID: <20221117165402.000043c0@huawei.com> In-Reply-To: <8c2da24c-ae10-40c9-bb3e-b300975a86d7@linaro.org> References: <20221115073718.2377311-1-gerald.loacker@wolfvision.net> <20221115073718.2377311-2-gerald.loacker@wolfvision.net> <20221115174355.00004a01@Huawei.com> <8c2da24c-ae10-40c9-bb3e-b300975a86d7@linaro.org> Organization: Huawei Technologies R&D (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.122.247.231] X-ClientProxiedBy: lhrpeml500006.china.huawei.com (7.191.161.198) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Nov 2022 17:17:24 +0100 Krzysztof Kozlowski wrote: > On 17/11/2022 17:12, Gerald Loacker wrote: > >> > >>> + > >>> + compatible: > >>> + const: ti,tmag5273 > >>> + > >>> + reg: > >>> + maxItems: 1 > >>> + > >>> + "#io-channel-cells": > >>> + const: 1 > >>> + > >>> + ti,angle-enable: > >>> + description: > >>> + Enables angle measurement in the selected plane. > >>> + 0 = OFF > >>> + 1 = X-Y (default) > >>> + 2 = Y-Z > >>> + 3 = X-Z > >> > >> This feels like something we should be configuring at runtime rather that > >> DT, or is it driven by board design or similar? > >> > > > > We use this sensor for a zoom wheel application, there is an EVM from TI > > for this as well. So this is for setting the mounting position of the wheel. > > That's ok, but does not explain why choice of angle measurement should > be a property of the hardware. I could imagine configuring device to > measure sometimes X-Y and sometimes X-Z, depending on the use case. Use > case can change runtime. If it's part of a physical device mounting, may well not be changeable at runtime (at least not with out a screw driver / hacksaw etc. Not really different form arguing someone might rewire a sensor at runtime. In theory possible but if they do they are on their own - mostly we don't bother supporting them doing that. So I think this is probably valid as a DT property. > > > Best regards, > Krzysztof >