Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1401063pxb; Fri, 21 Jan 2022 17:44:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEhT4JFsz2z26KQF59IP4Hn2TMpEsOj9L6SnNCE0POnfGZlXGlQhMsDw2A3syzur8HlZD5 X-Received: by 2002:a17:90b:380f:: with SMTP id mq15mr129729pjb.106.1642815881250; Fri, 21 Jan 2022 17:44:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642815881; cv=none; d=google.com; s=arc-20160816; b=qbFnvM3+MteBAH47sNm/Vj94Y4LhxInGG3rkbm2JpgGSH09A4mR+oxcyojdtPLTt7G ZpdjuAAC7IJtnCzEiVI6nLxOecuAo1e0Dk/GU/ofK8p8hmZ/EIut5i54kQmanx4V2gW3 ZmPQFvPpYxfjfmwdNLIlO3tdVYTEeieczZDq0uFSGEKX1StxsOlF8MdjfYfpBWsNkBaT Cmg7/J66h+CB1F7sWald+E15njlFq94DW49CdJwkimO6UZ0LSaMQUe4wUarCCeUS5/Xq 83OLb1jRSkdk18yx/iae6JqKnhhxp4DhmClCJxkCLPvFDs3eUJcSTFutGmZSrlYpZ0F1 YTZw== 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=d9Dt0ojfeazX7PI/VA+8aM9lrW/y00i/SAVfapvLLhc=; b=X+4hqRnEI9PV+myIIBSiBm2yzxM/mGz7z47VqcituNxWliZsiX5mh7ZvQV0vUTUpit aakKBWHT/Ha0Nfbtdz27asl5U58ZYUbXC8g4qITdjC+eDuvRgZtC/s244JN/JUWg8F5i c9NAgggiSi89teiULfuh5LqYqO+q5XNtUo25KMa8eT2vMymIne/jXjK7/6GT8tcadTa/ 7ZQt7rcK+1fj2tzs8a7KJracdk1TmBqKDvNGrG/BvX3M6ku5UBzb6kCIH87ONrA5HJGI LUds7kgjFaP8NuFZJvBkwaOhqj6jKSvuDUi8jiNxHXmH0rL9dC32vWa2Sgd0B7xTC24T E1mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AGRyqqYB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 11si7656326pfl.113.2022.01.21.17.44.29; Fri, 21 Jan 2022 17:44:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AGRyqqYB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381207AbiAUOac (ORCPT + 99 others); Fri, 21 Jan 2022 09:30:32 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:58956 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381247AbiAUOaE (ORCPT ); Fri, 21 Jan 2022 09:30:04 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 20LETxn8076318; Fri, 21 Jan 2022 08:29:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1642775399; bh=d9Dt0ojfeazX7PI/VA+8aM9lrW/y00i/SAVfapvLLhc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AGRyqqYBYkmEYVgYqyeFAu9T0X6cBbu/6MRm3/ZVuFLQMUwhnuQzhvnoVZ/Kh+klU 1fL/J7nLtwVgG/+2kyntgjU2ExmaM7ywMFAerlQYiof3w3m5L1pNKFDp2UcakYVMNn sHMrtJ0vp1YVqwnAwdsJcNDkw6uzOuWzxegoDZ2s= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 20LETxnn019174 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 21 Jan 2022 08:29:59 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Fri, 21 Jan 2022 08:29:59 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Fri, 21 Jan 2022 08:29:59 -0600 Received: from pratyush-4F-325.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 20LET4I0072129; Fri, 21 Jan 2022 08:29:55 -0600 From: Pratyush Yadav To: Mauro Carvalho Chehab CC: Pratyush Yadav , Laurent Pinchart , Nikhil Devshatwar , Tomi Valkeinen , Benoit Parrot , Maxime Ripard , Rob Herring , Sakari Ailus , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , , , Subject: [PATCH v6 13/14] media: dt-bindings: Add DT bindings for TI J721E CSI2RX driver Date: Fri, 21 Jan 2022 19:59:03 +0530 Message-ID: <20220121142904.4091481-14-p.yadav@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220121142904.4091481-1-p.yadav@ti.com> References: <20220121142904.4091481-1-p.yadav@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TI's J721E uses the Cadence CSI2RX and DPHY peripherals to facilitate capture over a CSI-2 bus. The TI CSI2RX platform driver glues all the parts together. Signed-off-by: Pratyush Yadav Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring --- (no changes since v5) Changes in v5: - Add Laurent's and Rob's R-by. Changes in v2: - Rename to ti,j721e-csi2rx.yaml - Add an entry in MAINTAINERS. - Add a description for the binding. - Change compatible to ti,j721e-csi2rx to make it SoC specific. - Remove description from dmas, reg, power-domains. - Remove a limit of 2 from #address-cells and #size-cells. - Fix add ^ to csi-bridge subnode regex. - Make ranges mandatory. - Add unit address in example. - Add a reference to cdns,csi2rx in csi-bridge subnode. - Expand the example to include the csi-bridge subnode as well. - Re-order subject prefixes. .../bindings/media/ti,j721e-csi2rx.yaml | 101 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/ti,j721e-csi2rx.yaml diff --git a/Documentation/devicetree/bindings/media/ti,j721e-csi2rx.yaml b/Documentation/devicetree/bindings/media/ti,j721e-csi2rx.yaml new file mode 100644 index 000000000000..db87cfd65bed --- /dev/null +++ b/Documentation/devicetree/bindings/media/ti,j721e-csi2rx.yaml @@ -0,0 +1,101 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/ti,j721e-csi2rx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI J721E CSI2RX Wrapper Device Tree Bindings + +description: | + The TI J721E CSI2RX Wrapper is a wrapper around Cadence CSI2RX bridge that + enables sending captured frames to memory over PSI-L DMA. In the J721E + Technical Reference Manual (SPRUIL1B) it is referred to as "SHIM" under the + CSI_RX_IF section. + +maintainers: + - Pratyush Yadav + +properties: + compatible: + items: + - const: ti,j721e-csi2rx + + dmas: + maxItems: 1 + + dma-names: + items: + - const: rx0 + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + ranges: true + + "#address-cells": true + + "#size-cells": true + +patternProperties: + "^csi-bridge@": + type: object + description: CSI2 bridge node. + $ref: cdns,csi2rx.yaml# + +required: + - compatible + - reg + - dmas + - dma-names + - power-domains + - ranges + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + + ti_csi2rx0: ticsi2rx@4500000 { + compatible = "ti,j721e-csi2rx"; + dmas = <&main_udmap 0x4940>; + dma-names = "rx0"; + reg = <0x4500000 0x1000>; + power-domains = <&k3_pds 26 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + cdns_csi2rx: csi-bridge@4504000 { + compatible = "cdns,csi2rx"; + reg = <0x4504000 0x1000>; + clocks = <&k3_clks 26 2>, <&k3_clks 26 0>, <&k3_clks 26 2>, + <&k3_clks 26 2>, <&k3_clks 26 3>, <&k3_clks 26 3>; + clock-names = "sys_clk", "p_clk", "pixel_if0_clk", + "pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk"; + phys = <&dphy0>; + phy-names = "dphy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi2_0: port@0 { + + reg = <0>; + + csi2rx0_in_sensor: endpoint { + remote-endpoint = <&csi2_cam0>; + bus-type = <4>; /* CSI2 DPHY. */ + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 2a8ebf17462e..446bc3146093 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19185,6 +19185,7 @@ TI J721E CSI2RX DRIVER M: Pratyush Yadav L: linux-media@vger.kernel.org S: Supported +F: Documentation/devicetree/bindings/media/ti,j721e-csi2rx.yaml F: drivers/media/platform/ti/j721e-csi2rx/ TI DAVINCI MACHINE SUPPORT -- 2.34.1