The QMP USB PHYs on msm8998, qcm2290 and some other platforms don't have
the PCS_MISC_CLAMP_ENABLE register. Instead they need to toggle the
register in the TCSR space. Declare the registers accessible through the
TCSR space.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240117-usbc-phy-vls-clamp-v2-2-a950c223f10f@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Flag the PHY as possible handler of USB Type-C orientation switching
type: boolean
+ qcom,tcsr-reg:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ items:
+ - items:
+ - description: phandle to TCSR hardware block
+ - description: offset of the VLS CLAMP register
+ description: Clamp register present in the TCSR
+
ports:
$ref: /schemas/graph.yaml#/properties/ports
properties:
- "#clock-cells"
- clock-output-names
- "#phy-cells"
+ - qcom,tcsr-reg
allOf:
- if:
orientation-switch;
+ qcom,tcsr-reg = <&tcsr_regs_1 0x6b244>;
+
ports {
#address-cells = <1>;
#size-cells = <0>;