Commit a0947666 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'char-misc-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc

Pull char/misc and other driver updates from Greg KH:
 "Here is the large set of char/misc and other small driver subsystem
  changes for 6.1-rc1. Loads of different things in here:

   - IIO driver updates, additions, and changes. Probably the largest
     part of the diffstat

   - habanalabs driver update with support for new hardware and
     features, the second largest part of the diff.

   - fpga subsystem driver updates and additions

   - mhi subsystem updates

   - Coresight driver updates

   - gnss subsystem updates

   - extcon driver updates

   - icc subsystem updates

   - fsi subsystem updates

   - nvmem subsystem and driver updates

   - misc driver updates

   - speakup driver additions for new features

   - lots of tiny driver updates and cleanups

  All of these have been in the linux-next tree for a while with no
  reported issues"

* tag 'char-misc-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (411 commits)
  w1: Split memcpy() of struct cn_msg flexible array
  spmi: pmic-arb: increase SPMI transaction timeout delay
  spmi: pmic-arb: block access for invalid PMIC arbiter v5 SPMI writes
  spmi: pmic-arb: correct duplicate APID to PPID mapping logic
  spmi: pmic-arb: add support to dispatch interrupt based on IRQ status
  spmi: pmic-arb: check apid against limits before calling irq handler
  spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq
  spmi: pmic-arb: handle spurious interrupt
  spmi: pmic-arb: add a print in cleanup_irq
  drivers: spmi: Directly use ida_alloc()/free()
  MAINTAINERS: add TI ECAP driver info
  counter: ti-ecap-capture: capture driver support for ECAP
  Documentation: ABI: sysfs-bus-counter: add frequency & num_overflows items
  dt-bindings: counter: add ti,am62-ecap-capture.yaml
  counter: Introduce the COUNTER_COMP_ARRAY component type
  counter: Consolidate Counter extension sysfs attribute creation
  counter: Introduce the Count capture component
  counter: 104-quad-8: Add Signal polarity component
  counter: Introduce the Signal polarity component
  counter: interrupt-cnt: Implement watch_validate callback
  ...
