Thread (11 messages) read the whole thread 11 messages, 6 authors, 2025-09-08

Re: [PATCH 1/6] dt-bindings: iio: xilinx: Add Documentation for Sysmon

From: David Lechner <dlechner@baylibre.com>
Date: 2025-09-05 20:44:22
Also in: linux-iio, lkml

On 9/5/25 9:21 AM, Erim, Salih wrote:

...
quoted
quoted
quoted
+
+      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.


quoted
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";
			};

			...
		};
	};
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help