Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1860419rwi; Thu, 3 Nov 2022 09:51:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55sCL0DeaRHl/gRhDcEm3B7UVAwkxUDPnVPmTmPOgI4/u2naVnqSIUFVg5aPbFriYBldrQ X-Received: by 2002:a17:907:a0c7:b0:7ad:d945:553d with SMTP id hw7-20020a170907a0c700b007add945553dmr19953217ejc.95.1667494272679; Thu, 03 Nov 2022 09:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667494272; cv=none; d=google.com; s=arc-20160816; b=NzCh5bLJ+2xdT8ZVO87W3SjIhWPqLo5a4ckasOTBRttN9Xo92x/Wgds8TZvgqVX1V9 EzTq27+84mEOzE25WBOWbHe3ldnncCFHeHnqWhhPx68dIo2jUCfwvDOT+elYZDcoqx2b pgyrWMu2waGH6i+OCK7FRCLizLUxcfNoSKG82+s4D1YKnGHonCjqYdsin2NrfPAhbt/z DZxsMuxugRj4yiOnZ/1fV+KDVhiFfExQtYqAmAjUt7juykV1qqlqMZn8Ph6dhJBL8K0A KoAKgk+doJsHJajzp1mczwR5kDrw5HrAAwDnX8BnRgE15trdtc5DxjJBKNEEt9j24Rtn bOvg== 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=StsC/47mZsRpDy+8VvmwhtpPgSntGQPYDrYqViU/RIc=; b=rG/WCjZ0mLuAMTd675kCgc82RRNguvFGlUdABkj3OoyGLftnPzu8gFNVUPyF7K5pB1 pHyBWDoOhNNPXLw83fkglzgXNpw1wjzU/XkmFXsL6V69iM8soVZutG/1J7/3HUBVRPBW CoFLEfrFHrPOvWdmcHsD9lOaQaDeYxZB8nwv+10GjWj4PuHr26GpOR5wvXKjc3/J/36X hPUIb0+QKxF2nb1udSgWGFaRN5PKUINKXYgmT2K1nsoQMG6Pb0dn60FkiJP/H79pA1zD afQGNcryBYLEb5/36qm9Pg55qf6CQIABEeYb+SyB3k0eUGSUdyb78yMc2gPHhCxJbl3C RZQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="QFro/oEB"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a50c443000000b00459a0a21965si1397074edf.516.2022.11.03.09.50.49; Thu, 03 Nov 2022 09:51:12 -0700 (PDT) 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="QFro/oEB"; 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 S232464AbiKCQk6 (ORCPT + 97 others); Thu, 3 Nov 2022 12:40:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232262AbiKCQkd (ORCPT ); Thu, 3 Nov 2022 12:40:33 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C888B20BFA; Thu, 3 Nov 2022 09:37:30 -0700 (PDT) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 2589120002; Thu, 3 Nov 2022 16:37:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667493447; 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=StsC/47mZsRpDy+8VvmwhtpPgSntGQPYDrYqViU/RIc=; b=QFro/oEBN4MqhyARsWE99AqriOwx4ZFGbB9Whk3dLw5aYtAb62n3Jwtb3QFxUFF0i6iNm9 kOvLrKsZ+4srDkLqzekfknYL+Qa66SQtmAi+RMkCdJ3MdqMn7BmA/rtTpI37nfiTVo4TMN yCpQwHonHbtg6WWhGNG34+MYycVTTN4hPV1LCh6EKk84PLyCLrM7U+4EgY5Q4LwbNjW/vm Y9/GBv3r5aO/XKOkYNeLvBMhQR22AD+B/jsXW8sYgjBAITe8X+eMDSFBSswn4tHkE134tG j+4zBSL9RnJFZUY4Mkn1XEnLalYisbG1w/tyv0wJWS8OFVlt1nLzWAc2JsASmw== 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-staging@lists.linux.dev Cc: Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Hans Verkuil , Laurent Pinchart , Maxime Ripard , Thomas Petazzoni , Rob Herring Subject: [PATCH v8 1/6] dt-bindings: media: Add Allwinner A31 ISP bindings documentation Date: Thu, 3 Nov 2022 17:37:12 +0100 Message-Id: <20221103163717.246217-2-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221103163717.246217-1-paul.kocialkowski@bootlin.com> References: <20221103163717.246217-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,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 This introduces YAML bindings documentation for the Allwinner A31 Image Signal Processor (ISP). Signed-off-by: Paul Kocialkowski Reviewed-by: Rob Herring --- .../media/allwinner,sun6i-a31-isp.yaml | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.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..6bda4f2b94c2 --- /dev/null +++ b/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.yaml @@ -0,0 +1,101 @@ +# 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#/properties/port + description: CSI0 input port + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: CSI1 input port + + if: + properties: + compatible: + contains: + enum: + - allwinner,sun8i-v3s-isp + then: + required: + - port@0 + +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.38.1