Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6233942rwl; Tue, 4 Apr 2023 09:32:31 -0700 (PDT) X-Google-Smtp-Source: AKy350bAULai05HO6a0RyTctbPpOvlOSW9yTE9fYr32M07Q/WN9N1MrbJbZw+3Bj0xML1PBBfiBe X-Received: by 2002:a17:906:c2c6:b0:931:95a1:a05a with SMTP id ch6-20020a170906c2c600b0093195a1a05amr115719ejb.62.1680625950919; Tue, 04 Apr 2023 09:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680625950; cv=none; d=google.com; s=arc-20160816; b=NFF1QzGHpQEQo+v91Df/ru7VDWGtT76PQzoPZsCSy44O2JWlmTuQrCzIA+l/Qfy/e7 +uVOn34EH3fgtX9iZscPyRSBoE1XlmefEN8DmfRLaLo8JFxGMBlBV4RXKOlmZOMUfDDE ww7MBeZUHzHhKgqf+9uhmLFqYqEgf5sge9gP/p8LyCU233C5Ydz0UTPgzPfmBBeS7O/x qhSZnUYx5X7OUDYng2Ux9RyBTwrx/iT/VvFNXuqidgOmSdIEHcgZRXtVis9rj2B8MCks Vsc8WCy2Kg5vrcS1PtX5Q5kfg/qL33AYG1jp3QzAiY8Ip6wFfUeYpIel4M1Cf7XO5Cxx 53fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=7HrnhowNgiE1+gbqyK+2RSLtfcmG95NpGa/cB5EMTdY=; b=qQ2OvdOEa17U7HhJ0Iu3VSmdg2+UketFLB+DVcH91Vu3IflCl0Bf/ymW5jz2mKTUf2 DwkUIrNsUGXJJ4QOkcya4CrQvqJFbEoZUkWIbNnjmjkZHr0ref/8UrQ7VZiCmDS5FMc0 zFuUPgrfLMRkY+L9s1c5NTDBUAeJHMbIYp78D1qW8iN5L4Awb5uL3jlW5N19wP/avsfr 4pdg+BVn6Ij1waFEvGZuTfjWw0RThURxI5xL7L7ZK8UWmpjdf4AOLcaZnmR8H7TvM68r bHawTKP7svbSNIdGPfq4bEPxdaCJt9qwkQRhi9+W5HNP8wPvsBmdbDtZM16jeAxVbgKw 2Dbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@criticallink.com header.s=google header.b=NKKXwqcH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=criticallink.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jj17-20020a170907985100b0094418931226si10795544ejc.404.2023.04.04.09.32.05; Tue, 04 Apr 2023 09:32:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@criticallink.com header.s=google header.b=NKKXwqcH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=criticallink.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232822AbjDDQ1P (ORCPT + 99 others); Tue, 4 Apr 2023 12:27:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232221AbjDDQ1K (ORCPT ); Tue, 4 Apr 2023 12:27:10 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6782D3C00 for ; Tue, 4 Apr 2023 09:27:09 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id cr18so28256547qtb.0 for ; Tue, 04 Apr 2023 09:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criticallink.com; s=google; t=1680625628; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=7HrnhowNgiE1+gbqyK+2RSLtfcmG95NpGa/cB5EMTdY=; b=NKKXwqcHRYPgv5Pd+SYY2VvVn0ck7vIoWp+LpwvfZVCHR2io4e55HsTpauqx7DbZ6h T4KH7Dw07NXLAFH5xXAzHi8K3qeDsARwLAkKV6r7Eyuu4RqVYn/X6SAW8ycVdM0rfkBv cmLpN1dsN1l/gjGBsNoS0D0IEed8TlK1e9my7acAS3H0nV8c8GhRxGD5GdoU/rIAkkh0 8aLB6j2ZT3ey6mOv9Pw85PG1HNfz3GeDQta+yy6NalFyjX3jkPvwfR6uMdiFgAk7Uh1o SKMxdiybC5extgDCLhMJD4zGwDkgdx3xaApFcDSVgEqtMw75Lp5KYHWGE7sa5M8Om/FF zNuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680625628; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7HrnhowNgiE1+gbqyK+2RSLtfcmG95NpGa/cB5EMTdY=; b=M6RbY1x2SUmRUJYAP7u2noVOIGJaZjk1YpOrfmnUGEWa6TQNAv3WsabL5Abq+/a1fS 03dmURORwAE2TJrca7lUMecW90JMQSZkkAAKlzmHHm9Ei7/rLaS+0ckV1FgEX2TvmARo /2n3Ps26eQ25GvZhgDEO/Gnq1+Le8mJWIeHv98s7tP8dH0J75dX1vtjQXaUD3PlImfuV CZuDyhAPrz3SQs7ym3xYnNH4V2Zr8KMbPQ1G0u9kcCovR/J3MDzs5QHUz9e1v66wRWRt ud8TcL9kmhBAFGJY7OGh6j9ro8INf62Mtu/kniEP07fpPWzixtcj2IgD2q/P1LAvlGZu bewg== X-Gm-Message-State: AAQBX9eEmNqT3gXnEU9uNGqSCeBgOmrMbaZcQu7yLU9jxh8la22bFL7A hQFZfKGEjlgK/2OdIymJ5beZ4g== X-Received: by 2002:a05:622a:188:b0:3e4:eb8f:8a7b with SMTP id s8-20020a05622a018800b003e4eb8f8a7bmr35220544qtw.29.1680625628498; Tue, 04 Apr 2023 09:27:08 -0700 (PDT) Received: from [127.0.1.1] (static-72-90-70-109.syrcny.fios.verizon.net. [72.90.70.109]) by smtp.gmail.com with ESMTPSA id m124-20020a375882000000b0073b8745fd39sm3699594qkb.110.2023.04.04.09.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 09:27:05 -0700 (PDT) From: Jonathan Cormier Subject: [PATCH v4 0/3] drm/bridge: tfp410: Add i2c support Date: Tue, 04 Apr 2023 12:26:47 -0400 Message-Id: <20230125-tfp410_i2c-v4-0-f983bcef2df8@criticallink.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAMdPLGQC/3XOTQ7CIBAF4KsY1mKGgfq38h7GNEAHO1FbA7Wpa Xp3qW7t8k1432MUiSJTEsfVKCL1nLhtcjDrlfC1ba4kucpZIKAGhYXswtMoKBm91A534MAFTSB ywdlE0kXb+Hqu3Ll5DeXDpo5i+avNr56RAg/fyfMl55pT18b39we9mq9/x3olQW631lSG9AHc7 uQjd+ztPe/cNr59iFnrcVnALLiAGEzlnSe7IOhlQWfB7ouqCBAKCOqPME3TB+BF13FVAQAA To: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Williamson , Bob Duke , Jonathan Cormier X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1737; i=jcormier@criticallink.com; h=from:subject:message-id; bh=MdA5jz1mbJArNJ3GmBlRLEMfCiFuPa4f15JhDcju/Zg=; b=owEBbQKS/ZANAwAKAdzX/S4LNuuqAcsmYgBkLE/YIfrGTEKcLNpCCAbK3f+fm0kwnL4hc80KV5ji C8xqxoSJAjMEAAEKAB0WIQT/MozqCeZtYxNnVN/c1/0uCzbrqgUCZCxP2AAKCRDc1/0uCzbrqsmqD/ 4+to8RvohqjmRCXM5udTTpozSqvn0FQGCNiDvZ9qUgFk91KMLSvcUubLPXGXt5VxCw29HVEeJDC+Xp HCQgAQbF6IYWMyR2DAdGC9aGVqXP1NUHbuZFvnX8fHXH2OAIgUsfC7Y9Dtfi0cb+Yh+4qX+ja1H0Xb 81Tts9BC6HYE3oS9EsZi0lsW4N0xVi5YwZQGFO2Du+BYvMv5OxWoLy4LS99QGPjyvoEFIXMYfeK1rh fRr/zH6erfWrneeMMSPoeP7FLMehGikNxSCbmVAL4DPcVht+QHeilJUdsuInR/ECN9HBV8fECq7isN jSnzKhdCDjHSzmr0iwjiQ2WKgvStgqHzp6RX5eC3G36/SMw2qV0rYPOy/+ltcueHHHTYIbB37yUBYC blYtP6FyfxdZ2/c2OSXelXOxyTp/9T1CZRsQ3HNNGDefwOxc1dK2V3ylj/rHs5fGFJRWnpdQ9Q6RS8 RLokhup99R1f4XSUD1ILVEkz8aKtP8Q2FVhSzXXMuoPmBFQY09yN60gP0mUihAl4ywtNa+0LJbf4PK s1hH6PQylvSRO675mF9aD6n3JJgsj2oAd9PcE+LrDcj8ldKd9wLOxs2/v7FwsEOiEPGICNIOg8fHnJ e4J4xbgrZZFurBm/7ZTg0la/eDAOCzQeuX94Wd7xCq//jpY6nh+WWb7gYOkw== X-Developer-Key: i=jcormier@criticallink.com; a=openpgp; fpr=FF328CEA09E66D63136754DFDCD7FD2E0B36EBAA X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The TFP410 driver does not support I2C. As such, the device remains in Power Down if the I2C is enabled by the bootstrap pins. Add basic support for the I2C interface, and provide support to take the device out of power down when enabled. Also read the bootstrap mode pins via the CTL_1_MODE register when using the I2C bus. Also allow polling device to support hdmi/dvi hotplug detection. Signed-off-by: Jonathan Cormier --- Changes in v4: - Add Reviewed-by: Neil Armstrong - Add Fixes: 5cafa0f1853b ("drm/bridge: tfp410: Replace manual connector handling with bridge") - Link to v3: https://lore.kernel.org/r/20230125-tfp410_i2c-v3-0-a85d5f0f50f1@criticallink.com Changes in v3: - Drop dt-bindings i2c example - Link to v2: https://lore.kernel.org/r/20230125-tfp410_i2c-v2-0-bf22f4dcbcea@criticallink.com Changes in v2: - Fix dt_binding_check errors - Remove hdmi connector from binding example - Fix compile warning. Unused variable and unsigned int instead of int for ret - Fix commit titles - Drop of_match_ptr change - Link to v1: https://lore.kernel.org/r/20230125-tfp410_i2c-v1-0-66a4d4e390b7@criticallink.com --- Michael Williamson (3): drm/bridge: tfp410: Support basic I2C interface drm/bridge: tfp410: Fix logic to configured polled HPD drm/bridge: tfp410: If connected, use I2C for polled HPD status. drivers/gpu/drm/bridge/ti-tfp410.c | 107 +++++++++++++++++++++++++++---------- 1 file changed, 80 insertions(+), 27 deletions(-) --- base-commit: 93f875a8526a291005e7f38478079526c843cbec change-id: 20230125-tfp410_i2c-3b270b0bf3e0 Best regards, -- Jonathan Cormier