From patchwork Wed Nov 9 14:18:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 17573 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp359738wru; Wed, 9 Nov 2022 06:20:02 -0800 (PST) X-Google-Smtp-Source: AMsMyM5CE20fLA6a1v3Fp2a3kgb1GuixwGyaCQrxZ8wYYrqXFhZJtrMpHOYepoezS3vGyiOT04Qj X-Received: by 2002:a17:90a:20c:b0:213:1179:1fff with SMTP id c12-20020a17090a020c00b0021311791fffmr64383999pjc.23.1668003602115; Wed, 09 Nov 2022 06:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668003602; cv=none; d=google.com; s=arc-20160816; b=puGO/O+RF2iNY+innwSRY8U009Ls17egxeXoGYOELHlvZqoJv1XatVyCz3tD1i911L xkL4/i6ir3G07wdn4ke5gdo6jrWCUxtXc2GuDNmj06lNm3h7rY6Y/UdU3ojZ3DUQmuDP Sa5QoV61JVW3SAhEbB1D1YWNB/+1+NMTilpfl/hUWgxuhQNEBxWu4P7V+nWltDUQpEPd PVAzQVdoNsvfK5glLE6nCRxoymdO83vMwSYgLLtGTZUrY6EZsgUdqIJxa96ayuetM81W VZ3Zu/NySluv/xPRM+heIe5tBWAerITpiEAcUkZr3jWqx6pB797k5eSoK7c+uoT1rvQL nyWQ== 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=PbIcdoBUbNEn6Y5YPfAT65AjVDHZNeQtTTtmrwc4noQ=; b=XRwD4ziy81EXrFSNIn5nORCS7W5k8AS/XcdSNLokb/swOs9NnFPu7dmEqu06fYbUDs fiCzm95Q+ELYDjibJzk0wCn8enAXwwrB7V+ynPjjBoWMsi6cNdJHdpo88gBU9jnbtT5v nCKm18Dzmgt+Y3vnhs8rgaCZSPvrdVhirr6xCcUkR15bNndDJOAff1cQ0wsfX7LY8aoU O+EBfcY/kBmbbD/LDS6bqUtQZwIrx/UGlN4WVzZBXol6JoPdVvJrcn1A0Ya/dWZz4zfs kzKcC7WE3tj1mzn5QIIjZMRWdhHbeIjgvUBqDJXeE1yrQweYaVLncHnKIhzKwSA2b8g4 cgjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=bP7tDi5c; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v27-20020a637a1b000000b00450200a1078si17649774pgc.853.2022.11.09.06.19.46; Wed, 09 Nov 2022 06:20:02 -0800 (PST) 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=@bootlin.com header.s=gm1 header.b=bP7tDi5c; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231133AbiKIOTZ (ORCPT + 99 others); Wed, 9 Nov 2022 09:19:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbiKIOTX (ORCPT ); Wed, 9 Nov 2022 09:19:23 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 376611BEB4; Wed, 9 Nov 2022 06:19:21 -0800 (PST) Received: from booty.fritz.box (unknown [77.244.183.192]) (Authenticated sender: luca.ceresoli@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 97842FF808; Wed, 9 Nov 2022 14:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668003560; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PbIcdoBUbNEn6Y5YPfAT65AjVDHZNeQtTTtmrwc4noQ=; b=bP7tDi5cvmzh1tA7Rh7yplOM6iQqIn0Tra14zST5XG8da961HgUpkQ/uVNfg300UONuIv6 9WvuwyyeswR0y7w00r+1oBejYgk+XqEkkrtm+3oPsMNdJK2Ei9bll/64VpHcrkdbtNvPlG Z1nwlOgsIDbH3GHpZYpF3eRnKSMQH5JfbelvkFtA5kOKfSzz9YN8aJSexDz44A9QLS6YCP PFHrnZrEJs8V2A/gOm/pk11Fo34ortDU+9WDHFtO7w8cWyUS0O/MYBpocfCoGOGo8DuIdC fFSvcVtEnAC7pLeHNScOSa+en+K8F3f6tKvlhMCrdv/ocvZll0Cinr107HKhSA== From: luca.ceresoli@bootlin.com To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil , Dmitry Osipenko Cc: Luca Ceresoli , linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Thomas Petazzoni , Richard Leitner Subject: [PATCH 02/23] dt-bindings: display: tegra: vi: add 'vip' property and example Date: Wed, 9 Nov 2022 15:18:31 +0100 Message-Id: <20221109141852.729246-3-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221109141852.729246-1-luca.ceresoli@bootlin.com> References: <20221109141852.729246-1-luca.ceresoli@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749028545050179821?= X-GMAIL-MSGID: =?utf-8?q?1749028545050179821?= From: Luca Ceresoli The Tegra20 VI peripheral can receive parallel input from the VIP parallel input module. Add it to the allowed properties and augment the existing nvidia,tegra20-vi example to show a 'vip' property. Signed-off-by: Luca Ceresoli Reviewed-by: Krzysztof Kozlowski --- .../display/tegra/nvidia,tegra20-vi.yaml | 68 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 69 insertions(+) diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml index 782a4b10150a..aab795241dd6 100644 --- a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml +++ b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml @@ -74,6 +74,22 @@ properties: avdd-dsi-csi-supply: description: DSI/CSI power supply. Must supply 1.2 V. + vip: + $ref: /schemas/display/tegra/nvidia,tegra20-vip.yaml + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + Input from the VIP (parallel input capture) module + + properties: + endpoint: + $ref: /schemas/graph.yaml#/properties/endpoint + patternProperties: "^csi@[0-9a-f]+$": type: object @@ -109,6 +125,22 @@ examples: #include #include + i2c3 { + #address-cells = <1>; + #size-cells = <0>; + camera@48 { + compatible = "aptina,mt9v111"; + reg = <0x48>; + clocks = <&camera_clk>; + + port { + mt9v111_out: endpoint { + remote-endpoint = <&vi_vip_in>; + }; + }; + }; + }; + vi@54080000 { compatible = "nvidia,tegra20-vi"; reg = <0x54080000 0x00040000>; @@ -116,6 +148,42 @@ examples: clocks = <&tegra_car TEGRA20_CLK_VI>; resets = <&tegra_car 100>; reset-names = "vi"; + + vip { + compatible = "nvidia,tegra20-vip"; + #address-cells = <1>; + #size-cells = <0>; + channel@0 { + reg = <0>; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + vi_vip_in: endpoint { + remote-endpoint = <&mt9v111_out>; + }; + }; + port@1 { + reg = <1>; + vi_vip_out: endpoint { + remote-endpoint = <&vi_in>; + }; + }; + }; + }; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + vi_in: endpoint { + remote-endpoint = <&vi_vip_out>; + }; + }; + }; }; - | diff --git a/MAINTAINERS b/MAINTAINERS index b43f6f4e8ccf..0a4f66a32e45 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20284,6 +20284,7 @@ M: Luca Ceresoli L: linux-media@vger.kernel.org L: linux-tegra@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml F: Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vip.yaml TEGRA XUSB PADCTL DRIVER