Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1704096pxb; Fri, 10 Sep 2021 11:44:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdB6Im512BP4AFj4yXxdnQkD8iPzflGVVZ038yKXYAvW1XRkqroVUJRw53VHSXrZ7kuvcA X-Received: by 2002:a05:6e02:f08:: with SMTP id x8mr7394269ilj.92.1631299457605; Fri, 10 Sep 2021 11:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631299457; cv=none; d=google.com; s=arc-20160816; b=NwW3b6FSWuMQxplC1MTW4LbieuorNzgz/0cmNgHGuPDpTPjObgBFVEs29R5RTPB8Zm fHjz+/VrKTWtwGRS49jmWo5GjSTTtNYakA4+1s2V1kWWKUD/S+x56+KMev9DWsuX7CG4 A8D0ZpzX7vEa5q7vjtFz0L6LTJ/em1cz7wheEVNN1aDUAQpX0/uajwhsRtJELSJx6UI0 bSLdRA8rcY52BH5VNyYrRi50oRiMflETnlHo2pGJsEf7Y8pg8G1qoC2lCiLDGQAjNPOR ta25psFcgSJNti3rn/wEqsA+wBSPd8CdmquKyrC8MAVOiPjRZrUDI2l5mqtqRb4euqHG BhGw== 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; bh=+xldz8nJH53tbumfwzwgUvoaBVwB+QH30J8mYV01HsQ=; b=sKFYQCBZ5O/nXFWCV52BnHJmn8ZcqYmzzkkb1zYjLHFNU6H41xlv+a+ixP6bR8pzNs Y0QibZKKmO/Jux/2uLylTC44xhntblgvKCS3hNYcXS8QWOmP6oNxLMF/ddEvQk0DQY4b O6qUBSHimzJvTOHFe8sfxgGoTVivSW1/zVorzNZwwnt5RAMreI3ec4JZ54+9SsUJbstr GOgmbqFW05S/bCywQBH+QExSiYBm0epFxaS55v4GmC1zBC2s+QUalm1rWblsGtVHj0lV Kd1f1YHd/+j+GWv44gLAYX1rKWxSLN81T4iQXx8kS6Oi8uetFtXGaU6fb5QyZ2TPmKjG Y1JQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c14si5797117ild.77.2021.09.10.11.44.06; Fri, 10 Sep 2021 11:44:17 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233490AbhIJSoJ (ORCPT + 99 others); Fri, 10 Sep 2021 14:44:09 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:56767 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232603AbhIJSnm (ORCPT ); Fri, 10 Sep 2021 14:43:42 -0400 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id F04F024000E; Fri, 10 Sep 2021 18:42:28 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org, linux-staging@lists.linux.dev Cc: Yong Deng , Mauro Carvalho Chehab , Rob Herring , Maxime Ripard , Sakari Ailus , Hans Verkuil , Chen-Yu Tsai , Jernej Skrabec , Paul Kocialkowski , Greg Kroah-Hartman , Helen Koike , Laurent Pinchart , Thomas Petazzoni , Rob Herring Subject: [PATCH 10/22] dt-bindings: media: Add Allwinner A83T MIPI CSI-2 bindings documentation Date: Fri, 10 Sep 2021 20:41:35 +0200 Message-Id: <20210910184147.336618-11-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210910184147.336618-1-paul.kocialkowski@bootlin.com> References: <20210910184147.336618-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This introduces YAML bindings documentation for the Allwinner A83T MIPI CSI-2 controller. Signed-off-by: Paul Kocialkowski Reviewed-by: Rob Herring --- .../media/allwinner,sun8i-a83t-mipi-csi2.yaml | 133 ++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/allwinner,sun8i-a83t-mipi-csi2.yaml diff --git a/Documentation/devicetree/bindings/media/allwinner,sun8i-a83t-mipi-csi2.yaml b/Documentation/devicetree/bindings/media/allwinner,sun8i-a83t-mipi-csi2.yaml new file mode 100644 index 000000000000..0d41681bb8b2 --- /dev/null +++ b/Documentation/devicetree/bindings/media/allwinner,sun8i-a83t-mipi-csi2.yaml @@ -0,0 +1,133 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/allwinner,sun8i-a83t-mipi-csi2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A83T MIPI CSI-2 Device Tree Bindings + +maintainers: + - Paul Kocialkowski + +properties: + compatible: + const: allwinner,sun8i-a83t-mipi-csi2 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Bus Clock + - description: Module Clock + - description: MIPI-specific Clock + - description: Misc CSI Clock + + clock-names: + items: + - const: bus + - const: mod + - const: mipi + - const: misc + + resets: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + description: Input port, connect to a MIPI CSI-2 sensor + + properties: + reg: + const: 0 + + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + clock-lanes: + maxItems: 1 + + data-lanes: + minItems: 1 + maxItems: 4 + + required: + - data-lanes + + additionalProperties: false + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + description: Output port, connect to a CSI controller + + properties: + reg: + const: 1 + + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + mipi_csi2: csi@1cb1000 { + compatible = "allwinner,sun8i-a83t-mipi-csi2"; + reg = <0x01cb1000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI_SCLK>, + <&ccu CLK_MIPI_CSI>, + <&ccu CLK_CSI_MISC>; + clock-names = "bus", "mod", "mipi", "misc"; + resets = <&ccu RST_BUS_CSI>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + mipi_csi2_in: port@0 { + reg = <0>; + + mipi_csi2_in_ov8865: endpoint { + data-lanes = <1 2 3 4>; + + remote-endpoint = <&ov8865_out_mipi_csi2>; + }; + }; + + mipi_csi2_out: port@1 { + reg = <1>; + + mipi_csi2_out_csi: endpoint { + remote-endpoint = <&csi_in_mipi_csi2>; + }; + }; + }; + }; + +... -- 2.32.0