2022-03-06 04:11:14 -07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/ufs/ufs-common.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
|
|
|
title: Common properties for Universal Flash Storage (UFS) Host Controllers
|
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Alim Akhtar <alim.akhtar@samsung.com>
|
|
|
|
- Avri Altman <avri.altman@wdc.com>
|
|
|
|
|
|
|
|
properties:
|
|
|
|
clocks: true
|
|
|
|
|
|
|
|
clock-names: true
|
|
|
|
|
|
|
|
freq-table-hz:
|
|
|
|
items:
|
|
|
|
items:
|
|
|
|
- description: Minimum frequency for given clock in Hz
|
|
|
|
- description: Maximum frequency for given clock in Hz
|
2023-10-12 10:21:25 -07:00
|
|
|
deprecated: true
|
2022-03-06 04:11:14 -07:00
|
|
|
description: |
|
2023-10-12 10:21:25 -07:00
|
|
|
Preferred is operating-points-v2.
|
|
|
|
|
2022-03-06 04:11:14 -07:00
|
|
|
Array of <min max> operating frequencies in Hz stored in the same order
|
2023-10-12 10:21:25 -07:00
|
|
|
as the clocks property. If either this property or operating-points-v2 is
|
|
|
|
not defined or a value in the array is "0" then it is assumed that the
|
|
|
|
frequency is set by the parent clock or a fixed rate clock source.
|
|
|
|
|
|
|
|
operating-points-v2:
|
|
|
|
description:
|
|
|
|
Preferred over freq-table-hz.
|
|
|
|
If present, each OPP must contain array of frequencies stored in the same
|
|
|
|
order for each clock. If clock frequency in the array is "0" then it is
|
|
|
|
assumed that the frequency is set by the parent clock or a fixed rate
|
|
|
|
clock source.
|
|
|
|
|
|
|
|
opp-table:
|
|
|
|
type: object
|
2022-03-06 04:11:14 -07:00
|
|
|
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
lanes-per-direction:
|
|
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
|
|
enum: [1, 2]
|
|
|
|
default: 2
|
|
|
|
description:
|
|
|
|
Number of lanes available per direction. Note that it is assume same
|
|
|
|
number of lanes is used both directions at once.
|
|
|
|
|
|
|
|
vdd-hba-supply:
|
|
|
|
description:
|
|
|
|
Phandle to UFS host controller supply regulator node.
|
|
|
|
|
|
|
|
vcc-supply:
|
|
|
|
description:
|
|
|
|
Phandle to VCC supply regulator node.
|
|
|
|
|
|
|
|
vccq-supply:
|
|
|
|
description:
|
|
|
|
Phandle to VCCQ supply regulator node.
|
|
|
|
|
|
|
|
vccq2-supply:
|
|
|
|
description:
|
|
|
|
Phandle to VCCQ2 supply regulator node.
|
|
|
|
|
|
|
|
vcc-supply-1p8:
|
|
|
|
type: boolean
|
|
|
|
description:
|
|
|
|
For embedded UFS devices, valid VCC range is 1.7-1.95V or 2.7-3.6V. This
|
|
|
|
boolean property when set, specifies to use low voltage range of
|
|
|
|
1.7-1.95V. Note for external UFS cards this property is invalid and valid
|
|
|
|
VCC range is always 2.7-3.6V.
|
|
|
|
|
|
|
|
vcc-max-microamp:
|
|
|
|
description:
|
|
|
|
Specifies max. load that can be drawn from VCC supply.
|
|
|
|
|
|
|
|
vccq-max-microamp:
|
|
|
|
description:
|
|
|
|
Specifies max. load that can be drawn from VCCQ supply.
|
|
|
|
|
|
|
|
vccq2-max-microamp:
|
|
|
|
description:
|
|
|
|
Specifies max. load that can be drawn from VCCQ2 supply.
|
|
|
|
|
2023-11-27 21:07:47 -07:00
|
|
|
msi-parent: true
|
|
|
|
|
2022-03-06 04:11:14 -07:00
|
|
|
dependencies:
|
2023-08-23 11:28:47 -07:00
|
|
|
freq-table-hz: [ clocks ]
|
2023-10-12 10:21:25 -07:00
|
|
|
operating-points-v2: [ clocks, clock-names ]
|
2022-03-06 04:11:14 -07:00
|
|
|
|
|
|
|
required:
|
|
|
|
- interrupts
|
|
|
|
|
2023-10-12 10:21:25 -07:00
|
|
|
allOf:
|
|
|
|
- if:
|
|
|
|
required:
|
|
|
|
- freq-table-hz
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
operating-points-v2: false
|
|
|
|
- if:
|
|
|
|
required:
|
|
|
|
- operating-points-v2
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
freq-table-hz: false
|
|
|
|
|
2022-03-06 04:11:14 -07:00
|
|
|
additionalProperties: true
|