From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (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 8266A4DA14; Wed, 3 Jul 2024 07:07:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719990448; cv=none; b=IGKbijCnzw8chZMq9cj7/yHT86P1RLmG26t7am/0l5jNvpTa27f8EKts7bwq5u+TnaJp18KXBTn01+Ofsuhw/X6CwTzdkS7hXSAEK4EkKwOZPtwKBzct5qvRXb+JUtDzINkZPBkIxNyWc+YxEY2IxORYEiY0t6cVVl+3pEA2FP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719990448; c=relaxed/simple; bh=q6WaU5swXT/s4hwLs9k+rXpFx+zCEPifl9xBeOoFdoE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=FdpsrGCI72BJ27K4pis8aiMhdERGEjxpQCUO2SCj04WiPqvU7H1D6WqXQsAy4J+rYJa4iR9C4s/eEECE1rBwcxkRpG8qbWsKHecurKDqRsWhhVE/3kBBJvIw1iopu+FNm2Zc2wJaLZRiNlzD2gleZjnYxhGsF32b9t26imm20P8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=7VyqvS9x; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="7VyqvS9x" Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4631MRxA013828; Wed, 3 Jul 2024 09:07:03 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= bEgx7nB8T2pqb3/KDfGtk/eDJ9IIHrnsYSSf09kvHwU=; b=7VyqvS9xkwb6+zFb qD9D14xjLBgVCuNd76qNw0stYiOdddwByABSAShLbYwzGCMqmgVpotYaInpQikuS Y0nuzLcY5xASxBdZQzhOI6K+intoenQmQqPS+nbh5A3grEWdm61VAP8qUzSO8zzj GhUhumPdyLCdi0nc+CEcS1PhjN7koaNAJBxdqXp9ztWgc2RsMbWs4wlWwwhjypAy KFX5xSQ2ZcAwNwNLi16ECrOeH+hLgUkrYifQAdDMu+8g/C3fu5MNZFrrjiCjlGTL waTOi5CqnsjbafaMTfFa2PUOc/HLG0fUL8c/N/BNiG1y37lNmdCVgrhK3PF3x+4a cMFaYA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 40295de98n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 03 Jul 2024 09:07:02 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 8DFE040048; Wed, 3 Jul 2024 09:06:56 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A2247212FB2; Wed, 3 Jul 2024 09:06:20 +0200 (CEST) Received: from [10.252.27.110] (10.252.27.110) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 3 Jul 2024 09:06:20 +0200 Message-ID: Date: Wed, 3 Jul 2024 09:06:19 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 5/8] dt-bindings: iio: add sigma delta modulator backend To: Conor Dooley CC: , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , References: <20240625150717.1038212-1-olivier.moysan@foss.st.com> <20240625150717.1038212-6-olivier.moysan@foss.st.com> <20240625-babied-skies-0722dbdfc524@spud> <20240627-identity-enviable-4fda0b3a09c0@spud> Content-Language: en-US From: Olivier MOYSAN In-Reply-To: <20240627-identity-enviable-4fda0b3a09c0@spud> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-03_03,2024-07-02_02,2024-05-17_01 Hi Conor, On 6/27/24 18:13, Conor Dooley wrote: > On Wed, Jun 26, 2024 at 06:40:58PM +0200, Olivier MOYSAN wrote: >> Hi Conor, >> >> On 6/25/24 17:34, Conor Dooley wrote: >>> On Tue, Jun 25, 2024 at 05:07:13PM +0200, Olivier Moysan wrote: >>>> Add documentation of device tree bindings to support >>>> sigma delta modulator backend in IIO framework. >>>> >>>> Signed-off-by: Olivier Moysan >>> >>> I don't review bindings for a job, I can only reliably get to look at >>> my mail queue in the evenings, please give me a chance to reply to you >>> before you submit a new version. >>> >> >> Sorry, the short review delay. >> >>>> +$id: http://devicetree.org/schemas/iio/adc/sd-modulator-backend.yaml# >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> + >>>> +title: Sigma delta modulator backend >>> >>> Same comments about filename and title apply here as the previous >>> version. "TI $foo Sigma Delta Modulator" and drop the reference to back >>> ends or the pretence of being generic. >>> >> >> The logic here is the same as for the former sigma delta modulator driver. >> (see discussion [1]) >> I mean introducing a generic and minimalist driver to support sd modulators, >> but not dedicated to a specific modulator. The ads1201 is chosen as a basic >> modulator here. But it is rather an arbitrary choice. >> >> I agree "backend" reference is not really relevant here. I have to think >> about a way to manage the coexistence of this sigma delta modulator driver >> with its former version. > > To be blunt, I don't care about drivers! Well I do, but not in this > particular context. You can absolutely have a driver that supports > multiple backends or sigma delta modulators, but right now we are > talking about a binding and this binding supports exactly one sigma > delta modulator - and with an explicit compatible. In that context, > presenting the binding as generic makes little sense. > >> [1] https://lore.kernel.org/all/6943aaf5-b580-0fd1-7a2e-b99f7a266388@st.com/ > > Looking at this though, I question the binding more... The programming > model of the device is identical as a backend or otherwise, so it > shouldn't be getting a new compatible. Isn't this actually as simple as > adding #io-backend-cells to the existing binding and using that to > determine whether the device is being used as a backend or in isolation? > For sure. I came to the same conclusion. My first idea was to isolate the deprecated binding. But I agree that the best approach is to adapt the existing binding. I prepared a v3 like this. BRs Olivier > Thanks, > Conor.