parents e8bc52cb 7cd04013
...@@ -516,3 +516,11 @@ Contact: Mathieu Poirier <mathieu.poirier@linaro.org> ...@@ -516,3 +516,11 @@ Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (Read) Returns the number of special conditional P1 right-hand keys Description: (Read) Returns the number of special conditional P1 right-hand keys
that the trace unit can use (0x194). The value is taken that the trace unit can use (0x194). The value is taken
directly from the HW. directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/ts_source
Date: October 2022
KernelVersion: 6.1
Contact: Mathieu Poirier <mathieu.poirier@linaro.org> or Suzuki K Poulose <suzuki.poulose@arm.com>
Description: (Read) When FEAT_TRF is implemented, value of TRFCR_ELx.TS used for
trace session. Otherwise -1 indicates an unknown time source. Check
trcidr0.tssize to see if a global timestamp is available.
...@@ -4,6 +4,12 @@ Contact: linux-iio@vger.kernel.org ...@@ -4,6 +4,12 @@ Contact: linux-iio@vger.kernel.org
Description: Description:
Count data of Count Y represented as a string. Count data of Count Y represented as a string.
What: /sys/bus/counter/devices/counterX/countY/capture
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Historical capture of the Count Y count data.
What: /sys/bus/counter/devices/counterX/countY/ceiling What: /sys/bus/counter/devices/counterX/countY/ceiling
KernelVersion: 5.2 KernelVersion: 5.2
Contact: linux-iio@vger.kernel.org Contact: linux-iio@vger.kernel.org
...@@ -203,6 +209,13 @@ Description: ...@@ -203,6 +209,13 @@ Description:
both edges: both edges:
Any state transition. Any state transition.
What: /sys/bus/counter/devices/counterX/countY/num_overflows
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
This attribute indicates the number of overflows of count Y.
What: /sys/bus/counter/devices/counterX/countY/capture_component_id
What: /sys/bus/counter/devices/counterX/countY/ceiling_component_id What: /sys/bus/counter/devices/counterX/countY/ceiling_component_id
What: /sys/bus/counter/devices/counterX/countY/floor_component_id What: /sys/bus/counter/devices/counterX/countY/floor_component_id
What: /sys/bus/counter/devices/counterX/countY/count_mode_component_id What: /sys/bus/counter/devices/counterX/countY/count_mode_component_id
...@@ -213,11 +226,14 @@ What: /sys/bus/counter/devices/counterX/countY/prescaler_component_id ...@@ -213,11 +226,14 @@ What: /sys/bus/counter/devices/counterX/countY/prescaler_component_id
What: /sys/bus/counter/devices/counterX/countY/preset_component_id What: /sys/bus/counter/devices/counterX/countY/preset_component_id
What: /sys/bus/counter/devices/counterX/countY/preset_enable_component_id What: /sys/bus/counter/devices/counterX/countY/preset_enable_component_id
What: /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id What: /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id
What: /sys/bus/counter/devices/counterX/countY/num_overflows_component_id
What: /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id What: /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id
What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id
What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id
What: /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id What: /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id
What: /sys/bus/counter/devices/counterX/signalY/polarity_component_id
What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id
What: /sys/bus/counter/devices/counterX/signalY/frequency_component_id
KernelVersion: 5.16 KernelVersion: 5.16
Contact: linux-iio@vger.kernel.org Contact: linux-iio@vger.kernel.org
Description: Description:
...@@ -303,6 +319,19 @@ Description: ...@@ -303,6 +319,19 @@ Description:
Discrete set of available values for the respective Signal Y Discrete set of available values for the respective Signal Y
configuration are listed in this file. configuration are listed in this file.
What: /sys/bus/counter/devices/counterX/signalY/polarity
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Active level of Signal Y. The following polarity values are
available:
positive:
Signal high state considered active level (rising edge).
negative:
Signal low state considered active level (falling edge).
What: /sys/bus/counter/devices/counterX/signalY/name What: /sys/bus/counter/devices/counterX/signalY/name
KernelVersion: 5.2 KernelVersion: 5.2
Contact: linux-iio@vger.kernel.org Contact: linux-iio@vger.kernel.org
...@@ -345,3 +374,9 @@ Description: ...@@ -345,3 +374,9 @@ Description:
via index_polarity. The index function (as enabled via via index_polarity. The index function (as enabled via
preset_enable) is performed synchronously with the preset_enable) is performed synchronously with the
quadrature clock on the active level of the index input. quadrature clock on the active level of the index input.
What: /sys/bus/counter/devices/counterX/signalY/frequency
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Read-only attribute that indicates the signal Y frequency, in Hz.
...@@ -196,7 +196,7 @@ Description: ...@@ -196,7 +196,7 @@ Description:
Raw capacitance measurement from channel Y. Units after Raw capacitance measurement from channel Y. Units after
application of scale and offset are nanofarads. application of scale and offset are nanofarads.
What: /sys/.../iio:deviceX/in_capacitanceY-in_capacitanceZ_raw What: /sys/.../iio:deviceX/in_capacitanceY-capacitanceZ_raw
KernelVersion: 3.2 KernelVersion: 3.2
Contact: linux-iio@vger.kernel.org Contact: linux-iio@vger.kernel.org
Description: Description:
...@@ -207,6 +207,25 @@ Description: ...@@ -207,6 +207,25 @@ Description:
is required is a consistent labeling. Units after application is required is a consistent labeling. Units after application
of scale and offset are nanofarads. of scale and offset are nanofarads.
What: /sys/.../iio:deviceX/in_capacitanceY-capacitanceZ_zeropoint
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
For differential channels, this an offset that is applied
equally to both inputs. As the reading is of the difference
between the two inputs, this should not be applied to the _raw
reading by userspace (unlike _offset) and unlike calibbias
it does not affect the differential value measured because
the effect of _zeropoint cancels out across the two inputs
that make up the differential pair. It's purpose is to bring
the individual signals, before the differential is measured,
within the measurement range of the device. The naming is
chosen because if the separate inputs that make the
differential pair are drawn on a graph in their
_raw units, this is the value that the zero point on the
measurement axis represents. It is expressed with the
same scaling as _raw.
What: /sys/bus/iio/devices/iio:deviceX/in_temp_raw What: /sys/bus/iio/devices/iio:deviceX/in_temp_raw
What: /sys/bus/iio/devices/iio:deviceX/in_tempX_raw What: /sys/bus/iio/devices/iio:deviceX/in_tempX_raw
What: /sys/bus/iio/devices/iio:deviceX/in_temp_x_raw What: /sys/bus/iio/devices/iio:deviceX/in_temp_x_raw
...@@ -241,6 +260,15 @@ Description: ...@@ -241,6 +260,15 @@ Description:
Has all of the equivalent parameters as per voltageY. Units Has all of the equivalent parameters as per voltageY. Units
after application of scale and offset are m/s^2. after application of scale and offset are m/s^2.
What: /sys/bus/iio/devices/iio:deviceX/in_accel_linear_x_raw
What: /sys/bus/iio/devices/iio:deviceX/in_accel_linear_y_raw
What: /sys/bus/iio/devices/iio:deviceX/in_accel_linear_z_raw
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
As per in_accel_X_raw attributes, but minus the
acceleration due to gravity.
What: /sys/bus/iio/devices/iio:deviceX/in_gravity_x_raw What: /sys/bus/iio/devices/iio:deviceX/in_gravity_x_raw
What: /sys/bus/iio/devices/iio:deviceX/in_gravity_y_raw What: /sys/bus/iio/devices/iio:deviceX/in_gravity_y_raw
What: /sys/bus/iio/devices/iio:deviceX/in_gravity_z_raw What: /sys/bus/iio/devices/iio:deviceX/in_gravity_z_raw
...@@ -2038,3 +2066,99 @@ Description: ...@@ -2038,3 +2066,99 @@ Description:
Available range for the forced calibration value, expressed as: Available range for the forced calibration value, expressed as:
- a range specified as "[min step max]" - a range specified as "[min step max]"
What: /sys/bus/iio/devices/iio:deviceX/in_voltageX_sampling_frequency
What: /sys/bus/iio/devices/iio:deviceX/in_powerY_sampling_frequency
What: /sys/bus/iio/devices/iio:deviceX/in_currentZ_sampling_frequency
KernelVersion: 5.20
Contact: linux-iio@vger.kernel.org
Description:
Some devices have separate controls of sampling frequency for
individual channels. If multiple channels are enabled in a scan,
then the sampling_frequency of the scan may be computed from the
per channel sampling frequencies.
What: /sys/.../events/in_accel_gesture_singletap_en
What: /sys/.../events/in_accel_gesture_doubletap_en
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Device generates an event on a single or double tap.
What: /sys/.../events/in_accel_gesture_singletap_value
What: /sys/.../events/in_accel_gesture_doubletap_value
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Specifies the threshold value that the device is comparing
against to generate the tap gesture event. The lower
threshold value increases the sensitivity of tap detection.
Units and the exact meaning of value are device-specific.
What: /sys/.../events/in_accel_gesture_tap_value_available
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Lists all available threshold values which can be used to
modify the sensitivity of the tap detection.
What: /sys/.../events/in_accel_gesture_singletap_reset_timeout
What: /sys/.../events/in_accel_gesture_doubletap_reset_timeout
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Specifies the timeout value in seconds for the tap detector
to not to look for another tap event after the event as
occurred. Basically the minimum quiet time between the two
single-tap's or two double-tap's.
What: /sys/.../events/in_accel_gesture_tap_reset_timeout_available
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Lists all available tap reset timeout values. Units in seconds.
What: /sys/.../events/in_accel_gesture_doubletap_tap2_min_delay
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Specifies the minimum quiet time in seconds between the two
taps of a double tap.
What: /sys/.../events/in_accel_gesture_doubletap_tap2_min_delay_available
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Lists all available delay values between two taps in the double
tap. Units in seconds.
What: /sys/.../events/in_accel_gesture_tap_maxtomin_time
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Specifies the maximum time difference allowed between upper
and lower peak of tap to consider it as the valid tap event.
Units in seconds.
What: /sys/.../events/in_accel_gesture_tap_maxtomin_time_available
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Lists all available time values between upper peak to lower
peak. Units in seconds.
What: /sys/bus/iio/devices/iio:deviceX/in_rot_yaw_raw
What: /sys/bus/iio/devices/iio:deviceX/in_rot_pitch_raw
What: /sys/bus/iio/devices/iio:deviceX/in_rot_roll_raw
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Raw (unscaled) euler angles readings. Units after
application of scale are deg.
What: /sys/bus/iio/devices/iio:deviceX/serialnumber
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
An example format is 16-bytes, 2-digits-per-byte, HEX-string
representing the sensor unique ID number.
What: /sys/bus/iio/devices/iio:deviceX/in_accel_raw_range
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Raw (unscaled) range for acceleration readings. Unit after
application of scale is m/s^2. Note that this doesn't affects
the scale (which should be used when changing the maximum and
minimum readable value affects also the reading scaling factor).
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_raw_range
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Range for angular velocity readings in radians per second. Note
that this does not affects the scale (which should be used when
changing the maximum and minimum readable value affects also the
reading scaling factor).
What: /sys/bus/iio/devices/iio:deviceX/in_accel_raw_range_available
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
List of allowed values for in_accel_raw_range attribute
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_raw_range_available
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
List of allowed values for in_anglvel_raw_range attribute
What: /sys/bus/iio/devices/iio:deviceX/in_magn_calibration_fast_enable
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Can be 1 or 0. Enables/disables the "Fast Magnetometer
Calibration" HW function.
What: /sys/bus/iio/devices/iio:deviceX/fusion_enable
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Can be 1 or 0. Enables/disables the "sensor fusion" (a.k.a.
NDOF) HW function.
What: /sys/bus/iio/devices/iio:deviceX/calibration_data
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Reports the binary calibration data blob for the IMU sensors.
What: /sys/bus/iio/devices/iio:deviceX/in_accel_calibration_auto_status
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Reports the autocalibration status for the accelerometer sensor.
Can be 0 (calibration non even enabled) or 1 to 5 where the greater
the number, the better the calibration status.
What: /sys/bus/iio/devices/iio:deviceX/in_gyro_calibration_auto_status
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Reports the autocalibration status for the gyroscope sensor.
Can be 0 (calibration non even enabled) or 1 to 5 where the greater
the number, the better the calibration status.
What: /sys/bus/iio/devices/iio:deviceX/in_magn_calibration_auto_status
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Reports the autocalibration status for the magnetometer sensor.
Can be 0 (calibration non even enabled) or 1 to 5 where the greater
the number, the better the calibration status.
What: /sys/bus/iio/devices/iio:deviceX/sys_calibration_auto_status
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Reports the status for the IMU overall autocalibration.
Can be 0 (calibration non even enabled) or 1 to 5 where the greater
the number, the better the calibration status.
What: /sys/.../iio:deviceX/in_capacitableY_calibbias_calibration
What: /sys/.../iio:deviceX/in_capacitableY_calibscale_calibration
KernelVersion: 6.1
Contact: linux-iio@vger.kernel.org
Description:
Write 1 to trigger a calibration of the calibbias or
calibscale. For calibscale, a full scale capacitance should
be connected to the capacitance input and a
calibscale_calibration then started. For calibbias see
the device datasheet section on "capacitive system offset
calibration".
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <yangyicong@hisilicon.com>
Description: This directory contains files for tuning the PCIe link
parameters(events). Each file is named after the event
of the PCIe link.
See Documentation/trace/hisi-ptt.rst for more information.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_cpl
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <yangyicong@hisilicon.com>
Description: (RW) Controls the weight of Tx completion TLPs, which influence
the proportion of outbound completion TLPs on the PCIe link.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_np
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <yangyicong@hisilicon.com>
Description: (RW) Controls the weight of Tx non-posted TLPs, which influence
the proportion of outbound non-posted TLPs on the PCIe link.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_p
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <yangyicong@hisilicon.com>
Description: (RW) Controls the weight of Tx posted TLPs, which influence the
proportion of outbound posted TLPs on the PCIe link.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/rx_alloc_buf_level
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <yangyicong@hisilicon.com>
Description: (RW) Control the allocated buffer watermark for inbound packets.
The packets will be stored in the buffer first and then transmitted
either when the watermark reached or when timed out.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/tx_alloc_buf_level
Date: October 2022
KernelVersion: 6.1
Contact: Yicong Yang <yangyicong@hisilicon.com>
Description: (RW) Control the allocated buffer watermark of outbound packets.
The packets will be stored in the buffer first and then transmitted
either when the watermark reached or when timed out.
The available tune data is [0, 1, 2]. Writing a negative value
will return an error, and out of range values will be converted
to 2. The value indicates a probable level of the event.
...@@ -16,7 +16,7 @@ Description: Version of the application running on the device's CPU ...@@ -16,7 +16,7 @@ Description: Version of the application running on the device's CPU
What: /sys/class/habanalabs/hl<n>/clk_max_freq_mhz What: /sys/class/habanalabs/hl<n>/clk_max_freq_mhz
Date: Jun 2019 Date: Jun 2019
KernelVersion: not yet upstreamed KernelVersion: 5.7
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Allows the user to set the maximum clock frequency, in MHz. Description: Allows the user to set the maximum clock frequency, in MHz.
The device clock might be set to lower value than the maximum. The device clock might be set to lower value than the maximum.
...@@ -26,7 +26,7 @@ Description: Allows the user to set the maximum clock frequency, in MHz. ...@@ -26,7 +26,7 @@ Description: Allows the user to set the maximum clock frequency, in MHz.
What: /sys/class/habanalabs/hl<n>/clk_cur_freq_mhz What: /sys/class/habanalabs/hl<n>/clk_cur_freq_mhz
Date: Jun 2019 Date: Jun 2019
KernelVersion: not yet upstreamed KernelVersion: 5.7
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays the current frequency, in MHz, of the device clock. Description: Displays the current frequency, in MHz, of the device clock.
This property is valid only for the Gaudi ASIC family This property is valid only for the Gaudi ASIC family
...@@ -176,6 +176,12 @@ KernelVersion: 5.1 ...@@ -176,6 +176,12 @@ KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the device's preboot F/W code Description: Version of the device's preboot F/W code
What: /sys/class/habanalabs/hl<n>/security_enabled
Date: Oct 2022
KernelVersion: 6.1
Contact: obitton@habana.ai
Description: Displays the device's security status
What: /sys/class/habanalabs/hl<n>/soft_reset What: /sys/class/habanalabs/hl<n>/soft_reset
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
...@@ -230,6 +236,6 @@ Description: Version of the u-boot running on the device's CPU ...@@ -230,6 +236,6 @@ Description: Version of the u-boot running on the device's CPU
What: /sys/class/habanalabs/hl<n>/vrm_ver What: /sys/class/habanalabs/hl<n>/vrm_ver
Date: Jan 2022 Date: Jan 2022
KernelVersion: not yet upstreamed KernelVersion: 5.17
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the Device's Voltage Regulator Monitor F/W code. N/A to GOYA and GAUDI Description: Version of the Device's Voltage Regulator Monitor F/W code. N/A to GOYA and GAUDI
...@@ -61,6 +61,9 @@ properties: ...@@ -61,6 +61,9 @@ properties:
maxItems: 1 maxItems: 1
description: Address translation error interrupt description: Address translation error interrupt
power-domains:
maxItems: 1
in-ports: in-ports:
$ref: /schemas/graph.yaml#/properties/ports $ref: /schemas/graph.yaml#/properties/ports
additionalProperties: false additionalProperties: false
......
...@@ -98,6 +98,9 @@ properties: ...@@ -98,6 +98,9 @@ properties:
base cti node if compatible string arm,coresight-cti-v8-arch is used, base cti node if compatible string arm,coresight-cti-v8-arch is used,
or may appear in a trig-conns child node when appropriate. or may appear in a trig-conns child node when appropriate.
power-domains:
maxItems: 1
arm,cti-ctm-id: arm,cti-ctm-id:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
description: description:
......
...@@ -54,6 +54,9 @@ properties: ...@@ -54,6 +54,9 @@ properties:
- const: apb_pclk - const: apb_pclk
- const: atclk - const: atclk
power-domains:
maxItems: 1
in-ports: in-ports:
$ref: /schemas/graph.yaml#/properties/ports $ref: /schemas/graph.yaml#/properties/ports
......
...@@ -54,6 +54,9 @@ properties: ...@@ -54,6 +54,9 @@ properties:
- const: apb_pclk - const: apb_pclk
- const: atclk - const: atclk
power-domains:
maxItems: 1
qcom,replicator-loses-context: qcom,replicator-loses-context:
type: boolean type: boolean
description: description:
......
...@@ -54,6 +54,9 @@ properties: ...@@ -54,6 +54,9 @@ properties:
- const: apb_pclk - const: apb_pclk
- const: atclk - const: atclk
power-domains:
maxItems: 1
in-ports: in-ports:
$ref: /schemas/graph.yaml#/properties/ports $ref: /schemas/graph.yaml#/properties/ports
additionalProperties: false additionalProperties: false
......
...@@ -73,6 +73,9 @@ properties: ...@@ -73,6 +73,9 @@ properties:
- const: apb_pclk - const: apb_pclk
- const: atclk - const: atclk
power-domains:
maxItems: 1
arm,coresight-loses-context-with-cpu: arm,coresight-loses-context-with-cpu:
type: boolean type: boolean
description: description:
......
...@@ -27,6 +27,9 @@ properties: ...@@ -27,6 +27,9 @@ properties:
compatible: compatible:
const: arm,coresight-static-funnel const: arm,coresight-static-funnel
power-domains:
maxItems: 1
in-ports: in-ports:
$ref: /schemas/graph.yaml#/properties/ports $ref: /schemas/graph.yaml#/properties/ports
......
...@@ -27,6 +27,9 @@ properties: ...@@ -27,6 +27,9 @@ properties:
compatible: compatible:
const: arm,coresight-static-replicator const: arm,coresight-static-replicator
power-domains:
maxItems: 1
in-ports: in-ports:
$ref: /schemas/graph.yaml#/properties/ports $ref: /schemas/graph.yaml#/properties/ports
additionalProperties: false additionalProperties: false
......
...@@ -61,6 +61,9 @@ properties: ...@@ -61,6 +61,9 @@ properties:
- const: apb_pclk - const: apb_pclk
- const: atclk - const: atclk
power-domains:
maxItems: 1
out-ports: out-ports:
$ref: /schemas/graph.yaml#/properties/ports $ref: /schemas/graph.yaml#/properties/ports
additionalProperties: false additionalProperties: false
......
...@@ -55,6 +55,12 @@ properties: ...@@ -55,6 +55,12 @@ properties:
- const: apb_pclk - const: apb_pclk
- const: atclk - const: atclk
iommus:
maxItems: 1
power-domains:
maxItems: 1
arm,buffer-size: arm,buffer-size:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
deprecated: true deprecated: true
......
...@@ -54,6 +54,9 @@ properties: ...@@ -54,6 +54,9 @@ properties:
- const: apb_pclk - const: apb_pclk
- const: atclk - const: atclk
power-domains:
maxItems: 1
in-ports: in-ports:
$ref: /schemas/graph.yaml#/properties/ports $ref: /schemas/graph.yaml#/properties/ports
additionalProperties: false additionalProperties: false
......
...@@ -33,6 +33,9 @@ properties: ...@@ -33,6 +33,9 @@ properties:
Handle to the cpu this ETE is bound to. Handle to the cpu this ETE is bound to.
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
power-domains:
maxItems: 1
out-ports: out-ports:
description: | description: |
Output connections from the ETE to legacy CoreSight trace bus. Output connections from the ETE to legacy CoreSight trace bus.
......
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/counter/ti,am62-ecap-capture.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Texas Instruments Enhanced Capture (eCAP) Module
maintainers:
- Julien Panis <jpanis@baylibre.com>
description: |
The eCAP module resources can be used to capture timestamps
on input signal events (falling/rising edges).
properties:
compatible:
const: ti,am62-ecap-capture
reg:
maxItems: 1
interrupts:
maxItems: 1
clocks:
maxItems: 1
clock-names:
const: fck
power-domains:
maxItems: 1
required:
- compatible
- reg
- interrupts
- clocks
- clock-names
additionalProperties: false
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/soc/ti,sci_pm_domain.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
capture@23100000 { /* eCAP in capture mode on am62x */
compatible = "ti,am62-ecap-capture";
reg = <0x00 0x23100000 0x00 0x100>;
interrupts = <GIC_SPI 113 IRQ_TYPE_EDGE_RISING>;
power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 51 0>;
clock-names = "fck";
};
};
...@@ -22,13 +22,14 @@ properties: ...@@ -22,13 +22,14 @@ properties:
description: SPI chip select description: SPI chip select
maxItems: 1 maxItems: 1
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/hwmon/ibm,occ-hwmon.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: IBM On-Chip Controller (OCC) accessed from a service processor
maintainers:
- Eddie James <eajames@linux.ibm.com>
description: |
The POWER processor On-Chip Controller (OCC) helps manage power and
thermals for the system. A service processor or baseboard management
controller can query the OCC for it's power and thermal data to report
through hwmon.
properties:
compatible:
enum:
- ibm,p9-occ-hwmon
- ibm,p10-occ-hwmon
ibm,no-poll-on-init:
description: This property describes whether or not the OCC should
be polled during driver initialization.
type: boolean
required:
- compatible
additionalProperties: false
examples:
- |
hwmon {
compatible = "ibm,p10-occ-hwmon";
ibm,no-poll-on-init;
};
...@@ -27,15 +27,16 @@ properties: ...@@ -27,15 +27,16 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vdd-supply: true vdd-supply: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -25,14 +25,15 @@ properties: ...@@ -25,14 +25,15 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- interrupts - interrupts
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -4,28 +4,30 @@ ...@@ -4,28 +4,30 @@
$id: http://devicetree.org/schemas/iio/accel/adi,adxl313.yaml# $id: http://devicetree.org/schemas/iio/accel/adi,adxl313.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Analog Devices ADXL313 3-Axis Digital Accelerometer title: Analog Devices ADXL312, ADXL313, and ADXL314 3-Axis Digital Accelerometers
maintainers: maintainers:
- Lucas Stankus <lucas.p.stankus@gmail.com> - Lucas Stankus <lucas.p.stankus@gmail.com>
description: | description: |
Analog Devices ADXL313 3-Axis Digital Accelerometer that supports Analog Devices ADXL312, ADXL313, and ADXL314 3-Axis Digital Accelerometer that
both I2C & SPI interfaces. support both I2C & SPI interfaces.
https://www.analog.com/en/products/adxl312.html
https://www.analog.com/en/products/adxl313.html https://www.analog.com/en/products/adxl313.html
https://www.analog.com/en/products/adxl314.html
properties: properties:
compatible: compatible:
enum: enum:
- adi,adxl312
- adi,adxl313 - adi,adxl313
- adi,adxl314
reg: reg:
maxItems: 1 maxItems: 1
spi-3wire: true spi-3wire: true
spi-max-frequency: true
vs-supply: vs-supply:
description: Regulator that supplies power to the accelerometer description: Regulator that supplies power to the accelerometer
...@@ -48,7 +50,10 @@ required: ...@@ -48,7 +50,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -32,8 +32,6 @@ properties: ...@@ -32,8 +32,6 @@ properties:
spi-cpol: true spi-cpol: true
spi-max-frequency: true
interrupts: interrupts:
maxItems: 1 maxItems: 1
...@@ -42,7 +40,10 @@ required: ...@@ -42,7 +40,10 @@ required:
- reg - reg
- interrupts - interrupts
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -45,13 +45,14 @@ properties: ...@@ -45,13 +45,14 @@ properties:
vddio-supply: vddio-supply:
description: Regulator that provides power to the bus description: Regulator that provides power to the bus
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -35,8 +35,6 @@ properties: ...@@ -35,8 +35,6 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vdd-supply: true vdd-supply: true
vddio-supply: true vddio-supply: true
...@@ -45,7 +43,10 @@ required: ...@@ -45,7 +43,10 @@ required:
- reg - reg
- interrupts - interrupts
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -25,14 +25,15 @@ properties: ...@@ -25,14 +25,15 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- interrupts - interrupts
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -20,8 +20,6 @@ properties: ...@@ -20,8 +20,6 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vdda-supply: true vdda-supply: true
vddd-supply: true vddd-supply: true
vddio-supply: true vddio-supply: true
...@@ -30,7 +28,10 @@ required: ...@@ -30,7 +28,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -72,7 +72,10 @@ required: ...@@ -72,7 +72,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -24,8 +24,6 @@ properties: ...@@ -24,8 +24,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vdd-supply: true vdd-supply: true
vddio-supply: true vddio-supply: true
...@@ -50,7 +48,10 @@ required: ...@@ -50,7 +48,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -39,13 +39,14 @@ properties: ...@@ -39,13 +39,14 @@ properties:
- "INT1" - "INT1"
- "INT2" - "INT2"
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -29,13 +29,14 @@ properties: ...@@ -29,13 +29,14 @@ properties:
mount-matrix: mount-matrix:
description: an optional 3x3 mounting rotation matrix. description: an optional 3x3 mounting rotation matrix.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: "http://devicetree.org/schemas/iio/accel/memsensing,msa311.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
title: MEMSensing digital 3-Axis accelerometer
maintainers:
- Dmitry Rokosov <ddrokosov@sberdevices.ru>
description: |
MSA311 is a tri-axial, low-g accelerometer with I2C digital output for
sensitivity consumer applications. It has dynamical user selectable full
scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measurements
with output data rates from 1Hz to 1000Hz.
Datasheet can be found at following URL
https://cdn-shop.adafruit.com/product-files/5309/MSA311-V1.1-ENG.pdf
properties:
compatible:
const: memsensing,msa311
reg:
maxItems: 1
interrupts:
maxItems: 1
vdd-supply: true
required:
- compatible
- reg
additionalProperties: false
examples:
- |
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accelerometer@62 {
compatible = "memsensing,msa311";
reg = <0x62>;
interrupt-parent = <&gpio_intc>;
interrupts = <29 IRQ_TYPE_EDGE_RISING>;
vdd-supply = <&vcc_5v>;
};
};
...@@ -29,7 +29,10 @@ required: ...@@ -29,7 +29,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -27,8 +27,6 @@ properties: ...@@ -27,8 +27,6 @@ properties:
vdd-supply: vdd-supply:
description: phandle to the regulator that provides power to the accelerometer description: phandle to the regulator that provides power to the accelerometer
spi-max-frequency: true
interrupts: interrupts:
maxItems: 1 maxItems: 1
...@@ -44,7 +42,10 @@ required: ...@@ -44,7 +42,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -52,8 +52,6 @@ properties: ...@@ -52,8 +52,6 @@ properties:
avdd-supply: avdd-supply:
description: avdd supply can be used as reference for conversion. description: avdd supply can be used as reference for conversion.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
...@@ -106,7 +104,10 @@ patternProperties: ...@@ -106,7 +104,10 @@ patternProperties:
additionalProperties: false additionalProperties: false
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -30,8 +30,6 @@ properties: ...@@ -30,8 +30,6 @@ properties:
spi-cpha: true spi-cpha: true
spi-max-frequency: true
clocks: clocks:
maxItems: 1 maxItems: 1
description: phandle to the master clock (mclk) description: phandle to the master clock (mclk)
...@@ -94,7 +92,10 @@ required: ...@@ -94,7 +92,10 @@ required:
- spi-cpol - spi-cpol
- spi-cpha - spi-cpha
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -28,8 +28,6 @@ properties: ...@@ -28,8 +28,6 @@ properties:
description: IRQ line for the ADC description: IRQ line for the ADC
maxItems: 1 maxItems: 1
spi-max-frequency: true
adi,voltage-alert-last-chan: adi,voltage-alert-last-chan:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
description: description:
...@@ -55,7 +53,10 @@ required: ...@@ -55,7 +53,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -30,8 +30,6 @@ properties: ...@@ -30,8 +30,6 @@ properties:
spi-cpha: true spi-cpha: true
spi-max-frequency: true
'#address-cells': '#address-cells':
const: 1 const: 1
...@@ -65,7 +63,10 @@ patternProperties: ...@@ -65,7 +63,10 @@ patternProperties:
additionalProperties: true additionalProperties: true
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -24,13 +24,15 @@ properties: ...@@ -24,13 +24,15 @@ properties:
vref-supply: true vref-supply: true
vdd-supply: true vdd-supply: true
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -66,8 +66,6 @@ properties: ...@@ -66,8 +66,6 @@ properties:
to the other supplies. Needed to be able to establish channel scaling to the other supplies. Needed to be able to establish channel scaling
unless there is also an internal reference available (e.g. ad7091r) unless there is also an internal reference available (e.g. ad7091r)
spi-max-frequency: true
adi,conversion-start-gpios: adi,conversion-start-gpios:
description: A GPIO used to trigger the start of a conversion description: A GPIO used to trigger the start of a conversion
maxItems: 1 maxItems: 1
...@@ -76,9 +74,9 @@ required: ...@@ -76,9 +74,9 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
allOf: allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
# Devices where reference is vcc # Devices where reference is vcc
- if: - if:
properties: properties:
...@@ -158,6 +156,8 @@ allOf: ...@@ -158,6 +156,8 @@ allOf:
properties: properties:
adi,conversion-start-gpios: false adi,conversion-start-gpios: false
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -32,8 +32,6 @@ properties: ...@@ -32,8 +32,6 @@ properties:
spi-cpol: true spi-cpol: true
spi-max-frequency: true
avcc-supply: true avcc-supply: true
interrupts: interrupts:
...@@ -105,7 +103,10 @@ required: ...@@ -105,7 +103,10 @@ required:
- interrupts - interrupts
- adi,conversion-start-gpios - adi,conversion-start-gpios
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -50,8 +50,6 @@ properties: ...@@ -50,8 +50,6 @@ properties:
reset-gpios: reset-gpios:
maxItems: 1 maxItems: 1
spi-max-frequency: true
spi-cpol: true spi-cpol: true
spi-cpha: true spi-cpha: true
...@@ -88,7 +86,10 @@ patternProperties: ...@@ -88,7 +86,10 @@ patternProperties:
- reg - reg
additionalProperties: false additionalProperties: false
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -8,7 +8,6 @@ title: Analog Devices AD7923 and similars with 4 and 8 Channel ADCs. ...@@ -8,7 +8,6 @@ title: Analog Devices AD7923 and similars with 4 and 8 Channel ADCs.
maintainers: maintainers:
- Michael Hennerich <michael.hennerich@analog.com> - Michael Hennerich <michael.hennerich@analog.com>
- Patrick Vasseur <patrick.vasseur@c-s.fr>
description: | description: |
Analog Devices AD7904, AD7914, AD7923, AD7924 4 Channel ADCs, and AD7908, Analog Devices AD7904, AD7914, AD7923, AD7924 4 Channel ADCs, and AD7908,
...@@ -37,19 +36,24 @@ properties: ...@@ -37,19 +36,24 @@ properties:
description: | description: |
The regulator supply for ADC reference voltage. The regulator supply for ADC reference voltage.
adi,range-double:
description: Sets the analog input range from 0 to 2xVREF.
type: boolean
'#address-cells': '#address-cells':
const: 1 const: 1
'#size-cells': '#size-cells':
const: 0 const: 0
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -49,8 +49,6 @@ properties: ...@@ -49,8 +49,6 @@ properties:
default: 4096000 default: 4096000
spi-max-frequency: true
'#io-channel-cells': '#io-channel-cells':
const: 1 const: 1
...@@ -64,7 +62,10 @@ required: ...@@ -64,7 +62,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -24,8 +24,6 @@ properties: ...@@ -24,8 +24,6 @@ properties:
GPIO used for controlling the reset pin GPIO used for controlling the reset pin
maxItems: 1 maxItems: 1
spi-max-frequency: true
"#io-channel-cells": "#io-channel-cells":
const: 1 const: 1
...@@ -33,7 +31,10 @@ required: ...@@ -33,7 +31,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -22,15 +22,15 @@ properties: ...@@ -22,15 +22,15 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency:
description: maximal spi bus frequency supported
required: required:
- compatible - compatible
- vref-supply - vref-supply
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -13,10 +13,14 @@ description: | ...@@ -13,10 +13,14 @@ description: |
16bit ADC supporting up to 16 single ended or 8 differential inputs. 16bit ADC supporting up to 16 single ended or 8 differential inputs.
I2C interface. I2C interface.
https://www.analog.com/media/en/technical-documentation/data-sheets/2497fb.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/2499fe.pdf
properties: properties:
compatible: compatible:
const: enum:
lltc,ltc2497 - lltc,ltc2497
- lltc,ltc2499
reg: true reg: true
vref-supply: true vref-supply: true
......
...@@ -45,7 +45,10 @@ required: ...@@ -45,7 +45,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -26,13 +26,16 @@ properties: ...@@ -26,13 +26,16 @@ properties:
minimum: 100000 minimum: 100000
maximum: 4800000 maximum: 4800000
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
- vref-supply - vref-supply
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -28,15 +28,17 @@ properties: ...@@ -28,15 +28,17 @@ properties:
vref-supply: vref-supply:
description: External reference, needed to establish input scaling description: External reference, needed to establish input scaling
if: allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- if:
properties: properties:
compatible: compatible:
contains: contains:
const: maxim,max1118 const: maxim,max1118
then: then:
required: required:
- vref-supply - vref-supply
else: else:
properties: properties:
vref-supply: false vref-supply: false
...@@ -44,7 +46,7 @@ required: ...@@ -44,7 +46,7 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false unevaluatedProperties: false
examples: examples:
- | - |
......
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/maxim,max11205.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Maxim MAX11205 ADC
maintainers:
- Ramona Bolboaca <ramona.bolboaca@analog.com>
description: |
The MAX11205 is an ultra-low-power (< 300FA max active current),
high-resolution, serial-output ADC.
https://datasheets.maximintegrated.com/en/ds/MAX11205.pdf
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
properties:
compatible:
enum:
- maxim,max11205a
- maxim,max11205b
reg:
maxItems: 1
interrupts:
maxItems: 1
spi-max-frequency:
maximum: 5000000
spi-cpha: true
vref-supply:
description:
The regulator supply for the ADC reference voltage. This is a differential
reference. It is equal to the V_REFP - V_REFN. The maximum value is 3.6V.
required:
- compatible
- reg
- interrupts
- spi-max-frequency
- spi-cpha
- vref-supply
unevaluatedProperties: false
examples:
- |
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "maxim,max11205a";
reg = <0>;
spi-max-frequency = <5000000>;
spi-cpha;
interrupt-parent = <&gpio>;
interrupts = <19 IRQ_TYPE_EDGE_FALLING>;
vref-supply = <&max11205_vref>;
};
};
...
...@@ -39,15 +39,16 @@ properties: ...@@ -39,15 +39,16 @@ properties:
thus enabling power-down mode. thus enabling power-down mode.
maxItems: 1 maxItems: 1
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- vdd-supply - vdd-supply
- vref-supply - vref-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -32,7 +32,6 @@ properties: ...@@ -32,7 +32,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
spi-cpha: true spi-cpha: true
spi-cpol: true spi-cpol: true
...@@ -51,7 +50,10 @@ required: ...@@ -51,7 +50,10 @@ required:
- reg - reg
- vref-supply - vref-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -36,6 +36,13 @@ properties: ...@@ -36,6 +36,13 @@ properties:
description: IRQ line of the ADC description: IRQ line of the ADC
maxItems: 1 maxItems: 1
microchip,data-ready-hiz:
description:
Data Ready Pin Inactive State Control
true = The DR pin state is high-impedance
false = The DR pin state is logic high
type: boolean
microchip,device-addr: microchip,device-addr:
description: Device address when multiple MCP3911 chips are present on the same SPI bus. description: Device address when multiple MCP3911 chips are present on the same SPI bus.
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
...@@ -51,7 +58,10 @@ required: ...@@ -51,7 +58,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -58,6 +58,7 @@ required: ...@@ -58,6 +58,7 @@ required:
patternProperties: patternProperties:
"^.*@[0-9a-f]+$": "^.*@[0-9a-f]+$":
type: object type: object
additionalProperties: false
description: | description: |
Represents the external channels which are connected to the ADC. Represents the external channels which are connected to the ADC.
For compatible property "qcom,spmi-vadc" following channels, also known as For compatible property "qcom,spmi-vadc" following channels, also known as
......
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/richtek,rtq6056.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: RTQ6056 Bi-Directional Current and Power Monitor with 16-bit ADC
maintainers:
- ChiYuan Huang <cy_huang@richtek.com>
description: |
The RTQ6056 is a high accuracy current-sense monitor with I2C and SMBus
interface, and the device provides full information for system by reading
out the loading current and power.
The device monitors both of the drops across sense resistor and the BUS
voltage, converts into the current in amperes, and power in watts through
internal analog-to-digital converter ADC. The programmable calibration,
adjustable conversion time, and averaging function are also built in for
more design flexibility.
Datasheet is available at
https://www.richtek.com/assets/product_file/RTQ6056/DSQ6056-00.pdf
properties:
compatible:
const: richtek,rtq6056
reg:
maxItems: 1
"#io-channel-cells":
const: 1
shunt-resistor-micro-ohms:
description: Shunt IN+/IN- sensing node resistor
required:
- compatible
- reg
- "#io-channel-cells"
additionalProperties: false
examples:
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@40 {
compatible = "richtek,rtq6056";
reg = <0x40>;
#io-channel-cells = <1>;
};
};
...@@ -72,6 +72,7 @@ additionalProperties: false ...@@ -72,6 +72,7 @@ additionalProperties: false
patternProperties: patternProperties:
"^filter@[0-9]+$": "^filter@[0-9]+$":
type: object type: object
unevaluatedProperties: false
description: child node description: child node
properties: properties:
...@@ -225,6 +226,7 @@ patternProperties: ...@@ -225,6 +226,7 @@ patternProperties:
patternProperties: patternProperties:
"^dfsdm-dai+$": "^dfsdm-dai+$":
type: object type: object
additionalProperties: false
description: child node description: child node
properties: properties:
......
...@@ -13,8 +13,7 @@ description: ...@@ -13,8 +13,7 @@ description:
This ADC forms part of an ST microelectronics STMPE multifunction device . This ADC forms part of an ST microelectronics STMPE multifunction device .
The ADC is shared with the STMPE touchscreen. As a result some ADC related The ADC is shared with the STMPE touchscreen. As a result some ADC related
settings are specified in the parent node. settings are specified in the parent node.
The node name myst be stmpe_adc and should be a child node of the stmpe node The node should be a child node of the stmpe node to which it belongs.
to which it belongs.
properties: properties:
compatible: compatible:
......
...@@ -24,8 +24,6 @@ properties: ...@@ -24,8 +24,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vref-supply: vref-supply:
description: External reference, needed to establish input scaling description: External reference, needed to establish input scaling
...@@ -37,7 +35,10 @@ required: ...@@ -37,7 +35,10 @@ required:
- reg - reg
- vref-supply - vref-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -19,8 +19,6 @@ properties: ...@@ -19,8 +19,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vref-supply: vref-supply:
description: External reference, needed to establish input scaling description: External reference, needed to establish input scaling
...@@ -37,7 +35,10 @@ required: ...@@ -37,7 +35,10 @@ required:
- spi-cpol - spi-cpol
- spi-cpha - spi-cpha
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -19,7 +19,6 @@ properties: ...@@ -19,7 +19,6 @@ properties:
reg: true reg: true
vref-supply: true vref-supply: true
spi-max-frequency: true
"#io-channel-cells": "#io-channel-cells":
const: 1 const: 1
...@@ -28,7 +27,10 @@ required: ...@@ -28,7 +27,10 @@ required:
- reg - reg
- vref-supply - vref-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -31,8 +31,6 @@ properties: ...@@ -31,8 +31,6 @@ properties:
maxItems: 1 maxItems: 1
description: Conversion clock input. description: Conversion clock input.
spi-max-frequency: true
vref-p-supply: vref-p-supply:
description: The regulator supply for positive analog voltage reference description: The regulator supply for positive analog voltage reference
...@@ -62,7 +60,10 @@ required: ...@@ -62,7 +60,10 @@ required:
- clocks - clocks
- vref-p-supply - vref-p-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -27,8 +27,6 @@ properties: ...@@ -27,8 +27,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vref-supply: true vref-supply: true
"#io-channel-cells": "#io-channel-cells":
...@@ -39,7 +37,10 @@ required: ...@@ -39,7 +37,10 @@ required:
- reg - reg
- vref-supply - vref-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -21,8 +21,6 @@ properties: ...@@ -21,8 +21,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vdda-supply: true vdda-supply: true
"#io-channel-cells": "#io-channel-cells":
...@@ -32,7 +30,10 @@ required: ...@@ -32,7 +30,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -43,6 +43,7 @@ additionalProperties: false ...@@ -43,6 +43,7 @@ additionalProperties: false
patternProperties: patternProperties:
"^channel@[0-7]+$": "^channel@[0-7]+$":
type: object type: object
additionalProperties: false
description: description:
Child nodes needed for each channel that the platform uses. Child nodes needed for each channel that the platform uses.
......
...@@ -18,8 +18,6 @@ properties: ...@@ -18,8 +18,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
spi-cpha: true spi-cpha: true
reset-gpios: reset-gpios:
...@@ -32,7 +30,10 @@ required: ...@@ -32,7 +30,10 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# ...@@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs title: Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs
maintainers: maintainers:
- Tomislav Denis <tomislav.denis@avl.com> - Jonathan Cameron <jic23@kernel.org>
description: | description: |
The ADS131E0x are a family of multichannel, simultaneous sampling, The ADS131E0x are a family of multichannel, simultaneous sampling,
...@@ -28,8 +28,6 @@ properties: ...@@ -28,8 +28,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
spi-cpha: true spi-cpha: true
clocks: clocks:
...@@ -120,7 +118,10 @@ patternProperties: ...@@ -120,7 +118,10 @@ patternProperties:
additionalProperties: false additionalProperties: false
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -19,8 +19,6 @@ properties: ...@@ -19,8 +19,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vref-supply: vref-supply:
description: Supply the 2.5V or 5V reference voltage description: Supply the 2.5V or 5V reference voltage
...@@ -32,7 +30,10 @@ required: ...@@ -32,7 +30,10 @@ required:
- reg - reg
- vref-supply - vref-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -25,13 +25,14 @@ properties: ...@@ -25,13 +25,14 @@ properties:
description: Optional external reference. If not supplied, assume description: Optional external reference. If not supplied, assume
REFSEL input tied low to enable the internal reference. REFSEL input tied low to enable the internal reference.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -11,9 +11,14 @@ maintainers: ...@@ -11,9 +11,14 @@ maintainers:
properties: properties:
compatible: compatible:
enum: oneOf:
- enum:
- ti,am3359-adc - ti,am3359-adc
- ti,am4372-adc - ti,am4372-adc
- items:
- enum:
- ti,am654-adc
- const: ti,am3359-adc
'#io-channel-cells': '#io-channel-cells':
const: 1 const: 1
......
...@@ -21,8 +21,6 @@ properties: ...@@ -21,8 +21,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vref-supply: true vref-supply: true
"#io-channel-cells": "#io-channel-cells":
...@@ -33,7 +31,10 @@ required: ...@@ -33,7 +31,10 @@ required:
- reg - reg
- vref-supply - vref-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -23,7 +23,8 @@ properties: ...@@ -23,7 +23,8 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
spi-max-frequency: true vref-supply:
description: Optional supply of the reference voltage
"#io-channel-cells": "#io-channel-cells":
const: 1 const: 1
...@@ -59,7 +60,10 @@ patternProperties: ...@@ -59,7 +60,10 @@ patternProperties:
additionalProperties: false additionalProperties: false
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -134,6 +134,7 @@ properties: ...@@ -134,6 +134,7 @@ properties:
ams-pl@400: ams-pl@400:
type: object type: object
additionalProperties: false
description: description:
PL-SYSMON is capable of monitoring off chip voltage and temperature. PL-SYSMON is capable of monitoring off chip voltage and temperature.
PL-SYSMON block has DRP, JTAG and I2C interface to enable monitoring PL-SYSMON block has DRP, JTAG and I2C interface to enable monitoring
......
...@@ -63,6 +63,7 @@ additionalProperties: false ...@@ -63,6 +63,7 @@ additionalProperties: false
patternProperties: patternProperties:
"^channel@[0-3]$": "^channel@[0-3]$":
type: object type: object
additionalProperties: false
description: Represents the external channels which are connected to the device. description: Represents the external channels which are connected to the device.
properties: properties:
......
...@@ -27,14 +27,15 @@ properties: ...@@ -27,14 +27,15 @@ properties:
Enable internal buffer to drive the reference pin. Enable internal buffer to drive the reference pin.
type: boolean type: boolean
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- avdd-supply - avdd-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -78,6 +78,7 @@ patternProperties: ...@@ -78,6 +78,7 @@ patternProperties:
custom-output-range-config: custom-output-range-config:
type: object type: object
additionalProperties: false
description: Configuration of custom range when description: Configuration of custom range when
adi,output-range-microvolt is not present. adi,output-range-microvolt is not present.
The formulas for calculation the output voltages are The formulas for calculation the output voltages are
......
...@@ -95,15 +95,12 @@ properties: ...@@ -95,15 +95,12 @@ properties:
vrefD-supply: true vrefD-supply: true
vref-supply: true vref-supply: true
spi-max-frequency: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
allOf: allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- # Shared external vref, no internal reference - # Shared external vref, no internal reference
if: if:
properties: properties:
...@@ -232,6 +229,8 @@ allOf: ...@@ -232,6 +229,8 @@ allOf:
- vrefA-supply - vrefA-supply
- vrefB-supply - vrefB-supply
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -28,10 +28,6 @@ properties: ...@@ -28,10 +28,6 @@ properties:
vref1-supply: true vref1-supply: true
vref2-supply: true vref2-supply: true
spi-max-frequency: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
...@@ -39,6 +35,7 @@ required: ...@@ -39,6 +35,7 @@ required:
- vref1-supply - vref1-supply
allOf: allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- if: - if:
properties: properties:
compatible: compatible:
...@@ -63,6 +60,8 @@ allOf: ...@@ -63,6 +60,8 @@ allOf:
required: required:
- vref2-supply - vref2-supply
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -39,14 +39,15 @@ properties: ...@@ -39,14 +39,15 @@ properties:
description: description:
If not supplied devices will use internal regulators. If not supplied devices will use internal regulators.
spi-max-frequency: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -26,13 +26,14 @@ properties: ...@@ -26,13 +26,14 @@ properties:
maxItems: 1 maxItems: 1
description: Fault signal. description: Fault signal.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -27,19 +27,16 @@ properties: ...@@ -27,19 +27,16 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
VREF-supply: true VREF-supply: true
VREFA-supply: true VREFA-supply: true
VREFB-supply: true VREFB-supply: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
allOf: allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- if: - if:
properties: properties:
compatible: compatible:
...@@ -72,6 +69,8 @@ allOf: ...@@ -72,6 +69,8 @@ allOf:
- VREFA-supply - VREFA-supply
- VREFB-supply - VREFB-supply
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -22,17 +22,18 @@ properties: ...@@ -22,17 +22,18 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vref-supply: vref-supply:
description: If not present, internal reference will be used. description: If not present, internal reference will be used.
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -53,14 +53,15 @@ properties: ...@@ -53,14 +53,15 @@ properties:
vcc-supply: vcc-supply:
description: If not supplied the internal reference is used. description: If not supplied the internal reference is used.
spi-max-frequency: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -25,8 +25,6 @@ properties: ...@@ -25,8 +25,6 @@ properties:
description: Either this or spi-cpol but not both. description: Either this or spi-cpol but not both.
spi-cpol: true spi-cpol: true
spi-max-frequency: true
adi,ext-dc-dc-compenstation-resistor: adi,ext-dc-dc-compenstation-resistor:
$ref: /schemas/types.yaml#/definitions/flag $ref: /schemas/types.yaml#/definitions/flag
description: description:
...@@ -67,8 +65,6 @@ required: ...@@ -67,8 +65,6 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
patternProperties: patternProperties:
"^channel@[0-7]$": "^channel@[0-7]$":
type: object type: object
...@@ -123,6 +119,11 @@ oneOf: ...@@ -123,6 +119,11 @@ oneOf:
- required: - required:
- spi-cpol - spi-cpol
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -16,7 +16,6 @@ properties: ...@@ -16,7 +16,6 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
spi-cpha: true spi-cpha: true
adi,dc-dc-mode: adi,dc-dc-mode:
...@@ -99,6 +98,7 @@ required: ...@@ -99,6 +98,7 @@ required:
- adi,dc-dc-mode - adi,dc-dc-mode
allOf: allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- if: - if:
properties: properties:
adi,dc-dc-mode: adi,dc-dc-mode:
...@@ -115,7 +115,7 @@ allOf: ...@@ -115,7 +115,7 @@ allOf:
required: required:
- adi,range-microvolt - adi,range-microvolt
additionalProperties: false unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -22,18 +22,15 @@ properties: ...@@ -22,18 +22,15 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vref-supply: vref-supply:
description: If not supplied, internal reference will be used. description: If not supplied, internal reference will be used.
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
allOf: allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- if: - if:
properties: properties:
compatible: compatible:
...@@ -45,6 +42,8 @@ allOf: ...@@ -45,6 +42,8 @@ allOf:
required: required:
- vref-supply - vref-supply
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -22,18 +22,15 @@ properties: ...@@ -22,18 +22,15 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vrefAB-supply: true vrefAB-supply: true
vrefCD-supply: true vrefCD-supply: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
allOf: allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- if: - if:
properties: properties:
compatible: compatible:
...@@ -46,6 +43,8 @@ allOf: ...@@ -46,6 +43,8 @@ allOf:
- vrefAB-supply - vrefAB-supply
- vrefCD-supply - vrefCD-supply
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -49,8 +49,6 @@ properties: ...@@ -49,8 +49,6 @@ properties:
asserted during driver probe. asserted during driver probe.
maxItems: 1 maxItems: 1
spi-max-frequency: true
'#address-cells': '#address-cells':
const: 1 const: 1
...@@ -62,6 +60,7 @@ properties: ...@@ -62,6 +60,7 @@ properties:
connected to the DAC. Channel 0 can act both as a current connected to the DAC. Channel 0 can act both as a current
source and sink. source and sink.
type: object type: object
additionalProperties: false
properties: properties:
reg: reg:
...@@ -85,6 +84,7 @@ properties: ...@@ -85,6 +84,7 @@ properties:
description: Represents an external channel which are description: Represents an external channel which are
connected to the DAC. connected to the DAC.
type: object type: object
additionalProperties: false
properties: properties:
reg: reg:
...@@ -101,6 +101,7 @@ properties: ...@@ -101,6 +101,7 @@ properties:
description: Represents an external channel which are description: Represents an external channel which are
connected to the DAC. connected to the DAC.
type: object type: object
additionalProperties: false
properties: properties:
reg: reg:
...@@ -116,6 +117,7 @@ properties: ...@@ -116,6 +117,7 @@ properties:
patternProperties: patternProperties:
"^channel@([3-5])$": "^channel@([3-5])$":
type: object type: object
additionalProperties: false
description: Represents the external channels which are connected to the DAC. description: Represents the external channels which are connected to the DAC.
properties: properties:
reg: reg:
...@@ -138,7 +140,10 @@ required: ...@@ -138,7 +140,10 @@ required:
- channel@4 - channel@4
- channel@5 - channel@5
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -23,19 +23,20 @@ properties: ...@@ -23,19 +23,20 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vdd-supply: true vdd-supply: true
vss-supply: true vss-supply: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
- vdd-supply - vdd-supply
- vss-supply - vss-supply
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -19,19 +19,16 @@ properties: ...@@ -19,19 +19,16 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vrefh-supply: true vrefh-supply: true
vrefl-supply: true vrefl-supply: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
- vrefh-supply - vrefh-supply
allOf: allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- if: - if:
properties: properties:
compatible: compatible:
...@@ -44,6 +41,8 @@ allOf: ...@@ -44,6 +41,8 @@ allOf:
properties: properties:
vrefl-supply: false vrefl-supply: false
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -48,6 +48,7 @@ properties: ...@@ -48,6 +48,7 @@ properties:
patternProperties: patternProperties:
"^channel@([0-9]|1[0-5])$": "^channel@([0-9]|1[0-5])$":
type: object type: object
additionalProperties: false
properties: properties:
reg: reg:
......
...@@ -21,17 +21,18 @@ properties: ...@@ -21,17 +21,18 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spi-max-frequency: true
vref-supply: true vref-supply: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
- vref-supply - vref-supply
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
...@@ -33,21 +33,22 @@ properties: ...@@ -33,21 +33,22 @@ properties:
vref-supply: vref-supply:
description: Needed to provide output scaling. description: Needed to provide output scaling.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- vref-supply - vref-supply
additionalProperties: false
oneOf: oneOf:
- required: - required:
- spi-cpha - spi-cpha
- required: - required:
- spi-cpol - spi-cpol
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
vref_2v5_reg: regulator-vref { vref_2v5_reg: regulator-vref {
......
...@@ -24,14 +24,15 @@ properties: ...@@ -24,14 +24,15 @@ properties:
Reference voltage must be supplied to establish the scaling of the Reference voltage must be supplied to establish the scaling of the
output voltage. output voltage.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- vref-supply - vref-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -29,13 +29,14 @@ properties: ...@@ -29,13 +29,14 @@ properties:
DACs are loaded when the pin connected to this GPIO is pulled low. DACs are loaded when the pin connected to this GPIO is pulled low.
maxItems: 1 maxItems: 1
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -40,15 +40,16 @@ properties: ...@@ -40,15 +40,16 @@ properties:
output stage will shut down until the ADF4371/ADF4372 achieves lock as output stage will shut down until the ADF4371/ADF4372 achieves lock as
measured by the digital lock detect circuitry. measured by the digital lock detect circuitry.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- clocks - clocks
- clock-names - clock-names
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -25,14 +25,15 @@ properties: ...@@ -25,14 +25,15 @@ properties:
reset-gpios: true reset-gpios: true
spi-max-frequency: true
additionalProperties: false
required: required:
- compatible - compatible
- reg - reg
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment