From patchwork Tue Apr 9 14:28:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 787278 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 BEFFF12FF65 for ; Tue, 9 Apr 2024 14:28:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672897; cv=none; b=bp5jdZ3MC33AzRzH4vJA5GlUn00fewqOQUuo+lzgCsSP+vYSqpD+eydxdMyBCUCjmh5YlAYy4a1AhNPtRGkZBMDTpuprea7rW7f1LdO+XXNhR8Dz/u5qywcCzhXcOqc9czvKQlyOIothErBh/xl7tixJkWgtPEpKLKCwqVMVeA0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672897; c=relaxed/simple; bh=TbTQFDkUrypej9KLx3hPuKqpyqPFSoUkCov9DpWTtn4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fdZTJt5fCT55x7m5Xm5ccUoPFUBh5OnSb/A1zZoFlSeLyF9gcpqVYPFmcZrqrYqOuAxcPgLrZdbjb7Mx7pCiuyOqtZmGcRf6gyQOKIc6Bv5O55O40xqkffNQh+seA8qpl3OYroBPtrzBdNWiM2QmQR7mHm+/VHh7h4PRoH0uLnw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZztIbxbE; arc=none smtp.client-ip=209.85.167.46 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="ZztIbxbE" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-516d3a470d5so5233946e87.3 for ; Tue, 09 Apr 2024 07:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712672894; x=1713277694; 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=JkXYzFk7GPyWpkaw27Q+vOynSin5mr5h6aDeNoi3mHc=; b=ZztIbxbERIbc+mRWZT8Jz5chmY+EZ1iQG24hl4megeqXM7AR+hckPrplnrALk2EfSI i2NPpfzjlUzz9Ou1fYXh9LhwWprZmMIkTkRP8CdXjXQYCR4zjlM70tp6AV2S6+EFbxeF oAwz0U7vfo5DXztcC5mggHKU/GJQNV1iKB6q06LX2/k6/aKytl1kXgG1LsVLgadVeExQ S6SjUXNqHxCKwkItLtPzxafP6k+3ALiS47pqDtFXuS8JzHEW1FrlQSjRAADVNTGEzJSs tZt+ISXcImI/eHOU/fMgD9KBOPqUW9KYLaWTkhMBYvECgCq1AHzZ2o38RS7bx4KEa7aL +rNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712672894; x=1713277694; 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=JkXYzFk7GPyWpkaw27Q+vOynSin5mr5h6aDeNoi3mHc=; b=YtZSG3LGnlynhxxBl5ft9jucUt0a9BGFDzHoqMQsPyl9EC7oqbjKEP9ZojLjMhKwrO B1FSFcngJRD2tTFftrykbcvUDd99DZBWtMGE9YjHX1hnch97559Gx9tj+V85L8tgtUcC OjtxGXKvI3aKQRdosY0WX5Uubhe1SJe0XcciaaVUHaGX0kevf5r/TIpCiusLskJkLLEr xJXw8bbcOcWkqDzJz1XSjo65+LWeo/BeqSmOS3pmNj9QUYHDXAJSVAR1dDMdX4IjBc3U Oui0LKVusUDyu+BicAdTKldNwhnN9OACrFAH1uF0xVJhMhTVw7lAkGaKyqGUKV5acyRk BV1A== X-Gm-Message-State: AOJu0YzctvO3fd9iULwnX//fysObORjrBIzQ6dSVqEPl5IKwMlkSRLLJ gkoxOHcgSZZU1d1oob1VhMjGBOj6wLzTTFpdjlfwUxSKwDXAgH4REEhkbXVl15+K2jqkH4ceVBE k X-Google-Smtp-Source: AGHT+IFH9y7oqTEM/5eahdo6OL2FPV25IBfIds4+wHhIy3Oe3Rtk6gNkzuwYJ7GLjZlMZ3ymjTYSgg== X-Received: by 2002:a05:6512:3106:b0:516:d30c:7236 with SMTP id n6-20020a056512310600b00516d30c7236mr9819529lfb.18.1712672893873; Tue, 09 Apr 2024 07:28:13 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id d9-20020ac25ec9000000b00515d2ee5b38sm1556445lfq.48.2024.04.09.07.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:28:13 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 09 Apr 2024 17:28:11 +0300 Subject: [PATCH v2 1/5] dt-bindings: soc: qcom: pmic-glink: allow orientation-gpios Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240409-hdk-orientation-gpios-v2-1-658efd993987@linaro.org> References: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> In-Reply-To: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1241; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=TbTQFDkUrypej9KLx3hPuKqpyqPFSoUkCov9DpWTtn4=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmFVB7Mvm9gjI1SBnJ92XnYYhEfNT+koaGVbzQg CWI/LnkflGJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZhVQewAKCRCLPIo+Aiko 1a3EB/wIqngfR7NxDF9yVy8dMLH54KAo3R+qOZHcOggDDukB++pUZvCoq3sDCReh4B/847czw46 UDTlR9snER03Iv8HST6LPv2CJ1E4KeDyoKHCDVY5s2hWOJ8gQTqK0R5G/xq39Fk9lAX2mvUGAet aS9jcEDNxzKk3ygUyGKP0WqM6z4myL6/7eI/1jO1Nefciste3AdRQ1tKvKtTyE2DrylaiRxR50J WF78ne4mLqOyQWPlENTUXAGqD7iqzdzQFtdi3D2BLcQyzY4oL2oE27CmSUAMjxGY3Gi4OZUHFHI +y1xC0tksT29rBD2y9EmpvYNsEPuu4nG2HhOIcqjxv5CdAXA X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A The orientation GPIOs are not limited to sm8450/sm8550/x1e8000 platforms. Allow corresponding property to be used on all Qualcom platforms. Fixes: 65682407f8f4 ("dt-bindings: soc: qcom: qcom,pmic-glink: add a gpio used to determine the Type-C port plug orientation") Signed-off-by: Dmitry Baryshkov Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml index 4310bae6c58e..4512390f90f0 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml @@ -58,20 +58,6 @@ patternProperties: required: - compatible -allOf: - - if: - not: - properties: - compatible: - contains: - enum: - - qcom,sm8450-pmic-glink - - qcom,sm8550-pmic-glink - - qcom,x1e80100-pmic-glink - then: - properties: - orientation-gpios: false - additionalProperties: false examples: From patchwork Tue Apr 9 14:28:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 787606 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 D9CE212FF73 for ; Tue, 9 Apr 2024 14:28:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672898; cv=none; b=ppzvqR/gA446N5EsN99JFX33HnEEdJjT+Aphaa7cRTfeHT8LGThNUG79oU52l4k8EklSbOLYbpHy6wb+aCPq9mLFIMHieW0zaQ9bKu9NQYf2YCOjJHqFXwOJOCtI2NwPazdWbYjZAohIElHK0H7umUfXNB/YuRb83UaOVUjRF94= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672898; c=relaxed/simple; bh=ACDX9UzrbGqFhCF5KLJs22fVKRsQhdGkigM5kxbDOXk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jbIdPEemYT0FAQVPKrhO6j9bpkY94Ww3Dr5kd47qcJsk78yU3+QE7hYX3ewMJdzCiYEZ4MRYRv8guOnkSokSSSqn27U6cmkEgZYIvmkUgwlbC6rj2K2rHBMckxyFoZ2sK8JtFDALqmZsWoO5XoQqOis1S+ZgHN2XKgzZ9RCoXN4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=b00NEVLk; arc=none smtp.client-ip=209.85.167.41 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="b00NEVLk" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-516f2e0edb7so3034091e87.1 for ; Tue, 09 Apr 2024 07:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712672895; x=1713277695; 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=v8fT6Gbci0qUXzI+tVhQnGd6IaJYXtCzzGcVOEtNpI0=; b=b00NEVLkoTIZXqUybZvAhG+dGeOYvNhKMbH0TtEiSl53o++fnz0f+l7FeI4GSr/Tin P3eDRRdwAdpgDvaLY6covNFIHSYwInk8yxyzfpdhUcVSoZGzXkP8WOXiZPNJ9gL81t+C s76bh4v0ji77iX8lFm+8L+Zy6ULv64iqYkdSRkqsSG7TyGjnMadf5vIMA6ocLVtozBhH MMRap2T3DivoInEyegNXn0IpNDKubSEoK6oTsPZ5kk47bY3aiFNWPPTOmZBEK1Baeeqt aRvemSeWDAzKH5uhFWHM2TcU6yxIUgxPQuNY6kAQv8S9us3udN06BeK/EVBta5mSygCM Q7zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712672895; x=1713277695; 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=v8fT6Gbci0qUXzI+tVhQnGd6IaJYXtCzzGcVOEtNpI0=; b=LaU2dGVXTXr7qak1fhUjHA4c5kfPThu0MOjzTBv7ECscOU6XsGdSqCD0e2wAQ64laU cVW/jUhGqzw//jc+HvQeEJSLVaUSAU5ex4x+3GblNjsq2IaLBdq1Vgs6MgDbTLK+rBrN jBBdc+o/bRd/5FW39USEwNLh3UG/qg88/fDz0f3k+waizvVZCPTugDbFwpAiMeUwhIxN Chl2oT/HJHFaw2pp7aT+BkHv6BxOtxDe9lU4OSE9ZSJ60yeqXEOnN2QdtlBfYVDQBjMG AioNnAAP2jYVYNlwRNVJR0Trm3wyAwRjM0f834HD9mSIXlzIHGClDl5e0/CSr+JrgY6S GcWA== X-Gm-Message-State: AOJu0YxVRYtwPpzA50YgPP/PvDihZJtExuq+d3FekuIttyZ69pxv+4DB p5WfCemGOxYlR3BuVzUHwVTEuuxg87JvvPXp1I2TJGttVft/Wq4xEcUjQ7muqfmoYPft/mC5DW6 U X-Google-Smtp-Source: AGHT+IGITIwImEW2zltg6RTXxolJ2rtoEuVPzoBWkiSPl89rR2v/kj6uF2HvIdbwn3nbkNn7zhovZg== X-Received: by 2002:a05:6512:285:b0:516:d18b:eaea with SMTP id j5-20020a056512028500b00516d18beaeamr7983546lfp.33.1712672894899; Tue, 09 Apr 2024 07:28:14 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id d9-20020ac25ec9000000b00515d2ee5b38sm1556445lfq.48.2024.04.09.07.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:28:14 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 09 Apr 2024 17:28:12 +0300 Subject: [PATCH v2 2/5] arm64: dts: qcom: sm8350-hdk: add USB-C orientation GPIO Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240409-hdk-orientation-gpios-v2-2-658efd993987@linaro.org> References: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> In-Reply-To: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=788; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=ACDX9UzrbGqFhCF5KLJs22fVKRsQhdGkigM5kxbDOXk=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmFVB7LGeXYvrK8yYmSPjaIGLwuhFfCw7FVXIL+ cMNdx6kSWaJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZhVQewAKCRCLPIo+Aiko 1ayzCACyrw2N7/mf9JOXuNP8ytbCVF+e8OpkkKq0CfXVElwFE/jYRl15DsgLAqsCQqyL6lq1olI lzOI9mN1MDvm68tCfvl4/GXM68dXiRxxKBAEuPR8XStIQ8Yfp0Joxa+3ml5TpvgNe+214lkB6oh hM52PisZYvflOh32UQ3VTuUBDFJnItPpggecVLUbS58P/cJgbMY7Uc6ZbnbyD9h9kWKiwVefCDr jFDurdRqoGMzAS34RidseiOlyvn9wx3FpKYP0FCmEBVTVNIu52NAG/Qlk9Zc5Mqh+rwxnSEm+lB 8wIEMeuwWCQ6f9Wb616EnwQrl7dVxQxplJn4X7/uFXbvyVgf X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Define the USB-C orientation GPIO so that the USB-C port orientation is known without having to resort to the altmode notifications. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts index b43d264ed42b..4c25ab2f5670 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts @@ -42,6 +42,7 @@ pmic-glink { compatible = "qcom,sm8350-pmic-glink", "qcom,pmic-glink"; #address-cells = <1>; #size-cells = <0>; + orientation-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>; connector@0 { compatible = "usb-c-connector"; From patchwork Tue Apr 9 14:28:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 787277 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 A342C130493 for ; Tue, 9 Apr 2024 14:28:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672899; cv=none; b=JnAfsLgKB4nYI/H1y8czLrZZ0aaTFqrXdTNrJwBIdzV+lforVz+e1YWgQIwzzXkiKD6X7ZmMxnDGHPCepIkjXl4ovnarK/fBYpR66j9WRw4+Es9jwNa7j5AoMz+cCCHOnoV6maiR9xWxivaH5mxQ4BR5xGFXX+WHTSw/QEl3pvA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672899; c=relaxed/simple; bh=MrRma8bXJiIflCVU3n2w+pWL093vD3VGBihielJk17A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Q2aK/LFHDvKHjcX9hFcZANMU3WZM6jFILAFRbxb+x5X9w0iIuBRHE842EMzV+hTWw7zAJi7ZfhGz6FnaqE+6J+7rXKMyZMFm1okA5JlQ67ZQJkkPyG/8N6mou3L9CZLfVrm7+XhEP+M3M9zXHc6/fCAiuo+k44CK+q4wSGxfXLA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RCRMKCBL; arc=none smtp.client-ip=209.85.167.42 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="RCRMKCBL" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-516a01c8490so5574597e87.1 for ; Tue, 09 Apr 2024 07:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712672896; x=1713277696; 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=IOQRjwUPOwicZ0FyUJunEbCwB+UEOoMXhllX9eZKJIk=; b=RCRMKCBLctou5jiR8ckn6ANJcOlqfuDitADd++zgGfU5bClUA6sHX8OMooygayYH7H wJq3Lmzc/YyQ8NjnSBhQwHRhi2HOnZANNWN583KEd4P1H0LZQKSpP1KNYl8urFq5aLJP 1y7wIzU2nG5GZSMQIKmq8SUwpZnqV3wf7QLDDg95d3dk0qoUAD20kPil2eezptRccO4n 3YZLKfxnyo/sR0GgoNkEDbKChuyjuyZTqStHQbElAETnv5iBuJy3CwAaX3rzd0q1jtGk 6cyF7RtMvS05WB3ScFcGEBAdVWf016lIvmLX4vi6DhA1djiZAGFOP8V/umn3OGSOApuS rgig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712672896; x=1713277696; 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=IOQRjwUPOwicZ0FyUJunEbCwB+UEOoMXhllX9eZKJIk=; b=LKnWbdIIy9ZHA+ukYBTavAGH1P1TXFBv1Yo2jVGy92dOBMXxNpKamacWI+w51M/Yo/ DnhMWqGXnP6PVaFFjU0bIrZbPS1rFDYBte1tg/YgrM9gjx9IHv35actkYFyA5/KANjA0 Pjm+EJgiIgWXWGkfXLIegcCTQgYllCJ23TvE99xdlV5TYnzhXF8gComwMeNLnVS4kGkV j7zygKq8i+HkPjmeuLlJXicmfD14/d6ZtuqcqdNdb0dBu4tEfkBT5RJLlOLkiO4rDEXS XhkFI/O6iLY6zk4TDAz9eekprsAhya+Kk7apO88R187TMc7yfwvRsF4SYf74ACZMSt6p TIaw== X-Gm-Message-State: AOJu0YwXVrRhlZBW5mBYLT0AjZJlH8i37kT2E33BvWpIiALDjloi5Du7 21/7ncWQ56PuMqqLgF2OSUWT7L8i7CxKdqKXu657yFhD70AJ8uSFRe9ImHbUn9v5xDHbafg/Mbt k X-Google-Smtp-Source: AGHT+IGHaL5kYaO//u9Awm3ADtqNVLe45FOtlM6gvqMFdUFxfnQ363lw5i4O+iuxEmY+3t1+JGdTRw== X-Received: by 2002:ac2:5a03:0:b0:517:d14:c0aa with SMTP id q3-20020ac25a03000000b005170d14c0aamr861908lfn.9.1712672895794; Tue, 09 Apr 2024 07:28:15 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id d9-20020ac25ec9000000b00515d2ee5b38sm1556445lfq.48.2024.04.09.07.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:28:15 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 09 Apr 2024 17:28:13 +0300 Subject: [PATCH v2 3/5] arm64: dts: qcom: sm8450-hdk: add USB-C orientation GPIO Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240409-hdk-orientation-gpios-v2-3-658efd993987@linaro.org> References: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> In-Reply-To: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=788; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=MrRma8bXJiIflCVU3n2w+pWL093vD3VGBihielJk17A=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmFVB8pVPxpZGcE1AEoOTiZQ0kneKvWySLSZ0VK Mat1S7z5kmJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZhVQfAAKCRCLPIo+Aiko 1UgYB/0d1RziNRXYshX25Q6Q1iomfG3rDVcqj9xrym5DAaGd22ORidf+mw5gzHQ06/vuYX5p4Fl 5GjFv40r/UlAz/wbQjNHXmr4EM3otKZ9v+wjWbZt9JRZo1KrGkFa8de/kplHwMENcaoAcF9BZmz peISB7mGOFpnI1hZcCGjyzB5RGr/ASs03uF0oPsclAqo7apbECPwMipZCv6MXtrHh12cZ2l3Vv5 01PKDP2kpGfhi5HIRjSIFxbEiLQXvOufKkNAiTSoqZ+veH/DN2T4IRbbQK++wRR67y7xuoncWxS jxSMNIBrOBRhtmjsVi2ECVZetR5mBno5TPVXfnVR0nSwlLoz X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Define the USB-C orientation GPIO so that the USB-C port orientation is known without having to resort to the altmode notifications. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index 0786cff07b89..3be46b56c723 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -95,6 +95,7 @@ pmic-glink { compatible = "qcom,sm8450-pmic-glink", "qcom,pmic-glink"; #address-cells = <1>; #size-cells = <0>; + orientation-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>; connector@0 { compatible = "usb-c-connector"; From patchwork Tue Apr 9 14:28:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 787605 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 576481304BF for ; Tue, 9 Apr 2024 14:28:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672900; cv=none; b=ZbHvXtZbUjWX9eSM+3Lz6sB4jXOUMXCXnDzsFGjoy7UHhVBcuk+S0u/KobhHus0wuK855dgVv9Ii19zlS7GVjb1171clyJ3rv9yYchlc0Ig8e1+BoMOOpEiAZATur/tH6T3bFYQ3ZPjNyT35h61evYPMr8VMS3/cLmVBveilN2Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672900; c=relaxed/simple; bh=HK+pQGlyEMASzaLMUZhoZ4LQ1b2xuwD3oB+E8BsoQRA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oO7eMEKUIJIBWqixvhee7O3MjzqOz2vr/LP1P4weApthNb0KqNES5EF6fdsYNKcWdDTp/6Ops8FRAzazMY544OKFZDQ6gtFXayMw1xDTV+KfKSlmKQ6EnM51XpnxbSI64lBqYV5MYx2MC+tP58i+URr1DwwNn6Iz4RZY5Wo6W4g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cez3e15A; arc=none smtp.client-ip=209.85.167.41 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="cez3e15A" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-516d0c004b1so6588814e87.2 for ; Tue, 09 Apr 2024 07:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712672896; x=1713277696; 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=BBs+x784L93t5mpvshVcosruv/wnrHW9FZoVJjVQz+U=; b=cez3e15AkbM/CFIFdfPeYanLGWnaqd7IIW2UiWxUSOA9tglPLfJLFc+yVFcO3x5fqm ZoXJBYx+B7n9qncAgTvkzHXaNttjeqHuSjDl6pRWIkBBgN5V9ar9+XrDYudYQynIMpBw SANNFGopA5Jvwn0eRY/HWd6cY8WATm5qvHDXn1f6xF55G6A+Nm8JvZYjQ0I6SiQ/lNpu 1Sbg23maOUUtSBUEgusgcM229xdOSqI7LvoxXX6lSkB3MxbClQ3qagA7pqpI9iomyTwR Q8yJ7ogijS82S2OKJ5Axb09hINJB3/t7BcQpnJIA719HEP6ysZgRwL5mH2IN+/+qzbT+ tXUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712672896; x=1713277696; 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=BBs+x784L93t5mpvshVcosruv/wnrHW9FZoVJjVQz+U=; b=Jd+6vKffyWlA3xqyRL0qvQyYX9/sEflZfCXLxm3MvJzXnUyptqlqXdWk86p0mpv7ck S1+1wfFwzHacFLJ/oYhJ8TXZRanxnMVvJ2zZ6ZT80H5AVSZhFEHDbLwsRyVSGUVbD2zJ gQ2y9kjPEK1kzhJ32v0vk5imyCvYVzQA2kQWDzMJBXQGOBVg506vMUCqfaoMJ/jvGSDT 3qEzfGAuXPlNOuUHxsLrpbSsTGLeb3FfHJW4lqM6F+9X8z4qG3uMdeDRHRHNcb+RXAY6 whhBhgUvRhLLIGgBtSt9UP4ma4F/0kDKXbVEdtuAunVH9tEm0RJrOhH7xvs+thDDRCyX pJzg== X-Gm-Message-State: AOJu0Yxd96h/FCfpONAVzvj7Mqo2+mDkz5N0g1q9OkM2qJlNfyCmpDte JB0PYFdbUc38UV7h1soin9O2QInqluCtdRyVqlQD3ugaJJbo/HIiMJ7ndOIh0g0zJs5/Kqk7cKN A X-Google-Smtp-Source: AGHT+IFETJVI+4Za9sj2AQkfZZ5Tz1V4SEbzbbLAh2eieIVo3gMOqRq7mT8raJ7iguGCQkjeQsoRIQ== X-Received: by 2002:ac2:5462:0:b0:513:9e44:c68c with SMTP id e2-20020ac25462000000b005139e44c68cmr9047971lfn.6.1712672896402; Tue, 09 Apr 2024 07:28:16 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id d9-20020ac25ec9000000b00515d2ee5b38sm1556445lfq.48.2024.04.09.07.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:28:16 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 09 Apr 2024 17:28:14 +0300 Subject: [PATCH v2 4/5] arm64: dts: qcom: sc8280xp-lenovo-thinkpad-x13s: add USB-C orientation GPIOs Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240409-hdk-orientation-gpios-v2-4-658efd993987@linaro.org> References: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> In-Reply-To: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=870; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=HK+pQGlyEMASzaLMUZhoZ4LQ1b2xuwD3oB+E8BsoQRA=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmFVB8QO0WAWUZDUwwUZuIWB6MAPFdadwwHaaED MbwSIe2ec6JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZhVQfAAKCRCLPIo+Aiko 1aL5B/903g9A6aL5RbR5dfzNmnegEq+FtH59N6WKPy6nxLFk1+Dtk4SEoBihxS4ZuKTkjFe43Nq IIyBYVw8tVRRoUi32GXgzSk0fn9ASSBK6CMH1GPfbwGD6JQ1//ffGzYd7Co4wstJGtfsv/FBRIH otLLu2ZdTiA2CcvTMqQPKf5MOBuCS7jgYFlTBIX9S5yesA8IRR+WPqpWl4Ocd8hBOB1l0qXSsrK LnzZzbqmBaaeVAU9VucZNJEbooZV7z3WcTdHQUietLBO5DZfiCYxPN9oXqI8JtB0PFm+meCjoCB XRPZ4CU4O3hlpkJLMJUvYjhM0vMYh6SfoeVEX9t+Ka71j3IY X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Define the USB-C orientation GPIOs so that the USB-C ports orientation is known without having to resort to the altmode notifications. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 15ae94c1602d..2806aa8ec497 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -100,6 +100,8 @@ pmic-glink { #address-cells = <1>; #size-cells = <0>; + orientation-gpios = <&tlmm 166 GPIO_ACTIVE_HIGH>, + <&tlmm 49 GPIO_ACTIVE_HIGH>; connector@0 { compatible = "usb-c-connector"; From patchwork Tue Apr 9 14:28:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 787276 Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 446AB130A61 for ; Tue, 9 Apr 2024 14:28:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672901; cv=none; b=WlpliA7BPfYKtxIFLlh2JrH8qTbqhetL+bgt98BQSYAK01gkIHZ9/UyVaKD28Rh27I321CJErBTgkfUiffy/T+LcwTKHD/VDm0B2gva7OOoqfm+0bSqjy2yU0V1lIcPIvfp0FAnmFNurUxjciG5+btfhtA9uZZ6QxOHFJ6aLw3k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672901; c=relaxed/simple; bh=Ert28OT3aAf58lII8YJfBxuxx9CsXW8kB9StD1Pp5Qs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Q5Jl5+DwWCiFIkc+niDM3ZPG9+RhetpEmbZmqE7UA/0HS6f6V2aDKsfLyqfmGYp1dTq1rY9K5lXB2KDRy5h664geBVKhdy7k+SbeNdzXA/yEWwN2hc5Ek2TEwUIhABPGpnvZB9M8dPfaHQsA7m92vQU5vmAcj5lX0rRXFtie0ZE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=N8+vHTSr; arc=none smtp.client-ip=209.85.208.179 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="N8+vHTSr" Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d87660d5dbso35199321fa.3 for ; Tue, 09 Apr 2024 07:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712672897; x=1713277697; 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=XwnaaipznVoDEcKs4Me335T76hxHxjEZxfF+WyLdSeU=; b=N8+vHTSr63yDYo+jvBDaX6RVzetgd+Pzdwnwf6vo5GSHUbMBAjcZaxyAYOkKbzUt7k g5sc2PpTE65/Wtkx2Vh9VHs81SY3XqAEafteC6C7aRr63IfIyZCWm+s0u2lUjS9mC/ZD 0p+G4kJ4E5yhSsslwMABB7RsaxxsPyDBIyxWuFRUVyUp+NiGvnZ89hAjbKtxLCnTTMS4 Uw6tZzFqJlL2JlHNeTSXpj5qmcvplQ45GEHTVAu7kr6WtaF1DC9n60B5ZOdfnTk72Qnm 6UHbm49HlG26I5cZTrRLSYpgGjFZ7rh3/Nl+mF2b7KtgFfxC6J+8jqU9h/UPsDKvFm6J KSLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712672897; x=1713277697; 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=XwnaaipznVoDEcKs4Me335T76hxHxjEZxfF+WyLdSeU=; b=CnN2D0+3zWMH29RQjqG079g/sMT49K4A+RQbfSotIzWEYciZ/TU4OwGdufEheOyxw5 kwgx1Bn85Lt30HO47g9vic36pHd6sAHRcd17IE3BEFoyItdWnZ5VsGRSG0rrnGtDUYQx /En3iMdYBdij+V/oyrUUSsJfBIvnqdsdr62bBDPAK0vImuRwrgurTtc9B6QwZr90Qjus NVYc91uv9cGJuqKbUuD3MjPZLaYy8BGaGQw2g6lMHmJNSZYLseeReI3+cAgY0etRGhin vXQQRTY8GgqgGI5mmGjrlbvOgxogc3VrxTy84v3uTKhsKOXrUayHkpM2pDotraQdSV2U i90A== X-Gm-Message-State: AOJu0YxTipo0RR2bssz5AJkBmbLDV4o16WpCZcmZXn44/MINVhxsiCHu SywR5j+89IFn8g6aj9FG8lm1ucpmz7GInPPSWyVW+j/r6gWOVTd2/YQcmtNMdtRHC8StvSKNPCa B X-Google-Smtp-Source: AGHT+IGa7M3AfjQb5yabZc3MePcuVx+j8sF0rJqQuNPmrT/zl4jukqtLzKF2SK1xHwgXaDBWO2dHuA== X-Received: by 2002:a19:750b:0:b0:516:d471:18a0 with SMTP id y11-20020a19750b000000b00516d47118a0mr7132030lfe.67.1712672897123; Tue, 09 Apr 2024 07:28:17 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id d9-20020ac25ec9000000b00515d2ee5b38sm1556445lfq.48.2024.04.09.07.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:28:16 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 09 Apr 2024 17:28:15 +0300 Subject: [PATCH v2 5/5] arm64: dts: qcom: sc8180x-lenovo-flex-5g: add USB-C orientation GPIOs Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240409-hdk-orientation-gpios-v2-5-658efd993987@linaro.org> References: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> In-Reply-To: <20240409-hdk-orientation-gpios-v2-0-658efd993987@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=832; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=Ert28OT3aAf58lII8YJfBxuxx9CsXW8kB9StD1Pp5Qs=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmFVB8HxL0CEq+ZBrZZ9yNuRSbPD/diMWSYCHdF DMI5Bz1LxSJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZhVQfAAKCRCLPIo+Aiko 1egBB/9cfBf+sbB5WA1+SEGcnfUuRfGkbcCVokMfMMvS4FgW5yXoqja8JxOgNTn+9xUhTMxD/wj 8b+YY386hhh0tN8JQRvqbOH2KqcTCiW9QMrZjEeDXsrLJlQ0H6ueitAI+xZe0HziTQBpjS8VxfQ kXXJKrg6FEYJS4YiaqDEUAFXKihzYbMAuf3Y2s443l2mM0vXQwA2NnilYLG76Hf88wCLzV7O1UB jEK6zJtC/teY53b15cNQcbHRtqiESLEiImKjOtPV5jDEK8zYNQaLiTdoQSVuyPM+jVjru0TZytJ ZxAgAWBfHT0M70vfWKJC7FSIbOo6T1Jk0orrd+4qV5W7x3E3 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Define the USB-C orientation GPIOs so that the USB-C ports orientation is known without having to resort to the altmode notifications. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts index 6f2e1c732ed3..6af99116c715 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts +++ b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts @@ -51,6 +51,8 @@ pmic-glink { #address-cells = <1>; #size-cells = <0>; + orientation-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>, + <&tlmm 58 GPIO_ACTIVE_HIGH>; connector@0 { compatible = "usb-c-connector";