[PATCH 1/3] dt-bindings: iio: adc: Add Xilinx AMS binding documentation
From: Manish Narani <hidden>
Date: 2018-09-06 13:42:44
Also in:
linux-devicetree, linux-iio, lkml
Hi Rob, Thanks for the review. Please see my comments inline.
From: Rob Herring [mailto:robh at kernel.org] Sent: Tuesday, September 4, 2018 6:48 AM To: Manish Narani <redacted> On Thu, Aug 30, 2018 at 03:52:17PM +0530, Manish Narani wrote:quoted
Xilinx AMS have several ADC channels that can be used for measurement of different voltages and temperatures. Document the same in the bindings. Signed-off-by: Manish Narani <redacted> --- .../devicetree/bindings/iio/adc/xilinx-ams.txt | 159+++++++++++++++++++++quoted
1 file changed, 159 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/xilinx-ams.txtdiff --git a/Documentation/devicetree/bindings/iio/adc/xilinx-ams.txtb/Documentation/devicetree/bindings/iio/adc/xilinx-ams.txt new file mode 100644 index 0000000..8cc96f0--- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/xilinx-ams.txt +AMS device tree subnode: + - compatible: Should be "xlnx,zynqmp-ams-ps" or "xlnx,zynqmp-ams-pl" + - reg: Register space for PS or PLPlease split each child node into its own section.
Okay. I will update this in v2.
quoted
+ +Optional properties: + +Following optional property only valid for PL.property or...
It should be node. I will update this in v2.
quoted
+ - xlnx,ext-channels: List of external channels that are connected to the + AMS PL module. + + The child nodes of this node represent the external channels which +arenode?quoted
+ connected to the AMS Module. If the property is not present + no external channels will be assumed to be connected. + + Each child node represents one channel and has the following + properties: + Required properties: + * reg: Pair of pins the channel is connected to. + 0: VP/VN + 1: VUSER0 + 2: VUSER1 + 3: VUSER3 + 4: VUSER4 + 5: VAUXP[0]/VAUXN[0] + 6: VAUXP[1]/VAUXN[1] + ... + 20: VAUXP[15]/VAUXN[15] + Note each channel number should only be used atmostquoted
+ once. + Optional properties: + * xlnx,bipolar: If set the channel is used in bipolar + mode. + + +Example: + xilinx_ams: ams at ffa50000 { + compatible = "xlnx,zynqmp-ams"; + interrupt-parent = <&gic>; + interrupts = <0 56 4>; + interrupt-names = "ams-irq"; + clocks = <&clkc 70>; + reg = <0x0 0xffa50000 0x0 0x800>; + reg-names = "ams-base"; + #address-cells = <2>; + #size-cells = <2>; + ranges;There's no need for 64-bits of addresses and sizes here. Use ranges.
Okay.
quoted
+ + ams_ps: ams_ps at ffa50800 { + compatible = "xlnx,zynqmp-ams-ps"; + reg = <0x0 0xffa50800 0x0 0x400>; + }; + + ams_pl: ams_pl at ffa50c00 { + compatible = "xlnx,zynqmp-ams-pl"; + reg = <0x0 0xffa50c00 0x0 0x400>; + xlnx,ext-channels { + #address-cells = <1>; + #size-cells = <0>; + channel at 0 { + reg = <0>; + xlnx,bipolar; + }; + channel at 1 { + reg = <1>; + }; + channel at 8 { + reg = <8>; + xlnx,bipolar; + }; + }; + }; + }; + +AMS Channels Details: + +Sysmon Block |Channel| Details|Measurementquoted
+ NumberTypequoted
+---------------------------------------------------------------------------------------------------------quoted
+AMS CTRL |0 |System PLLs voltage measurement, VCC_PSPLL.|Voltagequoted
+ |1 |Battery voltage measurement, VCC_PSBATT.|Voltagequoted
+ |2 |PL Internal voltage measurement, VCCINT.|Voltagequoted
+ |3 |Block RAM voltage measurement, VCCBRAM.|Voltagequoted
+ |4 |PL Aux voltage measurement, VCCAUX.|Voltagequoted
+ |5 |Voltage measurement for six DDR I/O PLLs,VCC_PSDDR_PLL. |Voltagequoted
+ |6 |VCC_PSINTFP_DDR voltage measurement.|Voltagequoted
+---------------------------------------------------------------------------------------------------------quoted
+PS Sysmon |7 |LPD temperature measurement.|Temperaturequoted
+ |8 |FPD Temperature Measurment (REMOTE).|Temperaturequoted
+ |9 |VCC PS LPD voltage measurement (supply1).|Voltagequoted
+ |10 |VCC PS FPD voltage measurement (supply2).|Voltagequoted
+ |11 |PS Aux voltage reference (supply3).|Voltagequoted
+ |12 |DDR I/O VCC voltage measurement.|Voltagequoted
+ |13 |PS IO Bank 503 voltage measurement (supply5).|Voltagequoted
+ |14 |PS IO Bank 500 voltage measurement (supply6).|Voltagequoted
+ |15 |VCCO_PSIO1 voltage measurement.|Voltagequoted
+ |16 |VCCO_PSIO2 voltage measurement.|Voltagequoted
+ |17 |VCC_PS_GTR voltage measurement(VPS_MGTRAVCC). |Voltagequoted
+ |18 |VTT_PS_GTR voltage measurement(VPS_MGTRAVTT). |Voltagequoted
+ |19 |VCC_PSADC voltage measurement.|Voltagequoted
+---------------------------------------------------------------------------------------------------------quoted
+PL Sysmon |20 |PL Temperature measurement.|Temperaturequoted
+ |21 |PL Internal Voltage Voltage measurement, VCCINT.|Voltagequoted
+ |22 |PL Auxiliary Voltage measurement, VCCAUX.|Voltagequoted
+ |23 |ADC Reference P+ Voltage measurement.|Voltagequoted
+ |24 |ADC Reference N- Voltage measurement.|Voltagequoted
+ |25 |PL Block RAM Voltage measurement, VCCBRAM.|Voltagequoted
+ |26 |LPD Internal Voltage measurement, VCC_PSINTLP(supply4). |Voltagequoted
+ |27 |FPD Internal Voltage measurement, VCC_PSINTFP(supply5). |Voltagequoted
+ |28 |PS Auxiliary Voltage measurement (supply6).|Voltagequoted
+ |29 |PL VCCADC Voltage measurement (vccams).|Voltagequoted
+ |30 |Differencial analog input signal Voltage measurment.|Voltagequoted
+ |31 |VUser0 Voltage measurement (supply7).|Voltagequoted
+ |32 |VUser1 Voltage measurement (supply8).|Voltagequoted
+ |33 |VUser2 Voltage measurement (supply9).|Voltagequoted
+ |34 |VUser3 Voltage measurement (supply10).|Voltagequoted
+ |35 |Auxiliary ch 0 Voltage measurement (VAux0).|Voltagequoted
+ |36 |Auxiliary ch 1 Voltage measurement (VAux1).|Voltagequoted
+ |37 |Auxiliary ch 2 Voltage measurement (VAux2).|Voltagequoted
+ |38 |Auxiliary ch 3 Voltage measurement (VAux3).|Voltagequoted
+ |39 |Auxiliary ch 4 Voltage measurement (VAux4).|Voltagequoted
+ |40 |Auxiliary ch 5 Voltage measurement (VAux5).|Voltagequoted
+ |41 |Auxiliary ch 6 Voltage measurement (VAux6).|Voltagequoted
+ |42 |Auxiliary ch 7 Voltage measurement (VAux7).|Voltagequoted
+ |43 |Auxiliary ch 8 Voltage measurement (VAux8).|Voltagequoted
+ |44 |Auxiliary ch 9 Voltage measurement (VAux9).|Voltagequoted
+ |45 |Auxiliary ch 10 Voltage measurement (VAux10).|Voltagequoted
+ |46 |Auxiliary ch 11 Voltage measurement (VAux11).|Voltagequoted
+ |47 |Auxiliary ch 12 Voltage measurement (VAux12).|Voltagequoted
+ |48 |Auxiliary ch 13 Voltage measurement (VAux13).|Voltagequoted
+ |49 |Auxiliary ch 14 Voltage measurement (VAux14).|Voltagequoted
+ |50 |Auxiliary ch 15 Voltage measurement (VAux15).|Voltagequoted
+--------------------------------------------------------------------- +------------------------------------ -- 2.1.1
Thanks, Manish Narani