Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1198194lqj; Mon, 3 Jun 2024 13:17:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUe5fLwFK8F94Y+Zu6Lw1W1CwE3pPUjfJ3Ymm1+KwABZvBas3jNk2bR6GA0DUoroW1o7BcyoJ7G8ams92Kp7Cn27V3CynVUhlzxuKX3kw== X-Google-Smtp-Source: AGHT+IHwaUL1UgLhwcF9XLMHlC2o4M/uJK3FN+c8cXnqKgra+xuXBvTtIsoFEMvGNb6c5H476kcE X-Received: by 2002:a05:6214:3d05:b0:6ae:e16c:d621 with SMTP id 6a1803df08f44-6aee16cd6fcmr102673656d6.62.1717445864588; Mon, 03 Jun 2024 13:17:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717445864; cv=pass; d=google.com; s=arc-20160816; b=aPhwOtKJ3pg89JL7Up/XZI6tVNZrtUNNXNWWjkXj7J8DYqDkJx5wpPmbEVCvOQrwoH uGoSKUMhKAWyaXw8JUNioqGHBkvyZV2fgH3/0+Y4aa2+N9etFjXI3WCwu9DmyAlcUKgQ PIHYfG2TQXO+9PIhCL1q3UpibHNjQl09FruoMFEkRNWymaqt9SPTRxObrcixqZaIFWF0 0Yx3wBIrRlU5E2Gb2DT0YuT/0lgREDu+QfsMrXyX2qgxOOZYFUCP8S7D0JFvxJkKTzwY 0wJyBRVo1R6gyuloxikFeIKXr8qfUt7Aqty0cEwMasZkzJ/hwbv3TfSgmDMI4eo0g+rd TkcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=TTLAWauqe0r9HcfcWkbuq/PdizHVPeIYJfPIk4JdS1E=; fh=pWgponEeORBGMLGS+HyOCXk5I6DAISS+u+8/UCr1RDA=; b=CLzjmydhBKUSOfyEh/VyTaQtGte7Di/4xzG+Gm8YaASLU+epQQ5MFAbxSXhLqfrj3R tyHkLPqj4kPqO0xFPu1kprGzXtFd1VjbIDS4GJ1R8QWzYnWQhZMQs/CopzhoFsMIPvlm UwwIiOxLFJp6rl3eus5Xrvkp4yt1JmOAuuKeW3xazaKPhSiQKDekIixBkXpjzrbHGEpL lY3oC8TwdbBwQu1YwncxazduD8wbc3VLxwJLLJE9bHtNR50ig0z+C32QwckktQ7GKkoY GrdUOFqc3g/sroli/TU/xyFeOHvqO9YU/9pZu6s3MK4+QZjkokVAjowJn920q67k7UAQ 0Z9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=YGE32Bzw; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-199682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199682-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4a742ee1si79353476d6.156.2024.06.03.13.17.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 13:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=YGE32Bzw; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-199682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199682-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 404771C21A85 for ; Mon, 3 Jun 2024 20:17:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3B2613B2B2; Mon, 3 Jun 2024 20:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="YGE32Bzw" Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (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 CB5154BAA6 for ; Mon, 3 Jun 2024 20:17:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717445856; cv=none; b=XQ9G0ySlCwOX30LeLNtM+PuF36U1+Mhk0lSY6VxDSJAnZg4Vm7bUbb99FxqT5Rqvt/T7Yl3mHqwFoKDsVZkPpo/jRxS0FdfniOop9T3enSDWBCPN+kJUKjwAW8UYzrdbqmq+lE8kUnrAizww4S3wZxTc3dO+CinZbRe6FKgzFjg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717445856; c=relaxed/simple; bh=4GcOgyJahweqOFa/iQjsMvxOOerBc8RefsmPuWGEv4I=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=P6qdQrsevnyZbodB7MnVBhL8UWcqGWjHw1nqXiP56VBACD2Skoz3RkY37pyQkbqeMTNER6LXqq3xz0Om+GQ0iOiH4a1WZ84b4OwU9bHxVyXR9M5OZKxuKu682Pjicrt8adgAWdKXg3Gc/AwFGUzFF4EN67kq6T8PoYdFGOy8EYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=YGE32Bzw; arc=none smtp.client-ip=209.85.160.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-24c9f73ccaaso2792784fac.1 for ; Mon, 03 Jun 2024 13:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1717445854; x=1718050654; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=TTLAWauqe0r9HcfcWkbuq/PdizHVPeIYJfPIk4JdS1E=; b=YGE32Bzw60MUI5/0eDLx+dEGOvb6ZjjiRPzUSnO/Iw+Ol0XJ/rwNVGUAk2Hj5cG13b gSpN15hQdKnTpFvvhpJErgPz6mituIeH42d10HixcmbdCF+BF5WE79yLUp48L+mh0HuA 7DJRnG9uVyqI3qC0Wf9sJ2UaXJGefsbi31F7UgE/6yhAPdtB1kkgb18quZcLEHqFnopN at9osa2dm6npoaBzFOuYwao0c9e021JRSkM7bGnPWmW7geN4Qx0S0vDm9eNrDeisLwJu hDjJ2qxIgbUQDkkBSoa1G+cCRzzxp09jq41V7myrG0WoJSynRag4g15QrtdC/JpDetf4 es/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717445854; x=1718050654; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TTLAWauqe0r9HcfcWkbuq/PdizHVPeIYJfPIk4JdS1E=; b=E/mptbianal3wc4gWbzB89l/nEdrU3fneSu/HuMsJSLr1ZFnTcIo+YuR24TKoZo1dD mk5jG644DdkRQfSnvjZhux7HF+nJnzQyMKnQy5YOBqN5hXM69KZ7TWXNT82ZsCWB6qLj /cbwvj8Twc+SNwXsH84hgZ4AZrXgqd2p6ymJ9JiSL5ytxXHfX8RLIrCKmQvtiajmFWz7 0+6nv+kuZ2d/sebHwi2Sz2a9G/9Z0aIfgGUEMLwoTDUR4wVqENVcyjl/yrs/IqFqHhhu DFcDsc/Z2NPhKCSfv3MSdA8DWYW7kYs8sToYMpLm8JjAvFZ07AuGBZKs+6Jqt+AiEFwk Tw2Q== X-Forwarded-Encrypted: i=1; AJvYcCUC3pB7DvaRBR80P9A33eZc9MrbBy75waxAhxiiyWjGftF6+YEoVVBJQ7KjFWtubTZxE0W5JQkuenxGAsN8B7FJlYfTJ7WguE0TdEKo X-Gm-Message-State: AOJu0YxpLGznyrK/EG6Yyv0Tb0D2Z6xH1IklSzAOGldPqmb+N7eyxzCs qDD9++AOtqhp22eHChzpzHFp0bxRvVPXt771KIXbDui/dwgpl+/tBTR4fz3J4Rc= X-Received: by 2002:a05:6870:c14f:b0:24c:b92e:a130 with SMTP id 586e51a60fabf-2508ba211ffmr11781577fac.15.1717445853829; Mon, 03 Jun 2024 13:17:33 -0700 (PDT) Received: from [192.168.0.142] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-25085000afasm2656258fac.23.2024.06.03.13.17.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Jun 2024 13:17:32 -0700 (PDT) Message-ID: Date: Mon, 3 Jun 2024 15:17:32 -0500 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 v3 4/5] dt-bindings: iio: dac: Add adi,ltc2672.yaml From: David Lechner To: Kim Seer Paller , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen , Liam Girdwood , Mark Brown , Dimitri Fedrau , Krzysztof Kozlowski , Rob Herring , Conor Dooley , Michael Hennerich , =?UTF-8?Q?Nuno_S=C3=A1?= References: <20240603012200.16589-1-kimseer.paller@analog.com> <20240603012200.16589-5-kimseer.paller@analog.com> <2942a938-19b9-4642-8ed0-8e17e4825bc5@baylibre.com> Content-Language: en-US In-Reply-To: <2942a938-19b9-4642-8ed0-8e17e4825bc5@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/3/24 2:59 PM, David Lechner wrote: > On 6/2/24 8:21 PM, Kim Seer Paller wrote: >> Add documentation for ltc2672. >> >> Reported-by: Rob Herring (Arm) >> Closes: https://lore.kernel.org/all/171643825573.1037396.2749703571529285460.robh@kernel.org/ >> Co-developed-by: Michael Hennerich >> Signed-off-by: Michael Hennerich >> Signed-off-by: Kim Seer Paller >> --- >> .../bindings/iio/dac/adi,ltc2672.yaml | 158 ++++++++++++++++++ >> MAINTAINERS | 1 + >> 2 files changed, 159 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml >> >> diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml >> new file mode 100644 >> index 000000000000..d143a9db7010 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml >> @@ -0,0 +1,158 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/iio/dac/adi,ltc2672.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Analog Devices LTC2672 DAC >> + >> +maintainers: >> + - Michael Hennerich >> + - Kim Seer Paller >> + >> +description: | >> + Analog Devices LTC2672 5 channel, 16 bit, 300mA DAC >> + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2672.pdf >> + >> +properties: >> + compatible: >> + enum: >> + - adi,ltc2672 > > The linked datasheet describes 12-bit and 16-bit versions, so should we have > two compatibles here? adi,ltc2672-12, adi,ltc2672-16 > > I don't see any ID registers where this could be read from the chip at > runtime, so seems like something that needs to be in the devicetree. Hmm... I guess maybe it doesn't matter for these chips (i.e. the 4 LSBs of the sample data register in 12-bit version will just always be ignored but no data needs to be shifted based on the bit-ness). I would not hurt to update the description though since it only mentions 16-bit if the compatible is meant for both versions of the chip.