Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: phy: add QMP UFS PHY schema

The QMP PHY DT schema is getting unwieldy. Break out the UFS PHY
binding in a separate file.

Add an example node based on a cleaned up version of sc8280xp.dtsi.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220830112923.3725-16-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
f38073d9 3d23213f

+148 -60
-60
Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
··· 19 19 enum: 20 20 - qcom,ipq6018-qmp-usb3-phy 21 21 - qcom,ipq8074-qmp-usb3-phy 22 - - qcom,msm8996-qmp-ufs-phy 23 22 - qcom,msm8996-qmp-usb3-phy 24 - - qcom,msm8998-qmp-ufs-phy 25 23 - qcom,msm8998-qmp-usb3-phy 26 24 - qcom,qcm2290-qmp-usb3-phy 27 25 - qcom,sc7180-qmp-usb3-phy 28 - - qcom,sc8180x-qmp-ufs-phy 29 26 - qcom,sc8180x-qmp-usb3-phy 30 - - qcom,sc8280xp-qmp-ufs-phy 31 27 - qcom,sc8280xp-qmp-usb3-uni-phy 32 - - qcom,sdm845-qmp-ufs-phy 33 28 - qcom,sdm845-qmp-usb3-phy 34 29 - qcom,sdm845-qmp-usb3-uni-phy 35 30 - qcom,sdx55-qmp-usb3-uni-phy 36 31 - qcom,sdx65-qmp-usb3-uni-phy 37 - - qcom,sm6115-qmp-ufs-phy 38 - - qcom,sm6350-qmp-ufs-phy 39 - - qcom,sm8150-qmp-ufs-phy 40 32 - qcom,sm8150-qmp-usb3-phy 41 33 - qcom,sm8150-qmp-usb3-uni-phy 42 - - qcom,sm8250-qmp-ufs-phy 43 34 - qcom,sm8250-qmp-usb3-phy 44 35 - qcom,sm8250-qmp-usb3-uni-phy 45 - - qcom,sm8350-qmp-ufs-phy 46 36 - qcom,sm8350-qmp-usb3-phy 47 37 - qcom,sm8350-qmp-usb3-uni-phy 48 - - qcom,sm8450-qmp-ufs-phy 49 38 - qcom,sm8450-qmp-usb3-phy 50 39 51 40 reg: ··· 165 176 items: 166 177 - const: phy 167 178 - const: common 168 - required: 169 - - vdda-phy-supply 170 - - vdda-pll-supply 171 - - if: 172 - properties: 173 - compatible: 174 - contains: 175 - enum: 176 - - qcom,msm8996-qmp-ufs-phy 177 - then: 178 - properties: 179 - clocks: 180 - maxItems: 1 181 - clock-names: 182 - items: 183 - - const: ref 184 - resets: 185 - maxItems: 1 186 - reset-names: 187 - items: 188 - - const: ufsphy 189 - required: 190 - - vdda-phy-supply 191 - - vdda-pll-supply 192 - - if: 193 - properties: 194 - compatible: 195 - contains: 196 - enum: 197 - - qcom,msm8998-qmp-ufs-phy 198 - - qcom,sc8180x-qmp-ufs-phy 199 - - qcom,sc8280xp-qmp-ufs-phy 200 - - qcom,sdm845-qmp-ufs-phy 201 - - qcom,sm6350-qmp-ufs-phy 202 - - qcom,sm8150-qmp-ufs-phy 203 - - qcom,sm8250-qmp-ufs-phy 204 - then: 205 - properties: 206 - clocks: 207 - maxItems: 2 208 - clock-names: 209 - items: 210 - - const: ref 211 - - const: ref_aux 212 - resets: 213 - maxItems: 1 214 - reset-names: 215 - items: 216 - - const: ufsphy 217 179 required: 218 180 - vdda-phy-supply 219 181 - vdda-pll-supply
+148
Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/phy/qcom,qmp-ufs-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm QMP PHY controller (UFS) 8 + 9 + maintainers: 10 + - Vinod Koul <vkoul@kernel.org> 11 + 12 + description: 13 + QMP PHY controller supports physical layer functionality for a number of 14 + controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - qcom,msm8996-qmp-ufs-phy 20 + - qcom,msm8998-qmp-ufs-phy 21 + - qcom,sc8180x-qmp-ufs-phy 22 + - qcom,sc8280xp-qmp-ufs-phy 23 + - qcom,sdm845-qmp-ufs-phy 24 + - qcom,sm6115-qmp-ufs-phy 25 + - qcom,sm6350-qmp-ufs-phy 26 + - qcom,sm8150-qmp-ufs-phy 27 + - qcom,sm8250-qmp-ufs-phy 28 + - qcom,sm8350-qmp-ufs-phy 29 + - qcom,sm8450-qmp-ufs-phy 30 + 31 + reg: 32 + items: 33 + - description: serdes 34 + 35 + "#address-cells": 36 + enum: [ 1, 2 ] 37 + 38 + "#size-cells": 39 + enum: [ 1, 2 ] 40 + 41 + ranges: true 42 + 43 + clocks: 44 + minItems: 1 45 + maxItems: 2 46 + 47 + clock-names: 48 + minItems: 1 49 + maxItems: 2 50 + 51 + resets: 52 + maxItems: 1 53 + 54 + reset-names: 55 + items: 56 + - const: ufsphy 57 + 58 + vdda-phy-supply: true 59 + 60 + vdda-pll-supply: true 61 + 62 + vddp-ref-clk-supply: true 63 + 64 + patternProperties: 65 + "^phy@[0-9a-f]+$": 66 + type: object 67 + description: single PHY-provider child node 68 + 69 + required: 70 + - compatible 71 + - reg 72 + - "#address-cells" 73 + - "#size-cells" 74 + - ranges 75 + - clocks 76 + - clock-names 77 + - resets 78 + - reset-names 79 + - vdda-phy-supply 80 + - vdda-pll-supply 81 + 82 + additionalProperties: false 83 + 84 + allOf: 85 + - if: 86 + properties: 87 + compatible: 88 + contains: 89 + enum: 90 + - qcom,msm8996-qmp-ufs-phy 91 + then: 92 + properties: 93 + clocks: 94 + maxItems: 1 95 + clock-names: 96 + items: 97 + - const: ref 98 + 99 + - if: 100 + properties: 101 + compatible: 102 + contains: 103 + enum: 104 + - qcom,msm8998-qmp-ufs-phy 105 + - qcom,sc8180x-qmp-ufs-phy 106 + - qcom,sc8280xp-qmp-ufs-phy 107 + - qcom,sdm845-qmp-ufs-phy 108 + - qcom,sm6350-qmp-ufs-phy 109 + - qcom,sm8150-qmp-ufs-phy 110 + - qcom,sm8250-qmp-ufs-phy 111 + then: 112 + properties: 113 + clocks: 114 + maxItems: 2 115 + clock-names: 116 + items: 117 + - const: ref 118 + - const: ref_aux 119 + 120 + examples: 121 + - | 122 + #include <dt-bindings/clock/qcom,gcc-sc8280xp.h> 123 + #include <dt-bindings/clock/qcom,rpmh.h> 124 + phy-wrapper@1d87000 { 125 + compatible = "qcom,sc8280xp-qmp-ufs-phy"; 126 + reg = <0x01d87000 0xe10>; 127 + #address-cells = <1>; 128 + #size-cells = <1>; 129 + ranges = <0x0 0x01d87000 0x1000>; 130 + 131 + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; 132 + clock-names = "ref", "ref_aux"; 133 + 134 + resets = <&ufs_mem_hc 0>; 135 + reset-names = "ufsphy"; 136 + 137 + vdda-phy-supply = <&vreg_l6b>; 138 + vdda-pll-supply = <&vreg_l3b>; 139 + 140 + phy@400 { 141 + reg = <0x400 0x108>, 142 + <0x600 0x1e0>, 143 + <0xc00 0x1dc>, 144 + <0x800 0x108>, 145 + <0xa00 0x1e0>; 146 + #phy-cells = <0>; 147 + }; 148 + };