From patchwork Wed Sep 6 09:55:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sarah Walker X-Patchwork-Id: 13375468 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0AE6FEB8FAD for ; Wed, 6 Sep 2023 09:56:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7073E10E5C8; Wed, 6 Sep 2023 09:56:42 +0000 (UTC) Received: from mx07-00376f01.pphosted.com (mx07-00376f01.pphosted.com [185.132.180.163]) by gabe.freedesktop.org (Postfix) with ESMTPS id B4BD210E5C8 for ; Wed, 6 Sep 2023 09:56:39 +0000 (UTC) Received: from pps.filterd (m0168889.ppops.net [127.0.0.1]) by mx07-00376f01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3865NKQQ020237; Wed, 6 Sep 2023 10:56:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imgtec.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= dk201812; bh=0aB8w7Zc6XjsNnnpxkiGrUBTovCF1W12VnjhwFCc7Gk=; b=VzQ S38Og5Wc/JhGiu2/UzpmSc3iAUY4hW9Ed3x1jps78fmRRFF9GZV2zsWTSQSjsYoZ Yunumyd6PALcHHmShkzlMuLacn3MecScMSSll+1nHkaR+XQlRolOHO8Bn35qvnj3 uEzoqJFwUdbskSx9n9M3iwRUdSG65TKRJUZk3pO4l2xpFP7nMmImfW5GzUxewUx5 ekUuy8Y5CDMbWfEfoPqzhqs8bxlqc4k3BIXJa9THULKY8cOGDlusbxq8aYcNenVO glR+yO7mxKBcyvViqnwjX3+Lpd0S/TvRhQXNq2u4hwp9g8SU8dFQ4YZamjgsESzY eIrSggc9pCToV1dOhCw== Received: from hhmail04.hh.imgtec.org ([217.156.249.195]) by mx07-00376f01.pphosted.com (PPS) with ESMTPS id 3suwpqu25x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 06 Sep 2023 10:56:05 +0100 (BST) Received: from HHMAIL04.hh.imgtec.org (10.100.10.119) by HHMAIL04.hh.imgtec.org (10.100.10.119) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Wed, 6 Sep 2023 10:56:04 +0100 Received: from GBR01-LO2-obe.outbound.protection.outlook.com (104.47.21.55) by email.imgtec.com (10.100.10.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31 via Frontend Transport; Wed, 6 Sep 2023 10:56:04 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QvZkJgnrqEgeTSF/jCj4KLwoCnurhGpjTsXb9Ow/QEb6kqnF6Pr6BqriTQPdVZey123aKjekeJJLgY+4jhP94oMPl9gGVB4MJht4R8/Zlq8pFMKmLg9bNJT31aQLGgHhQNuDbMqQnihn9Hbmh/Q0Q3OwZFUm1kN/O/dgLinLtLjT4KqDT1Snj0VuSUhszc9MMtsuwH9bTw87gcoQv6SV45gamw/mBlk/5Koq6jZTZ2Nk85/T6U3O9Mu6jkwOERhxHaY/NQwgpkLV7UH4VRZg0bVd8f2v71wWaDvl+pnh86N7Go+CaZrY2EGYEFGbzvP7GS+xl6rDH8KqIKk4gez7PA== 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=0aB8w7Zc6XjsNnnpxkiGrUBTovCF1W12VnjhwFCc7Gk=; b=mP1ZjxVa3XJlBoZ7wrj44aK4kgI+DbsD3nvII37AO+ULTZLY2UNgcttGFbLnmTK3XEdM5s+jEt4De7ylQPr9DluH3UE3qGRzUsYn5RvATe0n7CDRfkzMhvjBkLMaqo9z7paDhxjZxi7LU8RWzHnWDYaRlwCqb01ctasZlfyiIrLnAirHfVUZk9ZsoDpihqlw7QgHoPvRvahJMq2bzUyY2P8W8tr147vY3O5rpIjUCqzRDuOnelXeLUeyuF/Ir4f2hMGTEmM1PC8WXSULfVPFsZkVpGQvu+JQfh0WU+cnxCSY46nVZ0uQLMmY5mfNCUe5BgRq47Eqiqexken+EmY0Vg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=imgtec.com; dmarc=pass action=none header.from=imgtec.com; dkim=pass header.d=imgtec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=IMGTecCRM.onmicrosoft.com; s=selector2-IMGTecCRM-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0aB8w7Zc6XjsNnnpxkiGrUBTovCF1W12VnjhwFCc7Gk=; b=Qp5RCOOWN3EeXtYQSe3V8nF+pi9R+V7fmd6a9UaXXIfjEoFfT5dGv7IqsaxYb/7DarbtxowDCCqbBxlA8GvOZbFEnSCldEyQCxOLQIXPWcyVaMCtpCggDZS8sc4Z/Nw0Ta7XlnH77eMdYPX1wj3z2TmLvOYQnYZO53KzVQ9RWp4= Received: from CWLP265MB4817.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:170::9) by LO2P265MB4992.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:22f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.34; Wed, 6 Sep 2023 09:56:03 +0000 Received: from CWLP265MB4817.GBRP265.PROD.OUTLOOK.COM ([fe80::b3c:3f6:e3d0:a81b]) by CWLP265MB4817.GBRP265.PROD.OUTLOOK.COM ([fe80::b3c:3f6:e3d0:a81b%6]) with mapi id 15.20.6745.034; Wed, 6 Sep 2023 09:56:03 +0000 From: Sarah Walker To: Subject: [PATCH v6 03/20] dt-bindings: gpu: Add Imagination Technologies PowerVR/IMG GPU Date: Wed, 6 Sep 2023 10:55:25 +0100 Message-Id: <20230906095542.3280699-4-sarah.walker@imgtec.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230906095542.3280699-1-sarah.walker@imgtec.com> References: <20230906095542.3280699-1-sarah.walker@imgtec.com> X-ClientProxiedBy: LO4P265CA0279.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:37a::18) To CWLP265MB4817.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:170::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CWLP265MB4817:EE_|LO2P265MB4992:EE_ X-MS-Office365-Filtering-Correlation-Id: f07ea807-1bb1-4887-acf2-08dbaebf7b14 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W4n1AM+rVm4ZuBD8X7McDiEf6rDJn2N5pzdlGx6AgVaPhFbR3SFD/0mWEUZY4k+Guyhk47QGke+2b5zFyEwQErFY+L5kmSpvWIaz1w1NJyBr5/eIEs6bnIj/5jRwSIW7lqnv3C6vHwRzSuduIKJRaGWdb+O8qKnMl1oN4Es7+/7l5EwyJ1qMf13SRFPyaCL08QglajbGJwgvJfUX9lTzU8YctgdybVqItgyENnHQEEYrSYXXLOwTjTBL0Wme6VPr1VzBHE4Fm5tepH5wM0cHqlrsStMOqvdhO0DdIwFmzML1gnA5tmWjAFgYmLLSefWwL4fpCjn78TrBaFka0NBCM+tX/jmAtzP2oBRovtI6da/NlzZlsjE/FpyP26Y7nfa+tnnTeUMHG4HgZllkUoLIGg8TpesuK+RjUdQnUpDRtJTJuLF2r/EaQbo0m3zKXQBfFQDCZJgqiGG/FWcty3JfhTr2f+DMcesgOLie26xaQdrcjyBWiFbTt6gSXKh7GyA3O2mbiBokxL41nQLTm+Qg6+idIERcI50bXgcoRIU1md9xtPUFZehwidCUGLRL6WQ2GlBmDhwD/KxNPwDVnnD/nB7423OX/o7ufFgsisMlqVY= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CWLP265MB4817.GBRP265.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(366004)(346002)(396003)(39850400004)(376002)(136003)(1800799009)(451199024)(186009)(8676002)(44832011)(8936002)(6506007)(5660300002)(6486002)(4326008)(6666004)(7416002)(66476007)(316002)(66556008)(66946007)(6916009)(41300700001)(478600001)(966005)(52116002)(6512007)(2906002)(26005)(1076003)(2616005)(83380400001)(38100700002)(38350700002)(86362001)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eHanndjqHUWCN/g76vBFTZ2mEII4/Y+5a7DsejGzjmFVEGR4IBFhwup17u6IZNGHTUJ+wsxYtswSNIusZufsZi99XHF0Vc0+kivXCUBjVEk2IaYyzveR3Pl9dNFXAQymbQVGfFbJ/j03dlPHqmYaVG+37h32H7ztjR2BwLI3C8o8gd64QBqjF49NY+RIALJtQPSdN4/mfp2FBZrpG2XxZdsythLsydNMLGSRz8fV53PBoouRm5HQcuyEQ0V8rDShvdYLTZAFBerC2Ud86O3mah2EytWJ/AE2P9aVdsuf+/jwVKwDbXFe+X0xHrw2v93FTrQBHIU0Fd6H0lqctdoQQFtITjtjDUxUm7x5WaWx5y+U8+pVurQVKZb/Ee9YZ8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DA26HiztU1go/xWaLxwUaBibF31FO6/r5hWWXHMCebP3SSKzgb6yd4EeqMufUZPlb9eQc2YDTekdIkptJKjAD9mPwQvA2vtRS0kM0ivo3nD405FsU0d6t8Rgrrm/dX1Nd+E0W7LTMnwRmK2KP69EDWNNREX0pl4I6GohOLQWA== X-MS-Exchange-CrossTenant-Network-Message-Id: f07ea807-1bb1-4887-acf2-08dbaebf7b14 X-MS-Exchange-CrossTenant-AuthSource: CWLP265MB4817.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2023 09:56:03.3176 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0d5fd8bb-e8c2-4e0a-8dd5-2c264f7140fe X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +/T3MHNgeOk0rQG+YnEVYsXfeAbQKsn7Q9uxwbfbV3a38t3J2crzpRrHRSGw54vCaGQdAQObjLo3ZmZlA8gboQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO2P265MB4992 X-OriginatorOrg: imgtec.com X-EXCLAIMER-MD-CONFIG: 15a78312-3e47-46eb-9010-2e54d84a9631 X-Proofpoint-ORIG-GUID: VOLTTLWQ0sAh9oLJdy6aDZn54GVLDynk X-Proofpoint-GUID: VOLTTLWQ0sAh9oLJdy6aDZn54GVLDynk X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-doc@vger.kernel.org, hns@goldelico.com, krzysztof.kozlowski+dt@linaro.org, matthew.brost@intel.com, corbet@lwn.net, luben.tuikov@amd.com, dakr@redhat.com, donald.robson@imgtec.com, devicetree@vger.kernel.org, conor+dt@kernel.org, mripard@kernel.org, matt.coster@imgtec.com, robh+dt@kernel.org, faith.ekstrand@collabora.com, linux-kernel@vger.kernel.org, afd@ti.com, boris.brezillon@collabora.com, tzimmermann@suse.de, christian.koenig@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add the device tree binding documentation for the IMG AXE GPU used in TI AM62 SoCs. Co-developed-by: Frank Binns Signed-off-by: Frank Binns Signed-off-by: Sarah Walker Reviewed-by: Maxime Ripard Reviewed-by: Maxime Ripard Reviewed-by: Linus Walleij Reviewed-by: Conor Dooley --- Changes since v5: - Update compatible string & description to match marketing name - Remove unnecessary clock-names definition in ti,am62-gpu constraints - Document that GPU revision is discoverable Changes since v4: - Add clocks constraint for ti,am62-gpu - Remove excess address and size cells in example - Remove interrupt name and add maxItems - Make property order consistent between dts and bindings doc - Update example to match dts Changes since v3: - Remove oneOf in compatible property - Remove power-supply (not used on AM62) Changes since v2: - Add commit message description - Remove mt8173-gpu support (not currently supported) - Drop quotes from $id and $schema - Remove reg: minItems - Drop _clk suffixes from clock-names - Remove operating-points-v2 property and cooling-cells (not currently used) - Add additionalProperties: false - Remove stray blank line at the end of file .../devicetree/bindings/gpu/img,powervr.yaml | 73 +++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpu/img,powervr.yaml diff --git a/Documentation/devicetree/bindings/gpu/img,powervr.yaml b/Documentation/devicetree/bindings/gpu/img,powervr.yaml new file mode 100644 index 000000000000..51ee0f3d6e48 --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/img,powervr.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2023 Imagination Technologies Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/img,powervr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Imagination Technologies PowerVR and IMG GPU + +maintainers: + - Sarah Walker + +properties: + compatible: + items: + - enum: + - ti,am62-gpu + - const: img,img-axe # IMG AXE GPU model/revision is fully discoverable + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + items: + - const: core + - const: mem + - const: sys + minItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + const: ti,am62-gpu + then: + properties: + clocks: + maxItems: 1 + +examples: + - | + #include + #include + #include + + gpu: gpu@fd00000 { + compatible = "ti,am62-gpu", "img,img-axe"; + reg = <0x0fd00000 0x20000>; + clocks = <&k3_clks 187 0>; + clock-names = "core"; + interrupts = ; + power-domains = <&k3_pds 187 TI_SCI_PD_EXCLUSIVE>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 231a5e6fd52e..c057daebbfc1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10140,6 +10140,13 @@ IMGTEC IR DECODER DRIVER S: Orphan F: drivers/media/rc/img-ir/ +IMGTEC POWERVR DRM DRIVER +M: Frank Binns +M: Sarah Walker +M: Donald Robson +S: Supported +F: Documentation/devicetree/bindings/gpu/img,powervr.yaml + IMON SOUNDGRAPH USB IR RECEIVER M: Sean Young L: linux-media@vger.kernel.org