From patchwork Tue Jun 28 03:29:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Lin X-Patchwork-Id: 12897585 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 A4CABC43334 for ; Tue, 28 Jun 2022 03:30:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241298AbiF1DaJ (ORCPT ); Mon, 27 Jun 2022 23:30:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238964AbiF1DaD (ORCPT ); Mon, 27 Jun 2022 23:30:03 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85D2FFCC; Mon, 27 Jun 2022 20:30:02 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id bo5so10817785pfb.4; Mon, 27 Jun 2022 20:30:02 -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=+FUdcVoA5R7wkkHkMVOX+IHghKx89t2KDXyDGNa8qBo=; b=cFSF/Igbc1r2gDcQpVy7tCFsoc8ssh0ufnUMmAh7Xml6/lQtl7cjJALz1pmhoCyIsx A3wzSDY6CvLOBbyl5O+54rkCheiAB5nWIeeloQJ6ITaL/5NKAd/JUDuzlEoqtOd/cNsu ym7fJFubL0BvNW7gtBn/QgE5QlZHDeAp7UevmHvn1xmCt9rFBRuw81RSNs+J9lHs99LQ 2bhPNR8p0uxGMzOM6shvegJLx5H8vDk7bcDdQSrLJk+rNHA/GcNUuw4TlgE6YB2e5WcQ J4bKNzIexGRe4Ll7PBtGvxq83FKB421l9r5pSGXhJzYt1Yic2FTIlHHMkQd8RD98mXbB W8Nw== 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=+FUdcVoA5R7wkkHkMVOX+IHghKx89t2KDXyDGNa8qBo=; b=U9R4LU8VHfEl96e8SEAAdxbzmGWZcL5RO+rR6aTRTHLoo5GALdNtV2Fih+Qcvl0iAL pJCN3J7YpTy7Vu+GOfpR349tS9WDSo0WAN/rmnkXkdkurJHbJU6UCNe9eMTW6vEERlU/ QQfvRCLZp1bghpLBqo0dkuxnmnxd6eTZncOLVuL0mQaM7rFxq8LKOrJAH0jAQS6lwK0u 5gus6gCv1sibf2DWxAwB48D722YR6VDg97PQFl3V2kU6f4tbctXMqh81fmBoHfwgnkKl 8EJ4Kuo6YHJPMV/Ct/uHRhx/QfjeNc10sZmdBsZhdwgJg3ND22J/M3c/eAbjUj+2WwjY C5UQ== X-Gm-Message-State: AJIora+fvsIQ9FsvkUbrynBrGWChnP44hCZ/Fw6L/VtCk8+gxpOJE7oS Q+z9H1JOboXWjxnIhUlLx4A= X-Google-Smtp-Source: AGRyM1tfHI00oIgL3NF8TfCm3Awuwsx6zqkI9ZVff6GikTPLUVCD3jsqT3GkNns9YquDSOQlV80Hig== X-Received: by 2002:aa7:9298:0:b0:525:a210:465f with SMTP id j24-20020aa79298000000b00525a210465fmr1352069pfa.77.1656387001994; Mon, 27 Jun 2022 20:30:01 -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 c26-20020a62e81a000000b0050dc762816dsm8091160pfi.71.2022.06.27.20.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 20:30:01 -0700 (PDT) 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, Marvin Lin Subject: [RESEND PATCH v4 2/5] dt-bindings: media: Add dt-bindings for NPCM Video Capture/Encode Engine Date: Tue, 28 Jun 2022 11:29:42 +0800 Message-Id: <20220628032945.15410-3-milkfafa@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220628032945.15410-1-milkfafa@gmail.com> References: <20220628032945.15410-1-milkfafa@gmail.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>; + };