From patchwork Fri Sep 22 06:24:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Lin X-Patchwork-Id: 143268 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5415002vqi; Fri, 22 Sep 2023 01:49:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwILCkqIiBXLm2TiBSWf4MtG7Ll+v9BMI+tXd5ZGa3Hq3SbhsQ5+KjUS2OT4URxpErjIEU X-Received: by 2002:a05:6808:1b23:b0:3a7:b1de:bb70 with SMTP id bx35-20020a0568081b2300b003a7b1debb70mr9429051oib.6.1695372593260; Fri, 22 Sep 2023 01:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695372593; cv=none; d=google.com; s=arc-20160816; b=BsGufWnkunJFxW7UTk11EeytV99dX1xYAgJQPNhFs7axETnrM9hKXcpHy46wDEloFf b+haLy4HrlXNthf49a0qExHBHUMecY+blePsSboxYFAfqQ/YVUxesxs6Q81j6L42K+v7 GVgOUFiId50dclpGmdJc9CL5qvc00tqOnbs5AwFoqpzexUyHcH+5GvRy+Vn8SulPuinD XzGqgZ/r3LLe+nSJlP5CG9vbRbvQydt+Ge1ernohBfFEXXGN4lqfwy0cK54OWrKGKVmy F39bKFj7RCjEVWxX0HvMDOlNPdL3wp4Ee5JOxxEi8ww++UPGM9oSZpUg5Z/MlNe5t/1L tK6Q== 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=Sr4EPKJxuJJJu4QkdICBYMaj0v525kEVWP7yq9+OnDo=; fh=3pMp/nFsKHlJ0+S+GY0ZBqLXEpegD/iCtQA3vFzJ9Ro=; b=jFA2xQE3E3WZ1agr+LeUuuaUCXVOiBZL72msIFGKxuZ/ePXOXXZ49kqbdPls7JLz4O fqFo0yv0oxU7tkhIsVMwHufmqQIYsr5bfgx0Wx5oufFDENcM0uezrrmdWGE957Ac5+d/ 1hU+XIyQ6UhvX1XSaGKGOnYEwdR+3xh9xrcdzxvCd7x+BOp2kMXziUVpVlq+H3yxt9aM jHK2Gzq58NcmF0DbE8qkMmfhe9HknRZva24zsQXQ2DZq9pjH5p9o/AJTNTcvlZdx0S19 IxedQzh3iwuN6Dm+xljjEw2xCWQnDri5gal6opGVz5PBar+nvkuLnfFkD6dRqQcvqA1M Wfng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TNyKe9Ov; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p29-20020a056a0026dd00b0068e29a05faesi3148330pfw.285.2023.09.22.01.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 01:49:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TNyKe9Ov; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C52EB807123B; Thu, 21 Sep 2023 23:25:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231440AbjIVGY5 (ORCPT + 30 others); Fri, 22 Sep 2023 02:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbjIVGYg (ORCPT ); Fri, 22 Sep 2023 02:24:36 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73DE383; Thu, 21 Sep 2023 23:24:24 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-2767378ae15so1211625a91.1; Thu, 21 Sep 2023 23:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695363864; x=1695968664; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Sr4EPKJxuJJJu4QkdICBYMaj0v525kEVWP7yq9+OnDo=; b=TNyKe9Ov1QLo+aUcUJhUxmBsIfjpDReO69X+n3GJJqrfuFNSLK2aB260zi6hClf8Vf i2YWGUb5QJmLahOYFqLYaa54a7gHRfzFe8gyD51vLgzFMhzwm9MteiXTF2LDEngtRF82 hU7W83auol3Uzn6tQGEi7kuhYLgvOqlK+Qe+OPZUZUJckvPTD34TaQ6RT/ikNX0/PqB4 fgwKyaHvhQMebJyrhSqAzZUSygbpqgf6qnT2RnlXkLwt1E18DnWk2x3DuhC91YsD0eGQ YUH76Vioy/N6kpDsT1XqmEnIZykUnSnQQ/slAFGmJQ58So7TUQpiuEOMQPpT8il5FxsU wuvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695363864; x=1695968664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Sr4EPKJxuJJJu4QkdICBYMaj0v525kEVWP7yq9+OnDo=; b=QU2/G5VIuiyTH/+8Sn464DODT2zunEUqvBiweF5rfwSQjuFwovXiRXUMGLQ3MeoW1I Y5br62m+hchPW4oD3uORH9ITrxEGD+4s342/1mkXmAvxDmsHpoyKRPfrAxq7g6Qp74nm nCWNtao2jDmfIUEyzbDMuCwTam7gFwW7VB9DhDXklWEgLfk1jSq745Z93scPDqHSbzh0 vrLnT5RFq4l/eOVfJBb2mKP6OtjqlZjqoy3bSoUz5cLH6iSpmu6rcjhVySm+rssItbOm MkazZolRF18rhdmr3qTHPYpyKaSAJc/7nbxTLAFTYc8sOFmd84MSKTBusT+K0rPeQwtz Zi8g== X-Gm-Message-State: AOJu0Ywm9NWTpkAdgPyC5MEMWCiPMI8mEDYHCrwW98IXgn2RSD1kL9Wi E0Xb6I1CfD4t6Mibhr0Fd0Y= X-Received: by 2002:a17:90b:148b:b0:268:2500:b17e with SMTP id js11-20020a17090b148b00b002682500b17emr7884898pjb.23.1695363863750; Thu, 21 Sep 2023 23:24:23 -0700 (PDT) Received: from hcdev-d520mt2.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id m11-20020a17090ade0b00b00274de7c8aacsm4157417pjv.45.2023.09.21.23.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 23:24:23 -0700 (PDT) From: Marvin Lin To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andrzej.p@collabora.com Cc: devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, kwliu@nuvoton.com, kflin@nuvoton.com, Marvin Lin , Krzysztof Kozlowski Subject: [PATCH v16 2/7] media: dt-bindings: nuvoton: Add NPCM VCD and ECE engine Date: Fri, 22 Sep 2023 14:24:00 +0800 Message-Id: <20230922062405.2571850-3-milkfafa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230922062405.2571850-1-milkfafa@gmail.com> References: <20230922062405.2571850-1-milkfafa@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 21 Sep 2023 23:25:40 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777727012311163856 X-GMAIL-MSGID: 1777727012311163856 Add dt-bindings document for Video Capture/Differentiation Engine (VCD) and Encoding Compression Engine (ECE) present on Nuvoton NPCM SoCs. Signed-off-by: Marvin Lin Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/nuvoton,npcm-ece.yaml | 43 +++++++++++ .../bindings/media/nuvoton,npcm-vcd.yaml | 72 +++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/nuvoton,npcm-ece.yaml create mode 100644 Documentation/devicetree/bindings/media/nuvoton,npcm-vcd.yaml diff --git a/Documentation/devicetree/bindings/media/nuvoton,npcm-ece.yaml b/Documentation/devicetree/bindings/media/nuvoton,npcm-ece.yaml new file mode 100644 index 000000000000..b47468e54504 --- /dev/null +++ b/Documentation/devicetree/bindings/media/nuvoton,npcm-ece.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/nuvoton,npcm-ece.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NPCM Encoding Compression Engine + +maintainers: + - Joseph Liu + - Marvin Lin + +description: | + Video Encoding Compression Engine (ECE) present on Nuvoton NPCM SoCs. + +properties: + compatible: + enum: + - nuvoton,npcm750-ece + - nuvoton,npcm845-ece + + reg: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - resets + +additionalProperties: false + +examples: + - | + #include + + ece: video-codec@f0820000 { + compatible = "nuvoton,npcm750-ece"; + reg = <0xf0820000 0x2000>; + resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_ECE>; + }; diff --git a/Documentation/devicetree/bindings/media/nuvoton,npcm-vcd.yaml b/Documentation/devicetree/bindings/media/nuvoton,npcm-vcd.yaml new file mode 100644 index 000000000000..c885f559d2e5 --- /dev/null +++ b/Documentation/devicetree/bindings/media/nuvoton,npcm-vcd.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/nuvoton,npcm-vcd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NPCM Video Capture/Differentiation Engine + +maintainers: + - Joseph Liu + - Marvin Lin + +description: | + Video Capture/Differentiation Engine (VCD) present on Nuvoton NPCM SoCs. + +properties: + compatible: + enum: + - nuvoton,npcm750-vcd + - nuvoton,npcm845-vcd + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + nuvoton,sysgcr: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to access GCR (Global Control Register) registers. + + nuvoton,sysgfxi: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to access GFXI (Graphics Core Information) registers. + + nuvoton,ece: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to access ECE (Encoding Compression Engine) registers. + + memory-region: + maxItems: 1 + description: + CMA pool to use for buffers allocation instead of the default CMA pool. + +required: + - compatible + - reg + - interrupts + - resets + - nuvoton,sysgcr + - nuvoton,sysgfxi + - nuvoton,ece + +additionalProperties: false + +examples: + - | + #include + #include + + vcd: vcd@f0810000 { + compatible = "nuvoton,npcm750-vcd"; + reg = <0xf0810000 0x10000>; + interrupts = ; + resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_VCD>; + nuvoton,sysgcr = <&gcr>; + nuvoton,sysgfxi = <&gfxi>; + nuvoton,ece = <&ece>; + };