Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBDF2C6379F for ; Mon, 20 Feb 2023 22:10:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232583AbjBTWKp (ORCPT ); Mon, 20 Feb 2023 17:10:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbjBTWKn (ORCPT ); Mon, 20 Feb 2023 17:10:43 -0500 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33D5CBBA1 for ; Mon, 20 Feb 2023 14:10:42 -0800 (PST) Received: by mail-qv1-xf31.google.com with SMTP id op8so3251144qvb.11 for ; Mon, 20 Feb 2023 14:10:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criticallink.com; s=google; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=5rUU2/WZPr1JSZcAGB+y8Up7AbNA2zdWucg2WvW8jfg=; b=ndmMC5E2WlVJtkOA7NBSDcv+bwnm+YJCJpv9A0s0b7bSZlCm/158TU2tdJw2Ere1y/ pRnqb0dIqn9dkyO89wFGFocwSxfz9+w//ql+ElqVlBjKZpA7Gb6+EPHTFzLcdN53faah +WOeD9QVcXNR8E2WRVSef7tP8K+wvfcDAKMm9i4TdaKgzjlrkZa8Ntnt8atmwxxdTOZx QBTSKDZyPaoimeJzhmJUnxWKuNzSo7JRcEXmay09aJdg+lUYdpgcVz1rIdZkelEG8BKh nwXmsHNVfVoNL2WVUW1naJasMPy7cGlGW8b2NTU9rOB+ErFrWV3kLMfPN2Mwoa4gWfXd Bw5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=5rUU2/WZPr1JSZcAGB+y8Up7AbNA2zdWucg2WvW8jfg=; b=EDirwGX0/M7ySuLiFunnIueZ0LIi9/L5YXdaBAea1komVnMe8yuXU+qnhJCbhEz2/s 4psfOAuSRpi6GziCnzfksfCg9KM5yo8jdTmqlSnblrQyWpkTrOD7b5eZw+mcB0hd3zhK o2I7b/q9nM8zlT+ACcVSf4sBJJqgJMhsmmc+mSo45Y3Q5Hd1FWk6yLUtIBx/oNFWxla1 B4PTtJRdkkzbnwtvgPAD24kUy/ZgU2LzQHAxcPxQ+n9t/05ugn3TKZ+yBfwIIZkHYTZe dnNAit6inN2FxC66bSqEs9+eNxkLQa2MCpKJkWSEOuzkab/KPa8/Ynd8/IVDtmGMbpy8 qj6Q== X-Gm-Message-State: AO0yUKVfwUNj/TMEDj4+gRYsbhYEIeFbRWEyKjcbxxMH1ZvaavbzWiUB 62E28HrRbl0A/Ag62loTU9EhuA== X-Google-Smtp-Source: AK7set9SpTOHwG3ln7LMUjQ7Kgg+kixZ9alJTQWygn2FivXxoL8RZDAN6fAmeLdThIpI5DNSqTF/ew== X-Received: by 2002:a05:6214:240d:b0:56e:96bf:9d57 with SMTP id fv13-20020a056214240d00b0056e96bf9d57mr3736930qvb.41.1676931041264; Mon, 20 Feb 2023 14:10:41 -0800 (PST) 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 q13-20020a05620a024d00b006f9ddaaf01esm9766986qkn.102.2023.02.20.14.10.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 14:10:40 -0800 (PST) From: Jonathan Cormier Subject: [PATCH v3 0/3] drm/bridge: tfp410: Add i2c support Date: Mon, 20 Feb 2023 17:10:32 -0500 Message-Id: <20230125-tfp410_i2c-v3-0-a85d5f0f50f1@criticallink.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANjv82MC/3WOQQ6CMBBFr0K6tqZMK0RX3sMY0papTEQgLTYYw t0tuMXl/5n3/swsoCcM7JLNzGOkQH2XgjxkzDa6eyCnOmUGAqTI4cRHN6hcVASWSwOlMMI4iYI lwOiA3Hjd2WZFWureU/XSYURf/bD1avDoaNomb/eUGwpj7z/bBzFf292xmHPBi0KrWqE8C1Ner aeRrG7TzvNo+xdbbRH+GyAZjANwqrbGot4xLMvyBTt2W8UTAQAA 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=1463; i=jcormier@criticallink.com; h=from:subject:message-id; bh=F4ePDp9YQlDEPYMwJJxpcbg51wbahBLtQAl5HlBYoro=; b=owEBbQKS/ZANAwAKAdzX/S4LNuuqAcsmYgBj8+/foopW0wA1O42qAG7Zp+D4ICNsSp7resI12r28 H9NYMGGJAjMEAAEKAB0WIQT/MozqCeZtYxNnVN/c1/0uCzbrqgUCY/Pv3wAKCRDc1/0uCzbrqhzsD/ 0Q9eJEEV/igPPF+WONF9jTbpcj7hdIGDyln5FjGZZHNDTsYpzts9rt26k34cb8KudXJSr8jsn9HzNw aV1c9+DzjrXXe5DXNQTIa5tzdrKSzUdM9tP9BpS/BAp5Cx56HNwTymcQkZ/1VtPyOis4Ea7l0Cq2bg wZpdke7cAhuXBh7lvaFsjuAo+wFVx5pFasRcev6A4WvG9Ydzvmw5FHmUq6S0Sod1HTe5S0Na3MqvtO ZEJP/vRYAnEOraA9HZVaF0W0UgUVohe/ijlPJ+oAr7uARX4Ru4IzP+7eL5ncW4ZRzTgHzM3suvZuv3 OPDkC7Jsb5m4Rx8MRe6XSvSCG6Rq2BkJ9q2pM4Rc6ki2b/BDHeHuzZo4GCEbiQWyYe3ho+r7dtD4pF +dRS+N+2doef3iuqX2Jt0Kcc+QjBMHuvQauzZi3qQ0EQwqs2tRewn0p1UcZjygk3Oj0fym7ztx0lU/ H0ZNP3vfStA0Vh7uje01v/Zm36Jjkx9m1fC2+Kym0Rg4EcF+8Aqsy0w4m9dm4sGpxs9Wu9VNzigTMD ReIv88GOsHfGDhrE02QqbfZJiPhc8fBHFmnoYgQ/8cw3hDe0qBH4h7kg7Nyk1fJPOtNvWmtkOHXdVr fJdvYJibg35Nf+pezTCFOgGiIjDRrjl6ewnEmEVMFZfWxzgQk3+bwk5jwUfw== X-Developer-Key: i=jcormier@criticallink.com; a=openpgp; fpr=FF328CEA09E66D63136754DFDCD7FD2E0B36EBAA 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 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