From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 C4E8A367F31 for ; Fri, 19 Jun 2026 11:30:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781868639; cv=none; b=h9RHTyAQFijlCjNyR0tpLse8KsFUaFaM8fWd5WOHr9FE46ez8DPWvWKadvs3d6A7M/1V/fzkag5gQshR4rXfGMverSj5AJbOJ9U0A+FAiZWlNDyPBYO/y24jvon2ucT3xBiBW+NCQykOdynz+j8hLZq4zY5oUeg3gv5OU2SKyto= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781868639; c=relaxed/simple; bh=tKL3KAbOmbB0KsPGhd6YoyVBMOUEnR4k+bBexPz+8pg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=neTCfl33SdlevMRREkCugJ04jiE92U43dt85mfq1xx1W+MrPUXqMlom/7s34VAnFleMAVCbZ8kFJKMIIP4DrfUDEywBHy6RGm5Ah16Sj4RI4YlzimeHWGj57CoGmS/IQH5CabgB3EKeXEY2iYFVIfcUrFUWxbGYXRNqct2i8Xrw= 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=Etz52wTW; arc=none smtp.client-ip=209.85.218.42 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="Etz52wTW" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-c029505b389so548225466b.1 for ; Fri, 19 Jun 2026 04:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781868636; x=1782473436; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=TucRX2gfPFMDDoN8Mlfxd7xl20UMCrUn0QTYPFwhHT0=; b=Etz52wTWkI4bhj0CdKng9/R/gYBfj6UDCv7MldiXXYV605g2pZhhKnR1hD5ht9ZRFG SIA/dKbfkPhB4w860ycLxihr6pn8o+UygBUrt5lRxsR/ObvXXTVTGVR89QRxZFzJvAXT EDeL5acLO2xO3WWMWvWjXVhBWM0e1sJJQLpLywh1xe4tDgFFzrZqhQCK2VfFphbnFFkZ ftrSVNRuAforeADike9HYoagXpNN2+GSmrPhHrb+0PqTb9pPQhPId5W2VWX3QldniHsZ rSSzP37uijWvpInZ5IORu33HZceVZylUTpVej0S7rYPWv20qI15uAeXMQ/M/k/rihdrC Tpmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781868636; x=1782473436; h=in-reply-to:content-transfer-encoding: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=TucRX2gfPFMDDoN8Mlfxd7xl20UMCrUn0QTYPFwhHT0=; b=NaifDD7+E5x39G2iB5RmxoHO49c82KUb3UCWTaZ5iYItNGMKpllxFgQn1Ja9zSFArn B14Rgzgr8u1gYRCnDO7u/jEuzZZLJ3DeEzjT1ThE0okRM/W6jzwgskkTckcC8oj9CfG3 uCsfTegGNpZMkLCU9o3gKXmQTsc5Iop7HtfP+dbQViuBfQXReZ+iY6d+7pMaTfuOFn3R 2lr/YWfD1CTPRRei9isxl0URwqRQzIo+KBE6MqM3T6uKBVNZNTay1s7QAhxc56dkhCf3 /SpYua8Xa2SmzInCZJcOaT+rG9WxCxDY1nyCSusbwY73t3shxp3YOQNLxbOLmJl4BTYg Wnjg== X-Forwarded-Encrypted: i=1; AFNElJ9D4acbO6GDh8jfPIpjxd7ymcZqmixJSiVbuTuPXEdeF1S+fM5TXne3WynJHC2vqEvyZZiHrD2fPAfO@vger.kernel.org X-Gm-Message-State: AOJu0Yzdy9gLU6j/tBIsjnN/LUZ1lIXIaqgHFy9PPECnYn5xwCKEl7gp 1fMzSbeXHfeT6tUEdh15y9uyviq62L3blYqIbwqAq0L2YqTT8+4quwqoWDUqOA== X-Gm-Gg: AfdE7cmwwZOiakDo3b2JB49JEYmqmvKwRM15H3sEmJUTbUexZgUKiNTMqRIbIDnnmDm 4jdc+L7bk1kLQLbSJVL0xsxYSA8MGLT+6BwCwyEuBbdnDAP3/Gr4aOCNVVfbQ2oETB/hV1qzBms 9Jsuu/GbHsltbwLDhaLz6bfeQPIHoa2D3tz+5J9TXpKtnfMsgOArjttldp0A/kW1534E1gHc1LX gdkZH+BnMLwZuVQ+fY7rD3A3qSM9DU4weI+Bfw+y1MADp4RIRevUsM38lPGxTDzVlWiedsCaCXy tZPUy9BAJ8DgW/j8HAzEQuhMawn1cPHhuYfQVFGJn3gR0CozapkzIC4OjpvKW1aGa6pUMPcbxTp O985s+IADztXU7A+MwF2gbX6+8mjAMUm0s6OTxFBf0uhDa6k3htav9kmMf9ivNLr35cdz+uktP7 0MK1Zy X-Received: by 2002:a05:600d:84ca:10b0:490:e180:2e0 with SMTP id 5b1f17b1804b1-492409fbfb9mr28275055e9.3.1781868623638; Fri, 19 Jun 2026 04:30:23 -0700 (PDT) Received: from nsa ([148.63.225.166]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49245711032sm16710165e9.0.2026.06.19.04.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2026 04:30:23 -0700 (PDT) Date: Fri, 19 Jun 2026 12:31:24 +0100 From: Nuno =?utf-8?B?U8Oh?= To: Janani Sunil Cc: Jonathan Cameron , Rodrigo Alencar <455.rodrigo.alencar@gmail.com>, Janani Sunil , Lars-Peter Clausen , Michael Hennerich , David Lechner , Nuno =?utf-8?B?U8Oh?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Jonathan Corbet , Shuah Khan , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Mark Brown Subject: Re: [PATCH v3 1/2] dt-bindings: iio: dac: Add AD5529R Message-ID: References: <20260519-ad5529r-driver-v3-0-267c0731aa68@analog.com> <20260519-ad5529r-driver-v3-1-267c0731aa68@analog.com> <25mh6grzh7zh3b4uytcqnusyv5zjuf6ia4if3ce3oqzqz56ehi@le72iqv7ye3d> <603473ac-30e6-45e5-8a3b-c9902715cc9e@gmail.com> <20260614204455.408c4d40@jic23-huawei> <076d7d2d-81a0-49c2-af94-bd65ead66c09@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <076d7d2d-81a0-49c2-af94-bd65ead66c09@gmail.com> On Fri, Jun 19, 2026 at 12:33:11PM +0200, Janani Sunil wrote: > > On 6/14/26 21:44, Jonathan Cameron wrote: > > On Tue, 9 Jun 2026 16:47:23 +0200 > > Janani Sunil wrote: > > > > Hi Jonathan, Rob, Krzysztof, Conor, > > One possible model that would also allow mixing the 12-bit and 16-bit variants would be to treat the parent node > as the shared SPI transport only, and let each dac@N child carry its own compatible. > > Rob, Krzysztof, Conor — wanted to get your input on whether this is an acceptable binding pattern. > > properties: > compatible: > const: adi,ad5529r-bus > > patternProperties: > "^dac@[0-3]$": > type: object > properties: > compatible: > enum: > - adi,ad5529r-16 > - adi,ad5529r-12 > reg: > minimum: 0 > maximum: 3 > > With a DT example such as: > > ad5529r@0 { > compatible = "adi,ad5529r-bus"; > reg = <0>; > > dac@0 { > compatible = "adi,ad5529r-16"; > reg = <0>; > }; > > dac@1 { > compatible = "adi,ad5529r-12"; > reg = <1>; > }; > }; > > The downside is that it introduces adi,ad5529r-bus as a compatible that does not correspond to an actual > standalone device variant - it would require a parent driver to manage the shared SPI transport and enumerate the > child devices. The actual DAC functionality is handled by the matching per-child compatibles(12 or 16 bit). > Is this an acceptable pattern, or is there a preferred way to model this type of addressing scheme? > At some point, I wondered if we can't just have this at spi level? Like (in the simplest terms) a new spi-peripheral property that would allow devices to share the same CS. Then we would need an adi,pin-id kind of property for this device but the bindings would be pretty much as if we only supported one device. I see Mark is already in the loop, maybe he has seen this kind of things before. - Nuno Sá