2022-03-06 04:11:18 -07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/ufs/qcom,ufs.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
|
|
|
title: Qualcomm Universal Flash Storage (UFS) Controller
|
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Bjorn Andersson <bjorn.andersson@linaro.org>
|
|
|
|
- Andy Gross <agross@kernel.org>
|
|
|
|
|
|
|
|
# Select only our matches, not all jedec,ufs-2.0
|
|
|
|
select:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
const: qcom,ufshc
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
items:
|
|
|
|
- enum:
|
|
|
|
- qcom,msm8994-ufshc
|
|
|
|
- qcom,msm8996-ufshc
|
|
|
|
- qcom,msm8998-ufshc
|
2023-04-11 06:04:42 -07:00
|
|
|
- qcom,sa8775p-ufshc
|
dt-bindings: ufs: qcom: document SC7180 UFS
Document already upstreamed and used Qualcomm SC7180 UFS host controller
to fix dtbs_check warnings like:
sc7180-idp.dtb: ufshc@1d84000: compatible:0: 'qcom,sc7180-ufshc' is not one of ...
sc7180-idp.dtb: ufshc@1d84000: clocks: [[39, 99], [39, 7], [39, 98], [39, 107], [36, 0], [39, 106], [39, 105]] is too short
sc7180-idp.dtb: ufshc@1d84000: clock-names: ['core_clk', 'bus_aggr_clk', 'iface_clk', 'core_clk_unipro', ...] is too short
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240326174632.209745-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
2024-03-26 10:46:31 -07:00
|
|
|
- qcom,sc7180-ufshc
|
2023-12-05 07:38:54 -07:00
|
|
|
- qcom,sc7280-ufshc
|
2024-03-26 10:46:30 -07:00
|
|
|
- qcom,sc8180x-ufshc
|
2022-07-11 03:14:41 -07:00
|
|
|
- qcom,sc8280xp-ufshc
|
2022-03-06 04:11:18 -07:00
|
|
|
- qcom,sdm845-ufshc
|
2023-08-14 03:14:14 -07:00
|
|
|
- qcom,sm6115-ufshc
|
2024-03-26 10:46:32 -07:00
|
|
|
- qcom,sm6125-ufshc
|
2022-03-21 06:33:13 -07:00
|
|
|
- qcom,sm6350-ufshc
|
2022-03-06 04:11:18 -07:00
|
|
|
- qcom,sm8150-ufshc
|
|
|
|
- qcom,sm8250-ufshc
|
|
|
|
- qcom,sm8350-ufshc
|
|
|
|
- qcom,sm8450-ufshc
|
2023-01-19 08:14:06 -07:00
|
|
|
- qcom,sm8550-ufshc
|
2023-10-30 02:43:11 -07:00
|
|
|
- qcom,sm8650-ufshc
|
2022-03-06 04:11:18 -07:00
|
|
|
- const: qcom,ufshc
|
|
|
|
- const: jedec,ufs-2.0
|
|
|
|
|
|
|
|
clocks:
|
dt-bindings: ufs: qcom: document SC7180 UFS
Document already upstreamed and used Qualcomm SC7180 UFS host controller
to fix dtbs_check warnings like:
sc7180-idp.dtb: ufshc@1d84000: compatible:0: 'qcom,sc7180-ufshc' is not one of ...
sc7180-idp.dtb: ufshc@1d84000: clocks: [[39, 99], [39, 7], [39, 98], [39, 107], [36, 0], [39, 106], [39, 105]] is too short
sc7180-idp.dtb: ufshc@1d84000: clock-names: ['core_clk', 'bus_aggr_clk', 'iface_clk', 'core_clk_unipro', ...] is too short
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240326174632.209745-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
2024-03-26 10:46:31 -07:00
|
|
|
minItems: 7
|
2024-05-28 06:36:48 -07:00
|
|
|
maxItems: 9
|
2022-03-06 04:11:18 -07:00
|
|
|
|
|
|
|
clock-names:
|
dt-bindings: ufs: qcom: document SC7180 UFS
Document already upstreamed and used Qualcomm SC7180 UFS host controller
to fix dtbs_check warnings like:
sc7180-idp.dtb: ufshc@1d84000: compatible:0: 'qcom,sc7180-ufshc' is not one of ...
sc7180-idp.dtb: ufshc@1d84000: clocks: [[39, 99], [39, 7], [39, 98], [39, 107], [36, 0], [39, 106], [39, 105]] is too short
sc7180-idp.dtb: ufshc@1d84000: clock-names: ['core_clk', 'bus_aggr_clk', 'iface_clk', 'core_clk_unipro', ...] is too short
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240326174632.209745-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
2024-03-26 10:46:31 -07:00
|
|
|
minItems: 7
|
2024-05-28 06:36:48 -07:00
|
|
|
maxItems: 9
|
2022-03-06 04:11:18 -07:00
|
|
|
|
2023-01-16 09:42:36 -07:00
|
|
|
dma-coherent: true
|
|
|
|
|
2022-03-06 04:11:18 -07:00
|
|
|
interconnects:
|
|
|
|
minItems: 2
|
|
|
|
maxItems: 2
|
|
|
|
|
|
|
|
interconnect-names:
|
|
|
|
items:
|
|
|
|
- const: ufs-ddr
|
|
|
|
- const: cpu-ufs
|
|
|
|
|
|
|
|
iommus:
|
|
|
|
minItems: 1
|
|
|
|
maxItems: 2
|
|
|
|
|
|
|
|
phys:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
phy-names:
|
|
|
|
items:
|
|
|
|
- const: ufsphy
|
|
|
|
|
|
|
|
power-domains:
|
|
|
|
maxItems: 1
|
|
|
|
|
2023-06-12 12:28:45 -07:00
|
|
|
qcom,ice:
|
|
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
|
|
description: phandle to the Inline Crypto Engine node
|
|
|
|
|
2022-03-06 04:11:18 -07:00
|
|
|
reg:
|
|
|
|
minItems: 1
|
|
|
|
maxItems: 2
|
|
|
|
|
2023-08-14 03:14:13 -07:00
|
|
|
reg-names:
|
|
|
|
items:
|
|
|
|
- const: std
|
|
|
|
- const: ice
|
|
|
|
|
2022-12-28 05:43:31 -07:00
|
|
|
required-opps:
|
|
|
|
maxItems: 1
|
|
|
|
|
2022-03-06 04:11:18 -07:00
|
|
|
resets:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
'#reset-cells':
|
|
|
|
const: 1
|
|
|
|
|
|
|
|
reset-names:
|
|
|
|
items:
|
|
|
|
- const: rst
|
|
|
|
|
|
|
|
reset-gpios:
|
|
|
|
maxItems: 1
|
|
|
|
description:
|
|
|
|
GPIO connected to the RESET pin of the UFS memory device.
|
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
- $ref: ufs-common.yaml
|
|
|
|
|
dt-bindings: ufs: qcom: document SC7180 UFS
Document already upstreamed and used Qualcomm SC7180 UFS host controller
to fix dtbs_check warnings like:
sc7180-idp.dtb: ufshc@1d84000: compatible:0: 'qcom,sc7180-ufshc' is not one of ...
sc7180-idp.dtb: ufshc@1d84000: clocks: [[39, 99], [39, 7], [39, 98], [39, 107], [36, 0], [39, 106], [39, 105]] is too short
sc7180-idp.dtb: ufshc@1d84000: clock-names: ['core_clk', 'bus_aggr_clk', 'iface_clk', 'core_clk_unipro', ...] is too short
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240326174632.209745-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
2024-03-26 10:46:31 -07:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,sc7180-ufshc
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
minItems: 7
|
|
|
|
maxItems: 7
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: core_clk
|
|
|
|
- const: bus_aggr_clk
|
|
|
|
- const: iface_clk
|
|
|
|
- const: core_clk_unipro
|
|
|
|
- const: ref_clk
|
|
|
|
- const: tx_lane0_sync_clk
|
|
|
|
- const: rx_lane0_sync_clk
|
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
reg-names:
|
|
|
|
maxItems: 1
|
|
|
|
|
2022-03-06 04:11:18 -07:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,msm8998-ufshc
|
2023-04-11 06:04:42 -07:00
|
|
|
- qcom,sa8775p-ufshc
|
2023-12-05 07:38:54 -07:00
|
|
|
- qcom,sc7280-ufshc
|
2024-03-26 10:46:30 -07:00
|
|
|
- qcom,sc8180x-ufshc
|
2022-07-11 03:14:41 -07:00
|
|
|
- qcom,sc8280xp-ufshc
|
2022-03-06 04:11:18 -07:00
|
|
|
- qcom,sm8250-ufshc
|
|
|
|
- qcom,sm8350-ufshc
|
|
|
|
- qcom,sm8450-ufshc
|
2023-01-19 08:14:06 -07:00
|
|
|
- qcom,sm8550-ufshc
|
2023-10-30 02:43:11 -07:00
|
|
|
- qcom,sm8650-ufshc
|
2022-03-06 04:11:18 -07:00
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
minItems: 8
|
|
|
|
maxItems: 8
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: core_clk
|
|
|
|
- const: bus_aggr_clk
|
|
|
|
- const: iface_clk
|
|
|
|
- const: core_clk_unipro
|
|
|
|
- const: ref_clk
|
|
|
|
- const: tx_lane0_sync_clk
|
|
|
|
- const: rx_lane0_sync_clk
|
|
|
|
- const: rx_lane1_sync_clk
|
|
|
|
reg:
|
|
|
|
minItems: 1
|
|
|
|
maxItems: 1
|
2023-08-14 03:14:13 -07:00
|
|
|
reg-names:
|
|
|
|
maxItems: 1
|
2022-03-06 04:11:18 -07:00
|
|
|
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,sdm845-ufshc
|
2022-03-21 06:33:13 -07:00
|
|
|
- qcom,sm6350-ufshc
|
2022-03-06 04:11:18 -07:00
|
|
|
- qcom,sm8150-ufshc
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
minItems: 9
|
|
|
|
maxItems: 9
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: core_clk
|
|
|
|
- const: bus_aggr_clk
|
|
|
|
- const: iface_clk
|
|
|
|
- const: core_clk_unipro
|
|
|
|
- const: ref_clk
|
|
|
|
- const: tx_lane0_sync_clk
|
|
|
|
- const: rx_lane0_sync_clk
|
|
|
|
- const: rx_lane1_sync_clk
|
|
|
|
- const: ice_core_clk
|
|
|
|
reg:
|
|
|
|
minItems: 2
|
|
|
|
maxItems: 2
|
2023-08-14 03:14:13 -07:00
|
|
|
reg-names:
|
|
|
|
minItems: 2
|
|
|
|
required:
|
|
|
|
- reg-names
|
2022-03-06 04:11:18 -07:00
|
|
|
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,msm8996-ufshc
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
2024-05-28 06:36:48 -07:00
|
|
|
minItems: 9
|
|
|
|
maxItems: 9
|
2022-03-06 04:11:18 -07:00
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: core_clk
|
|
|
|
- const: bus_clk
|
|
|
|
- const: bus_aggr_clk
|
|
|
|
- const: iface_clk
|
|
|
|
- const: core_clk_unipro
|
|
|
|
- const: core_clk_ice
|
|
|
|
- const: ref_clk
|
|
|
|
- const: tx_lane0_sync_clk
|
|
|
|
- const: rx_lane0_sync_clk
|
|
|
|
reg:
|
|
|
|
minItems: 1
|
|
|
|
maxItems: 1
|
2023-08-14 03:14:13 -07:00
|
|
|
reg-names:
|
|
|
|
maxItems: 1
|
2022-03-06 04:11:18 -07:00
|
|
|
|
2023-08-14 03:14:14 -07:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,sm6115-ufshc
|
2024-03-26 10:46:32 -07:00
|
|
|
- qcom,sm6125-ufshc
|
2023-08-14 03:14:14 -07:00
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
minItems: 8
|
|
|
|
maxItems: 8
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: core_clk
|
|
|
|
- const: bus_aggr_clk
|
|
|
|
- const: iface_clk
|
|
|
|
- const: core_clk_unipro
|
|
|
|
- const: ref_clk
|
|
|
|
- const: tx_lane0_sync_clk
|
|
|
|
- const: rx_lane0_sync_clk
|
|
|
|
- const: ice_core_clk
|
|
|
|
reg:
|
|
|
|
minItems: 2
|
|
|
|
maxItems: 2
|
|
|
|
reg-names:
|
|
|
|
minItems: 2
|
|
|
|
required:
|
|
|
|
- reg-names
|
|
|
|
|
2022-03-06 04:11:18 -07:00
|
|
|
# TODO: define clock bindings for qcom,msm8994-ufshc
|
|
|
|
|
2023-06-12 12:28:45 -07:00
|
|
|
- if:
|
2023-06-23 04:30:05 -07:00
|
|
|
required:
|
|
|
|
- qcom,ice
|
2023-06-12 12:28:45 -07:00
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
clocks:
|
dt-bindings: ufs: qcom: document SC7180 UFS
Document already upstreamed and used Qualcomm SC7180 UFS host controller
to fix dtbs_check warnings like:
sc7180-idp.dtb: ufshc@1d84000: compatible:0: 'qcom,sc7180-ufshc' is not one of ...
sc7180-idp.dtb: ufshc@1d84000: clocks: [[39, 99], [39, 7], [39, 98], [39, 107], [36, 0], [39, 106], [39, 105]] is too short
sc7180-idp.dtb: ufshc@1d84000: clock-names: ['core_clk', 'bus_aggr_clk', 'iface_clk', 'core_clk_unipro', ...] is too short
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240326174632.209745-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
2024-03-26 10:46:31 -07:00
|
|
|
minItems: 7
|
2023-06-12 12:28:45 -07:00
|
|
|
maxItems: 8
|
|
|
|
else:
|
|
|
|
properties:
|
|
|
|
reg:
|
2023-06-23 04:30:05 -07:00
|
|
|
minItems: 1
|
2023-06-12 12:28:45 -07:00
|
|
|
maxItems: 2
|
|
|
|
clocks:
|
dt-bindings: ufs: qcom: document SC7180 UFS
Document already upstreamed and used Qualcomm SC7180 UFS host controller
to fix dtbs_check warnings like:
sc7180-idp.dtb: ufshc@1d84000: compatible:0: 'qcom,sc7180-ufshc' is not one of ...
sc7180-idp.dtb: ufshc@1d84000: clocks: [[39, 99], [39, 7], [39, 98], [39, 107], [36, 0], [39, 106], [39, 105]] is too short
sc7180-idp.dtb: ufshc@1d84000: clock-names: ['core_clk', 'bus_aggr_clk', 'iface_clk', 'core_clk_unipro', ...] is too short
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240326174632.209745-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
2024-03-26 10:46:31 -07:00
|
|
|
minItems: 7
|
2024-05-28 06:36:48 -07:00
|
|
|
maxItems: 9
|
2023-06-12 12:28:45 -07:00
|
|
|
|
2022-03-06 04:11:18 -07:00
|
|
|
unevaluatedProperties: false
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
#include <dt-bindings/clock/qcom,gcc-sm8450.h>
|
|
|
|
#include <dt-bindings/clock/qcom,rpmh.h>
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/interconnect/qcom,sm8450.h>
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
|
|
|
|
soc {
|
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
|
|
|
|
ufs@1d84000 {
|
|
|
|
compatible = "qcom,sm8450-ufshc", "qcom,ufshc",
|
|
|
|
"jedec,ufs-2.0";
|
|
|
|
reg = <0 0x01d84000 0 0x3000>;
|
|
|
|
interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
phys = <&ufs_mem_phy_lanes>;
|
|
|
|
phy-names = "ufsphy";
|
|
|
|
lanes-per-direction = <2>;
|
|
|
|
#reset-cells = <1>;
|
|
|
|
resets = <&gcc GCC_UFS_PHY_BCR>;
|
|
|
|
reset-names = "rst";
|
|
|
|
reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>;
|
|
|
|
|
|
|
|
vcc-supply = <&vreg_l7b_2p5>;
|
|
|
|
vcc-max-microamp = <1100000>;
|
|
|
|
vccq-supply = <&vreg_l9b_1p2>;
|
|
|
|
vccq-max-microamp = <1200000>;
|
|
|
|
|
|
|
|
power-domains = <&gcc UFS_PHY_GDSC>;
|
|
|
|
iommus = <&apps_smmu 0xe0 0x0>;
|
|
|
|
interconnects = <&aggre1_noc MASTER_UFS_MEM &mc_virt SLAVE_EBI1>,
|
|
|
|
<&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_UFS_MEM_CFG>;
|
|
|
|
interconnect-names = "ufs-ddr", "cpu-ufs";
|
|
|
|
|
|
|
|
clock-names = "core_clk",
|
|
|
|
"bus_aggr_clk",
|
|
|
|
"iface_clk",
|
|
|
|
"core_clk_unipro",
|
|
|
|
"ref_clk",
|
|
|
|
"tx_lane0_sync_clk",
|
|
|
|
"rx_lane0_sync_clk",
|
|
|
|
"rx_lane1_sync_clk";
|
|
|
|
clocks = <&gcc GCC_UFS_PHY_AXI_CLK>,
|
|
|
|
<&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
|
|
|
|
<&gcc GCC_UFS_PHY_AHB_CLK>,
|
|
|
|
<&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>,
|
|
|
|
<&rpmhcc RPMH_CXO_CLK>,
|
|
|
|
<&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
|
|
|
|
<&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>,
|
|
|
|
<&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>;
|
|
|
|
freq-table-hz = <75000000 300000000>,
|
|
|
|
<0 0>,
|
|
|
|
<0 0>,
|
|
|
|
<75000000 300000000>,
|
|
|
|
<75000000 300000000>,
|
|
|
|
<0 0>,
|
|
|
|
<0 0>,
|
|
|
|
<0 0>;
|
2023-08-14 03:14:15 -07:00
|
|
|
qcom,ice = <&ice>;
|
2022-03-06 04:11:18 -07:00
|
|
|
};
|
|
|
|
};
|