From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com [209.85.161.50]) (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 93448246799 for ; Fri, 5 Sep 2025 20:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757105064; cv=none; b=E/Wuy1JS72WefyY9nJ5cfyHPwjAq0ZpInT6+pVlb8qaCAJMdiKJEpngXr9UnGNUN0NYwqeA9te0DPAeUOxotU5G0ChXzZD6pRj86E/5WRk0A0BSq6Ar7bNHY6Glnfy9WoQW2TmPNQEZTysJQjZauzexbvrDZIPDlQ6YDinfaCMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757105064; c=relaxed/simple; bh=ApOwx+C4GPW1w+fc4btEB0bVzkSsM5ryEFh3uzDHGmc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Gx4DV4UteUuHYL7A/Y4w0K5GRMkb2Y6BULNl8GHJ3mSR4egkBRod1XJyQ0K2teB99i2DL++qTur3lxOy0d9PxH0ql0jDygUmXM+mCMelb3jM4VNlbrtePm46XFL006rzyvy/heQsVl8vIbD2obGHgGT7FaY1kqNvOLLubLjHTK0= 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=TwH2Sa3f; arc=none smtp.client-ip=209.85.161.50 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="TwH2Sa3f" Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-61ff35a56d3so1066689eaf.3 for ; Fri, 05 Sep 2025 13:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1757105062; x=1757709862; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=W2y7uXdo2cD2jmFDUwngNqvN1kUm23yCeo5iGVu6II8=; b=TwH2Sa3fTh3W1jLclmYqc4Ns/bi+LL5oIf9HxOw67BbzCk2UIktflKEWXIPmgQm+Va Q8MyVfhHJ/96xLjh2ERfA6tjzwib/OTvM07s7MSeHiC4Ja1jNy9ycAtE96g3D/dWnny8 WnGel9SrShx+k74bOIjpyVKGf0Hhqz+tJsvLWpIoRClZJb7J7fNu6+VMxlU+HvO07ySL +D/nz60C2yns13qAxHXAp8t8faVGOx5X2gla7x9CIvcxix6CowzOBJr83QPbuyHY6hGM 7GCSIWA2dxe3EKN1johzpKLicb0KUoou5NaJk6uCPN/3KX1tRjnBHxShelbI772hWNTV ghYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757105062; x=1757709862; h=content-transfer-encoding:in-reply-to:content-language:from :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=W2y7uXdo2cD2jmFDUwngNqvN1kUm23yCeo5iGVu6II8=; b=HEiSE+5jVhFKBgvP5EO4DbrX6VTEvBDRe2qCgYshtANbzHNdKxOnDIcOyocCuOF8Q6 RpsuwZhOu01Sr1GZeBv91pt72PIMK6temrG96Il2F0hf8+dtKkbhfIHeuzmQt859/MDu 1KUzUszWbD8lerG+g6hlMtL6vnLTmB8mcnzLwdwlcInibj0yKeWw8xh+jhJ2toAeHHPY XTBPOEvJI8BcxKwkve8pdDOrHEGBYrCClMvBkgh17Nt8ycwEZlcHN6CVwC55fP/vDtHH y4uaUMyqCkZh7L+9Io/UlhJPqhSBQipocRQ9kHMry53B1Gh8gOJafx76ZDrwam7T3n5o Te7g== X-Gm-Message-State: AOJu0YzsyzN8UhIhlQu/lHTs23z2HdcVjnJk+2npRvRLvRwd7NIhRibK U9L7jdbhlUUHhsqf2034vjXe+vCDiGGmnqgc1y9Zvix5DiEHpsmzWBT2diywCmL7JmI= X-Gm-Gg: ASbGnctgqAEVsIcssKl5w+tNHlIKni4yLLOHayWd+Y7AbrQQeR6EDVjM62GftyuHqIf CdxsT3YpsG+YpvtX9yLfLurA9pkHDjFNPLilFaZF1C5KGPMhYtI4UL0shp0F3wQiyxNxhkRbUUE jlv8w7E/jFmR79zuFmq6buGJ7QJEZeKeg/GtIM/oEEzWZoCBbFQG9+VxsDyeF1pPrBIhUc70ZYX BhESrb2+3EciTNuTwzdIOVQNZD7AAMR81ZFXe2IgXBmL6No8T7qG3ANr6YsiLP45JBKerFJaxva VnJJJzddw61eOh98e5gJR68TzdIoIMlH9XL3J8Kb8DXQwV3fCcUiXPoXL3sye/CeMguX5lGPKgA xNUuCu57U8ZRmUEoGzrmEYucPhJrjBq5Ak+2DCsPK40pXH2/7l+HbO7CVoB4Za89zONgIq/Hp X-Google-Smtp-Source: AGHT+IGY0jJKZuzg5cBn6OWbG6R201uLBsrUBGqGjWJDq5fPatZkBW3CCePUn7xOulrpnVL4dKdqdw== X-Received: by 2002:a05:6871:29d:b0:29d:c764:f873 with SMTP id 586e51a60fabf-32264c1b8ccmr8882fac.31.1757105061686; Fri, 05 Sep 2025 13:44:21 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:1d00:52e:cda3:16cc:72bb? ([2600:8803:e7e4:1d00:52e:cda3:16cc:72bb]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-319b6062719sm4050901fac.23.2025.09.05.13.44.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Sep 2025 13:44:21 -0700 (PDT) Message-ID: Date: Fri, 5 Sep 2025 15:44:20 -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 1/6] dt-bindings: iio: xilinx: Add Documentation for Sysmon To: "Erim, Salih" , "Simek, Michal" , Jonathan Cameron Cc: "linux-kernel@vger.kernel.org" , "monstr@monstr.eu" , "michal.simek@xilinx.com" , "git@xilinx.com" , Anand Ashok Dumbre , "Kadamathikuttiyil Karthikeyan Pillai, Anish" , Andy Shevchenko , Conor Dooley , Jonathan Cameron , Krzysztof Kozlowski , =?UTF-8?Q?Nuno_S=C3=A1?= , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:IIO SUBSYSTEM AND DRIVERS" References: <610690b9cc4ab3854b56df550b688b4cc72a5653.1757061697.git.michal.simek@amd.com> <20250905123006.000031a9@huawei.com> <5f21169b-39b8-4fcd-b7d7-e5bcb1885549@amd.com> From: David Lechner Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/5/25 9:21 AM, Erim, Salih wrote: ... >>> >>>> + >>>> + xlnx,bipolar: >>>> + $ref: /schemas/types.yaml#/definitions/flag >>>> + description: >>>> + If the supply has a bipolar type and the output will be signed. >>> >>> This is very generic. We have it described for ADC channels already >>> in bindings/iio/adc/adc.yaml. Why can't we use that here? >> >> no issue with it. >> And likely >> Documentation/devicetree/bindings/iio/adc/xlnx,zynqmp-ams.yaml >> should deprecated it and start to use new one. >> >> >> >>> That binding does rely on matching against 'channel' for node names though. >>> Where a 'type of channel' has been relevant IIRC we've always added a >>> separate property rather than using the child node name. >> >> Is this related to supply/temp channel name? >> >> I think one issue with the binding is that current schema allows to define >> supply@1 and also temp@1 >> but both of them have reg = <1> which is not allowed (duplicate unit-address). >> >> Salih: What does this reg value means? Is it physical address where that sensor is >> placed? > > Reg is offset index to offset base of the memory addresses for each. Supplies and temp values > are located in different offsets. > Sounds like the .dts should looks like: adc@f1270000 { compatible = "xlnx,versal-sysmon"; reg = <0xf1270000 0x4000>; ... supply-channels { #size-cells = <0>; #address-cells = <1>; channel@0 { reg = <0>; label = "vccint"; }; ... }; temperature-channels { #size-cells = <0>; #address-cells = <1>; channel@0 { reg = <0>; label = "aie-temp-ch0"; }; ... }; };