Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1703967pxb; Fri, 10 Sep 2021 11:44:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS/hxm0T8eTUZVpG+6fKHpnzhEcq7hq6eEXWXH2PNS2jwzazN1bhhlXIq3iHrTMwJOPCkH X-Received: by 2002:a92:d191:: with SMTP id z17mr7354757ilz.119.1631299445730; Fri, 10 Sep 2021 11:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631299445; cv=none; d=google.com; s=arc-20160816; b=CmPivZwzeIi6iIoabnbKRGKZf4Y4kUFh2JaYrZ+HDNEddppsc0IkIbBBki2DcBQOD8 SYNJNuBB3GtksASjt8tBiD+UWDUGLtr1s/XecW6GQPJ4CVuqFewZ8PeRM+jg4vzVZmUQ 4zebXyn/tJP5kh/tcQqfpX756DTOuv2PHo0xm6kN+ms5Om1ukAQUItmk+hCV3kPrycry G7Tl99isugyTAG2CgVfU/rGGyo2YqfOBZoxGKZ5SXzfaChlbFYs6ILZ6ypknAApo57rF 4EuZlYClccLTE6pigTjSnNFGUnwL6dCKLoH8CpQ6JlwuQXGQsdy11/AL++O08eK8b1Eu BrEQ== 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=OuGVOrmhXPIoyCxQNYQCAF5KP8W/sr9GPCYV+DgpmtM=; b=EGl3oACfkfc2ijXjztYkNMBcArbm6uYvpW27U7rtSSjX/9Trwx3jU2OnWIg8xbwOwS a6qQGExquk2P+ECoMdF419VQZBm9yAvufH8Kf4W2onu+h+ctEbVqLejEMULeJwuGTQfp uXGEhsjw6ZcgtqTYGgb/7N8Zx5UDK39W9XmtwBfLXR16Vgzo2TjwOYHA6pQYF6DDtQmL 1MNktmoUFw75PAjXjdCsCbX7ZkopPKzqlKIvZp1Vpg224i7qLbmdw2t/xbbW+ItHUjkk Z1jCmKVsQcSBb3WPO+Cy4B+MJdjVW+eOXuigVL7pKCgysYIHN60ri/1xC+t7InHqQI+l Zksw== 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 l126si4840573ioa.77.2021.09.10.11.43.54; Fri, 10 Sep 2021 11:44:05 -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 S233299AbhIJSoF (ORCPT + 99 others); Fri, 10 Sep 2021 14:44:05 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:43991 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232346AbhIJSng (ORCPT ); Fri, 10 Sep 2021 14:43:36 -0400 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 6E47F24000C; Fri, 10 Sep 2021 18:42:22 +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 06/22] dt-bindings: media: Add Allwinner A31 MIPI CSI-2 bindings documentation Date: Fri, 10 Sep 2021 20:41:31 +0200 Message-Id: <20210910184147.336618-7-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 A31 MIPI CSI-2 controller. Signed-off-by: Paul Kocialkowski Reviewed-by: Maxime Ripard Reviewed-by: Rob Herring --- .../media/allwinner,sun6i-a31-mipi-csi2.yaml | 142 ++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/allwinner,sun6i-a31-mipi-csi2.yaml diff --git a/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-mipi-csi2.yaml b/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-mipi-csi2.yaml new file mode 100644 index 000000000000..09207904b6db --- /dev/null +++ b/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-mipi-csi2.yaml @@ -0,0 +1,142 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/allwinner,sun6i-a31-mipi-csi2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A31 MIPI CSI-2 Device Tree Bindings + +maintainers: + - Paul Kocialkowski + +properties: + compatible: + oneOf: + - const: allwinner,sun6i-a31-mipi-csi2 + - items: + - const: allwinner,sun8i-v3s-mipi-csi2 + - const: allwinner,sun6i-a31-mipi-csi2 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Bus Clock + - description: Module Clock + + clock-names: + items: + - const: bus + - const: mod + + phys: + maxItems: 1 + description: MIPI D-PHY + + phy-names: + items: + - const: dphy + + 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: + 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 + - phys + - phy-names + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + mipi_csi2: csi@1cb1000 { + compatible = "allwinner,sun8i-v3s-mipi-csi2", + "allwinner,sun6i-a31-mipi-csi2"; + reg = <0x01cb1000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI1_SCLK>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_CSI>; + + phys = <&dphy>; + phy-names = "dphy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + mipi_csi2_in: port@0 { + reg = <0>; + + mipi_csi2_in_ov5648: endpoint { + data-lanes = <1 2 3 4>; + + remote-endpoint = <&ov5648_out_mipi_csi2>; + }; + }; + + mipi_csi2_out: port@1 { + reg = <1>; + + mipi_csi2_out_csi0: endpoint { + remote-endpoint = <&csi0_in_mipi_csi2>; + }; + }; + }; + }; + +... -- 2.32.0