From patchwork Mon Aug 7 14:35:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 132229 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1565485vqr; Mon, 7 Aug 2023 09:29:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETkJG9t0i/RDz39lPFjGQjmAxX+p4QY36FdYVEvZlZBubte/r4gOZUhjx6Sf6z59rfuFtd X-Received: by 2002:a17:902:7d8d:b0:1b9:e8e4:620e with SMTP id a13-20020a1709027d8d00b001b9e8e4620emr8711844plm.47.1691425776329; Mon, 07 Aug 2023 09:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691425776; cv=none; d=google.com; s=arc-20160816; b=lzbu6ZFUyKBmbqg//j37kDdxZXYn2kx0z210tfjFrnS6fAZ0Exex9uLClsLlRrfKx+ +Q4fZTY1S/lNhujHsVL3F9wXjpVlLqge5F7Ccf7dDpp5XGwogh1Rp7VwMab2YKSIuphg GYgsyBtVERo11oAixAc6fmPS126FVRubbeUWfV7ozswtz94yg7nFQKoqrCSR1UJUIFae 9M2RDylMEkMxjON1TBxtoMbQoYLXJt7s0/a41OsNgDHcmjFQvUH3zP/RbA+OuKcjKeb4 sNlFRH1Vg7dE2Q9+CdXHKfrATpdce4zUotQv2Ggq3bs3GSbQ1/AMMspE8LnU4l0Wz3Bw c+lg== 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=IyTj/EAHU86MCmjIDTneVFZ/F0zuNFke5LJEBRUozL0=; fh=Xt3tn1m5DEUOpT2C4sjW8IToNHOtNUWYtxWRCgkM7Mg=; b=K/t6+glOGUwptIm5fKzxNMa2hkb/GLMsw5oLpIe1KEjakB1PQaScP/YD/mFci/YX3n Ril2WV4iDMdnbdEy/iCU76mOlp/kQzzobFi8lPLGlk5HRmp9g7k3yaDl2D/qFWR+5+Ag g/c2V2V6Y++g6kxesuaTTrhTrCGpcAt4pqr48G8YKy50+622fLGvw3DOLl+mopKieHuM XpRIavq0CDeY3bsgUzNgNiuTp51iefP2eOKOl9ckB8ZtiWcbZzQBkduwUT8mEdZ8vPNd QgTEDpIk/4F0x4UOkdmqWKS7PgF1yvhR/pI3NtuPP+w3xid09FEHgwn3K7mtU/3mHijB MDZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=d+b9Bgxt; 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 fu12-20020a17090ad18c00b0025bb9fc0fa1si6083930pjb.83.2023.08.07.09.29.23; Mon, 07 Aug 2023 09:29:36 -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=20221208 header.b=d+b9Bgxt; 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 S234727AbjHGOfx (ORCPT + 99 others); Mon, 7 Aug 2023 10:35:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234127AbjHGOfk (ORCPT ); Mon, 7 Aug 2023 10:35:40 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CF1810DD; Mon, 7 Aug 2023 07:35:38 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-977e0fbd742so631682366b.2; Mon, 07 Aug 2023 07:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691418937; x=1692023737; 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=IyTj/EAHU86MCmjIDTneVFZ/F0zuNFke5LJEBRUozL0=; b=d+b9Bgxt8jjhWPSZN8YGF+VhD2yHLtLkBYtZCPk9VS2usI+5pUfv1lOceCn2jCEhU3 bIXRbL27djBDBnqqN6oEN6+zL5NYrceLq0i488o53TZCGQ9g+F5ut9NM7WVJghK8/Fw/ /JKY5z3wXjvNJXPIKVJ7ZLq/o+GCim1f3WomPX3IWHCesbIGdoYgh2uynrRgvUZThunI VBZvOvrsOHt7Kw79NU8zNgc7dZtR4lngga+ZXSMu7xyzTdTwpA2Cv8OPxmnQ1md4kEQ9 tNHTLcXku1SrjPQqHtGPMl9UCg74r3bE1LZXfXjSsVqaZaF/8z7yHDyd14E8WfburjHE AZiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691418937; x=1692023737; 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=IyTj/EAHU86MCmjIDTneVFZ/F0zuNFke5LJEBRUozL0=; b=Civ82Bggp8UthH2005D1brhFcPCLOr91mDxuB/FVjTMJjTSnh/QqVTKjGvOdHYi7tT H/3r4rgT2Yyc8NlCb33nFgCKrM6ZLsdMxyh3cSs8MTP6D2c3QE3+WRJXWTYyh3GaMG/3 WPyhoK2BpI9sqHro6bO3HDl1HGG1HxmtPnlEIwYzIvJLJU/AYLACX+iq5HacT3X20scL 64YJsguXeYXLYnTBP8HA6+w4JPbu2Nu4FeAnWM/ARxtwxPFCYjNAQ4+TNDBgNWt4hJuV 9UNV6LhUl1C2Gt908gdr7FpEoofkM6cBCZT+/kb7jdZmcowmLnOjKftr4wovu4kOUOwX bEtw== X-Gm-Message-State: AOJu0YyVFNArFxRfLMdvHtgKE9IMI0bmarctIi++SGud/G+rcYIV6Sgg eAud4mTnoBjBoQvWbtrOJ5M= X-Received: by 2002:a17:906:51c8:b0:991:c566:979 with SMTP id v8-20020a17090651c800b00991c5660979mr8427229ejk.36.1691418937036; Mon, 07 Aug 2023 07:35:37 -0700 (PDT) Received: from xeon.. ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id e3-20020a170906504300b0099329b3ab67sm5323292ejk.71.2023.08.07.07.35.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 07:35:36 -0700 (PDT) From: Svyatoslav Ryhel To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Mikko Perttunen , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 5/5] ARM: tegra: transformers: add connector node Date: Mon, 7 Aug 2023 17:35:15 +0300 Message-Id: <20230807143515.7882-6-clamor95@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807143515.7882-1-clamor95@gmail.com> References: <20230807143515.7882-1-clamor95@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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: INBOX X-GMAIL-THRID: 1773588475132544273 X-GMAIL-MSGID: 1773588475132544273 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 --- .../boot/dts/nvidia/tegra20-asus-tf101.dts | 22 ++++++++++++++++--- .../tegra30-asus-transformer-common.dtsi | 21 ++++++++++++++++-- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/nvidia/tegra20-asus-tf101.dts b/arch/arm/boot/dts/nvidia/tegra20-asus-tf101.dts index e118809dc6d9..cd6acbea0318 100644 --- a/arch/arm/boot/dts/nvidia/tegra20-asus-tf101.dts +++ b/arch/arm/boot/dts/nvidia/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 { + hdmi_out: endpoint { + remote-endpoint = <&connector_in>; + }; + }; }; }; @@ -967,6 +969,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/nvidia/tegra30-asus-transformer-common.dtsi b/arch/arm/boot/dts/nvidia/tegra30-asus-transformer-common.dtsi index ead95306840f..9b658b3de7a4 100644 --- a/arch/arm/boot/dts/nvidia/tegra30-asus-transformer-common.dtsi +++ b/arch/arm/boot/dts/nvidia/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 { + hdmi_out: endpoint { + remote-endpoint = <&connector_in>; + }; + }; }; }; @@ -1494,6 +1497,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>;