From patchwork Mon Aug 7 14:35:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 132151 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1522845vqr; Mon, 7 Aug 2023 08:19:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0hI9pUi79MwD9BdCMI8aJXmB+bB+rbJuZ9Gb3kW2N/Imcgbn9+6zFh+jMqiDSpp0q/C8E X-Received: by 2002:a17:903:22cb:b0:1bb:b832:4bed with SMTP id y11-20020a17090322cb00b001bbb8324bedmr8980327plg.20.1691421571660; Mon, 07 Aug 2023 08:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691421571; cv=none; d=google.com; s=arc-20160816; b=GXZrB06sjDlx3wvQx56BPDe4jvIoKQ9hftXvHrXLUwi9JjCGgaViF4qz0e2DdIcYJ4 fY4wUv7xpTgf1TjK3c2Zti0R9uOe/DI4KsPtJGm7MF3g0u6z4KyVxX9OLmrY6k4CoNm3 Diq1EKGWCOFgppRSTflPq9TYZoJMeJx3a7r8KE5UwSEjhpITndRaTdI+fVPCOmUPMNop S7zBKfZZaVJc6TRN81vy3oDR+HrXcFNo5L7yNOGCGST0RFrAT4UjEiIGFG5BUNR4KXy3 T6vtSZtK/hZbgKbAPrUVXnotwxqSxHALaJKQupH79fVG8VMjFdlKonGd0OJ1c9IG8VFe kiYg== 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=ha6FI2rVxbfPVkhF/ZknZxX9q1C2VljgFJVBNarUleo=; fh=Xt3tn1m5DEUOpT2C4sjW8IToNHOtNUWYtxWRCgkM7Mg=; b=szMxfqyt6Mt7O20G+/hNIjBXLbXauuoyNSof974fImxD8Z0Ubio460bfL+3Qfk4JQy Ymzbd1oKzm3GHytUrtGsGsh7dfbtgAAqCde53nuxvOPycKi3SDWwON703GsmzkXQMItr nC8mNYIMkgH6g1upPh7471uoqDviip4vNFTfdu3JmIce/zrC8rt3tv1hdnFS5rKXOxV0 to4nG4QtIRm5QTEWGGpefanIgX40HNK5U4lcv9yLbc+7aVW3cMFe9fuO/gbWppLLclPG EGJe/GLd0Faj7MC9ZhJ6pFo8NfYoeLW6NZpT53q4FE7h8f8A4nxVRP1GeCQHd1HRK6id 4FCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Z3LvtDp4; 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 bs71-20020a63284a000000b0055bf3d0c987si5571424pgb.281.2023.08.07.08.19.17; Mon, 07 Aug 2023 08:19:31 -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=Z3LvtDp4; 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 S234159AbjHGOfl (ORCPT + 99 others); Mon, 7 Aug 2023 10:35:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234063AbjHGOfi (ORCPT ); Mon, 7 Aug 2023 10:35:38 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE80E10E3; Mon, 7 Aug 2023 07:35:33 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-986d8332f50so628616266b.0; Mon, 07 Aug 2023 07:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691418932; x=1692023732; 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=ha6FI2rVxbfPVkhF/ZknZxX9q1C2VljgFJVBNarUleo=; b=Z3LvtDp4zP8VkyIlt0D/cF+eA5Bl9AT+QeI/m/ZZteXaPqeHZFq0OkV1glWPgDsZTE mjtb3bmoqbygcexNngQqiuZVRC5yB4ROtd1tR2wSG/LTTu4fXIPoWRg3kbgm5iM51vpq YhE/MRsCR6K0SuxNjZFpL2drPflHGDKj5nSQlrZ3l/gMZhz67K2269tP9iyyDUucnXdw vLBepkg/M8xt9khLcbtZ3EUU3y+tQKmkEkZjF+KwyCsvEcf86WqQi2gxunTVoxubERHu SJU7ihM+Km2unWvvOvexi/JrkPk2sZYku4rVz7SFtef61GQrt5OBJknVQc99bcLSiJWe KEeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691418932; x=1692023732; 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=ha6FI2rVxbfPVkhF/ZknZxX9q1C2VljgFJVBNarUleo=; b=S4XzbSf4blG2zuqC6o///+Vbe3l9otYHdbV0ORpQ9AG/k4fDpP9uswfebP1/s4U0hJ j9GY42RNd2N0i3ScEuLrLLxiKF98zVF+zSj+KSasfqFLhowK545OYqiLVskA3iRqwIiJ vxd4XvxJWO9xJjI9+eaWVepRIIK3KuDqAnpMxAhp2tdipBgfIp+yCSvjmexxsuPCYEP3 2G55zHw2W112yBvnsW1wOXMo9kWdy9hAllcrbRg3Zx1MIbohgFkKg9YK7vY+JXBPXhAd M8gQBKG+w3ECjHjDkbFXr+J9OXjBHarY5c48c/jo/DZ/eJ9N29xrFd+ozythhSykpSnf mX+Q== X-Gm-Message-State: AOJu0YzyK8xbYSktT1HHWCbS7osRu8015WttmDAXAOHw8G/LU1ilZ4Wj /sPW9139bOkTRGc7I4gP0ek= X-Received: by 2002:a17:906:3295:b0:992:a85d:278b with SMTP id 21-20020a170906329500b00992a85d278bmr7524417ejw.59.1691418932420; Mon, 07 Aug 2023 07:35:32 -0700 (PDT) Received: from xeon.. ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id e3-20020a170906504300b0099329b3ab67sm5323292ejk.71.2023.08.07.07.35.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 07:35:32 -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 1/5] ARM: dts: tegra: Drop unit-address from parallel RGB output port Date: Mon, 7 Aug 2023 17:35:11 +0300 Message-Id: <20230807143515.7882-2-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: 1773584066287168918 X-GMAIL-MSGID: 1773584066287168918 From: Maxim Schwalm Fix the following W=1 build warning: "Warning (unit_address_vs_reg): /host1x@50000000/dc@54200000/rgb/port@0: node has a unit name, but no reg or ranges property" Signed-off-by: Maxim Schwalm Signed-off-by: Svyatoslav Ryhel --- arch/arm/boot/dts/nvidia/tegra20-acer-a500-picasso.dts | 2 +- arch/arm/boot/dts/nvidia/tegra20-asus-tf101.dts | 2 +- arch/arm/boot/dts/nvidia/tegra30-asus-lvds-display.dtsi | 2 +- arch/arm/boot/dts/nvidia/tegra30-asus-tf700t.dts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/nvidia/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/nvidia/tegra20-acer-a500-picasso.dts index 486fd244291e..a619ea83ed3b 100644 --- a/arch/arm/boot/dts/nvidia/tegra20-acer-a500-picasso.dts +++ b/arch/arm/boot/dts/nvidia/tegra20-acer-a500-picasso.dts @@ -65,7 +65,7 @@ dc@54200000 { rgb { status = "okay"; - port@0 { + port { lcd_output: endpoint { remote-endpoint = <&lvds_encoder_input>; bus-width = <18>; diff --git a/arch/arm/boot/dts/nvidia/tegra20-asus-tf101.dts b/arch/arm/boot/dts/nvidia/tegra20-asus-tf101.dts index a3757b7daeda..e118809dc6d9 100644 --- a/arch/arm/boot/dts/nvidia/tegra20-asus-tf101.dts +++ b/arch/arm/boot/dts/nvidia/tegra20-asus-tf101.dts @@ -66,7 +66,7 @@ dc@54200000 { rgb { status = "okay"; - port@0 { + port { lcd_output: endpoint { remote-endpoint = <&lvds_encoder_input>; bus-width = <18>; diff --git a/arch/arm/boot/dts/nvidia/tegra30-asus-lvds-display.dtsi b/arch/arm/boot/dts/nvidia/tegra30-asus-lvds-display.dtsi index bae09d82594d..680edff0f26f 100644 --- a/arch/arm/boot/dts/nvidia/tegra30-asus-lvds-display.dtsi +++ b/arch/arm/boot/dts/nvidia/tegra30-asus-lvds-display.dtsi @@ -10,7 +10,7 @@ lcd: dc@54200000 { rgb { status = "okay"; - port@0 { + port { dpi_output: endpoint { remote-endpoint = <&bridge_input>; bus-width = <24>; diff --git a/arch/arm/boot/dts/nvidia/tegra30-asus-tf700t.dts b/arch/arm/boot/dts/nvidia/tegra30-asus-tf700t.dts index efde7dad718a..9c480fde2e76 100644 --- a/arch/arm/boot/dts/nvidia/tegra30-asus-tf700t.dts +++ b/arch/arm/boot/dts/nvidia/tegra30-asus-tf700t.dts @@ -15,7 +15,7 @@ lcd: dc@54200000 { rgb { status = "okay"; - port@0 { + port { dpi_output: endpoint { remote-endpoint = <&bridge_input>; bus-width = <24>; From patchwork Mon Aug 7 14:35:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 132122 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1507655vqr; Mon, 7 Aug 2023 07:57:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUGbUEAEkFFwx5ius9LE9BYtADuXma4h04AAKWUkchI1kIQWmnqKEmrlnQy6HsL5Hw3L4u X-Received: by 2002:a17:90a:a6d:b0:25d:eca9:1621 with SMTP id o100-20020a17090a0a6d00b0025deca91621mr7012059pjo.6.1691420251896; Mon, 07 Aug 2023 07:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691420251; cv=none; d=google.com; s=arc-20160816; b=GN2btoaCWD+aaOsRi33wOcjLBe6Kqrj7f1YEJlImtIKzFRCBRoeEebedvHVfshcpv1 HF5l49Vuh4wsRLCuXgAfBZW9GR3E7cvy2YPPZwM3ojr5sSZ7GGui8oYiAmJD/p14mUsh Gu9g60GMSztKqTYpqjvqemxggoDBT9rytxDLja8HJfa+SWvmP0C+cBA2wZqr+Ab2HV1q zyw3yM/zpImuHITYWEYJJ1XxTTjZDeynMLtkH0uMTZ5jSOhf+7GyoTgdXeVz7HNuIgcU 0a4QwhHo4lbmygwXlNGZadH91xAksYiAM8oq35TIHFI+KHzPjEfDgqt0fm+eNOulzPl4 Yi/g== 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=/ZvPUmeI/1EMGUSu/xpT/NIbYPZbxTYJRvOXwkEg1y4=; fh=Xt3tn1m5DEUOpT2C4sjW8IToNHOtNUWYtxWRCgkM7Mg=; b=ezJ0GE2lnfDMH9OqXZqwzcID4SVZ7qpp4n3Y6cKd7mkeWOpXTFjVuUUwbhNjiei/W7 MD2O9FYeqRFzQQwgAEvYVTnNI7F/o1fjSRTnu52dEoPsZ1rs4HGT7YbbJSj5ZVwUaPB+ cjXpTy79pfFagQuPj/2cG7MWVqmtzqhTGXR/tZMuBWdzABrYsd8Q8A2mavlmcsVPRnil hqodf00TrrrcahzY1Rqs1eCg6ZOptzhbkDrpx/h4vdZEGj2cMC0IBxPr9iZ6ip8JTi36 AB4q+RfJC6CJewBgZC9cE9Mm2tDCbJ3KPtYW8ZR6W7oIdBA9lydjlYJZV2LKSatw10O1 EBMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nx3VdgiK; 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 e7-20020a17090a630700b00268515ce449si5780681pjj.94.2023.08.07.07.57.18; Mon, 07 Aug 2023 07:57:31 -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=nx3VdgiK; 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 S234710AbjHGOfz (ORCPT + 99 others); Mon, 7 Aug 2023 10:35:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234092AbjHGOfj (ORCPT ); Mon, 7 Aug 2023 10:35:39 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FBD310DC; Mon, 7 Aug 2023 07:35:35 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-986d8332f50so628620466b.0; Mon, 07 Aug 2023 07:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691418934; x=1692023734; 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=/ZvPUmeI/1EMGUSu/xpT/NIbYPZbxTYJRvOXwkEg1y4=; b=nx3VdgiKuT2WAB9KWAoKXJPbURnaLo0c7g2k8OCRZ8JX+DDucBlkvE79w7wqREmoAv 5m7FMByQLnWy4CKH1Dv4uJlEb3ClC3MUvCJCJzVOELztu8Bwb8UvEnYwfynQk/JUNYSx +MS/6zWN36ApBG3RZEbKdTwu3whwBIpZDKUFQpIUwgJBVeslLFD0WUa2KIR4gjIZl0AR 31Tjy5cxqNBWmZjIo90FvvCkObwmUMp2i/HPzTAGn9i021AaopRAcOp1bHgvGI7+UelC FTRsHz8dxGIa9J04nv8A/KMFn9WutCosf0k7vXOoVhhYkk8k4Kd+RcEaQUl3NQ63Oe8z EwyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691418934; x=1692023734; 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=/ZvPUmeI/1EMGUSu/xpT/NIbYPZbxTYJRvOXwkEg1y4=; b=EKb8WFtT3EhYXvtgAQ4cPG2sh6KjF+5T7lqNSsDTxVlNpH66qV1XJbzy8j8w7eB2Yd Xq6kif49UGJVSiZQx5P090j/oIR+lQK0SH1m4sNIDeeI/xCCXNJHAD4xFHo0YC50RMZb VwIU+xtpSOWYCqL4FZ4jK8dDq0IB3L+RSW88KuPiGrk9Z7B7Oa/iSMR8pkzkl8xFGaDA OqhlSwUckPkcg0xW8UgpKGv1ejJXMxKlmUo0q2rPht7ezidzHq0Pqc8j9LS17+3/ULlY UMWiy/Cp1U5dtES8QWAJmOQhTEDAePYsoSTN2g96RSDvfGBKGAA6q/7cPfSmSO5z3q5M +7lQ== X-Gm-Message-State: AOJu0YxHxJcXa7oACUedlQbAgH0Op523ckHVlepmNLEhVloKW0MBsabg 01YucjW6iew2ed+6INx5hHg= X-Received: by 2002:a17:907:b09:b0:99c:5707:f458 with SMTP id h9-20020a1709070b0900b0099c5707f458mr6661271ejl.72.1691418933549; Mon, 07 Aug 2023 07:35:33 -0700 (PDT) Received: from xeon.. ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id e3-20020a170906504300b0099329b3ab67sm5323292ejk.71.2023.08.07.07.35.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 07:35:33 -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 2/5] dt-bindings: display: tegra: nvidia,tegra20-dc: Add parallel RGB output port node Date: Mon, 7 Aug 2023 17:35:12 +0300 Message-Id: <20230807143515.7882-3-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: 1773582681824908243 X-GMAIL-MSGID: 1773582681824908243 From: Maxim Schwalm Either this node, which is optional, or the nvidia,panel property can be present. Signed-off-by: Maxim Schwalm Signed-off-by: Svyatoslav Ryhel --- .../display/tegra/nvidia,tegra20-dc.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dc.yaml b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dc.yaml index 69be95afd562..102304703062 100644 --- a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dc.yaml +++ b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dc.yaml @@ -127,6 +127,37 @@ allOf: $ref: /schemas/types.yaml#/definitions/phandle description: phandle of a display panel + port: + $ref: /schemas/graph.yaml#/$defs/port-base + description: Parallel RGB output port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + unevaluatedProperties: false + + anyOf: + - if: + not: + properties: + nvidia,panel: false + then: + not: + properties: + port: true + - if: + not: + properties: + port: false + then: + not: + properties: + nvidia,panel: true + + additionalProperties: false + - if: properties: compatible: From patchwork Mon Aug 7 14:35:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 132193 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1547052vqr; Mon, 7 Aug 2023 09:01:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFyZ86dB4UJiEZwp8jZitNexnRWPKq9lRnG/ZOSablIK2GYFn0rJqong2lkwnaKsJWjNaIw X-Received: by 2002:a17:902:e885:b0:1b8:9195:1dd8 with SMTP id w5-20020a170902e88500b001b891951dd8mr8946876plg.51.1691424114937; Mon, 07 Aug 2023 09:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691424114; cv=none; d=google.com; s=arc-20160816; b=T3AVQ8i4/JYCAUR1/h3yyHm+A7iIKsfKGQnP7YguJ7pz7s3DrZoHMyhMowB3pnRuMf L4l/6Ay1KSEWq7ModVSY/8yBCEhxXkE3ehuBaZhgDZj3H6jsLdafOsAigt3HPlVSYehU BedBKAWjQQmuEQZECV83JZYRTX2sFHGmr691sXxgQV9NIknrFhG3RWnK/z8HjjahB8x5 4UhiHEQuh7OXfforicRlDchkEOVuISsybi3AvjHR6dvQhN83xumuDcrhcTtDkONZj/Su L2+CN2Yfgr7m9Vmke+iekKNogcUWcFVvAuMvYErWYwclvsrwzRDjTB+9qgqCbtJkj7NR YJqA== 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=asTM4rKFSzp+icJaUkDK1RLj/Utx4x2PWtAP4aO5Afg=; fh=Xt3tn1m5DEUOpT2C4sjW8IToNHOtNUWYtxWRCgkM7Mg=; b=XPShVA/L92HX00Rn9D055zZtXH/2qXxvy68cuo3arhfhQ1QKp2wqfoONw4fqbfv6hf x4PFKWaNAQ7q/hbauEE6L46zCWjmdUwMXot+DBxwzpHKMxWbGTE+jCMFfw+1VdyfoYvE hkT8KGvqgDI0Mxjuont0wvZvsv8vT3GhsPCzNdvL9Yxl+W4RnIekckW/kQc2CAlp6wwE zQ8xOsgOLP9Mrn76nA6mf0Zjt7+novuhmZbQYywBtIN1praowGn3+Mxw8kcDi3WFZVjW g2scuXAMzVAJKRiwxf/vNbD8l+3Okd0SpK16QItZ0mRoeXSyAAMCESzJOjR9nw3BykIQ CgFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=hoJl9W9q; 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 c10-20020a170902aa4a00b001b89b1b9a01si5879540plr.194.2023.08.07.09.01.40; Mon, 07 Aug 2023 09:01:54 -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=hoJl9W9q; 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 S234372AbjHGOfq (ORCPT + 99 others); Mon, 7 Aug 2023 10:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234091AbjHGOfj (ORCPT ); Mon, 7 Aug 2023 10:35:39 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 713AF10E5; Mon, 7 Aug 2023 07:35:36 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-99c47ef365cso689491366b.0; Mon, 07 Aug 2023 07:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691418935; x=1692023735; 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=asTM4rKFSzp+icJaUkDK1RLj/Utx4x2PWtAP4aO5Afg=; b=hoJl9W9qSFU+nbBgkpjrBd7pg3z2yqFs/Sgdljv3EEXWkXxBFMd9YqhpbR1K/+gbtT mFsK0CopCClhN2AaPqDAp+ZjOOsIEca6KuBq8qZIh/b+wSD8UT857URmRODNU1Nja+T2 fIa5zlxYOk30k7EizulVFt+7ZU/kJryvT54jOlPWZnHAmN1tkLRsOE7s32Egk4ZwCorV FX54PCIMZeoD57Y1zpd4LnKbhqTH0gR2RHCSVDoN5q+4JbbxxkdxKwCrnhQHfcsc9Ryo ihfkVPkgJfUNECsilJHguDxAvt69YfWaCX80fsuam6SIyIBs0N3OYIPC91Vfhlax1UlX NUXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691418935; x=1692023735; 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=asTM4rKFSzp+icJaUkDK1RLj/Utx4x2PWtAP4aO5Afg=; b=RME9DpNYSQFTB8lrKWitWzyuXSfjwT/ikpMUuwYdPzJEsH3mvjNYXLOQ2RtAqD0EqW HKyknZf0AtuuTFtzxi/2FOqjy3fUrAFK5wKLpvwkYjk1OCpMfsloMJBPjhHQraGKEzQZ M04E/TeBFZXwlnwAOfxl8pHkzJF1wsbZfxkR8fnwjAI7hfX/zXA3inz1DZx03vBtEXq5 +QEmUeM5Ic1jma3nN8dsNZN+Z4mX5cO/3GNliATAyUJCvNgXIdZttgngiAMMcbJ+725V Ds9OYruMX3BG+pN/raSFYHOZxVVK+PStl5c4+v4pRnvJUKeTJBef2TnP2idxKR2KmNm4 YkrA== X-Gm-Message-State: AOJu0YxDhnwKsr64CBmtK7dz+9WCXtBwuQ+IdxrUmzDv4tfWcsP782PZ w8Qle+MS+Q0ogVrVTUlwmHs= X-Received: by 2002:a17:906:76d4:b0:99c:75f7:19c1 with SMTP id q20-20020a17090676d400b0099c75f719c1mr7516516ejn.39.1691418934744; Mon, 07 Aug 2023 07:35:34 -0700 (PDT) Received: from xeon.. ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id e3-20020a170906504300b0099329b3ab67sm5323292ejk.71.2023.08.07.07.35.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 07:35:34 -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 3/5] dt-bindings: display: tegra: nvidia,tegra20-hdmi: Add HDMI output port node Date: Mon, 7 Aug 2023 17:35:13 +0300 Message-Id: <20230807143515.7882-4-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: 1773586732603134217 X-GMAIL-MSGID: 1773586732603134217 From: Maxim Schwalm Either this node, which is optional, or the nvidia,panel property can be present. Signed-off-by: Maxim Schwalm Signed-off-by: Svyatoslav Ryhel --- .../display/tegra/nvidia,tegra20-hdmi.yaml | 32 +++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-hdmi.yaml b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-hdmi.yaml index f77197e4869f..f8292551b9c8 100644 --- a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-hdmi.yaml +++ b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-hdmi.yaml @@ -82,9 +82,39 @@ properties: description: phandle of a display panel $ref: /schemas/types.yaml#/definitions/phandle + port: + description: HDMI output port + $ref: /schemas/graph.yaml#/properties/port + "#sound-dai-cells": const: 0 +anyOf: + - if: + not: + properties: + nvidia,panel: false + then: + not: + properties: + port: true + - if: + not: + properties: + port: false + then: + not: + properties: + nvidia,panel: true + +if: + properties: + port: false +then: + required: + - nvidia,ddc-i2c-bus + - nvidia,hpd-gpio + additionalProperties: false required: @@ -97,8 +127,6 @@ required: - reset-names - pll-supply - vdd-supply - - nvidia,ddc-i2c-bus - - nvidia,hpd-gpio examples: - | From patchwork Mon Aug 7 14:35:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 132191 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1542679vqr; Mon, 7 Aug 2023 08:54:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6D/H8O0A6wTrUSsQxy44j7Fy7cRLL7apwjoxX20IMQ9o57b4cXlrrnWOiyIJtyl0roPss X-Received: by 2002:a05:6512:3494:b0:4fe:1f02:e54b with SMTP id v20-20020a056512349400b004fe1f02e54bmr5549814lfr.56.1691423661310; Mon, 07 Aug 2023 08:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691423661; cv=none; d=google.com; s=arc-20160816; b=XT4tWHsiLjBgU1tLwX+OapPybuoswo55DdQ+h5fgp7U+C0nWyU5ZH7kaabPcrx9in9 RB5jz8UB86c2ji5hHer1pcMcN17tGYn+RKrx9sGiqQeVg8Sm4y7R4TL4/5jbRvun+9XK CpzqEy9U+OHLd1+lc+uO7HsESXIHo3KfQL1jQDfs39cIxbYjJ28apyC8cJrdpqGfU8Eh vi4xDYifigaCDoNaFQrR1+F9UhI2UOXJ1uNbLXV+v4oi/SlRnc7uKzcnZNahh+VzFobm RhvEboLrizGXLJmTds+lqZVsSC714HwFIstFv1OeJg+1WVdtweEecBZUt8LnnFfotX99 q2Hw== 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=QTMdpVu9zcROFMVsz6T+C+h5mIKmLtZWdHwxQBCPR5I=; fh=Xt3tn1m5DEUOpT2C4sjW8IToNHOtNUWYtxWRCgkM7Mg=; b=0c3F8iZ6gs6eZdnAXOZZDXqi9MMG4eIcthaPYje0Js2cvV840hXtf3NE8fIiOXdeV+ QOgkEufbzhBBIl+Q0BVTMk0XRB7mjBAcfQlz3ZEWoFoxScjJav0AhiL8Ml/DhetJB3x/ wI/i8AwRf8n5Rzx3GBRcqkI3Q0qZeGjdX7pVVKdYHEBOjAYfX6fgLUjhuEvrBQOY5JTK c2+cr/mBB8QGg/PN/Tq8d684WOjLnbNBn2kATKJUWlM2D7uQztuqSxd7reWS53GgQZDV VzwcDz/00VsQj++y4bWz2eSzO0acyU7uG1yeNanQkzh4kF5ebvAEtOtqyrV1G1OEXsQ6 KsOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="KUaH/j2F"; 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 s22-20020aa7d796000000b00522d0291047si6364904edq.361.2023.08.07.08.53.57; Mon, 07 Aug 2023 08:54:21 -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="KUaH/j2F"; 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 S234295AbjHGOfu (ORCPT + 99 others); Mon, 7 Aug 2023 10:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234096AbjHGOfk (ORCPT ); Mon, 7 Aug 2023 10:35:40 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7544010F3; Mon, 7 Aug 2023 07:35:37 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-977e0fbd742so631679266b.2; Mon, 07 Aug 2023 07:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691418936; x=1692023736; 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=QTMdpVu9zcROFMVsz6T+C+h5mIKmLtZWdHwxQBCPR5I=; b=KUaH/j2FWhExXriqrgGp81CVqFpEVbCRXw9lnyy+yw1JSm5hZeS+F54n636UGRJVCN 2zvlFL2tEiwc2qS/7d/rxTLwAw8kBI2y3yCFhNukIRH8uM5t+SRwbTsnFD54N7NG8RGH KpntJwT+9KcreOlQCoNTb61JEIX7VdcgaBpqoVG56+JyoVO5Kp4G/Qy4xm2VH2XrO+El JY09CQ7/yM6L4rNf0QGu4GDeE3CFatQO47ZhwNYoG/trkEiEb5LPe/VfprY0p+xvhndY Htc5Ow23M+m/40pBS2hnFNshKoPImXIe6rwxM9c7WLvX8hgP5Y+UBFCL58InhqIPniYM F5QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691418936; x=1692023736; 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=QTMdpVu9zcROFMVsz6T+C+h5mIKmLtZWdHwxQBCPR5I=; b=Pzu/ueSefg0qhTIDuiVGXAEuQXx2dSOyU0niaZHgElzwJZ7VmeYO+blXdAREgJpVPn /O2AMsIPcETSHPeK3bvusJLouckdwAkVUkm0kGmeyZ5AjkMmcfGvOcd5eVHYOVvGOCGi EBNmsJmgkDoM8Zz9woDMpn4IJA7uXw5e0QfNIF8tA8mJtypG4teFxlKtwPEk08/O159K O2Gxgs/t+UaSlwnne3/+gbR9f2IMMVRGTflXf1JV0Bvf9bUglmsNhKxfK9WKUogZsl0h jsiIs7qFZhPl2DOkQkqt9AoMGQs4qUOpU5SrBqGsgwjQF4LLnp/Ufk9qd8Wacai5Z3zB 2xoQ== X-Gm-Message-State: AOJu0Yx3VBjvamtptyoU4zaKjnWzcj1PkFzu+6iKuhNHRdlIInMJzITA UKYp/d9Jzg3fNFnJN8XMSksSS3CkerrL7A== X-Received: by 2002:a17:906:32c6:b0:997:870d:e8fa with SMTP id k6-20020a17090632c600b00997870de8famr7811483ejk.1.1691418935876; Mon, 07 Aug 2023 07:35:35 -0700 (PDT) Received: from xeon.. ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id e3-20020a170906504300b0099329b3ab67sm5323292ejk.71.2023.08.07.07.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 07:35:35 -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 4/5] drm/tegra: output: hdmi: Support bridge/connector Date: Mon, 7 Aug 2023 17:35:14 +0300 Message-Id: <20230807143515.7882-5-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: 1773586257044804895 X-GMAIL-MSGID: 1773586257044804895 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 6eac54ae1205..a5b12b169e57 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 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>;