From patchwork Wed Jun 5 08: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: 801698 Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 A726F18C34A for ; Wed, 5 Jun 2024 08:56:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577767; cv=none; b=HTeE2iru+N1yQ2PhUtyrXSwFbV1jXrRLNvUP42dGT2RjKZoV1sZWB9MhMtK/VKz3QeydI3wWx5cTpW+Bl3WlYVtUKH1pCfCIMNk6IYvAxtoQNJqPbKPCUjPekipPZJHJ7lVJVicpV9zXTYSEVkdNfPbp9eiioKelA/vWpGtNsfs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577767; c=relaxed/simple; bh=+RccpUJwmpU1LzXIIE+Z5WpSTFsSjxa720tthk/FtD0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U+Sfzp8wIMasx53vXRRZw+gatWtseszlFdGASPCei0oWiGU5eHVYS1EW3ZBj3tdhifCUuRjCDHe9aD2RI7Bx0A7Off/RR75TBcphdYWM5AbYmmyOcZ5802aBI0kYR8qKLlQADMZRG9pOGMIjTP3yeh1jYORClkSgu9W9uYLzmvc= 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=PY5JUB7x; arc=none smtp.client-ip=209.85.208.182 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="PY5JUB7x" Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2eab19e7034so6146061fa.0 for ; Wed, 05 Jun 2024 01:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717577764; x=1718182564; 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=+kpQnqqqSVuejJPJABBKqggJwaHgc93uYPHXdAev6mI=; b=PY5JUB7xejCk8FNt/8+pM3g2fFoceqqnmolQTBbgtHJguBp+ZsJ+fhTBjcBXmNkEq+ gJju2E8RwVqQDOUchkRYUiaJ8Vz7VTsLgrDzEZjtgShuKm46+Hu2BnjMTf0SgGwoJmIf Zg9zN1biZny0m+gxiAO4pUKVd47LMq5jdxpuB7J7PStEtYOdWi3BWCZBAnr7fkAep8Kg U5AxidvWTx9Nyxnzopse/Yn+3otQm/5F+29Z163bEDm1WS44I0qW/pArt3N2WD6gf3gM hjPsnqMzRemI4jxo72t1Or9Q8hTMh+67Khhj5PzENdc7hWOeMjx+pwoVHPphxkKyxCSS dLAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717577764; x=1718182564; 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=+kpQnqqqSVuejJPJABBKqggJwaHgc93uYPHXdAev6mI=; b=dVcTDQ5biVFDEFoZFVfwpwRq6MMCubwVHTomxLrvMxwg0HoVc+Byta3bkVo1UXppvW PNd3vzcdIbcan3sCw1CHykzcsIdfIpkb0ZLDnNXHf/SxBr9TiQOzvJ7Eg3Wom4YVe+47 FshGe37VQoqKuldlzLAWMt/9eRMA6pAZyQJHQRpU00enqq7UnLpugR0M9y4PvMyaTzK+ mzhAXRzaZc1XiCAHfpnYnQBUEVenmPRBBCyOOruZr8r3y2VZ4gmGb64+BoNY7ZuMTGyu NRNmP0ayJhQVZ81/2Qn43b9Iwy5cRrCxUhIbTrprdn5Me+ETYC0uyjrPSpgf/4foDXal d36g== X-Forwarded-Encrypted: i=1; AJvYcCXsAaJY+xn6S3arO5+SCEB+rb0LLMdQqt5nAKKxqLwa1R1tqmx0JXb8oCaBz0cVti2N5QzcwWC9fEOs8cAkhbRtRdmrJq/KVvNk/qB+wA== X-Gm-Message-State: AOJu0Ywms4T1K9+LCgIafFGesg0CBqItD6aBVhXbyYjuwrhRmmG6mn0H JmfrKj/yLItcsv3FZweaf17lvmCOcx3Ou/ybMc1hOgB+l2N2+GCgqn+tupqtb/4= X-Google-Smtp-Source: AGHT+IFDReirRdjjKGPG5ks0aGxVAJHaEgtt9C0ix5ER6U6cIzBhxTbGupz9iH+hYUY6Qm8Vpe7Zug== X-Received: by 2002:a05:6512:3c9c:b0:52b:94f1:6115 with SMTP id 2adb3069b0e04-52ba229b2dfmr1827078e87.25.1717577763804; Wed, 05 Jun 2024 01:56:03 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d3f55dsm1715321e87.72.2024.06.05.01.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:56:03 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 05 Jun 2024 11:55:56 +0300 Subject: [PATCH v2 1/2] arm64: dts: qcom: qrb2210-rb1: switch I2C2 to i2c-gpio Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240605-rb12-i2c2g-pio-v2-1-946f5d6b6948@linaro.org> References: <20240605-rb12-i2c2g-pio-v2-0-946f5d6b6948@linaro.org> In-Reply-To: <20240605-rb12-i2c2g-pio-v2-0-946f5d6b6948@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Caleb Connolly , Alexey Klimov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , stable@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1512; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=+RccpUJwmpU1LzXIIE+Z5WpSTFsSjxa720tthk/FtD0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmYCgis+/VKxDqB8zWqxyQONbpETW/6Otdc520y t/JSEqJ7kuJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZmAoIgAKCRCLPIo+Aiko 1WzvCACxWQwjy6Y1HEw34Nq/jHm0FQPEq7DB5kpZtlaCtNTGX1h+F6lm9acHSt9goc2DzP/vT60 qusJWxBa09VZQWZMdI1GP1x0YZZrfXQmhtKO5WV1FwrgXEiAVHfZPX9UFK0JfsBCRZFSASmqQBc dMPrFeacZrGdrWjwIo53MMFvyIIdTXD9MaxTOX08PIH11UnHl11AKC4bUD4vGS49ztCLUeizOHZ t62hy4JK/I+1PVvdJbGtKojLz2fXTirx6OdSoLfvMD7LrBKbsOUCwGjatfb8UEt4mY/igMCTF9C oDTeci0yTEEv0f7Du8rtyOD3UTEBdeequCUrtjdt4vRaqud9 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A On the Qualcomm RB1 platform the I2C bus connected to the LT9611UXC bridge under some circumstances can go into a state when all transfers timeout. This causes both issues with fetching of EDID and with updating of the bridge's firmware. While we are debugging the issue, switch corresponding I2C bus to use i2c-gpio driver. While using i2c-gpio no communication issues are observed. This patch is asusmed to be a temporary fix, so it is implemented in a non-intrusive manner to simply reverting it later. Fixes: 616eda24edd4 ("arm64: dts: qcom: qrb2210-rb1: Set up HDMI") Cc: stable@vger.kernel.org Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts index bb5191422660..8c27d52139a1 100644 --- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -59,6 +59,17 @@ hdmi_con: endpoint { }; }; + i2c2_gpio: i2c { + compatible = "i2c-gpio"; + + sda-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; + scl-gpios = <&tlmm 7 GPIO_ACTIVE_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + leds { compatible = "gpio-leds"; @@ -199,7 +210,7 @@ &gpi_dma0 { status = "okay"; }; -&i2c2 { +&i2c2_gpio { clock-frequency = <400000>; status = "okay"; From patchwork Wed Jun 5 08:55:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 802106 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 294FD18C35B for ; Wed, 5 Jun 2024 08:56:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577767; cv=none; b=eEX7PGTSGaIyaQuXAuzc2dQTGpeXnYKe0pGg35Wpm8vif3cD3jred95g4Msetf65qZ7ffG0qHi/1DIyJVEUas68/M/AFM3Kc15rl2sv2wD8OrPs4TyyxSSsmViMdSur4GmTfc2ML33LoP48OpYTNPsOiMbSydYdosIv3EiVYfRg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577767; c=relaxed/simple; bh=JimJ2WKWJoWSbde6de8NxEi7A9lLOi4dbNpKH7X4d1A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ntXdkZ29IVQv1mN+fVSgR4AxuQtLkQirnfftCwS4pLREMQbYQALQNTgUjGM32XkAJGis8sopPX74AZhcFS2N4TOT6ZNO2DUTaxMwblpr6SrW9wGEI8A4+lp0J7sPvIuoOYbgqEVUagI8dPnnrJuM9gJXBtcxs/4rvdbiuCpPYW0= 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=KFOgKVgL; arc=none smtp.client-ip=209.85.167.51 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="KFOgKVgL" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-52b94ad88cbso5554702e87.0 for ; Wed, 05 Jun 2024 01:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717577764; x=1718182564; 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=xqEUikhtDVFjEcI485X9HiAEizf3mzMtkmWG+aaEE8A=; b=KFOgKVgLz8XG8akFwVHkk4id0JNVd/zwtbbHwVk5qjf1DzGzmGYGbCICkfxfmTbXfH 9pJR7IqaXWLu6Pu6V8QoOcFzF91oTrxMsCP+PZXMTXoi+WsLKzZijOE1BzEwpo+nWP0l F9gnrFopdsLXaTFb/vJxevR7EhaBbJb1d5fHBXDccxp+olRb3PxtZ1PYysocXpvi6FPX tLUkS0bqjYm3ZFXECpTJdPItcHIaw/gkA6IcBMyXnG1z3ouZv+uVzFFg0zomqbwfIpWc FRt3H4kIz0mmgXgihB9TSREAWTuiuzwnkzaXgzEm8/wd9ZzOp2FgJwNTyuELKyliDfLz jL0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717577764; x=1718182564; 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=xqEUikhtDVFjEcI485X9HiAEizf3mzMtkmWG+aaEE8A=; b=E7Rk1orXTDalwNS7NIT+4PmChyyw1BtyVg3On9dN+8EJMdW0Y5JLQgXbhkKM0sI+Ck lBHW4zq3DCGGGzXI3H4wCJi6Lm0hAMf9B9wy8sQ4ZFIjpWsVNG3uZ1Tlfw0ZCL6P8jWA 0TgL+XqqhKMNnlah/HRqF1ul5HEXenvaTsI8O1FBh9km85GXBe8C9Y47lMGL0lAsNq61 NQFMaHs7I9mkjSVrv0SeF+0Xm8Fqaz9SMZttTI9j06K6XMP8FpQ07NhZc7fWkY+b5xVo y5Vv3Rks2msApMFRvTXuFNwz4++aB0hcoNJb62S5uBiB4mD8DU/TjY1nT59xbv8rQVlK a6/g== X-Forwarded-Encrypted: i=1; AJvYcCWfedojvq4mv8U5ipoJOjH6uYXX9W3ovMHDCkM4xmBo2922DYwu3f9ig0r1vM2EIDpEPOxPH43ke+y0IpfNLePPoM/TCBmIMjxEhxv24w== X-Gm-Message-State: AOJu0YyBPGr/bE/k4xBUZSVVC0oBkAkQXMx1H9SR0J4T6MUhUccMdkLH lrdrSXAf6qyxBkuGZW5GUox8/oEuXQ8mhDaYtdq0/c8gsPwUf0ZbAyFXo/O3Ofs= X-Google-Smtp-Source: AGHT+IGDwja78Rvvvf5+U4K2XTt1TmZqI4X52cKE9aRdYun8E7uFAXsKe5nG3KKFgOjR205k/hDDrA== X-Received: by 2002:ac2:4949:0:b0:52b:8417:fa94 with SMTP id 2adb3069b0e04-52bab4e6994mr1326729e87.33.1717577764439; Wed, 05 Jun 2024 01:56:04 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d3f55dsm1715321e87.72.2024.06.05.01.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:56:04 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 05 Jun 2024 11:55:57 +0300 Subject: [PATCH v2 2/2] arm64: dts: qcom: qrb4210-rb2: switch I2C2 to i2c-gpio Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240605-rb12-i2c2g-pio-v2-2-946f5d6b6948@linaro.org> References: <20240605-rb12-i2c2g-pio-v2-0-946f5d6b6948@linaro.org> In-Reply-To: <20240605-rb12-i2c2g-pio-v2-0-946f5d6b6948@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Caleb Connolly , Alexey Klimov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , stable@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1506; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=JimJ2WKWJoWSbde6de8NxEi7A9lLOi4dbNpKH7X4d1A=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmYCgiA4lLxMV6lFXqvgHShtbOIvKMDyXjoGGKT dduqSktUCWJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZmAoIgAKCRCLPIo+Aiko 1YT+B/9ki4zwj3Q/i+HkXQc0zyA+go7ug0uz/NQ5xfTM628lK3uJTwcFg1IZXlnD4kdjhCm3L/U vEChhdUnJXgXMSw93qVuKIYOT7FbuVId3qOCWZtvwrqoAq4obRePXicpWjyor3w+EtB0w8QO2B3 S2bj1amDG7DFHps3Pvm5nq4LZEYv7BlffOwPqNceSmLufG3j6d3XXst0jARPcQNlj9+26Sx4hZ1 FaKywQBdxmjHX8BXQiAyTgDP8tR9rlk8mhPTCweccTXnQJDuwY/nqsr9h7JosyP9ll18pcke6aE SV8mWxH6pSrUxXqpMQhnUvkm89Od05UcKpWqThtcCfGKQsLD X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A On the Qualcomm RB2 platform the I2C bus connected to the LT9611UXC bridge under some circumstances can go into a state when all transfers timeout. This causes both issues with fetching of EDID and with updating of the bridge's firmware. While we are debugging the issue, switch corresponding I2C bus to use i2c-gpio driver. While using i2c-gpio no communication issues are observed. This patch is asusmed to be a temporary fix, so it is implemented in a non-intrusive manner to simply reverting it later. Fixes: f7b01e07e89c ("arm64: dts: qcom: qrb4210-rb2: Enable display out") Cc: stable@vger.kernel.org Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 2c39bb1b97db..cb8a62714a30 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -60,6 +60,17 @@ hdmi_con: endpoint { }; }; + i2c2_gpio: i2c { + compatible = "i2c-gpio"; + + sda-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; + scl-gpios = <&tlmm 7 GPIO_ACTIVE_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + leds { compatible = "gpio-leds"; @@ -190,7 +201,7 @@ zap-shader { }; }; -&i2c2 { +&i2c2_gpio { clock-frequency = <400000>; status = "okay";