From patchwork Sat Apr 8 09:47:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 81149 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp784981vqo; Sat, 8 Apr 2023 03:07:04 -0700 (PDT) X-Google-Smtp-Source: AKy350YoS0G3tc3A6YIZPxPX45sWB97xxtBZHxiW00v4mUFwCnL7cfrf9IUKgzSbIyu5GHvMFYL0 X-Received: by 2002:a17:903:249:b0:19d:1bc1:ce22 with SMTP id j9-20020a170903024900b0019d1bc1ce22mr6222308plh.5.1680948423806; Sat, 08 Apr 2023 03:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680948423; cv=none; d=google.com; s=arc-20160816; b=vhKYc1vucdnKbm5+oQNkIUBilq9/mRXX5LvCDiKk2OXkDW2zSoFdGj2Klg15gigCL9 Jta5HCcGiTXemHX6jhgc31aoBn1m/fpCu1jULneH/HTLcOFN+3bQWbaAyyQxhG+JV167 7T7yIBgrWhrYGaEIP8OyLF0n03GrYvUV4HVGK2hkbGajhN2b5EEQde8sD+EF+P9o3pGV mOquwzKQ/h1aOLS2jorDsymI3nQDLn3r2Cu/ylwpUToQI5tgyCFEvNpXKP00KyH/qyxd FGYUUxx4Jv66/yPw8hfor70MN8eyhSHpWJaQyAomgTeFSv+UJyvM084tIInnYdNeIiCv JXBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0RkJjvXtF3VU1Cy+t8RIPMHhsvFn55qW4SFCevsbzn4=; b=XFLF7srQnjdmWPsvJwBVxsMPLUcGTdnyLDAU6nHcHtx8akhAdros29gP7ZKvWULcwz sgF7NlvtL8W01rfi3Xu6cDdfD9oCLxvzn/kKmm3hXHy6Irvb/3vkQ2G2xEDmRcfc4uWn eKBBDOCUIoazstacAmhAlVTLxqfgPcoJnB+Kck4aOAePFi/3gWiv8oM5SyigWe09Av9K DlS67FL4H75xp0+W/L/ctX3Kb2k1ZFOpi2RLa0HVMsb51bh27ViJ4jRB+Y3GQpz9EEhe KUBRjhWgtc/tbsCEDK0ZsjwugjLBLmDDAzALwv9H/NXuUOhn1BbHvnl/QMFR/5Nu7xtZ 2WWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UGvGMJos; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kr6-20020a170903080600b0019f336180d8si5670194plb.180.2023.04.08.03.06.51; Sat, 08 Apr 2023 03:07:03 -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=@gmail.com header.s=20210112 header.b=UGvGMJos; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbjDHJrw (ORCPT + 99 others); Sat, 8 Apr 2023 05:47:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbjDHJrt (ORCPT ); Sat, 8 Apr 2023 05:47:49 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 419BAD323; Sat, 8 Apr 2023 02:47:48 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-94a34a0baf9so20558666b.1; Sat, 08 Apr 2023 02:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680947267; x=1683539267; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0RkJjvXtF3VU1Cy+t8RIPMHhsvFn55qW4SFCevsbzn4=; b=UGvGMJosgQTVH39RakdelZpC0StnZ1PZzBWnxLzZ5og7/LerO1hbzhBlMR2Kf/3lTo 1201BYL06Kqz6ITIir6mmEddV4v9rL8H5MpchofCos1n5Y4OU1U9Hf0oaqgPgXiLnPx1 3UuZmTaP2G+57ZWPk1STLyNK4E9bOEQv4bzUz6Q4F4Be+OVUj7ZRV+YMoKNMFOCyvr6l QgKzjtaiR8jF/O/hL9lvLuw90i+g4ZtqpQ69hf6Cuu3ty/NMtqPaRBsggastVsrZrBK0 MdxuRqsLKznfD28KXmgCMVT1WbYMPQ207LyLG2jnmR354/w0cFR283o9/sUge66jQx88 om2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680947267; x=1683539267; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0RkJjvXtF3VU1Cy+t8RIPMHhsvFn55qW4SFCevsbzn4=; b=vi2n4E5pD71ixK3csDzZ9v9N0zNy7Uvuq2nXhCPt+aQ4mKU738c3ABHWmwG36/NwVr lhck4LvuwT2R6t1S8My1lgkACWOfNEz/FF7615P5r5iCQZU9ZXS6kZpBGxEnTPLN0bBY SEGRp9waIl0nw3QV21IIm4EGPUWwQMna/6bP27NA73tV+Kb+AItGz+veqimRhDWl3Mzb 457A4P3lQ8YlMUCd4+e+eMuN8B+ibnvge1N3p/k6+axe4nl91bZKmWZGNrBRHvDBYvlD 7t5XV6MAyhBYhRYarw78O9Tu71uKx/66ydNKEef6l2/PYvotTu9eYHuqY316V6S6v85R dm3w== X-Gm-Message-State: AAQBX9d80Et0ACXWv0vSH926sXFKhxvMlyScfEJ4qXEsFOEcCiFtjqkU X5tZ7drk0VKbZZcdU4fvnVg= X-Received: by 2002:a50:ff13:0:b0:504:80f8:f6b2 with SMTP id a19-20020a50ff13000000b0050480f8f6b2mr2697563edu.25.1680947266484; Sat, 08 Apr 2023 02:47:46 -0700 (PDT) Received: from xeon.. ([188.163.112.79]) by smtp.gmail.com with ESMTPSA id a21-20020a50c315000000b0050481736f0csm982297edb.12.2023.04.08.02.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Apr 2023 02:47:46 -0700 (PDT) From: Svyatoslav Ryhel To: Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , David Airlie , Daniel Vetter , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko Cc: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v1 1/2] drm/tegra: output: hdmi: Support bridge/connector Date: Sat, 8 Apr 2023 12:47:22 +0300 Message-Id: <20230408094723.12733-2-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230408094723.12733-1-clamor95@gmail.com> References: <20230408094723.12733-1-clamor95@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762602174390007243?= X-GMAIL-MSGID: =?utf-8?q?1762602174390007243?= From: Maxim Schwalm Some Tegra device-trees may specify a video output graph, which involves MHL bridge/simple bridge and/or connector framework. This patch adds support for the bridge/connector attached to the HDMI output, allowing us to model the hardware properly. Inspired by: 29efdc2 ("drm/tegra: output: rgb: Support LVDS encoder bridge") Tested-by: Andreas Westman Dorcsak # ASUS TF T30 Tested-by: Maxim Schwalm # ASUS P1801-T T30 Tested-by: Robert Eckelmann # ASUS TF101 T20 Tested-by: Svyatoslav Ryhel # ASUS TF201 T30 Signed-off-by: Maxim Schwalm Signed-off-by: Svyatoslav Ryhel --- drivers/gpu/drm/tegra/hdmi.c | 44 +++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index 40ec3e6cf204..45b37b103785 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -1544,26 +1545,47 @@ static int tegra_hdmi_init(struct host1x_client *client) { struct tegra_hdmi *hdmi = host1x_client_to_hdmi(client); struct drm_device *drm = dev_get_drvdata(client->host); + struct drm_connector *connector; int err; hdmi->output.dev = client->dev; - drm_connector_init_with_ddc(drm, &hdmi->output.connector, - &tegra_hdmi_connector_funcs, - DRM_MODE_CONNECTOR_HDMIA, - hdmi->output.ddc); - drm_connector_helper_add(&hdmi->output.connector, - &tegra_hdmi_connector_helper_funcs); - hdmi->output.connector.dpms = DRM_MODE_DPMS_OFF; - drm_simple_encoder_init(drm, &hdmi->output.encoder, DRM_MODE_ENCODER_TMDS); drm_encoder_helper_add(&hdmi->output.encoder, &tegra_hdmi_encoder_helper_funcs); - drm_connector_attach_encoder(&hdmi->output.connector, - &hdmi->output.encoder); - drm_connector_register(&hdmi->output.connector); + if (hdmi->output.bridge) { + err = drm_bridge_attach(&hdmi->output.encoder, hdmi->output.bridge, + NULL, DRM_BRIDGE_ATTACH_NO_CONNECTOR); + if (err) { + dev_err(client->dev, "failed to attach bridge: %d\n", + err); + return err; + } + + connector = drm_bridge_connector_init(drm, &hdmi->output.encoder); + if (IS_ERR(connector)) { + dev_err(client->dev, + "failed to initialize bridge connector: %pe\n", + connector); + return PTR_ERR(connector); + } + + drm_connector_attach_encoder(connector, &hdmi->output.encoder); + } else { + drm_connector_init_with_ddc(drm, &hdmi->output.connector, + &tegra_hdmi_connector_funcs, + DRM_MODE_CONNECTOR_HDMIA, + hdmi->output.ddc); + drm_connector_helper_add(&hdmi->output.connector, + &tegra_hdmi_connector_helper_funcs); + hdmi->output.connector.dpms = DRM_MODE_DPMS_OFF; + + drm_connector_attach_encoder(&hdmi->output.connector, + &hdmi->output.encoder); + drm_connector_register(&hdmi->output.connector); + } err = tegra_output_init(drm, &hdmi->output); if (err < 0) { From patchwork Sat Apr 8 09:47:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 81148 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp783752vqo; Sat, 8 Apr 2023 03:04:26 -0700 (PDT) X-Google-Smtp-Source: AKy350azRVlZ/VpsY3ePGw5qZ//6+qDEqlkHBihwL2/PkXEjXMzkYDcZSoL3/cTScQ+nqolRo4Ry X-Received: by 2002:a17:903:181:b0:1a1:f0ad:8657 with SMTP id z1-20020a170903018100b001a1f0ad8657mr6313582plg.37.1680948266256; Sat, 08 Apr 2023 03:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680948266; cv=none; d=google.com; s=arc-20160816; b=u0ZuJSkMo5baD7c8jLb5Iz5GXJjm0EjDBt2sQOgKEagNTzqevZq/m8HghD2ygBRE0t TNImzFcLqu2xxuhFjptwq1KYGEkXZtQRBWj/v2WdI6LS+AhyeOVF+GIdYl/Omcq14R7U DNs1pTX3RJcjGHNbQishWaKcomZlkMFXKGl0z2XH8gB2pbWB6fsXIfnwAtmmxb2uN4VC P177YhAcqrCZ8Nrj3CjGYlILz4SOaCfm89OSWf7YUlq2E+2loPmvdCfsB/Kpo0c8mSpL ymJAJW9kNwTs6Pj1+5QJP5cvto8bs8IJYI+OI4Y9ELUvwGvAdY7AwqOJw1I6zpIBxl9a rLJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=a7JcVwqthdcJ8hCQRH20mpyswxWH0pIeDYiRTxlRyzE=; b=uHuyD9Rza9jcc2IW6XNdPerOjLHKdKyui3YQXT34U+HTI3uM739BtvQ52AaED+bvWx XGVQiqgq2ubzb7u51qUl/2CQXwE0TQtijvhkwVXtUQlB299xYZBszv9vUujlr0cYCjms VtTs6xoRhs67luovWEVej5mumtZ1m/C9kfUsN++IDjgsCx1B5HEGuIfTHKWxwzxC67rR yIfxNw68zFyKSngq3Jx4fyeRW9rQSDHb2fCoyhRwZje0aRuZ42LMx6lEl/UZVdY5Q7bk yz7Vic+34DpQ1AmRridpFKuOkK8IzS+PxoxMO3r6aF/aYILtFizokpywQaf1XV+SNq2x sR3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GrOTY5Dq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a170902ec8b00b001a20c983d2esi6494653plg.103.2023.04.08.03.04.11; Sat, 08 Apr 2023 03:04:26 -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=@gmail.com header.s=20210112 header.b=GrOTY5Dq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbjDHJry (ORCPT + 99 others); Sat, 8 Apr 2023 05:47:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjDHJru (ORCPT ); Sat, 8 Apr 2023 05:47:50 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F4CCC2C; Sat, 8 Apr 2023 02:47:49 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id qb20so1509861ejc.6; Sat, 08 Apr 2023 02:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680947267; x=1683539267; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=a7JcVwqthdcJ8hCQRH20mpyswxWH0pIeDYiRTxlRyzE=; b=GrOTY5DqaxGZuDFLw9SJTkHvxA73yO/zPw/FZKG55r+tjyVbuOG+a2XAJUlYkxu+ku 1pwXUF0J7QenhGNPYk2ljI8NhvtWOFetj+golw0VWH+Y4Nw4CpMaYl0a6zIFMJbMnysc WDNkab6lVRbLfP1a+o0Ef8S4x9x65IQ23WZZY4mqpCY8uBwLUXQys/oAMCF/Q7ExVfmH 1bL0xYnF9N/Y1B+4kkcqMY1KHCvEwW6U4dZUj0crpahel0qCBNO7pQDEiHlFSU8dDGB6 OLS3BtHd1OQQ39TRP73/Sm/eGJo+oGGJLfswJ+UMOjl4FJ/i6CcEbUKl7/yEGZxl0HEe S3gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680947267; x=1683539267; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=a7JcVwqthdcJ8hCQRH20mpyswxWH0pIeDYiRTxlRyzE=; b=CZcZW7ABmax0TNnhDfE188Zy1ZwhHbj8HxCH8p6yO/fom4NCXNplQrYHKQuVCM/9L+ VZDtAQWYygwynfgqPp69v9pD60OJvcPavjZmWc4Y9kXjAnaAwBCE2m5x9070U3W5zjfJ auhbghSWeVVUU9EKmT2JTTIQEJxItY7C1g/+8+i3JvjoBopB+C3gKP1qzqUBK+TgGQyA Z2sh2F5EXZjwVD9cz+bguvH+U1beImLaQDa3uAowKiKSzBMFQfng1Dqia5Qtje+tPneq PRgxi7mhkGJw2lpBVVhOhojhg3fouRds5rjlsV4lmO1Pme+bYxvskZE4wg28Z/U3ffX3 EN8A== X-Gm-Message-State: AAQBX9e5uHXr+8NxM6Sa0t3nYJKQCW5aMrumCG7esc5njmPMicaCg8d8 3Of4FRLDdpCJCXniLN9/weU= X-Received: by 2002:a17:907:a08:b0:93b:b8f3:225d with SMTP id bb8-20020a1709070a0800b0093bb8f3225dmr1490869ejc.15.1680947267449; Sat, 08 Apr 2023 02:47:47 -0700 (PDT) Received: from xeon.. ([188.163.112.79]) by smtp.gmail.com with ESMTPSA id a21-20020a50c315000000b0050481736f0csm982297edb.12.2023.04.08.02.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Apr 2023 02:47:47 -0700 (PDT) From: Svyatoslav Ryhel To: Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , David Airlie , Daniel Vetter , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko Cc: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v1 2/2] ARM: tegra: transformers: add connector node Date: Sat, 8 Apr 2023 12:47:23 +0300 Message-Id: <20230408094723.12733-3-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230408094723.12733-1-clamor95@gmail.com> References: <20230408094723.12733-1-clamor95@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762602009110709981?= X-GMAIL-MSGID: =?utf-8?q?1762602009110709981?= All ASUS Transformers have micro-HDMI connector directly available. After Tegra HDMI got bridge/connector support, we should use connector framework for proper HW description. Tested-by: Andreas Westman Dorcsak # ASUS TF T30 Tested-by: Robert Eckelmann # ASUS TF101 T20 Tested-by: Svyatoslav Ryhel # ASUS TF201 T30 Signed-off-by: Svyatoslav Ryhel --- arch/arm/boot/dts/tegra20-asus-tf101.dts | 22 ++++++++++++++++--- .../dts/tegra30-asus-transformer-common.dtsi | 21 ++++++++++++++++-- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/tegra20-asus-tf101.dts b/arch/arm/boot/dts/tegra20-asus-tf101.dts index 7b2969656ec9..d8d14aa145e5 100644 --- a/arch/arm/boot/dts/tegra20-asus-tf101.dts +++ b/arch/arm/boot/dts/tegra20-asus-tf101.dts @@ -82,9 +82,11 @@ hdmi@54280000 { pll-supply = <&hdmi_pll_reg>; hdmi-supply = <&vdd_hdmi_en>; - nvidia,ddc-i2c-bus = <&hdmi_ddc>; - nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) - GPIO_ACTIVE_HIGH>; + port@0 { + hdmi_out: endpoint { + remote-endpoint = <&connector_in>; + }; + }; }; }; @@ -963,6 +965,20 @@ clk32k_in: clock-32k-in { #clock-cells = <0>; }; + connector { + compatible = "hdmi-connector"; + type = "d"; + + hpd-gpios = <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; + ddc-i2c-bus = <&hdmi_ddc>; + + port { + connector_in: endpoint { + remote-endpoint = <&hdmi_out>; + }; + }; + }; + cpus { cpu0: cpu@0 { cpu-supply = <&vdd_cpu>; diff --git a/arch/arm/boot/dts/tegra30-asus-transformer-common.dtsi b/arch/arm/boot/dts/tegra30-asus-transformer-common.dtsi index 1861b2de2dc3..b0d041a5b20f 100644 --- a/arch/arm/boot/dts/tegra30-asus-transformer-common.dtsi +++ b/arch/arm/boot/dts/tegra30-asus-transformer-common.dtsi @@ -80,8 +80,11 @@ hdmi: hdmi@54280000 { pll-supply = <&vdd_1v8_vio>; vdd-supply = <&vdd_3v3_sys>; - nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; - nvidia,ddc-i2c-bus = <&hdmi_ddc>; + port@0 { + hdmi_out: endpoint { + remote-endpoint = <&connector_in>; + }; + }; }; }; @@ -1492,6 +1495,20 @@ clk32k_in: clock-32k { clock-output-names = "pmic-oscillator"; }; + connector { + compatible = "hdmi-connector"; + type = "d"; + + hpd-gpios = <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; + ddc-i2c-bus = <&hdmi_ddc>; + + port { + connector_in: endpoint { + remote-endpoint = <&hdmi_out>; + }; + }; + }; + cpus { cpu0: cpu@0 { cpu-supply = <&vdd_cpu>;