Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2264177rwb; Thu, 17 Nov 2022 08:30:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf7BZYwF3VKwW3PXlCW45uchK06QgxP+/rFjdOEPhnb2ZbAKumbVMczFPcgfGjCLFZMJM5pe X-Received: by 2002:a63:e70b:0:b0:473:e502:9a21 with SMTP id b11-20020a63e70b000000b00473e5029a21mr2721411pgi.238.1668702638322; Thu, 17 Nov 2022 08:30:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668702638; cv=none; d=google.com; s=arc-20160816; b=pwFAG3YqMn00U31EtQ55VvBK5q608TfLw7Hu+TqqPXVqlo/yYwZKhUI5zmocgDYOHL xiPzXOK30pUzJyTVnS1IZ7s/LIxG8ImaHs4/mCv9Hj+4r7hvoNMWLrqVv1FF8w5xx8iA t7y1UxTfnoXaW5Tbzh6t5iF61u//VKOCGY8rXS8+hztdljOpEHgkkgJEUnGywc4JX/XU gCjllL1o27Qr4CCCBbQw5iz3U/jWz66fS6CS1eZWIetgN8m0PeIX1PUao8OzckdL8Tti aBCjU6MdbxB86QLeek4Z3H3OE5d4U7gQaqZDb1lK6jNGF+ihcDsCtLYSlRCRRyr3vUWa uF3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qwSaeIACqOc/3D5hwWL05wlXkafkiqEUfntFDSCeRg8=; b=r9Hyuu+d36gU8GQDSElE6ZIrevq8m1fPVHljC3VpFBfIMwFRYMKiCZL9HB0j0PSJTe OwWmZHrqFT7CtEg2vRuWIvun7h05vojrUDQZIY9StgNh0Bh61m7K5W2YDZH8tfqB5d9s jICVObHZ7Eo3XRmS28qqjXhJNRBBdMlpZjogDLWLxjwvcm09xL/fQpYVyODRScXvKH08 xszsHK+mE9ksEt+Ad+aXg4moxxbNvqJPjwkupgPvlP5e+C5PKJxcZWEdB5Cu3tJx3t6e 1LvlA3wxgJwoyjK2tLYNVQkBkyZrvznyLwJ/7GpWx2AD493FqACSg2tIdVrc0gpSxhrf WMOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n+Dco4Ab; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a17090301c600b001886309635dsi1455988plh.37.2022.11.17.08.30.24; Thu, 17 Nov 2022 08:30:38 -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; dkim=pass header.i=@linaro.org header.s=google header.b=n+Dco4Ab; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231377AbiKQQRf (ORCPT + 92 others); Thu, 17 Nov 2022 11:17:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235093AbiKQQRa (ORCPT ); Thu, 17 Nov 2022 11:17:30 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01B67781B5 for ; Thu, 17 Nov 2022 08:17:28 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id u11so3329386ljk.6 for ; Thu, 17 Nov 2022 08:17:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qwSaeIACqOc/3D5hwWL05wlXkafkiqEUfntFDSCeRg8=; b=n+Dco4AbKMFghmsvTI6U0ZFZUmP9wNJKLy3OvKTUHm/GIgrM5IVcMgSZsSMuS5mKdm 0ORgWascxvCB7sN7cP3n1aCnFB+3Xn5JS3NFMiVmoBCxB6ALP/fJtaRj3lLiCTKn19AR vIkUreNffvbM5WQgzKHEKdPk1yK+mxlXStr3De1dbve5n2G/YDMyQAxI7+xuaVhbT2Jt wjYjujaYYn1KISjIz9DLuJMdLh/UuBAZVPmE5DVw+XRE03FtEn+eEThzN6IaXaGGAzWV t602/9G1Dev+RN5Z7Vl8vjKN06nE5+sMBpoj5PR746OYYChJFUS2gWUs/xsySpqmenUn 2opA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qwSaeIACqOc/3D5hwWL05wlXkafkiqEUfntFDSCeRg8=; b=w08EudugX+FHMrJMiLlPufnDIm8ArAvUbnDxCz65Kkh8OP+aKWbwMy5LlArnXTEiXa d49HXu75OAfAG56w/Vullmv4QTk1IOt5cKdMsd1P+JQdWkaJnwOcFIgsurXamK+xu5IF i5KLPHZCdR8TLZ3j5/c8ah/ksPl8sHUVqlZt6AD7LpP7XKLjjtpjN/LXvMzHkrh/0stH DTo6/QB+OTRUUnmbzNijAtaNSmrLB0+Wst8zRWbSFifsX2iFbMjRoYXe+lgyZRPUFjZo 9zzJi+FSjN1kJnKZtNAhkJ5l7LMMx8JlGMhD9IkawB0iN9U4BSYetuAFJUpgzGGUJPAn 1L+Q== X-Gm-Message-State: ANoB5pnukkkymMnpO3p+JAvm5XLsexPtIGQVDfVr/E4FWAuNj5HiSEWa NQXxgMlgM35N+K0XDWmVfdUA7Q== X-Received: by 2002:a2e:2c05:0:b0:277:13ef:53ad with SMTP id s5-20020a2e2c05000000b0027713ef53admr1342662ljs.327.1668701846339; Thu, 17 Nov 2022 08:17:26 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id m3-20020a056512114300b004afac783b5esm211616lfg.238.2022.11.17.08.17.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Nov 2022 08:17:25 -0800 (PST) Message-ID: <8c2da24c-ae10-40c9-bb3e-b300975a86d7@linaro.org> Date: Thu, 17 Nov 2022 17:17:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 1/2] dt-bindings: iio: magnetometer: add ti tmag5273 documentation file Content-Language: en-US To: Gerald Loacker , Jonathan Cameron Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko , Nikita Yushchenko , Jakob Hauser , Michael Riesch References: <20221115073718.2377311-1-gerald.loacker@wolfvision.net> <20221115073718.2377311-2-gerald.loacker@wolfvision.net> <20221115174355.00004a01@Huawei.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 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. Best regards, Krzysztof