From patchwork Fri May 13 03:34:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Lin X-Patchwork-Id: 12848333 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE9DEC433EF for ; Fri, 13 May 2022 03:36:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376815AbiEMDfw (ORCPT ); Thu, 12 May 2022 23:35:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376814AbiEMDfs (ORCPT ); Thu, 12 May 2022 23:35:48 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD8A4EB9; Thu, 12 May 2022 20:35:42 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id x23so6569335pff.9; Thu, 12 May 2022 20:35:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dtvS7FlIf6tiGDrDOHrDDb05Y2i6bh3qVCm0jbGaTfc=; b=TvFxDavUOSETDp5c86O/FIw5P8NfWt6jFC4qzzhfL3zt2e8xuK/a6bpi/UDtmgqFb7 CL4qpR6I9Xhos8Qnn4w3u1MxRoDR5ye+XgrvW/d0mVesmWcvEHpKuimCRrUhxXu4dtdS wQpZQMZYh1ZwVC0oBSb6GNBc8DRM/efsxGUnfhMToewGziuQWfZUC71gMP59yRAio7I0 lXVLHet7/dgfSpTAP9tCTlacge2WqcpbWOH/nOIFAuYnGV6oAYd0lOIxiKJgqb5lEu32 Qmfp1zkMYMgnZQ7hUbNxm57J2eC/jajFMGqSx3hxxoicUalK6eftOePhYJRygxY2QWeH 9xLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dtvS7FlIf6tiGDrDOHrDDb05Y2i6bh3qVCm0jbGaTfc=; b=p6Xb8L7nLrORPmoLIpPVSo0HZvGlr3Cj5kYaXL9FE3SDTf5u7Y/6eRG3ffQ1v484lh POeBASwSeMdq8G9HmEE5Ocr7Ad1RFCLEQk92L+ejtnrB8Y7gE2sSNHDKFGIZ7KcJ5k7B qE/RxbGpXS+B1Vu9S6WxrJuZ3D70vSe7QtZ/ISzPtqJ+Y1Q85a4RvZyrpI5bp7NyYBqX 2ewZDaZ4CdBLuMDUNsnqH/lrYOA/pIZMzFf6uBxgtm6DtYcU4eY1db2AHleStcvSVkGT i+y6BWNlmh+xXHDmN6hP1a9EyOGXCcci/BJtdAn4JPJqxnZD+XaLVNZ0/Txz2qqNViBW MLDQ== X-Gm-Message-State: AOAM530gF6DxsyoR644op7y05rdKSq6c4TqAPo5catJ079nYahZFzqzm A8Li3A9TVwucA9dmSKeVgbw= X-Google-Smtp-Source: ABdhPJykSY+x5DFPM60jcPqnYTCfDkB4gpF/skCH5s7NCx5DG3m6bI3WtiRCjCI8qJ572g7oYPUL/w== X-Received: by 2002:a62:1ad4:0:b0:510:c635:e516 with SMTP id a203-20020a621ad4000000b00510c635e516mr2807623pfa.42.1652412942346; Thu, 12 May 2022 20:35:42 -0700 (PDT) Received: from localhost.localdomain (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id b7-20020a1709027e0700b0015e8d4eb1c7sm685133plm.17.2022.05.12.20.35.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 20:35:38 -0700 (PDT) From: Marvin Lin X-Google-Original-From: Marvin Lin To: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: openbmc@lists.ozlabs.org, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, kwliu@nuvoton.com, kflin@nuvoton.com Subject: [PATCH v2 2/5] dt-bindings: media: Add dt-bindings for NPCM Video Capture/Encode Engine Date: Fri, 13 May 2022 11:34:47 +0800 Message-Id: <20220513033450.7038-3-kflin@nuvoton.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220513033450.7038-1-kflin@nuvoton.com> References: <20220513033450.7038-1-kflin@nuvoton.com> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add dt-bindings document for NPCM Video Capture/Encode Engine. Signed-off-by: Marvin Lin --- .../bindings/media/nuvoton,npcm-video.yaml | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/nuvoton,npcm-video.yaml diff --git a/Documentation/devicetree/bindings/media/nuvoton,npcm-video.yaml b/Documentation/devicetree/bindings/media/nuvoton,npcm-video.yaml new file mode 100644 index 000000000000..b5be7ef09038 --- /dev/null +++ b/Documentation/devicetree/bindings/media/nuvoton,npcm-video.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/nuvoton,npcm-video.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NPCM Video Capture/Encode Engine Device Tree Bindings + +maintainers: + - Joseph Liu + - Marvin Lin + +description: | + Video Capture/Differentiation Engine (VCD) and Encoding Compression Engine + (ECE) present on Nuvoton NPCM SoCs. + +properties: + compatible: + enum: + - nuvoton,npcm750-video + - nuvoton,npcm845-video + + reg: + items: + - description: VCD registers + - description: ECE registers + + reg-names: + items: + - const: vcd + - const: ece + + interrupts: + maxItems: 1 + + resets: + items: + - description: VCD reset control + - description: ECE reset control + + reset-names: + items: + - const: vcd + - const: ece + + nuvoton,syscon-gcr: + $ref: /schemas/types.yaml#definitions/phandle + description: Phandle to the Global Control Register DT node + + nuvoton,syscon-gfxi: + $ref: /schemas/types.yaml#definitions/phandle + description: Phandle to the Graphics Core Information DT node + + memory-region: + description: + CMA pool to use for buffers allocation instead of the default CMA pool. + +required: + - compatible + - reg + - reg-names + - interrupts + - resets + - reset-names + - nuvoton,syscon-gcr + - nuvoton,syscon-gfxi + +additionalProperties: false + +examples: + - | + #include + #include + + video: video@f0810000 { + compatible = "nuvoton,npcm750-video"; + reg = <0xf0810000 0x10000>, + <0xf0820000 0x2000>; + reg-names = "vcd", "ece"; + interrupts = ; + resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_VCD>, + <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_ECE>; + reset-names = "vcd", "ece"; + nuvoton,syscon-gcr = <&gcr>; + nuvoton,syscon-gfxi = <&gfxi>; + };