From patchwork Tue Jun 28 11:08:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nas Chung X-Patchwork-Id: 12898089 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 3C44AC43334 for ; Tue, 28 Jun 2022 11:08:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345395AbiF1LIl (ORCPT ); Tue, 28 Jun 2022 07:08:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345392AbiF1LIk (ORCPT ); Tue, 28 Jun 2022 07:08:40 -0400 Received: from KOR01-SL2-obe.outbound.protection.outlook.com (mail-sl2kor01on2100.outbound.protection.outlook.com [40.107.129.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E123D29C81 for ; Tue, 28 Jun 2022 04:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n8/UxmR4gQWVPxz80ezt2XBzEyKFhY1zHhOlgQsxNDn647oXk7P1G7YSAZPV2loTYFi2+WVEUAxTEdOkDwklRP8ilfLDUBhQJD2OWPi+43R7CLkm1+LXpySFnNxpigjHJD05+5RhYwUpRciV9TAuHJDWJOQ64AsGam0WW5jSBUnp37QLHXPl5MVEHFWsFgG9iPAYzJcU0Jd6StWQak6apdvpN11BFAXt9/ftMoSbKdu/RfTy7MNupGHQkEm5xJvXFNdIWWIRQdMK8Q9lr0rmCsgCpFBeDYdCSDxaHsT1gjLEfD5UNHQ6i4lUQlAx+Mx5r/iQ6M/vvEYErFtCiWXYHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vgLa6NPuLOVp2A6Nuu0le+wowvjyfwV0pZN9jvbxYp4=; b=C9Oj4AqO+U0+rVHubWY2x7Xn8pX7LxroSMMqv62XcAXybWYukAZoMPtWrl15uOzXwTT0gKXGs0z2Di4sSFq0TJLrDvCq7FNivVCHQhR07dAEqoQQEZ7hK1hdfqpo84JidOyiPv5TQjzKtfVnDtXtDe8xVs9mn3WriBVHg4L9t0Fkg7IE4jhlg2iE9p7MAnF6X6C8jyeU6MY0+WT77Gu6WLnrjVpVLMw2DNSKvt125k3Sx2hFIdc0ctgGa6ARJBA2oTkOmb0f+XVPiNb3uCrHBF6rYxRi11EDH4M3K6z0z8e6qPmK2si/MjM1wdp6Z9Mna8YQNdkg5igQ9M4CUd1jcQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=chipsnmedia.com; dmarc=pass action=none header.from=chipsnmedia.com; dkim=pass header.d=chipsnmedia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chipsnmedia.onmicrosoft.com; s=selector2-chipsnmedia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vgLa6NPuLOVp2A6Nuu0le+wowvjyfwV0pZN9jvbxYp4=; b=WKXaHVHW4/l/tGC3FyOSC/OThArFvTat3d5HwC697AlxvdW64+zlLL40Yi6dnOn6WMYMmb5UkNbhvPF8lO51+ujdEOdMpCBfjyFUglrQ9/BTNfmTj0sx301g+006CUN+tDMk2XUdX2Gh1bTrvjolZIjo6y5m1BQ9zNqq+BJsOLw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=chipsnmedia.com; Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) by PS2P216MB0386.KORP216.PROD.OUTLOOK.COM (2603:1096:300:28::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.15; Tue, 28 Jun 2022 11:08:38 +0000 Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::60c1:b54d:bd3f:3617]) by SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::60c1:b54d:bd3f:3617%6]) with mapi id 15.20.5373.018; Tue, 28 Jun 2022 11:08:38 +0000 From: Nas Chung To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, linux-staging@lists.linux.dev, mchehab@kernel.org, Robert Beckett , Dafna Hirschfeld Subject: [PATCH v9 5/6] dt-bindings: media: staging: wave5: add yaml devicetree bindings Date: Tue, 28 Jun 2022 20:08:20 +0900 Message-Id: <20220628110821.716-6-nas.chung@chipsnmedia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220628110821.716-1-nas.chung@chipsnmedia.com> References: <20220628110821.716-1-nas.chung@chipsnmedia.com> X-ClientProxiedBy: SL2P216CA0222.KORP216.PROD.OUTLOOK.COM (2603:1096:101:18::7) To SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6052f117-947e-4f17-90e6-08da58f68d3f X-MS-TrafficTypeDiagnostic: PS2P216MB0386:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0GMSn6qKWUnods43RpMXeo8FreVNw7A6I4GptVI47IIrkZBZcp/4MJOH49WgnfGY9KNv6SmZor5bveLi2xehEaupFQItntj7ynFXXtQ2mWiRQT1tRZOrcMrhQHhqkdj4remRhVoIN+ycr6kE2o8dDNbvyqbh/v0JmEyfksvnpYxFViqmFPEIbTPT3wn4gBeupQQvZXMg3hK3LlC3FqYLPr4dLKmvopG9zzTnEJmkNgv8CsoU0S9BrFxu6F5XHgNJhKKmAla2aliEKfR5R/dFPJKz5KL0yxR20WrrLxG8Fts+/mc9whbDy+PoHnm2tz4oc4kKGPyWrI9QQ+gmM84vXbO1vISSkrp+BD9tSOQ4eT+qGjiAAVpWc2uINKZj0W/bsDexWmQ03noqWvpIf6bJdRexIc7bOqv98JIL3t3vWF6p6m4YOWPkUUBtSI+ZUiAqb4WnN8aHtpl0KdnM/3E05ObU3jGfnA1YW7qCLWGDjkoKGDhq0cOMR+rnF0ZM105laLvVgzc7HlrHhHFZNyvKRrpNOM7Vje2NjSfmdnFzNHOjpehEGxRR9PHIuuYFnBlNTGb3GKRgaHtv7o2mQTQZbZSH1LUllZw3mg5iqvHXPIUFk1NuXETBJJPJ9HMxJERcgk73cIrfhZYQi0r/tBOcy178Vbq2nqDieSU0nKqn4x50X5mqXo2jRjYPyzsgKW+so4Ufys5TAMB0QFjFQb7cqbuMUKdmKP3fLNVuBKAbrC007pw2aR2eMK8DCQEOXU8Sh5QD2rd+T1UFhpEDo9J4loEV8xVzAnwMF10m1CAsDTf13WO255/PCu/DyFF3PzMuGdKoSm4swzKhtWWSl9q4gA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2P216MB1246.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(366004)(39850400004)(346002)(396003)(376002)(136003)(1076003)(66476007)(66556008)(4326008)(8676002)(6486002)(2616005)(966005)(66946007)(8936002)(6916009)(52116002)(6512007)(6506007)(186003)(6666004)(83380400001)(478600001)(54906003)(41300700001)(26005)(38100700002)(2906002)(86362001)(44832011)(5660300002)(36756003)(316002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1OKo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092vYcBydAs8ZUVZnf2fuzwdNOQG2tZhM3imjKQBCdol1V1nE7OO05ZMb3y5cfCd0/RoIevjL8sgWk1zyrrNu2nknPrz88r6Jph44MaAwvHaRM7xyPLGbLzmVSoKHzXIculs3kFpBPHZcrY3xGBkNs4C4OkSFP+qbK0yO6JCdEGyohPe+b7ia1pw9LbMrTZ2wmFkRZaJFkYOefE9G3SRH2nIcU9RnfVhinuv6eopHvPfjMYsaefjyvbOpbpKCPsVSrIrGv78x0+tXDEa1gRUqR3GrvOtgk1pguzTypD+EVpjt9H3KRBBXZDhXBozzEWTjyBOfG7z1JYG0hTjQXC01REb7A3nv81idOwKc5k0kiqsNQWIXRnxpYsjL8IuMEQAlrcAyYIZo6WiVqxKktRAQzHOA+gBXe9GM40loPmfGoM/3iQOU0Gw8zKOw5Os+pglLU49wjnn1iHE4O5ci1E29JEkVN23hGEiYX1EFYuHTUn6JuAsGGgdOMdOMliprdKJjZmuRVFCRqsHm129tN6c0yGQSA== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6052f117-947e-4f17-90e6-08da58f68d3f X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB1246.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2022 11:08:38.2236 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4d70c8e9-142b-4389-b7f2-fa8a3c68c467 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fXv9T8PxZfy7Ks5SYYqRJ4kPwvCt4cnezSYL+z/q0piNp4pxT2seHuxBg5Dvos3R8vtdAx+jViA551GEksx7Q2vQgTKTd3mYWSTaZPCFcmo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS2P216MB0386 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Robert Beckett Add bindings for the wave5 chips&media codec driver Signed-off-by: Robert Beckett Signed-off-by: Dafna Hirschfeld --- .../bindings/staging/media/cnm,wave.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/staging/media/cnm,wave.yaml diff --git a/Documentation/devicetree/bindings/staging/media/cnm,wave.yaml b/Documentation/devicetree/bindings/staging/media/cnm,wave.yaml new file mode 100644 index 000000000000..e18978cbba16 --- /dev/null +++ b/Documentation/devicetree/bindings/staging/media/cnm,wave.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/staging/media/cnm,wave.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Chips&Media Wave 5 Series multi-standard codec IP + +maintainers: + - Nas Chung + - Robert Beckett + - Dafna Hirschfeld + +description: |- + The Chips&Media WAVE codec IP is a multi format video encoder/decoder + +properties: + compatible: + anyOf: + - items: + - enum: + - cnm,cm511-vpu + - cnm,cm517-vpu + - cnm,cm521-vpu + - cnm,cm521c-vpu + - cnm,cm521c-dual-vpu + - cnm,cm521e1-vpu + - cnm,cm537-vpu + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 4 + + clock-names: + minItems: 1 + maxItems: 4 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + sram: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle pointing to the SRAM device node + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + vpu: video-codec@12345678 { + compatible = "cnm,cm521-vpu"; + reg = <0x12345678 0x1000>; + interrupts = <42>; + clocks = <&clks 42>; + clock-names = "vcodec"; + sram = <&sram>; + }; +