From patchwork Tue Jan 16 01:08:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 763346 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B62C643AAB for ; Tue, 16 Jan 2024 01:08:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lcbQT3/P" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-50e7ddd999bso10228716e87.1 for ; Mon, 15 Jan 2024 17:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705367321; x=1705972121; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=MEpBpePk2Fe+evg+9+5KRmYVDZRaE7AM1j+je/ds5Vw=; b=lcbQT3/PsMhZv805Uuicw5KLBibiPJkXNXINN/UQxmwJRXqwBPJHPLMv81OUDfmyl5 vka46ommIqadXYHFxeAPd4ASnvoXO+fiTxymjBCjhJtsO6R6ku+3MyntL0DMv2mO77YY d2RRbwzBVDuag2RYMK6ik/rjwFAXyw2vTtyGxCl/eApbz4g4S/vSKOk12wWbM+jJums3 8y/o3bO1bLeXE0AbLLSyiCQt4AisGxQ+Zxexhk6XUzPaTCaEuFgwk2vtAWPasJYpTH8q aVGOYT6r2hYTDc1AYBmuW9oI0QhUNSrOLkDmdJkB7O9kpXibzIFTWPrXwRUzo5V+kCbl v6FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705367321; x=1705972121; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MEpBpePk2Fe+evg+9+5KRmYVDZRaE7AM1j+je/ds5Vw=; b=beZxOK4nVCaM3FeHO8wlOFY4DZiJaaq4rHl7XrmBGxkmUNjaktNtakZ3NX9Yihc5w9 Xb9VXyS7Sczghk2XNOYtaA/ze4V0yIoK5/bZNy5RV59L0dGFI8aOEtcKcWEUH2zi7qou +1O77N/++yy97U46aPiMj6TZ4GaL+sFV9OcKnCLscpgzpfynLxvQY1Do/ydLYD5B5EfR QtDblTw0fFPmvq0ddmOcdoquGk/JchpAyn1ehfiY/c+yDEOcCE6pkZiUppbPJ3nNv8qn MCcI+LLa7vu2+v1F6pHWzoyQCZnDOE05C72zKYrDxXo5iJtkczs0EY1Q/St64VUFsW+c NqWg== X-Gm-Message-State: AOJu0YyuvAeDVHO14CEoQeJWRIYlH8/UklG/pmF2Ifwv1a6Kq8c9xo9v BOqwqHWQY1ZPlDZMY3AjNaDFfACME5fLcA== X-Google-Smtp-Source: AGHT+IF8x9G3m2kXw9P+9jtMN2XrPxmmiI8kKsSeCWAJ6wKGAJ04aH5sve/NkhfTih4N6yLfs6VctQ== X-Received: by 2002:a05:6512:401b:b0:50e:d202:601d with SMTP id br27-20020a056512401b00b0050ed202601dmr3235141lfb.73.1705367320990; Mon, 15 Jan 2024 17:08:40 -0800 (PST) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t3-20020a056512208300b0050eb2325472sm1615507lfr.37.2024.01.15.17.08.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 17:08:40 -0800 (PST) From: Dmitry Baryshkov Date: Tue, 16 Jan 2024 03:08:31 +0200 Subject: [PATCH 5/6] arm64: dts: qcom: qcm2290: declare VLS CLAMP register for USB3 PHY Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240116-usbc-phy-vls-clamp-v1-5-73b2da7691c5@linaro.org> References: <20240116-usbc-phy-vls-clamp-v1-0-73b2da7691c5@linaro.org> In-Reply-To: <20240116-usbc-phy-vls-clamp-v1-0-73b2da7691c5@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Jeffrey Hugo Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org, Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1149; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=5s+C8l9HjeR5C9PMCkzn2M15yrFw6QVI1uh1HoQRbAw=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlpdcUB5Y++cfi+p9OvDh9xSmKvHvrn1QVKX8p7 Oh2qsjYNoSJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZaXXFAAKCRCLPIo+Aiko 1cPCB/4nTVJB8iCrE0+m/U4GPT2jleb1BIy0WpsHcERz38NcTplPem5Xekmt8JzdIbRytU2hLq4 NY0qaS4PBhsBUo2hMLH4LCfc4o1QIKMSB01pLj3B7wl0H4wnlx46MX8NZ3MY46kxhIBLNa1NOjL g6QAhwM2aToZWXcOgvIB4OJgfMrxc6BUhMv1gYMmwj/UkattbENA/hjTDSNQb1rwrpUVgkbOlpM 5nMruXaSA0z592WhsqGrlMWsBmnRN7sj2I9ArQT48kWeUGq+a0Ywt/wXrwRUtZCaV+H4nG6Va2M eNtEWrnBU+bGM/OkCp3aaW0iV33PLptzgBAhhmQzjmQ9OGLs X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A The USB3 PHY on the QCM2290 platform doesn't have built-in PCS_MISC_CLAMP_ENABLE register. Instead clamping is handled separately via the register in the TCSR space. Declare corresponding register. Fixes: 0c55f6229bc3 ("arm64: dts: qcom: qcm2290: Add USB3 PHY") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qcom/qcm2290.dtsi index 0911fb08ed63..68b52e8faba5 100644 --- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi +++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi @@ -442,6 +442,11 @@ tcsr_mutex: hwlock@340000 { #hwlock-cells = <1>; }; + tcsr_regs_1: syscon@360000 { + compatible = "qcom,qcm2290-tcsr", "syscon"; + reg = <0x0 0x00360000 0x0 0x20000>; + }; + tlmm: pinctrl@500000 { compatible = "qcom,qcm2290-tlmm"; reg = <0x0 0x00500000 0x0 0x300000>; @@ -690,6 +695,8 @@ usb_qmpphy: phy@1615000 { #phy-cells = <0>; + qcom,tcsr-reg = <&tcsr_regs_1 0x6b244>; + status = "disabled"; };