From patchwork Sat Jan 13 20:55:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13519084 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 7E888107A6 for ; Sat, 13 Jan 2024 20:56:05 +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="srGAbfMl" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-50eaa8b447bso8300548e87.1 for ; Sat, 13 Jan 2024 12:56:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705179363; x=1705784163; 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=RnYyAOmdP1ndhCl+b/EqGIg63FmPiEn40CVrBRSgTdk=; b=srGAbfMl0q3wvVisa2TwN6Q7BBwKrwvESmBJ7HBTed6BIN6Mw3twxgje4N1NmFEcAg LIfn4kluryRTdsFrb/r3/D7Z77r2ygo3AfvuPkXsiSTm9B39vExmDCvlbiRAKwxMKXdl KRtYO+O/V6PR0W7vbGKRpMw1d79wSUgNIia7Bw2Gz/trbZTSHmxo8+BGc0Fvg+YG2v4Y 3RI/Sa0cqayPdLzfPC8gUdVeeD6QK1nGR4DiYD2IsonvQPCHaIqBO7zP55ZJ9SMPSy7I vHTgY1wJgOc+GSwAxuQbWgXSC9HPuNRSo1fym3zoUcJDK7KcGlJtVrvbftZF+XqFracQ mc3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705179363; x=1705784163; 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=RnYyAOmdP1ndhCl+b/EqGIg63FmPiEn40CVrBRSgTdk=; b=SOKiX0vsbjGbUUtmuyS+n1NjWgQmypP3NNI8pOAFhyQiGO6CK+BVj/FmG7yCrTZU8V tN8tKoCm4qJ0DzdHrl4PXLuGlphUCJKddLD1vCW1Mp2/oXwEXERTR4M6QP87xFanqwz6 BnWN48tP2odIamQGmRBfTN2FkVfjfNvTCKi9RyvZqhH/U+DBUdC7xy675z118HG4lTwg KMJ+9KXr4flGmA0NkWlH9vlGNxRGgHCSueAPBCGNWDgBcLY27emj/lsvpl/07AeBg8Fd G9gql5YVm8Nv067tLVaZEBqHQ7Yo0Kkij0vPNZNKjBpkBIZiuTNLKHTxvhDgYM6PDD+r K73A== X-Gm-Message-State: AOJu0YxSmr5KU8xq0vqMUt3AfS+yxUFNtbhJuzAhUvDW4c2V4XwIUMec sZVvXCQyKZJBOTbw2m3ln/f/vxLQYkxbzg== X-Google-Smtp-Source: AGHT+IG5cA1EWA4duY+uo+be/bwS8pQStVj9RTEXXvd/KyWNa3i9lFiJk88dQD6iVwGTSegqTeoQ1g== X-Received: by 2002:ac2:4f8f:0:b0:50e:3726:7036 with SMTP id z15-20020ac24f8f000000b0050e37267036mr769883lfs.170.1705179363803; Sat, 13 Jan 2024 12:56:03 -0800 (PST) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id p14-20020a056512328e00b0050e9355d7eesm919802lfe.103.2024.01.13.12.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 12:56:03 -0800 (PST) From: Dmitry Baryshkov Date: Sat, 13 Jan 2024 22:55:56 +0200 Subject: [PATCH v2 13/15] arm64: dts: qcom: pmi632: define USB-C related blocks Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240113-pmi632-typec-v2-13-182d9aa0a5b3@linaro.org> References: <20240113-pmi632-typec-v2-0-182d9aa0a5b3@linaro.org> In-Reply-To: <20240113-pmi632-typec-v2-0-182d9aa0a5b3@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Bryan O'Donoghue , Greg Kroah-Hartman , Vinod Koul , Kishon Vijay Abraham I , Guenter Roeck , Heikki Krogerus , Philipp Zabel Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-phy@lists.infradead.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1709; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=l+v+wiM85c32Me3NGIWIsOe/VuV8zcqdzBSKd+lcjDA=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlovjYwMtAuVPhsCwgdLMK4SZ050X5Jk/5KkauN kRhVcjPV16JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZaL42AAKCRCLPIo+Aiko 1VENCACq77+FZpxwKdW2oUH5ndplo6jw9WZjdhlTrypIe1qsCwYXUacPFtA+PfAvkxvhdsmGzea Wl23qcZ6EqXQV+CfcKueNse7s/lxJIl4ZSb/KwZKuYst1jNBjW/fFfuaV544A6GAYxsiaIYU/Lh lzfJhTCke6JG3/snHmvmiU9KBluALPyoW2LcI1aOzjhNxYRGjUCjAXNBTlLffpDWBzqhz4Bfhr3 wUDE5ugjoWR5ebu+MxbjTEByZ5M1BkXQ95SVtLoHVPaiUimq7zFS9sI+s4h+V0auvkQKXZOIHqf D0MHm1NZojJt5LkwQKyr1tbXalGT12anWUIAKedwpGTnHiWg X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Define VBUS regulator and the Type-C handling block as present on the Quacomm PMI632 PMIC. Reviewed-by: Bryan O'Donoghue Signed-off-by: Dmitry Baryshkov Reviewed-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pmi632.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi632.dtsi b/arch/arm64/boot/dts/qcom/pmi632.dtsi index 4eb79e0ce40a..d6832f0b7b80 100644 --- a/arch/arm64/boot/dts/qcom/pmi632.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi632.dtsi @@ -45,6 +45,36 @@ pmic@2 { #address-cells = <1>; #size-cells = <0>; + pmi632_vbus: usb-vbus-regulator@1100 { + compatible = "qcom,pmi632-vbus-reg", "qcom,pm8150b-vbus-reg"; + reg = <0x1100>; + status = "disabled"; + }; + + pmi632_typec: typec@1500 { + compatible = "qcom,pmi632-typec"; + reg = <0x1500>; + interrupts = <0x2 0x15 0x00 IRQ_TYPE_EDGE_RISING>, + <0x2 0x15 0x01 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x15 0x02 IRQ_TYPE_EDGE_RISING>, + <0x2 0x15 0x03 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x15 0x04 IRQ_TYPE_EDGE_RISING>, + <0x2 0x15 0x05 IRQ_TYPE_EDGE_RISING>, + <0x2 0x15 0x06 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x15 0x07 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "or-rid-detect-change", + "vpd-detect", + "cc-state-change", + "vconn-oc", + "vbus-change", + "attach-detach", + "legacy-cable-detect", + "try-snk-src-detect"; + vdd-vbus-supply = <&pmi632_vbus>; + + status = "disabled"; + }; + pmi632_temp: temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400>;