Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp323494ybl; Wed, 29 Jan 2020 00:58:46 -0800 (PST) X-Google-Smtp-Source: APXvYqw6cG7lpQMvsVBH7VMxz9voXWNzzZvawCeDWuvqrndEmRArlUOjl36e/89JJdNg4wyhaysY X-Received: by 2002:a05:6830:22ca:: with SMTP id q10mr10808977otc.280.1580288325850; Wed, 29 Jan 2020 00:58:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580288325; cv=none; d=google.com; s=arc-20160816; b=u5BTZFsiSzJvQqYPaEM6LufbDow52PBq6Az9A/sbaDJRPWouzTiLtY7Z1wSp45oXK3 nfxNjIgWP3RIJdLai5gLWF9rYulHywVPiPQh5AXcX7mFZRTc5vPK6W2so0aERL+jfxcZ a2Sx66vypJCu/G3RpwLUTg5tv7vHWYZ0f0ceP1rafYw1vrHa7F6Urfp0x95GP30SBI22 17sZzxhctr/cVtaY1vowUjcS2hf5RViHpwjDd3K9RMmLv89A20P7UGTAJy7kfcHBtL8A vksvgORi1+4q5PRbU2pBdCww5CfHvmZ0nRUX4UorjU9/CAvXwNuPwpxqSzD9cMTImdhH J4eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=6TM5tHd0OOg3IdmLX0VJnp+7Y7ouSwiUy4aohPlYHZM=; b=K5/YzX3qIj5+G27SaM0bf9gMv7gtSke6SPhzAc9k96zsqmJI6bEQsMrErMP7Yvkb+4 m/9+sEukmtlBoY9BypQzz83dKZiFmuPH3j9FebhJzm67WFhMUKvphIx11hnIr6grrqEH 2fGaKZTtTf3ZXIvpCxC/J7jskFH32WiA6Wpo+VCbHl5/0yZaQ/gk+aVKYf03rATMoQxl R98OwYD2tZUY9AqiWlJp6uZkR4qjglJCBevCCuKanW8rDlCQPTKMuv4+nzYtILObe6pp yLicmv/WhHHv/bD2ctR8JOyHSMCgle7Mj5MlMZokDcnA6F0ZF2gk3oanbbC/CjZbZDzx DwpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=vFIp6Fy5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w131si810308oif.240.2020.01.29.00.58.33; Wed, 29 Jan 2020 00:58:45 -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=@st.com header.s=STMicroelectronics header.b=vFIp6Fy5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726256AbgA2I4j (ORCPT + 99 others); Wed, 29 Jan 2020 03:56:39 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:28886 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbgA2I4j (ORCPT ); Wed, 29 Jan 2020 03:56:39 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00T8rQw4007229; Wed, 29 Jan 2020 09:56:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=6TM5tHd0OOg3IdmLX0VJnp+7Y7ouSwiUy4aohPlYHZM=; b=vFIp6Fy5bb1siklaSX9IeOlwb5zbFJRzVqEeWcmuk/lt2zbO+tn5LW7QmzxesNktT2HR opLqFAISEvYpyjhN4O4to0YZoxK/nKm8oU2QzQdYf9XoOpfySx2zx2TroPz+T2BiVLkO AjH+PIe/tucVezvHcOEvjs+vU5wTemUYkBMfGN/4tkiR7KYR5vVCgzx6M5j+lSSho4ns 4yEDCTqtadJ3jbnVRO/3KRU01ww8NurrDQ1pmpZmrDRwuUCUEOKkNihB2roU5mWvbwyT Eh5ViyJDdTBnqz4giGR5bwX03WcYBamHFSY9HR0Uzo2n8QV16yjx38CfdnTBSNje79KJ tg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xrcay23x4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jan 2020 09:56:16 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 586B010002A; Wed, 29 Jan 2020 09:56:15 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3E2572116C3; Wed, 29 Jan 2020 09:56:15 +0100 (CET) Received: from localhost (10.75.127.51) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 29 Jan 2020 09:56:14 +0100 From: Benjamin Gaignard To: , , , , , , , CC: , , , , , , Benjamin Gaignard Subject: [PATCH v3] dt-bindings: display: Convert etnaviv to json-schema Date: Wed, 29 Jan 2020 09:56:13 +0100 Message-ID: <20200129085613.3036-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG5NODE2.st.com (10.75.127.14) To SFHDAG3NODE3.st.com (10.75.127.9) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-29_01:2020-01-28,2020-01-29 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert etnaviv bindings to yaml format. Move bindings file from display to gpu folder. Signed-off-by: Benjamin Gaignard --- version 3: - describe clock-names as enum to allow all possible mix version 2: - move bindings file from display to gpu folder .../bindings/display/etnaviv/etnaviv-drm.txt | 36 ----------- .../devicetree/bindings/gpu/vivante,gc.yaml | 69 ++++++++++++++++++++++ 2 files changed, 69 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt create mode 100644 Documentation/devicetree/bindings/gpu/vivante,gc.yaml diff --git a/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt b/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt deleted file mode 100644 index 8def11b16a24..000000000000 --- a/Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +++ /dev/null @@ -1,36 +0,0 @@ -Vivante GPU core devices -======================== - -Required properties: -- compatible: Should be "vivante,gc" - A more specific compatible is not needed, as the cores contain chip - identification registers at fixed locations, which provide all the - necessary information to the driver. -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain the cores interrupt line -- clocks: should contain one clock for entry in clock-names - see Documentation/devicetree/bindings/clock/clock-bindings.txt -- clock-names: - - "bus": AXI/master interface clock - - "reg": AHB/slave interface clock - (only required if GPU can gate slave interface independently) - - "core": GPU core clock - - "shader": Shader clock (only required if GPU has feature PIPE_3D) - -Optional properties: -- power-domains: a power domain consumer specifier according to - Documentation/devicetree/bindings/power/power_domain.txt - -example: - -gpu_3d: gpu@130000 { - compatible = "vivante,gc"; - reg = <0x00130000 0x4000>; - interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>, - <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>; - clock-names = "bus", "core", "shader"; - power-domains = <&gpc 1>; -}; diff --git a/Documentation/devicetree/bindings/gpu/vivante,gc.yaml b/Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file mode 100644 index 000000000000..0bc4b38d5cbb --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/vivante,gc.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/vivante,gc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Vivante GPU Bindings + +description: Vivante GPU core devices + +maintainers: + - Lucas Stach + +properties: + compatible: + const: vivante,gc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: AXI/master interface clock + - description: GPU core clock + - description: Shader clock (only required if GPU has feature PIPE_3D) + - description: AHB/slave interface clock (only required if GPU can gate slave interface independently) + minItems: 1 + maxItems: 4 + + clock-names: + items: + enum: [ bus, core, shader, reg ] + minItems: 1 + maxItems: 4 + + resets: + maxItems: 1 + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + gpu@130000 { + compatible = "vivante,gc"; + reg = <0x00130000 0x4000>; + interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>, + <&clks IMX6QDL_CLK_GPU3D_CORE>, + <&clks IMX6QDL_CLK_GPU3D_SHADER>; + clock-names = "bus", "core", "shader"; + power-domains = <&gpc 1>; + }; + +... -- 2.15.0