From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (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 71AE41D0496 for ; Fri, 6 Sep 2024 16:42:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725640938; cv=none; b=pJA/0uNaxB52SWAoFZp/vto+IsB68VF2+pXmR7J/RQhuEnmHNxF0jMhVHGI0IaOIXjR1MHBI3+vL76NMK7CSl1cc+qDfzfhgVknuW5qvqDPyrgm/UT2lVQ5x0Tlme6hDz86aGwkLW5ZNEOHhA8OEb7o8hKkDeLyNclcmjBhrA80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725640938; c=relaxed/simple; bh=SLERIPPuqlPcRz7SpVydvsOfSapGckEZ8PoOBgaOu18=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lRvGOKc8nK4IofzE+DaYHYukbdNzVy2kZdqOlZryJDvcw5bLElJjnQzHsRJjfroTqHRupKt0rzRoCgECyhGvryw9MK3hCV3DRrkV0r9sQMVLphEkS6v9b6klQEhDWGNQRDlhRYVpLo6sA56uuopR2AyoGTZR+TJbJNWDOSKiJHg= 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=U0sDv+Bl; arc=none smtp.client-ip=209.85.161.43 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 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="U0sDv+Bl" Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5d5c7f23f22so1328044eaf.0 for ; Fri, 06 Sep 2024 09:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725640934; x=1726245734; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bpqcN7trnRgHngcOVURxYt9dm6dnWJM7OBEcFnkkzUg=; b=U0sDv+BlAnmhtuAp+vT8vvICopJfscGpKOWW7zFOXKnr5z6RFl8+YkQa0qisW1eMbK +iOgkWVqXu+A716DF48a/0U7H3/Bd+cgk7wxlVEBwFgmHFoUtXN6jT5zRFqebo0VlI7g fEuCnm9da+2jLflFEczgLHAMmy84DXPmY8ZCqu4ooHv2dRTGUX03q4llO6zDNU8eLvu0 GuW5V83ykaWb97IP71lfLJ393az1KQm1v52/dMELE1EehvFesGUdo9T5c/4O601xGIYD MsLZQ3cOH//ED3f5OcL1FKq6GH9+WTndLgb+/SWrInxpPhyUjLefrXA4ETg3IwiwZu0C EUkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725640934; x=1726245734; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bpqcN7trnRgHngcOVURxYt9dm6dnWJM7OBEcFnkkzUg=; b=qw8xkUH+zrEh/Ws1EzAGJrQP5LrqdV2FfbcOv08YIg4kGWkfpWQQ0NqDfN+7ESEZA0 Pi6R4bvOj/eCqBX/8UBcEoiZhp5MgURhFTxwjWZAD8gPaO1Qf7J01G8D17BAgr2hfvap qUCFCcm71eFu1HwAw9JlTefdpdDw5pwdW+MNxLAp5MH+ZhMMPXSFKiArb+Lz9hWfQQlQ EDXEcvTxtvaBFVMzayAx7xD1V+AX6hEFqCHE+/DFt76vcluprFS20GVPOM4BP/Hd40f+ ye5K24peVLIidON+9U+yPkjN0DMUd+r0vCdAtEWf85thcZcWJygqT7z3hjrgmJxc4uti etCA== X-Forwarded-Encrypted: i=1; AJvYcCWcWEZfEIt5nlJXnysbrm4dfoHFOTer8RqVYAnLU/VyZ2Fqfv8P8h0E5WPCPr8GOaB3u2EZyg0s99s=@vger.kernel.org X-Gm-Message-State: AOJu0YzW+zmE3mLNGRZidzYudbEqjK3HuhEOVllUDAJ59oKOVRXMvVxu Eb4b4YTboS1uMVL3SCB3GnxUc5cOpQ8FdA/NTKPqHtH7SZmUyGzIy019sr0Dcjk= X-Google-Smtp-Source: AGHT+IEcQu0eoB+tXXu3duqiyzHk5VT5eBohbhuzsk6G7mLNTEYwF881Gs0Oi59FI3WM+BGOFwVsZQ== X-Received: by 2002:a05:6820:1b86:b0:5ce:d2e3:b18 with SMTP id 006d021491bc7-5e1a9d96318mr2981666eaf.8.1725640934310; Fri, 06 Sep 2024 09:42:14 -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 006d021491bc7-5e1b7671f79sm51291eaf.31.2024.09.06.09.42.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Sep 2024 09:42:13 -0700 (PDT) Message-ID: <9894666e-30bf-42c0-88a0-18ce2a9300a2@baylibre.com> Date: Fri, 6 Sep 2024 11:42:13 -0500 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 5/9] dt-bindings: iio: dac: add ad3552r axi-dac compatible To: Krzysztof Kozlowski , =?UTF-8?Q?Nuno_S=C3=A1?= , Angelo Dureghello Cc: Lars-Peter Clausen , Michael Hennerich , =?UTF-8?Q?Nuno_S=C3=A1?= , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Olivier Moysan , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240905-wip-bl-ad3552r-axi-v0-iio-testing-v2-0-87d669674c00@baylibre.com> <20240905-wip-bl-ad3552r-axi-v0-iio-testing-v2-5-87d669674c00@baylibre.com> <1928d0ce-cad9-4737-880e-3759c47fddbc@kernel.org> <058937fa93d484f3e81807d08a39bd8dfd3358e8.camel@gmail.com> <47c56239-51a0-4ff2-9db2-0e0184cfb086@kernel.org> Content-Language: en-US From: David Lechner In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 9/6/24 11:36 AM, Krzysztof Kozlowski wrote: > On 06/09/2024 16:04, David Lechner wrote: >> On 9/6/24 8:52 AM, Nuno Sá wrote: >>> On Fri, 2024-09-06 at 14:13 +0200, Krzysztof Kozlowski wrote: >>>> On 06/09/2024 13:53, Nuno Sá wrote: >>>>> On Fri, 2024-09-06 at 11:37 +0200, Krzysztof Kozlowski wrote: >>>>>> On 06/09/2024 11:11, Angelo Dureghello wrote: >>>>>>> Hi Krzysztof, >>>>>>> >>>>>>> On 06/09/24 9:22 AM, Krzysztof Kozlowski wrote: >>>>>>>> On Thu, Sep 05, 2024 at 05:17:35PM +0200, Angelo Dureghello wrote: >>>>>>>>> From: Angelo Dureghello >>>>>>>>> >>>>>>>>> Add a new compatible for the ad3552r variant of the generic DAC IP. >>>>>>>>> >>>>>>>>> The ad3552r DAC IP variant is very similar to the generic DAC IP, >>>>>>>>> register map is the same, but some register fields are specific to >>>>>>>>> this IP, and also, a DDR QSPI bus has been included in the IP. >>>>>>>>> >>>>>>>>> Signed-off-by: Angelo Dureghello >>>>>>>>> --- >>>>>>>>>   Documentation/devicetree/bindings/iio/dac/adi,axi-dac.yaml | 1 + >>>>>>>>>   1 file changed, 1 insertion(+) >>>>>>>>> >>>>>>>>> diff --git a/Documentation/devicetree/bindings/iio/dac/adi,axi-dac.yaml >>>>>>>>> b/Documentation/devicetree/bindings/iio/dac/adi,axi-dac.yaml >>>>>>>>> index a55e9bfc66d7..c0cccb7a99a4 100644 >>>>>>>>> --- a/Documentation/devicetree/bindings/iio/dac/adi,axi-dac.yaml >>>>>>>>> +++ b/Documentation/devicetree/bindings/iio/dac/adi,axi-dac.yaml >>>>>>>>> @@ -24,6 +24,7 @@ properties: >>>>>>>>>     compatible: >>>>>>>>>       enum: >>>>>>>>>         - adi,axi-dac-9.1.b >>>>>>>>> +      - adi,axi-dac-ad3552r >>>>>>>> I am sorry, but what is the product here? It looks like either wrong >>>>>>>> order or even completely redundant. What is ad3552r? >>>>>>>> >>>>>>>> And why versions are mixed with real products but without any >>>>>>>> compatibility. What does the version express in such case? >>>>>>> >>>>>>> dac-ad3552r IP (fpga) is a variant of the dac IP, very similar, >>>>>>> about the version, it still reads as 9.1.b >>>>>>> >>>>>>> so i can eventually change it to: >>>>>>> >>>>>>> adi,axi-dac-ad3552-9.1.b >>>>>>> >>>>>>> Should be more correct. >>>>>> >>>>>> No. First ad3552r is the product, so axi-dac is redundant. Second why >>>>>> adding versions if you have product names? Versioning was allowed >>>>>> because apparently that's how these are called, but now it turns out it >>>>>> is not version but names. >>>>>> >>>>> >>>>> Let me try to explain on how this whole thing works... >>>>> >>>>> We have a generic FPGA IP called axi-dac (same story is true for the other axi- >>>>> adc >>>>> IP) which adds some basic and generic capabilities like DDS (Direct digital >>>>> synthesis) and the generic one is the compatible existing now. This IP is a so >>>>> called >>>>> IIO backend because it then connects to a real converter (in this case DACs) >>>>> extending it's capabilities and also serving as an interface between another >>>>> block >>>>> (typical DMA as this is used for really high speed stuff) and the device. Now, >>>>> depending on the actual device, we may need to add/modify some features of the IP >>>>> and >>>>> this is what's happening for the ad3552r DAC (it's still build on top of the >>>> >>>> What is "ad3552"? DAC right? Then as I said axi-dac is redundant. We do >>>> not call ti,tmp451 a ti,sensor-tmp451, right? >>>> >>> >>> Yes, I agree the DAC part is redundant. But I think the axi prefix (or suffix) is >>> meaningful to differentiate it from the bindings for the device itself. >>> >> The binding is for this [1] IP core. The documentation calls the core >> "AXI AD3552R", so I agree that "adi,axi-ad2552r" is the most sensible >> compatible name. >> >> http://analogdevicesinc.github.io/hdl/library/axi_ad3552r/index.html > > I don't see any AXI here: > https://www.analog.com/en/products/ad3552r.html > Neither here: > https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf > > Are these different? Yes, they are different. AD2553R is the DAC chip itself. But "AXI AD2553R" is an FPGA IP block designed specifically for use with that chip.