Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp14636rdb; Mon, 22 Jan 2024 10:19:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJ4KopU8sooZcAJ16YL+KG5Go5MMGEzRkt0q4HuYxTK9Q47jnk+XbSvEmKx39HAoBjOyIY X-Received: by 2002:a92:d203:0:b0:35d:66a0:5432 with SMTP id y3-20020a92d203000000b0035d66a05432mr6163654ily.13.1705947580012; Mon, 22 Jan 2024 10:19:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705947579; cv=pass; d=google.com; s=arc-20160816; b=GP8sFmJNfOQm92Wsta+ZriPUNWhQ1ded9ezsojmyeJaOjlidOAjqvoZKENk8e5zOn6 g9WO12coruWGSLrg3bBsZMKRvrPefhQpqdQT5tdPEIwkLvD4VNbhnhlJm7L7256Nx/pO EaYkCUVyu4ZZSEzNFyJVdbVE+AR9IaWuTX7H49ffJ+91iYjZ08+mpxrlzw1Or8mIXag8 GANDG/J045TnamZmOpQYNewCh6qommwILMzu30ytpxg2qsvO6v3wxDLJnfrhebNlBpfZ a/zPUurMZhOGnipm0zwuyPHb9N7Z/fapmBWDYGSQnCXqLBkvHTDsfxuEaWerhd66YB4I E/nw== ARC-Message-Signature: i=2; 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=ORV0XD1ha747RgW5l9o3OdrF1UiYiq7kZnNd3ev9EtA=; fh=VvxftKBDAjQvcrnA2Xq0Fgx5m0+g6OL9OHqqShv7ZrQ=; b=dsKnWKquQp/WXZngrhN9vjc5nwj5M3Kb/cdcAMn4y3kRoEfzI3MNtnuR/lcwHD2UHf W2gxiWqNbE7sIjCYqEvUHSsWsNZC5DsR5GSkpXVfzGuJM/awnvOqzDAzaPsGqSCyI5xp lLa3pFqel7HDWElOLdeEwlvRuqYeHbsMwUQ7cEiPD8rknX2WKxgDRrSLXtUmfAv+B3RD oZpxi+1PxbnCgZawh/kaArGUyuXvEG5vDlSvnEnMtVPxn7vhFBN52azMKHOTa5ZbIcRf 2/HaZF/yhaNn2xw0rtq1E+mT45R+YfnniKb0E+8/UI4ZTPyLcOgjkRW/qJBogKK5C+o+ P/1g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W8QhUiIs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33830-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o14-20020a63f14e000000b005ce172ef504si8266409pgk.36.2024.01.22.10.19.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:19:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33830-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W8QhUiIs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33830-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 7938E28BF01 for ; Mon, 22 Jan 2024 18:09:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96DEE57332; Mon, 22 Jan 2024 17:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W8QhUiIs" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1BBA3FB36; Mon, 22 Jan 2024 17:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705944930; cv=none; b=oN/0Dyu+SJtg+3bq4/7ROEfOOTkuDj+MKA4JPkiA6PtkGTyXiZdMzaDv0/fdtYmvQV6omWuDF5phujBPRqdzeB4ph8WtJBQUbqGqqMRX0phaACeNGrNzricar7oHZb4s8GQtdzX1paJgcP9fIDbCC/A7davcti+jfGpVDIeQn28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705944930; c=relaxed/simple; bh=XfQM0Oq8bhchKaV3+vsc5joKpUAvSeJRZhoVmelAvR0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c1G1IH0K2dQtPKxeyXus5Fq+/G6TTeiAR27/BDrk/VnkHn2gW869Tis+WE/JdctKq6GwSTYG5NZaIzkKbSKAANbXH9RQtE9To8jCZWKW0kSkJvsIUcyg4zEcw5QxIDmcweIul06Oa5wDZzVoRjwbnrdrNyTygmxx55GCZ/rZvb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W8QhUiIs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A599EC433F1; Mon, 22 Jan 2024 17:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705944930; bh=XfQM0Oq8bhchKaV3+vsc5joKpUAvSeJRZhoVmelAvR0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W8QhUiIsbnGzfIxc6KFXpmIaDt3BUwNKWwmu0bYNI4ZHXrIN9FdllQuxQDUOpLkUO Lh/1oHxgfXg3Vs6ej9AxQwA5Bf1FqP3rg4zPq7Alk9NpK2WvnwGqB7P2nNgwBp3Cuu 5wMpQQe5uJZGgM1kUtuvRJAxEOlcOFGBwWQqC2EpCQWpjUPwJKvkCfK2gnL+sIZxzR fRZdcuEIoWHeGZ9NW8qNtH/ubZIgFetySsKWr0AgSpOzFicCeKhyJuTYIFIyO6qGHE 3+95CO3njR9+Zhy/bTD/gWvWwgPcwpeL+aj4THbNA/UbgkmlU/rTQd5HB1Y+EVZkE3 dDcfXYQuVaaRg== Date: Mon, 22 Jan 2024 17:35:24 +0000 From: Conor Dooley To: "Paller, Kim Seer" Cc: "linux-iio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jonathan Cameron , Lars-Peter Clausen , "Hennerich, Michael" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Crt Mori , Linus Walleij , Bartosz Golaszewski , Nuno =?iso-8859-1?Q?S=E1?= Subject: Re: [PATCH v7 1/2] dt-bindings: iio: frequency: add admfm2000 Message-ID: <20240122-postbox-slimy-248a2e521896@spud> References: <20240122090228.28363-1-kimseer.paller@analog.com> <20240122-legible-fossil-25349ef9ad6c@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MCbfwdcDBzV4nvA+" Content-Disposition: inline In-Reply-To: --MCbfwdcDBzV4nvA+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 22, 2024 at 11:06:08AM +0000, Paller, Kim Seer wrote: > > > + adi,mixer-mode: > > > + description: > > > + Enable mixer mode. > > > + type: boolean > > > + > > > + switch-gpios: > > > + description: | > > > + GPIOs to select the RF path for the channel. > > > + SW-CH1 CTRL-A CTRL-B > > > + SW-CH2 CTRL-A CTRL-B CH1 Status CH2 Status > > > + 1 0 Direct IF mode Mixer mode > > > + 0 1 Mixer mode Direct IF mo= de > >=20 > > I cannot make sense of this table you have here, the double header row = you > > have going on is hard to follow. There's also no mention here of what h= appens > > when both GPIOs are 0 or both GPIO are 1. Are these configurations perm= itted? >=20 > I also feel that it's quite hard to understand without the gridlines. In = the preliminary > datasheet, it's a switch control table, and I'm trying to replicate the w= ay it is presented. >=20 > On the table, each channel has control pins (CTRL-A and CTRL-B). For a mi= xer mode > configuration on channel 1, CTRL-A GPIO should be 0, and CTRL-B GPIO shou= ld be 1. > It's not permitted when both GPIOs are 0 or both GPIOs are 1. The state f= or the GPIO > should strictly follow the truth table. >=20 > I'm considering making it much easier to understand by creating two separ= ate tables for > each channel, just like the example below. Or is it preferred if it could= be discussed in=20 > a sort of paragraph form? >=20 > SW-CH1 CTRL-A CTRL-B CH1 Status CH2 Status > 1 0 Direct IF mode Mixer >=20 > SW-CH2 CTRL-A CTRL-B CH1 Status CH2 Status > 0 1 Direct IF mode Mixer I think it would be sufficient to cut down the original table to something like: CTRL-A CTRL-B CH1 Status CH2 Status 1 0 Direct IF mode Mixer mode 0 1 Mixer mode Direct IF mode And state that the configurations where A =3D=3D B are not permitted. --MCbfwdcDBzV4nvA+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZa6nXAAKCRB4tDGHoIJi 0gftAP40Y10Z/PEZG3hrDgMfGcEP2C/NdkdxryZWr/keJTMJ6gEAhZHQWc5ETow6 nk4YRriQIquAgLUZulArlOI5DOOyWw4= =ZKhg -----END PGP SIGNATURE----- --MCbfwdcDBzV4nvA+--