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>;