From patchwork Thu Nov 3 16:37:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 15013 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp645975wru; Thu, 3 Nov 2022 09:49:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4LmaElskn6/ZgjywzteKeP+51ovnOVQDew3wXn9gfYPaSMlMpyc3cXNOVj0HjV3G3r4lKt X-Received: by 2002:a17:907:2719:b0:7ad:2da5:3ba7 with SMTP id w25-20020a170907271900b007ad2da53ba7mr29744821ejk.340.1667494196150; Thu, 03 Nov 2022 09:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667494196; cv=none; d=google.com; s=arc-20160816; b=v0HuMCv27ujuOa5pPDGslOi0sJjyt/DISkUjgyZfSg0sMMZ+7s66TtoETYss29gwRx H4RElRItw2PfdIWF4V55qu1sFP+4i/s1gFsAz6Qwp4dobJNCNoJYrBtrpz7dwMV5VM9O gs2MIClBEyapblOS0xeePU12Pbi5Z8zvkSeOcWf9gD9ohypeCeptzFrQTNgsDTKwTcXP 7j0sLPsMlnSueSH/3K8fdqYVKP7gyZjbl4Sl3yehTK8tql0aC+Ln+ovDh9uesEsmRznC yguzb8ztRu9gDadKk9+vAmFKQYrG7DKJIvp4/THjmrupvjPIwfo6q3IHI/471xMbT0vr qwIg== 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 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.49.32; Thu, 03 Nov 2022 09:49:56 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748494394268790462?= X-GMAIL-MSGID: =?utf-8?q?1748494394268790462?= 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>; + }; + }; + }; + }; + +...