From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 9EB5D30DD1A for ; Fri, 5 Dec 2025 12:48:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764938929; cv=none; b=rqf3Pyrkn0z6tiQz669U6cgU/fExcUbba1i5DX1GjjyT2+FkoOiiVOShCJAJX1h/BBj5CeaNbBStrXy09ShozU6XEEERpP5X3r5YcYfOsEe2bsgJ6UT1nBTP6HmEPs8r7OGEDC3Z6ugmBT46UWrt/REHxEM4TAjgBtPnpDI5Zvs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764938929; c=relaxed/simple; bh=lSNiJQ1hWv2H33MlCLh9IZa2Uo/O6wrA1GmmBJ4ngcc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uEJsODDyZyodQXHBQvjpST0tjoqtYGS2DPU4bQIpblwwXHtUhw0yNOgFDVZbCoIsK74vblzO15Yk/M+RiTYVWfENze5TakZfo+/Ur5glEGCZiEKfUuPMfXdc8CiJZymxVhiXk55Q+Tu9R6cNK2uIpA9u99p0N4O7Yv2ZNIuW5mQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=X1LXGo3P; arc=none smtp.client-ip=209.85.210.175 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X1LXGo3P" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-7b9387df58cso3152031b3a.3 for ; Fri, 05 Dec 2025 04:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764938916; x=1765543716; 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=h8TfSQdqzSVt80P55nncCARa3JN8Npg0bjx7e6GoNp4=; b=X1LXGo3PzlBQ+5uc/v2/1MGQqJaQu+IbjGL/h+qtTVbab2MZXbsM8oVBQ3XOXWuecK 0bxBaJmQPfiwKuoBvoVKyvXodZ7LbNEBNv+rBH0AOl5AthjvdpvpyClsxNcOVaYsDSa2 4vQGRag1JzOZqTF6qgpWl3LEukdBTK4wyIfFVes7Yb2Cpfb3d7gk4Nz7dQAKNxRjks3/ xKz4piiOdMyVGcAOaKuApEPSiPB1t1cy8nZFWqfY6UpAAfAQbZD785nr3bUj9oKUIuks MyV/U9YRfQu0GHSvwjLeIyKOsjCW6waKR4KmG4T6Dp3bON3y93Vbm4Eic7CNOhIxWW2P M/pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764938916; x=1765543716; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h8TfSQdqzSVt80P55nncCARa3JN8Npg0bjx7e6GoNp4=; b=cT39xLQ3c0RozyK2g7buK0puVKcvS98326iOoqVvFcGFygXBoIU0zDkauLf/U38rFL pXh7uTyKS0al9SU9PUFIlUB8RoX3isV0eMhjkwRt7RyrzMEThsg9T+Iov/CrCgzgkyYH zSqFbxGY0Fqqe51+3WcDW8qk/u8kGJUxasWVVixipNbi1H4VtMg4g7U4otWvX9byTv2X Z//+6Iq5hDncyUCt9IQENElVxCGCqG0ijLw/AKPBTLjXpNd40C/KeQkW/ddKC9ikENnk 3+dxA3/AerqzSun9/qDKwv8zCIf70uQfDa73wFPYNAfXYzb+f12UEG/WesHn5JvRVPKi u9yg== X-Forwarded-Encrypted: i=1; AJvYcCXf/rhc7A8FoLITTv+bkk/hL+T8zYbYkKc7xfqGNaR5mAqYsyhj20HEJq0rLlBl4ZujNiBpG5D6D64=@vger.kernel.org X-Gm-Message-State: AOJu0YzjJno0ihXOg8a62ByjNh8E1idZK+S4g5ZdjmK7YKopbym8dbcF 7LzEIqFKAKJshOH0Sc4vbJLwHSiGJr1rtrdw33hypIW/vGhndZVpb1QQ X-Gm-Gg: ASbGncs36I0j8e8hSytm5UGvlF0htx69+euphKbomRGTWg4gwrXyKc+ejEliKPnvRCk lR/xXVG2BOlYhGD58sdgwXjSDi5g7nfLQ6cviZtIPizZdAW1C+KCBel/vSs75WD/uvRPEA/bQYb opf4+fl63n/bl8oTP1ICUdvS+JXAjwCXggr7/xCISpFKtRHkTGbLVhm8BY0iQBZVMwxf4oGtVnC /JCqFvxI2xt+lxSpvSeoIEm9m4mRHkfEpFR8ZySbsqLYLhlstsSMU3UmKBXT3JB8npdEuJlcWBG gI3a3sYXeJOMGCDs6FGuB5YcuONCY3fgupYRTAyau2v165NFIRBbT35fREC6z68SSqZRm50gELX VUg94Vf6QleMVU+XnTzBv9ifd9kvZ0YKEBuvwRpBYCwx+QH4qzYjMsw80YU6l8jUXCJ/VKNZIN/ hg2SH89uuxkeVsolEPB91Kk6vzgmpUfs8= X-Google-Smtp-Source: AGHT+IEjzb7U9ofM4A37xXKz1ctej3Hg6VdyG9/RNNT0ZH2QqjidYtcKGEfTZb6PcdctwKhrBgNzQg== X-Received: by 2002:a05:701a:c949:b0:11d:f682:e475 with SMTP id a92af1059eb24-11df682e6f1mr2793043c88.40.1764938915794; Fri, 05 Dec 2025 04:48:35 -0800 (PST) Received: from localhost ([2804:30c:2712:fd00:9579:9ff6:e506:6147]) by smtp.gmail.com with UTF8SMTPSA id a92af1059eb24-11df7703bd7sm20366748c88.10.2025.12.05.04.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 04:48:34 -0800 (PST) Date: Fri, 5 Dec 2025 09:50:08 -0300 From: Marcelo Schmitt To: Tomas Melin Cc: Marcelo Schmitt , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, jic23@kernel.org, nuno.sa@analog.com, dlechner@baylibre.com, andy@kernel.org, Michael.Hennerich@analog.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, corbet@lwn.net, Conor Dooley Subject: Re: [PATCH v3 1/3] dt-bindings: iio: adc: Add AD4134 Message-ID: References: <06d7be2af0f6520c23f612fa0249ff6a26655cb7.1764708608.git.marcelo.schmitt@analog.com> <95dfb96e-f7b8-45df-a704-2984bd0a2946@vaisala.com> Precedence: bulk X-Mailing-List: linux-doc@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: <95dfb96e-f7b8-45df-a704-2984bd0a2946@vaisala.com> On 12/05, Tomas Melin wrote: > Hi, > > On 02/12/2025 22:55, Marcelo Schmitt wrote: > > Add device tree documentation for AD4134 24-Bit, 4-channel simultaneous > > sampling, precision ADC. > > > > Reviewed-by: Conor Dooley > > Signed-off-by: Marcelo Schmitt > > --- > > Change log v2 -> v3: > > - fixed typo in powerdown-gpios description. > > - picked up Conor's review tag. > > > > .../bindings/iio/adc/adi,ad4134.yaml | 198 ++++++++++++++++++ ... > > +description: | > > + The AD4134 is a quad channel, low noise, simultaneous sampling, precision > > + analog-to-digital converter (ADC). > > + Specifications can be found at: > > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4134.pdf > > + > > +$ref: /schemas/spi/spi-peripheral-props.yaml# > > + > > +properties: > > + maxItems: 1 > > + > > + adi,asrc-mode: > > + $ref: /schemas/types.yaml#/definitions/string > > + description: > > + Asynchronous Sample Rate Converter (ASRC) operation mode control input. > > + Describes whether the MODE pin is set to a high level (for master mode > > + operation) or to a low level (for slave mode operation). > > + enum: [ high, low ] > > + default: low > Since minimim I/O mode is only one currently supported, this should > always be low, right? Is the property needed at this point? Correct, it is expected that adi,asrc-mode will always be low for minimum I/O mode. The property is not _needed_ but, according to dt-binding guidelines [1], it is desired. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/writing-bindings.rst?h=v6.18#n17 > > > + > > + adi,dclkio: > > + description: > > + DCLK pin I/O direction control for when the device operates in Pin Control > > + Slave Mode or in SPI Control Mode. Describes if DEC0/DCLKIO pin is at a > > + high level (which configures DCLK as an output) or to set to a low level > > + (configuring DCLK for input). > > + enum: [ out, in ] > > + default: in > > + > > + adi,dclkmode: > > + description: > > + DCLK mode control for when the device operates in Pin Control Slave Mode > > + or in SPI Control Mode. Describes whether the DEC1/DCLKMODE pin is set to > > + a high level (configuring the DCLK to operate in free running mode) or > > + to a low level (to configure DCLK to operate in gated mode). > > + enum: [ free-running, gated ] > > + default: gated > In minimum I/O mode datasheet mentions this should always be gated. > Perhaps this and adi,dclkio can be left out and added when driver gains > other support than I/O mode? Yes, that's also correct. A few properties are actually not needed for minimum I/O mode (i.e. can have their values inferred from the minimum I/O mode requirements). Sure, from developer's perspective it's easier to document only what the driver uses. adi,dclkio, adi,dclkmode, adi,asrc-mode, powerdown-gpios, regulators, could all be left to a latter time. Fine by me if dt maintainers agree with that. With best regards, Marcelo