Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1823473ybl; Thu, 5 Dec 2019 07:35:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzpCEvc0gJyg/WfR16d8lILwbBwLBHpQO018yZnJlvbO1jh35Y9CDjSpjc4FD4fa/gFd0Sf X-Received: by 2002:a05:6830:2098:: with SMTP id y24mr7108628otq.312.1575560116436; Thu, 05 Dec 2019 07:35:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575560116; cv=none; d=google.com; s=arc-20160816; b=pwr2FDnZqi54uFDyqnQquKGurQoEK12W5fB+Dor6Ei23KWemRT+43GBakZ1akZmtPK NUaIv2srGrumNzmNJAAYYdeZUwk2+S5tIiSPAdRNqNQv8QadVSzkkfMBh6JNIBxikw2j R9dlBJ+dc2bgATmo9vvzzy/UOvVkzYNl8ELJJ1RfBai5QgDpf6AdrEZ9nf+PySIOzhUC UZDrdfAQZVnhBcfyrnkkTypcLd4M3nYUAWD7U8+RbUCxzPIKqMZAHdwbq9QSIRigcB3D SpIw9rcagcMiWC5Ztb0XBVIMzwqdDnk4dcJNVrgMYCIWY7JTDByf8YkF83wfIf2BE7lP eRzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KzKSFA37zQ+fSsnCSfsJqcJWA1YqoEpujyYe82jiosA=; b=MRcePnHXn2OJXoAWlwmdaj/j5GPmgrD0A4Ja03HT/MZtJ03fo6Fl0gKCQyMpVD8OFs Nxq6E5qzxlCNk1TLJM0yP9nuPLQTdE4GujVa+fZo2KU+ioYzXHseUB41uRDWSLNfuh04 NSgVq4wf+rbaKdr1T5iKyqk2PsvTgfOtETdczsm4fcC5MFLLDN0kBPrQ3NxBwpcNDl9H Q8bTxBIP/GepMsVdCoMbt0aFzHEY6r+5K1G/WD3dLmiQaJLuBncuonPuZ5axY4vh+hSd 5+gymCzX9oSgfJq+86aNiJVtkORIoG4Heq/Sszifuog+Pq4r/WIdcWjuhu9zWEsOuTn2 9jgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="1RAkL/Yq"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si5263193otq.23.2019.12.05.07.35.02; Thu, 05 Dec 2019 07:35:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="1RAkL/Yq"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729806AbfLEPeR (ORCPT + 99 others); Thu, 5 Dec 2019 10:34:17 -0500 Received: from mail-wr1-f47.google.com ([209.85.221.47]:39195 "EHLO mail-wr1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729714AbfLEPeQ (ORCPT ); Thu, 5 Dec 2019 10:34:16 -0500 Received: by mail-wr1-f47.google.com with SMTP id y11so4139207wrt.6 for ; Thu, 05 Dec 2019 07:34:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KzKSFA37zQ+fSsnCSfsJqcJWA1YqoEpujyYe82jiosA=; b=1RAkL/YqqEmrVPedzEg2Pc0Ov3GvHhQDDskUsdP88FKftcpyQigTss9I7/RJeNaUWJ 8SxDYfPOP10oekWk/HW52CxH3vycbaZGijkt/iEktSBaQIOyZ+ZFiih4FwRMEvQrBtKt q40mxhTIaXZm6rmsGymyE03yDP1zjMp5GsS4ojcVZP+c8ME5ZADLF9qLjLlhNtZPpVna v40EMCUiDKqq0m4nYJfbIXt1EDhDHbUXfxR+luG/18Z936G2of2baLTrugjU1n9HO3i+ M1BlbA/SLFnu4eSJEi3Ts5ZyZKM7eCVemr2cYZJV0SNcv33nR7gSciCyUWMV6MMUmrRs bYDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KzKSFA37zQ+fSsnCSfsJqcJWA1YqoEpujyYe82jiosA=; b=qsiBE1f1c/hDPcn5qS3VwNrCUArdJQ3sWJHe34a/JLDCgsPRtWVCEmOEf+gN72YPOL 6cKT6XiaxZpSeWaD4YWZE0aXkvdTJqMnLPZ9h4hSeI6C7tKLLbMRP7TSPSpFgQ1v4wtH t3YBcrXtrl39xtlCsv3zXO9pmzxPC4mTFqpySv36/vHAxKVzyJdX1gOOKPOiJgFTNad7 t9w8hd+17r6TtVNXb58KrtxEcFwezjLtjZyvbzYtUS6T3ogRu3KuZCFEyGWvn5XzvYps nHj38m9oq/XGt2mfHjrEFEK8Ia2ybJPKmhgbTkJCSTAjRBVul5lGtkt00pm5XPEpzFoo w9TQ== X-Gm-Message-State: APjAAAWtYm/YLiIi5vDaFNti7b9BDu+m5X6Z+4oGJfmVxantZ7y8fpk0 9i1ZPnA+/+qpqbh6CLFYaOzmiA== X-Received: by 2002:adf:83c7:: with SMTP id 65mr10264958wre.368.1575560054836; Thu, 05 Dec 2019 07:34:14 -0800 (PST) Received: from bender.baylibre.local (wal59-h01-176-150-251-154.dsl.sta.abo.bbox.fr. [176.150.251.154]) by smtp.gmail.com with ESMTPSA id u26sm191894wmj.9.2019.12.05.07.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 07:34:13 -0800 (PST) From: Neil Armstrong To: mjourdan@baylibre.com, devicetree@vger.kernel.org Cc: Neil Armstrong , linux-media@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] dt-bindings: media: amlogic,gx-vdec: add bindings for G12A family Date: Thu, 5 Dec 2019 16:34:06 +0100 Message-Id: <20191205153408.26500-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191205153408.26500-1-narmstrong@baylibre.com> References: <20191205153408.26500-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings to support the Amlogic Video Decoder on the Amlogic G12A family. For the G12A family, a supplementary clock is needed to operate the HEVC/VP9 decoder. Signed-off-by: Neil Armstrong --- .../bindings/media/amlogic,gx-vdec.yaml | 42 ++++++++++++++++--- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/media/amlogic,gx-vdec.yaml b/Documentation/devicetree/bindings/media/amlogic,gx-vdec.yaml index 878944867d6e..cc8dc264fc72 100644 --- a/Documentation/devicetree/bindings/media/amlogic,gx-vdec.yaml +++ b/Documentation/devicetree/bindings/media/amlogic,gx-vdec.yaml @@ -27,12 +27,15 @@ description: | properties: compatible: - items: + oneOf: + - items: + - enum: + - amlogic,gxbb-vdec # GXBB (S905) + - amlogic,gxl-vdec # GXL (S905X, S905D) + - amlogic,gxm-vdec # GXM (S912) + - const: amlogic,gx-vdec - enum: - - amlogic,gxbb-vdec # GXBB (S905) - - amlogic,gxl-vdec # GXL (S905X, S905D) - - amlogic,gxm-vdec # GXM (S912) - - const: amlogic,gx-vdec + - amlogic,g12a-vdec # G12A (S905X2, S905D2) interrupts: minItems: 2 @@ -59,13 +62,17 @@ properties: clocks: minItems: 4 + maxItems: 5 clock-names: + minItems: 4 + maxItems: 5 items: - const: dos_parser - const: dos - const: vdec_1 - const: vdec_hevc + - const: vdec_hevcf amlogic,ao-sysctrl: description: should point to the AOBUS sysctrl node @@ -77,6 +84,31 @@ properties: allOf: - $ref: /schemas/types.yaml#/definitions/phandle +allOf: + - if: + properties: + compatible: + contains: + enum: + - amlogic,gx-vdec + + then: + properties: + clock-names: + maxItems: 4 + + - if: + properties: + compatible: + contains: + enum: + - amlogic,g12a-vdec + + then: + properties: + clock-names: + minItems: 5 + required: - compatible - reg -- 2.22.0