From patchwork Fri Dec 20 16:21:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Stevenson X-Patchwork-Id: 852825 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69154219EA0 for ; Fri, 20 Dec 2024 16:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734711701; cv=none; b=fj68FXPNfHA0wcIM4Hg9EWLvpMhpKJVoXCuAyPAJ5fbzSOtRrc3a2tV0s81LRnx9E9ThXJUNcdlhNs4DIC+1Cf0h7af2lPo6t26l9ckKg2F9lFnLIw2h5WI31WUkUT9wS+2G9GXRKVjOdFy6KM/RyY0OIOo1Cv7fydUSjHl8jSU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734711701; c=relaxed/simple; bh=rZNoT9AhjH+pqpQo4eatUoJtht9ocxF7O8AVWhOlfpQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FBidKpJcolLhAj8R+FtGqrDysU38dN64Jg9NPqFZC0CEnCwRiG3M0ipZiC7S7u0NyWgX1zLkedUxeAMpf0d/EmBYW2WKt0m9kS9nfGiE+XpNvsrXO/YJUJOdLbfd8jXbbUjoq73/7bdEzO8kND0lHK8HCURv069dNHDileF6G/E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=S3ayqxD5; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="S3ayqxD5" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-434b3e32e9dso22701775e9.2 for ; Fri, 20 Dec 2024 08:21:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1734711698; x=1735316498; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dRQf5pCtS98olBDfm75Y/wTQJYSNQxlX5eEUv/v7GTM=; b=S3ayqxD5DuVtaQl7zBH2hxWxnbVxmaLQCFQK9frmyaD4nWqZEvyy7pnWWDxtx2517d TH4nynqWoMgp8yd+EqXLqKLliu0m7tmaYZflhfM2Q2z6ONNHfxavA9QX3aiXA5+fO/5r 690011sif7L6uU3SGjsJ84UOV+dWANWbDAykGhWpTQmYxiYgd+P4PbWY9EmMYE4Gjuk1 8BmGKmnZwaBtHHHu/3DR2cWkeh1E4h5cE+cyVW8AnF9B2GQJke08vKZMP940lbg/oFGE SFpVN9Xx+DZ42suOYBCk0TGxapv5GKjkPu4pvoZN0NRIRPqrJCIDItV9A1pnNH4teOj+ DTIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734711698; x=1735316498; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dRQf5pCtS98olBDfm75Y/wTQJYSNQxlX5eEUv/v7GTM=; b=QWEE9CNPuIyMbS8iRbJjHEAASmSld3QWanhQIN4CKFFzS/t80WnwQSssBwKmIYswuA Nimm0IHw6EwP/ikZ40smsyWEDYbKFieXIZdYZtUNbEFR6Hh46gFnXS9rri5TAPhyT7Me pommQKZkaNvndHadOvQsPFdxA1dTUsrhqankZ9D5Uai7kKAn//edI/vwYf5Ch4akpQMb 8OY9DhTukSHPV4bUOQJqTVyi/BGszly8Ep4Qww3DaG3/t7fknMXBp+TANNp4JmK+8xHd trZpKQY1Cv8CX9RCj+5bx7aB+iRMQPjjoH6jdZwqk9GdZxxEJSWPeaibKcd1lyYvG3jm YOkw== X-Forwarded-Encrypted: i=1; AJvYcCVAotgidNRHICepF7vZeGVdq/YZ/joeN+nBGHMTN4BjZPyfGbedSe//BK23Z+qWPyYQm8eg9+EiUWSWdg==@vger.kernel.org X-Gm-Message-State: AOJu0Yw/Sji4yXtIDUgrY0EFFmNJbou1eSOWVoyRUpJm/ZFTYxULLDBB 6R/1sQoinzxV54RZIX4xPbgPSoDMA+ToQzvmDL908OyFvgTrmRjzt+33SY2PLwU= X-Gm-Gg: ASbGncvC/jI946CXBmw/X1EQIaMrSOGxj0EPuMZJbGdhKDMWymliMGdor2PpviYuTtW Gs27T9xyqHpMgFkblp4VJu0sws2KmP7SpH6FWOPDeb7PmE45CmheRcDtypMJbGqGdaWjjq+BLKn A6aVpF6UQVGiPw+xigvELCOI5eksx2lrzEQiFP485cnpG4xHZcvU5ALiuDyuA48oN4blzzJkdYT /MWqvQZQ7zHqCeLxGc4QGKSNMoYGRU5smTIiY/75MG/Fwdc X-Google-Smtp-Source: AGHT+IFxW+RopysqEF8jPbYWDmorW73wBvGIWAYULKR3uETdewbravBIGqJ2B2OrN6Kmdympczu2lQ== X-Received: by 2002:a05:6000:1fab:b0:385:e30a:394e with SMTP id ffacd0b85a97d-38a221e2066mr4017975f8f.3.1734711697793; Fri, 20 Dec 2024 08:21:37 -0800 (PST) Received: from [127.0.1.1] ([2a00:1098:3142:e::8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-43656b013e1sm82824045e9.12.2024.12.20.08.21.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 08:21:37 -0800 (PST) From: Dave Stevenson Date: Fri, 20 Dec 2024 16:21:15 +0000 Subject: [PATCH 4/7] media: dt-bindings: media: Add binding for the Raspberry Pi HEVC decoder Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241220-media-rpi-hevc-dec-v1-4-0ebcc04ed42e@raspberrypi.com> References: <20241220-media-rpi-hevc-dec-v1-0-0ebcc04ed42e@raspberrypi.com> In-Reply-To: <20241220-media-rpi-hevc-dec-v1-0-0ebcc04ed42e@raspberrypi.com> To: Sakari Ailus , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , John Cox , Dom Cobley , review list , Ezequiel Garcia Cc: John Cox , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dave Stevenson X-Mailer: b4 0.14.1 Adds a binding for the HEVC decoder found on the BCM2711 / Raspberry Pi 4, and BCM2712 / Raspberry Pi 5. Signed-off-by: Dave Stevenson --- .../bindings/media/raspberrypi,hevc-dec.yaml | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/Documentation/devicetree/bindings/media/raspberrypi,hevc-dec.yaml b/Documentation/devicetree/bindings/media/raspberrypi,hevc-dec.yaml new file mode 100644 index 000000000000..d9e804300297 --- /dev/null +++ b/Documentation/devicetree/bindings/media/raspberrypi,hevc-dec.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/raspberrypi,hevc-dec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raspberry Pi HEVC Decoder + +maintainers: + - John Cox + - Dom Cobley + - Dave Stevenson + - Raspberry Pi internal review list + +description: |- + The Raspberry Pi HEVC decoder is a hardware video decode accelerator block + found in the BCM2711 and BCM2712 processors used on Raspberry Pi 4 and 5 + boards respectively. + +properties: + compatible: + enum: + - raspberrypi,hevc-dec + + reg: + items: + - description: The HEVC main register region + - description: The Interrupt control register region + + reg-names: + items: + - const: intc + - const: hevc + + interrupts: + maxItems: 1 + + clocks: + items: + - description: The HEVC block clock + + clock-names: + items: + - const: hevc + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include + + video-codec@7eb10000 { + compatible = "raspberrypi,hevc-dec"; + reg = <0x7eb10000 0x1000>, /* INTC */ + <0x7eb00000 0x10000>; /* HEVC */ + reg-names = "intc", + "hevc"; + + interrupts = ; + + clocks = <&clk 0>; + clock-names = "hevc"; + }; + +...