From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 65F4E35BDC4 for ; Fri, 9 Jan 2026 14:08:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767967692; cv=none; b=Mb/jGSEFGykbbm1t+q8179BEJMwF+fsaDKwXPtj2/b0w7XvdfS8XWtAQM/dtcFtW1NNkvIhYYL+Fw5U6V4HKY7arFWlNZRVm5BZ1QMgKx1KXGGzLJd7Cp+iNQwZU8bA7FPM2FRAuIchIS58GJQ2Iq0eg89d27rIKzv5Kyt35CXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767967692; c=relaxed/simple; bh=qM4OzjmvdOSaKgv3mmsNcBVzz2Wq5zOBOAGMLzUa3hM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aY0D1Lgt1r0N6OyJuGx5DW7Uk7cj1n7mui1ViOM+IavejNMSySdIEcYmBOVEPbE6XMU6JQYlZGDOF/AqLFdjRQXBIAtHgCI1iKWq0RF4wCLnIAjskK0fSYoRK8clewq7nEsNgIxdyDzeJAS+PvnrWpiny9hvNkGBtyyxb9Ip7ic= 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=PK90metz; arc=none smtp.client-ip=209.85.128.44 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="PK90metz" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4775ae77516so47418735e9.1 for ; Fri, 09 Jan 2026 06:08:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767967690; x=1768572490; 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=qMdtktVPYLQdp20i3sGMyB8hcMRTbHonc8uUiEXE1Ps=; b=PK90metzIaFqXFBmFQU0RDVGAm1K5o04smnpr8ikxSAk/7pqrpN8vkkgW3TGwwoXNl yA6HUx1vH7huw1uRsRHqnl6rhWskI4r9jVCX0masj6ie1Yob7oilHIz0M0py9X3Eyrv5 35E6HjO5bde1YjVU7ZUlfLaNIj2cKKmUXFydSFmGA1Hs+D8+Wsg6cGGmDOa96tDZ4hoM DmxEqCy4ovrATJuE9pTvOdD9bepTrgUXQ8sss/HO+NRl1vVMy5IETC3RJ3ziaUg/xn/S 5o7tyR1dz2oU78FnyoN0uwUIpmnmlM0LeLW4HsYEXVPEnwgGOZC2H85F0HYIZ/5U+d8R 5D5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767967690; x=1768572490; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qMdtktVPYLQdp20i3sGMyB8hcMRTbHonc8uUiEXE1Ps=; b=R3Wp19QZ7K4QnGTGZffKvSDp/+68z78EJH+1D4a8hz75gpyv3C2U+aTP8e+7ctIIUi YkQQivMZP+GVjBqzYxfjmyIfEWts1fJ436f++gBQws6zybJstjtitBAz5d75KY5OX6qj yJIqZ/BVsJdHBimqiumjyg4HV0LP7+IWjuO+nFOa74SZnMlhEZVv9r5RpI78Af9LUzoZ ONVIhS/ShcWZHM9KnfmPtdBhsd5tMqLH6z3VB/CBjOXQglLtPBJMq7LVpgIDLkthd615 5vXtg+83DoEwaDshTEHiWuq65FFsQTp1AsqVfVHFDgAjhBunoYY6iDpxh7gVa6RBWf/7 lyFg== X-Forwarded-Encrypted: i=1; AJvYcCX1fbtw2KjC/+24dCjPiUL8yvPPV48tWBepp9u+0m594jRFT4mYHs8lFyTK67IxlRZvjlxcl8xKuEdNMcg=@vger.kernel.org X-Gm-Message-State: AOJu0YxdWMi1W/urT7nP0MaJ8KT/L0/Egn1TEIYFRC/CGyZeCH8zm1lz RJ1l4wKMHMa7lXlzv1YZXik2sqgE/6fGiNXAIADvBKqVYhaacPzTi0NS X-Gm-Gg: AY/fxX5fPf9rb+OHH4qNKaYP3A//8T3nwYxfuSfIZEWO1t2uAqdvIQWZjBcDkxh0xgn vABJWK6rvYSoik87s+faaBC1ezIHR4n/2mgZUwVeLVhpK71nScb1k6Bogu5Elqli5ZD3AngvXNL j2Tm12xJp2r83FQCoyF03PmW33QzY/Sn+ucTKbWYyOgxhPj3CCgMohMFthAoPbQweZDUBmPykBh dEWUoiQwvQxra02nZgWlcjap+yHx84WorDvZWBUb363PcJi/abNi7VFNTDBPtFrJBzbLOtqrvjT KwL0hA5kCGflB8ER84xp08Cw4jJt2ZqiVH9TWQFWdNOzi7rBiEPgK6+KhlfUTIHdabcyOv1dh3e C+CSAZ0Y+SXL6i96dAVYlVcWxA8+l9/VxYZOuOtiVJwuPOAc/aLp2mqy4l5E4BkWkLO4C21WcA5 XpxmxUnnL+rUBphpE= X-Google-Smtp-Source: AGHT+IEW1P2FdJb52OHGZMAf1KlZ/qNCYOV/Vkk/nXNZ0uETDqC9KRFPngmTvu01WHkiH0xdVBiioA== X-Received: by 2002:a05:600c:83c9:b0:45d:5c71:769a with SMTP id 5b1f17b1804b1-47d84b3b650mr111945045e9.26.1767967689454; Fri, 09 Jan 2026 06:08:09 -0800 (PST) Received: from [172.24.138.145] ([137.71.226.102]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d7f653c61sm212023925e9.10.2026.01.09.06.08.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jan 2026 06:08:09 -0800 (PST) Message-ID: Date: Fri, 9 Jan 2026 15:08:06 +0100 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 v2 1/2] dt-bindings: iio: dac: Add max22007 To: Marcelo Schmitt , Janani Sunil Cc: Lars-Peter Clausen , Michael Hennerich , Alexandru Ardelean , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, jan.sun97@gmail.com References: <20260108-max22007-dev-v2-0-2506c738784f@analog.com> <20260108-max22007-dev-v2-1-2506c738784f@analog.com> Content-Language: en-US From: Janani Sunil In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Marcelo, Thank you for the suggestion. However, reusing the output-range-microamp and output-range-microvolt properties might mislead the users into thinking that they can configure the DAC output range, which the device does not support. The adi,ch-func fits better here. On 1/9/26 13:44, Marcelo Schmitt wrote: > Hi Janani, > > One extra comment in addition to Krzysztof's. > > On 01/08, Janani Sunil wrote: >> Devicetree bindings for MAX22007 4-channel 12-bit DAC that drives a >> voltage or current output on each channel >> >> Signed-off-by: Janani Sunil >> --- > ... >> + >> +patternProperties: >> + "^channel@[0-3]$": >> + $ref: /schemas/iio/dac/dac.yaml# >> + type: object >> + description: >> + Represents the external channels which are connected to the DAC. >> + >> + properties: >> + reg: >> + description: Channel number >> + items: >> + minimum: 0 >> + maximum: 3 >> + >> + adi,ch-func: >> + description: >> + Channel output type. Use CH_FUNC_VOLTAGE_OUTPUT for voltage >> + output or CH_FUNC_CURRENT_OUTPUT for current output. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + enum: [1, 2] > adi,ad74413r.yaml has many possibilities for the channel output type. > max22007 is only either voltage or current. > Can't we do this with output-range-microamp and output-range-microvolt from dac.yaml? > Figure out the channel type from the output-range- property? > >> + >> + required: >> + - reg >> + - adi,ch-func >> + >> + unevaluatedProperties: false > With best regards, > Marcelo Best Regards, Janani Sunil