Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1704420pxb; Fri, 10 Sep 2021 11:44:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypT+0m0yQjCkaBUtabUMO8t3uC0CZQhNNnUQFGmfRTZfmiNGGIlDTNG5KAZ1lk/Aty0vj9 X-Received: by 2002:a6b:d90b:: with SMTP id r11mr8204518ioc.99.1631299491890; Fri, 10 Sep 2021 11:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631299491; cv=none; d=google.com; s=arc-20160816; b=hhRnAeYeDwsx/9DroDsm/ws/owqBngxcid/6aii21yfXOocJHLaoLShiKlwMss09MJ DLRi6wrtZxoHkPVo/yV+N+2pNsiAczZvfbo7ThqRqHR+Olit95wJZ8BOoHZO/LpTICbM Q1d8i/9w85yffPGYHWvER869YoOvmkvkviGCwT7wcgR6Ae1Jnk9AtYyRa9vCANoeTyUY bq3tP9sFapcvXYWj8diRGa++VgRe99AqEuqJOgNxDK7IOV5N5KAkNNq2Yl8MCu1HBk56 +MseSmO1g20rYzoT1lveJFts20IrqFBSadBgDU/Wa5Lv+RE2431auojVYe+vPEbAiWBW RyBg== 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=QpxST2fR1NAJYg3QeyhORKGrDmjTrbczNJuqYolvynA=; b=xnJ5NyECoqgaUwAZRGrknk5a4ln4UlAP27YAVNDIi5s/9WnvWfCAef2tfF1sihCUHp +qYT0Wx0szP2e7LFlWJmFHu0o+gzCVqpVo919gfnukEhXFOjy0xARP5+AEu2dZlRZj2F aMeXWhGaQQ9nJzFT6a5y3qxgaOAl6QE272UnE8insyvKtR7C8l/SoyPavkr0WQIk4h5m kTZnhxIsHlw11UqDXcb32UsOFjnp3EZwkVEZmtiJ9teS5oz8KlQ0mBlonSN4pe+JtafS nQ1WDyXmogiD7pqH2r2WjZOerbJdk29LZjuL77jdTBE7cA1r77pYEWkWzXijge4NHOwR KvOQ== 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 p4si5120315jam.67.2021.09.10.11.44.40; Fri, 10 Sep 2021 11:44:51 -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 S233342AbhIJSo7 (ORCPT + 99 others); Fri, 10 Sep 2021 14:44:59 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:56729 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233038AbhIJSnz (ORCPT ); Fri, 10 Sep 2021 14:43:55 -0400 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 90EF924000A; Fri, 10 Sep 2021 18:42:40 +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 Subject: [PATCH 17/22] dt-bindings: media: Add Allwinner A31 ISP bindings documentation Date: Fri, 10 Sep 2021 20:41:42 +0200 Message-Id: <20210910184147.336618-18-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 Image Signal Processor (ISP). Signed-off-by: Paul Kocialkowski --- .../media/allwinner,sun6i-a31-csi.yaml | 2 +- .../media/allwinner,sun6i-a31-isp.yaml | 111 ++++++++++++++++++ 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.yaml diff --git a/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-csi.yaml b/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-csi.yaml index f4a686b77a38..c60f6b5403fa 100644 --- a/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-csi.yaml +++ b/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-csi.yaml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0 +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/media/allwinner,sun6i-a31-csi.yaml# diff --git a/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.yaml b/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.yaml new file mode 100644 index 000000000000..a0f82f150e90 --- /dev/null +++ b/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.yaml @@ -0,0 +1,111 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/allwinner,sun6i-a31-isp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A31 Image Signal Processor Driver (ISP) Device Tree Bindings + +maintainers: + - Paul Kocialkowski + +properties: + compatible: + enum: + - allwinner,sun6i-a31-isp + - allwinner,sun8i-v3s-isp + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Bus Clock + - description: Module Clock + - description: DRAM Clock + + clock-names: + items: + - const: bus + - const: mod + - const: ram + + resets: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + description: CSI0 input port + + properties: + reg: + const: 0 + + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + additionalProperties: false + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + description: CSI1 input port + + properties: + reg: + const: 0 + + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + isp: isp@1cb8000 { + compatible = "allwinner,sun8i-v3s-isp"; + reg = <0x01cb8000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI1_SCLK>, + <&ccu CLK_DRAM_CSI>; + clock-names = "bus", "mod", "ram"; + resets = <&ccu RST_BUS_CSI>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + isp_in_csi0: endpoint { + remote-endpoint = <&csi0_out_isp>; + }; + }; + }; + }; + +... -- 2.32.0