Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1774605ybc; Wed, 20 Nov 2019 04:01:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyCxTCq9GMHpZpQGa5JchYWwbYyUE2bA8cLp2ddlGgliiSNnR0nPWfHNeUTIiEaLBeT2tfo X-Received: by 2002:a17:906:3495:: with SMTP id g21mr5140645ejb.190.1574251261644; Wed, 20 Nov 2019 04:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574251261; cv=none; d=google.com; s=arc-20160816; b=O2EsIxknYehhgUqcCql4Rc96X6Q4I2bYMxHruXU2/zKfWiARo6tWSFUpXao9b9kOkH 6ZsQIuuGfu9rPSGg1fEcqSZgYfKlG8hVq/oJuMIGDXFU2GZE9R39ARUyLi0VhPkMqa3d lvbbDPCX1ecZQ5UouN9LLzzFFZuVKSsbPmiD6Za8W10PcVHaZa+TolW8P3cB5+CCkLhH Hs3gf0KV06Jqvtj85/KIUgoNew9p1zc38UHSBd1Q2eK7cYaU0UAKXhA0tYp7OE+7FtZI qMT7o7lgoUVdUvYCbkAAudtJrTmdIrFSIWDoItBNlPMqY2LesOLQHU6uqbKateUCfCnb FzfQ== 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=Ja7kn8nM5rQg+IdSoiS0Hj6iA3DSp06ChG/PAIh+vCY=; b=oeH8x/5CgGfkjwTO7ztX6z1Zs+f9q0cxN/lgmj+50Acb1hfn3MtMxK/Yd7ThdYz3PI Q0XSA8MSs/fIiC00i2+tenvQ5fYum7/jdfXNiO2MTtooyJ+PoeIoxo+biwLOcFN2Z7BW SelLl+NUrb6BCI51k8jenNVLJkZCqiAhw+N3X2DxL5u0z0pOwSaIgzCXGREFXyUAPUU7 oYXZS+K7NvujeKEF3sqkB8UPy1unQQTZRwN2FDXz3DIZvrNf15NEktp+egPB8nneWu29 t1tkY4UCdHhlu0TqTqjpbPzNp8M9j1Hv3vRz8PlioxhMLrU0Uq1kvcDiY3tWpDdCiYCh kAZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=yDKsahxL; 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 t22si15739343ejx.194.2019.11.20.04.00.37; Wed, 20 Nov 2019 04:01:01 -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=yDKsahxL; 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 S1729035AbfKTLOj (ORCPT + 99 others); Wed, 20 Nov 2019 06:14:39 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:42646 "EHLO mail-wr1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729012AbfKTLOi (ORCPT ); Wed, 20 Nov 2019 06:14:38 -0500 Received: by mail-wr1-f52.google.com with SMTP id a15so27648566wrf.9 for ; Wed, 20 Nov 2019 03:14:36 -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=Ja7kn8nM5rQg+IdSoiS0Hj6iA3DSp06ChG/PAIh+vCY=; b=yDKsahxL4XEoVTSy9nI9vw6XP4e0ElslXK2PKtL1dSHo0DKVnDOCN7B+ptZDtjfvN/ RZdtvW9hYYy2wtEZmwnr0dqku1ywWgdHJTjgcmAOwuWWo1QQK98mEEYLDSb9dv5sWv+K z9mDI9XIj1D5chjio5BHM3FirH67Ih7oucgqayFM4uxsHOqDoeurQWgaqMLeE3WUtvnl 9wEVug9zAW7upPRi5AiKDJ/NtLpr33gPro8NWKIJ03yQv8QNO05EuF+v3tKQKjTzRQbg hYUiIdB2P/YSQZfEwIOqAhsXSLOP3Cy+tluNXV69i28MsNFb/HuHAtVNF4PKJptluxJV t9jQ== 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=Ja7kn8nM5rQg+IdSoiS0Hj6iA3DSp06ChG/PAIh+vCY=; b=OQT5ccxZ+9ahzuLlh3UKG0eWXZ72bMf8qsQ6EeCFlP3Hiu8B14ZJCNfiWPMKkuu0hY +pCHbqGMrvP/S/Z2C7gR6uKtHw68quU3Dkjyyc1pC1+jMU1uUXVo4BF9mfolQk1gtBMI NLK78ctxLWY8ufL0cpX8yy680Li25J3G1wZAnk2cpHGGXM+hxkwP696N4EGF+kJBki4J +ksmnH0noQcmXfxWhmcqgdHqEtGFLpiX45VJhJRb+NW6CPNOz1vqf4zxL2aaZKf299Sv nJlDX1EtIDECq2TDaLsk4jTHE+UvCbFZ7ZsMwl4j96H1CGblEgCTG+M10GP6v/tAxZXG 9rzA== X-Gm-Message-State: APjAAAVQ/q4nHi5cEjHMb0UbL+m8o0i2SagYLQRzw4rqC5BIDo1Zbpbl K7qUOW2/clWqO7axYFuuZpk2Qg== X-Received: by 2002:adf:ef8a:: with SMTP id d10mr2647778wro.314.1574248475978; Wed, 20 Nov 2019 03:14:35 -0800 (PST) Received: from bender.baylibre.local (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id u1sm6061748wmc.3.2019.11.20.03.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 03:14:35 -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 2/4] dt-bindings: media: amlogic,gx-vdec: add bindings for G12A family Date: Wed, 20 Nov 2019 12:14:28 +0100 Message-Id: <20191120111430.29552-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191120111430.29552-1-narmstrong@baylibre.com> References: <20191120111430.29552-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 | 57 +++++++++++++++---- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/media/amlogic,gx-vdec.yaml b/Documentation/devicetree/bindings/media/amlogic,gx-vdec.yaml index 878944867d6e..8ea979bb97e6 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,9 @@ properties: clocks: minItems: 4 + maxItems: 5 - clock-names: - items: - - const: dos_parser - - const: dos - - const: vdec_1 - - const: vdec_hevc + clock-names: true amlogic,ao-sysctrl: description: should point to the AOBUS sysctrl node @@ -77,6 +76,42 @@ properties: allOf: - $ref: /schemas/types.yaml#/definitions/phandle +allOf: + - if: + properties: + compatible: + contains: + enum: + - amlogic,gx-vdec + + then: + properties: + clock-names: + minItems: 4 + items: + - const: dos_parser + - const: dos + - const: vdec_1 + - const: vdec_hevc + + - if: + properties: + compatible: + contains: + enum: + - amlogic,g12a-vdec + + then: + properties: + clock-names: + minItems: 5 + items: + - const: dos_parser + - const: dos + - const: vdec_1 + - const: vdec_hevc + - const: vdec_hevcf + required: - compatible - reg -- 2.22.0