From patchwork Tue May 2 08:44:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Lin X-Patchwork-Id: 89287 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp451083vqo; Tue, 2 May 2023 01:47:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72yNGXOO/7dlRFQLICDPGXh4oGsr3S1XCOLRSOPmpcjUouNHE3mjVgfW9xK4ZwQkM3x3Lc X-Received: by 2002:a05:6a20:431b:b0:f0:d4fc:f0c with SMTP id h27-20020a056a20431b00b000f0d4fc0f0cmr21538447pzk.24.1683017269267; Tue, 02 May 2023 01:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683017269; cv=none; d=google.com; s=arc-20160816; b=a2r5ad33aewBCQ6SHE8sE0vg6bvAB1r9h0Eem/zTbcvO0pWmQ7s+kMOHtgm5tkkLH4 XnNWwztIldHBEYKrTrv388SoAhwryip19GIxu+93F9kZoLU+XuM7/ap5i4DwvuZbQmM7 tIln3sJxsAj99I1+C/jFVxOXW7UwwleeoIY8Rx1C7udO6rBSy7CJefAkPqP+40xO1Bvk f7f2ALhb2HlQrKP7anBxw0AEk5rQb1QJ/yTcsvE8DfQ6j2pCc+/4L6i7dmuvGeDCeoY1 vhRct7zLxsMUSgp4oVYLi+ibeOsylQUpUSX+bPkFjaH0dG7BJik98NuHz6VrhN44dfko SgQw== 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=3OFIOC5oKZ0F+p/C6qXyoQWPtbp1a9uFnXmP1cOo5xc=; b=nPfNrHHykyXFEizWZdCOcpkUW8mzGHc3HOoUZXw4whLtEwu66/zDMYrMBY19O+ebC4 4NW27ApxzXjUs1tXESo7I3vTK8HCnPdPvaEU/LaYhr3MqMz02Q5qFfUxwvjjFrL3ouA4 b/GPNxRTrXuDSXm3I8Q+r2diLAM3k1MGBaq65zsDbZirpoB9w2yH3oU1e855I//v3vVH /AgHiIFUnYgwquJTIObJdy9tvmkN7NGr5wmuTX36x8OTxvI668RW4dNH+hUHFGBh1I8i z2Vn4LwDcOEOFoFJOSEHXV+256Uh0Q9TxLcE0kW6TCSfGLqUAOj5R9bqIo3mft1LlBRV iNgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=YIYPuKBl; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h185-20020a636cc2000000b0052868a865d1si18333308pgc.272.2023.05.02.01.47.36; Tue, 02 May 2023 01:47:49 -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=@gmail.com header.s=20221208 header.b=YIYPuKBl; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233919AbjEBIpC (ORCPT + 99 others); Tue, 2 May 2023 04:45:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233898AbjEBIo4 (ORCPT ); Tue, 2 May 2023 04:44:56 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0740C49CD; Tue, 2 May 2023 01:44:55 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-2470e93ea71so2574836a91.0; Tue, 02 May 2023 01:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683017094; x=1685609094; 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=3OFIOC5oKZ0F+p/C6qXyoQWPtbp1a9uFnXmP1cOo5xc=; b=YIYPuKBlMNP/05iMb5k7UCifmznwjvhk+v8MlywMUcJplV9TmRr9JYFVO0eVpaqK7j sOCobrETOpSv+JY6THuqxFX/1FzPdRCGXsv1aO2efNRqxTLEunHyVpsi0IAFEEt0M6Oj /9R/7jsCJOhdTisoXQsQC+TV19BvdYScioxD6a+wlbD6NoOth/oPE+CVGsipWb2IRwSr 9orRXd3NEfbfqpdaMqf5lUFI6/aWvFir/97200KV0Fhw17B4ss4X4whPLppRiYX1XLcG YnadxUjHwW7gTvI7zKi2jVqQXfjP2dkFU9zk/Ftn5Co7Vu+WmdQuG2SwVfSI3EEpkUuN ZBhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683017094; x=1685609094; 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=3OFIOC5oKZ0F+p/C6qXyoQWPtbp1a9uFnXmP1cOo5xc=; b=XaezUU//t1p2tviNl41/pbypATfaDJ/x9JytdgegBF1QEL7snUJmLFFRAMnhzfNxql jNa33QZscQuylBpxPspH7N86z7PhqImmLVCy9pikajtvR33/8m949//174v3j+NkkcZ9 FKl+bcuCKvpAJrpzmsMKDDpKLHcm1pcCP6dEu2GU8ruddySSGpBAQXQebAa1N1vB2/R8 bFcJ1R9GhFfjZISLMrMiG5EHkB5a8Y9MPV1ljywhhNagXVblnMTDKd8RpZO5WPnSUzME 8yVbaPsgrqn6J7KrxZ0GpbDE5dQfj5Hijfjt0qS+qCw259j2BSdstKbbKmgV6n0+763x 0z/A== X-Gm-Message-State: AC+VfDzfTCrgc58+ItSTc06TpVvnEv3K9Dh4S/G6ta13FO4cv0AcmSkX zmHsyqX1fkweheVw/21cPFE= X-Received: by 2002:a17:90a:9102:b0:24e:6a6:cd6 with SMTP id k2-20020a17090a910200b0024e06a60cd6mr5352879pjo.29.1683017094470; Tue, 02 May 2023 01:44:54 -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 v10-20020a17090a520a00b0023fcece8067sm7059039pjh.2.2023.05.02.01.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 May 2023 01:44:54 -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 v12 2/7] media: dt-bindings: nuvoton: Add NPCM VCD and ECE engine Date: Tue, 2 May 2023 16:44:25 +0800 Message-Id: <20230502084430.234182-3-milkfafa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230502084430.234182-1-milkfafa@gmail.com> References: <20230502084430.234182-1-milkfafa@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1764771515842216760?= X-GMAIL-MSGID: =?utf-8?q?1764771515842216760?= Add dt-binding 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>; + };