Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3700023pxj; Tue, 11 May 2021 09:58:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTAPzys83cM8qnsyu6RZXwiH9OMbRR4BadclgO4xZrBTqG4/HXJZdSkHM2RbreKN/ekZCY X-Received: by 2002:a2e:8e62:: with SMTP id t2mr25278005ljk.20.1620752302406; Tue, 11 May 2021 09:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620752302; cv=none; d=google.com; s=arc-20160816; b=QWDchigxO2JkNminTC9i5L/YlRSr99nG3k1O5s/fdPWlFZy3zAkaM1DOQFppVv4fuQ f1xqIUGwOfwsgr1eTwulKiF/TMrzEXop5VqJsKLdBs/oUfMTJRT1ipn48nn753LTKy4t JTsmGyQqj/Qn8kJbzjB8DCIovcrlCkWCMpsvBTXzj4kmcE/7cm9x5Cdy+T/rbmGibgXh u4KFeBQzkwz6f0Z3e9FStErXghS4l/mVTjBWo93MM422o8T180NJwT4ODNfgk/FYqdya AU9BCwB2w4yl974hIfC+RoV7Hjy9OMGLckIPR+3k0yh9Bbh1/pwbaOYXAJP1INOawt8z ECnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PAGZXasHuGX2gUXUoo6CURCa+Aksr5PU0wV10L4+JjE=; b=hICk8QractjnEOZ/6IXN5KetxFq2kurAq+xsMrJU/0d1aF0bCQbCJazvqJHvHPsSrl lkCAlf0CeBc5qvCzb6GNp4P138JjPdJbWJbcXk6F5Z8SbWvIH7s0M9MPwgPmPiz/ijJ6 FR3/MbZv++7IiDBYnNwPgY6+Qbm4aBiYeGHK1oXgk3+ia/aHvqk7oogW1hdi0AtS/yhn YMRCWj0t0ToSUXE5HX+0//9zU1x7hu7VKrTT5ALoTgJfTrZnegJ68HowNXOg3plLLJ8Q J87ogPASCB/mOXxm577sjAGiewZhvkbtGqj+iytZ6TnvO4wQORYsimz0bzQUjNcgbqp8 YWFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lzghGyHo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si292060ljf.38.2021.05.11.09.57.51; Tue, 11 May 2021 09:58:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lzghGyHo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231379AbhEKQ4E (ORCPT + 99 others); Tue, 11 May 2021 12:56:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231329AbhEKQ4D (ORCPT ); Tue, 11 May 2021 12:56:03 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AD67C06174A for ; Tue, 11 May 2021 09:54:56 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso1579354wmh.4 for ; Tue, 11 May 2021 09:54:56 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=PAGZXasHuGX2gUXUoo6CURCa+Aksr5PU0wV10L4+JjE=; b=lzghGyHoEDnwLxVF+qCG3LJbzpUtcve8nd0UczDGejPM9KkJa/4tPfD4hE2Or7jV+z xkgqRlRaBX7PPjZSmchBPqwNo7IEPAoZkuRvlL+GwRLtSV6TAoNQ4XMa7xpNjM1P/4VR 81L+czMTFjkrTO9LOsFaUWE6GapIMssohkEOaDv+nrX9urhlD27NAFPgGWtRNGMHtarc B6Arp02opLevpvwS7zTakhLqOy/LnsBJd4h4/uhCntkdNp+hlFJgFIYQLQ9E4sG5J2To eGWCUde4a54y9g+IVFD0uIEhSOJ6gR5mfIkPsvphjeH/Hf7Xk3wWvGF9KsruenFvz11b Ltyg== 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:mime-version :content-transfer-encoding; bh=PAGZXasHuGX2gUXUoo6CURCa+Aksr5PU0wV10L4+JjE=; b=tPfOxFcSbzO/6pjXfSuLDl+vzQyl0PuVRcILU7qVOCDn4vZ3RmJxhzKHdS7mnGcSt0 nrTNi07P+kfBrizUh/LdY8MXo/IKa0KPqxlNPZ9Kypc6HZpjJ+X4sq5hApRYZ03V1vgI n1ghdoz9Iw1gg1pi6D1SVMyNX03xBEVAu8GZl411cTsq6ZmTJ1tn99edCkqmDPwy8NVy 0VW2jP2lZHB+YdOpuddt6fSXpP9UFZtYBZM29V/0cYLbkJMul5npc+XmMpdyHU7OUm3E KzyxfkTHVN9IQXMDcUQoBFGZBKruk02r7M94x37VbXzU3kyMSZeTwPI8M3QDBujanUUE VDWQ== X-Gm-Message-State: AOAM531QB8XHiwIb2OnkVfmM4lHq58NsUc04o/X0qWsGVqAmF6bGE1vL II2OTPP6UjY+wHZCfGd/y1dNuA== X-Received: by 2002:a05:600c:4ecb:: with SMTP id g11mr4335105wmq.172.1620752095184; Tue, 11 May 2021 09:54:55 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id j7sm24187366wmi.21.2021.05.11.09.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 09:54:54 -0700 (PDT) From: Corentin Labbe To: airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH] dt-bindings: display: convert faraday,tve200 to YAML Date: Tue, 11 May 2021 16:54:48 +0000 Message-Id: <20210511165448.422987-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Converts display/faraday,tve200.txt to yaml. Signed-off-by: Corentin Labbe --- .../bindings/display/faraday,tve200.txt | 54 ----------- .../bindings/display/faraday,tve200.yaml | 92 +++++++++++++++++++ 2 files changed, 92 insertions(+), 54 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/faraday,tve200.txt create mode 100644 Documentation/devicetree/bindings/display/faraday,tve200.yaml diff --git a/Documentation/devicetree/bindings/display/faraday,tve200.txt b/Documentation/devicetree/bindings/display/faraday,tve200.txt deleted file mode 100644 index 82e3bc0b7485..000000000000 --- a/Documentation/devicetree/bindings/display/faraday,tve200.txt +++ /dev/null @@ -1,54 +0,0 @@ -* Faraday TV Encoder TVE200 - -Required properties: - -- compatible: must be one of: - "faraday,tve200" - "cortina,gemini-tvc", "faraday,tve200" - -- reg: base address and size of the control registers block - -- interrupts: contains an interrupt specifier for the interrupt - line from the TVE200 - -- clock-names: should contain "PCLK" for the clock line clocking the - silicon and "TVE" for the 27MHz clock to the video driver - -- clocks: contains phandle and clock specifier pairs for the entries - in the clock-names property. See - Documentation/devicetree/bindings/clock/clock-bindings.txt - -Optional properties: - -- resets: contains the reset line phandle for the block - -Required sub-nodes: - -- port: describes LCD panel signals, following the common binding - for video transmitter interfaces; see - Documentation/devicetree/bindings/media/video-interfaces.txt - This port should have the properties: - reg = <0>; - It should have one endpoint connected to a remote endpoint where - the display is connected. - -Example: - -display-controller@6a000000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "faraday,tve200"; - reg = <0x6a000000 0x1000>; - interrupts = <13 IRQ_TYPE_EDGE_RISING>; - resets = <&syscon GEMINI_RESET_TVC>; - clocks = <&syscon GEMINI_CLK_GATE_TVC>, - <&syscon GEMINI_CLK_TVC>; - clock-names = "PCLK", "TVE"; - - port@0 { - reg = <0>; - display_out: endpoint { - remote-endpoint = <&panel_in>; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/faraday,tve200.yaml b/Documentation/devicetree/bindings/display/faraday,tve200.yaml new file mode 100644 index 000000000000..3ab51e7e72af --- /dev/null +++ b/Documentation/devicetree/bindings/display/faraday,tve200.yaml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/faraday,tve200.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Faraday TV Encoder TVE200 + +maintainers: + - Linus Walleij + +properties: + compatible: + oneOf: + - const: faraday,tve200 + - items: + - const: cortina,gemini-tvc + - const: faraday,tve200 + + reg: + minItems: 1 + + interrupts: + minItems: 1 + + clock-names: + items: + - const: PCLK + - const: TVE + + clocks: + minItems: 2 + + resets: + minItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^port@[0-9]+$": + type: object + description: describes LCD panel signals, following the common binding + for video transmitter interfaces; see + Documentation/devicetree/bindings/media/video-interfaces.txt + It should have one endpoint connected to a remote endpoint where + the display is connected. + + properties: + reg: + const: 0 + + required: + - reg + +required: + - compatible + - reg + - interrupts + - clock-names + - clocks + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + #include + #include + display-controller@6a000000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "faraday,tve200"; + reg = <0x6a000000 0x1000>; + interrupts = <13 IRQ_TYPE_EDGE_RISING>; + resets = <&syscon GEMINI_RESET_TVC>; + clocks = <&syscon GEMINI_CLK_GATE_TVC>, + <&syscon GEMINI_CLK_TVC>; + clock-names = "PCLK", "TVE"; + + port@0 { + reg = <0>; + display_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; -- 2.26.3