From patchwork Thu Dec 12 13:51:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 181477 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp798806och; Thu, 12 Dec 2019 05:52:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxL5h7DsvX6Kuu881ZXlTNmCTEA8d0Xp72J3cqSb//2NmLrSuqxzmwrzObLGZJ6CYBYTDR4 X-Received: by 2002:a9d:1b4e:: with SMTP id l72mr8432536otl.345.1576158743343; Thu, 12 Dec 2019 05:52:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576158743; cv=none; d=google.com; s=arc-20160816; b=WmLe1vxqT9VQj0xXy8N5zY0dTjJcvMEE+9hopqGVKShgNDB/FWRCNzT9at+lUXznOe BLO4KfAy+Wx6r405gEOuk2d2rHBi3vJrdRdAzLy//nH+q3s2FyhfLlDsJbALKS022DXi EPfaewmxu05pricOkNMOPrKovLHat1gunlNpupILadqqEK7xNEAl2jrchUGC8Oe8Ndk0 TtKRS9fiO4roefTUlzDc3+0VbnVNIB1nQ/fkHUwzKpDQyh+paHpZ8VnjwBRQ6YiaVehW /4o23bXtoNK6gU80yGt9q0Wfesc9rWCkzOcieWt5w665r4jU/ydf3woHN3Ce2GwbGz8u 3BEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wYu1o4bISPIv8GTdggLL40t1G6oKySdvw6Z8BODbl0w=; b=FtuMVOIeRM1C4Cv4rKk16MdOPydRG+CXdrdcEXq9jFtvfSC1iLdlfY0XGzP2lLMXCc MmzbZdsqszXWaZcrOT0hYa1ihxocNdjpBwvu2nIXfLxby7Iw5BhC0y0PDoW1hJ9B7Z/Y JaPdW7sR0xpI1IeqfxqyRdjTUvXQpwmrnUIK6EhIxiNSQuYFQhBTPZiCLmlWGW1L1RUx 8xl/Ri2/E+NUt1rlJLvcompx5lYeLMsCLIYeA7Cz9WCmItJaAMyo63UYWCBpuDeSlice UDVB2i81xXEX+vSMgefuMHcO5/RpFlcZ2HQca26oo2sUUWRFANjnWZTe//BoFvx3SNFL JSkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GaryTCYi; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a26si3000064oto.199.2019.12.12.05.52.23; Thu, 12 Dec 2019 05:52:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=GaryTCYi; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729470AbfLLNwW (ORCPT + 8 others); Thu, 12 Dec 2019 08:52:22 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:56384 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729428AbfLLNwW (ORCPT ); Thu, 12 Dec 2019 08:52:22 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBCDq728128552; Thu, 12 Dec 2019 07:52:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576158727; bh=wYu1o4bISPIv8GTdggLL40t1G6oKySdvw6Z8BODbl0w=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GaryTCYiA/1WVaGjFvuSSMGgTW9LVYUMB+UJ4yAjQRmAp6PCE62P/rkxFPZvSMhf3 kaCm9SjN6dgCQWEbPRBsUTWzvb72gCu1H1bo0lum87Gx/dc51TvOI+nlH44PDyfe1v uLgPTeO+S1uM8oyr8gmCuYV5kcUqkC+F0NNN9n5M= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBCDq70l013018 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 Dec 2019 07:52:07 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 12 Dec 2019 07:52:07 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 12 Dec 2019 07:52:07 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBCDq1hq023044; Thu, 12 Dec 2019 07:52:05 -0600 From: Jyri Sarha To: , CC: , , , , , , , , , Subject: [PATCH v3 1/5] dt-bindings: display: ti, k2g-dss: Add dt-schema yaml binding Date: Thu, 12 Dec 2019 15:51:57 +0200 Message-ID: <7c2e386d48cf0c8b932804f24e3f6ea81fe3d3a3.1576158368.git.jsarha@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add dt-schema yaml bindig for K2G DSS, an ultra-light version of TI Keystone Display SubSystem. Version history: v2: no change v3: - Add ports node - Add includes to dts example - reindent dts example Signed-off-by: Jyri Sarha --- .../bindings/display/ti/ti,k2g-dss.yaml | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/ti/ti,k2g-dss.yaml -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/devicetree/bindings/display/ti/ti,k2g-dss.yaml b/Documentation/devicetree/bindings/display/ti/ti,k2g-dss.yaml new file mode 100644 index 000000000000..90158e8b6aad --- /dev/null +++ b/Documentation/devicetree/bindings/display/ti/ti,k2g-dss.yaml @@ -0,0 +1,118 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 Texas Instruments Incorporated +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/display/ti/ti,k2g-dss.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Texas Instruments K2G Display Subsystem + +maintainers: + - Jyri Sarha + - Tomi Valkeinen + +description: | + The K2G DSS is an ultra-light version of TI Keystone Display + SubSystem. It has only one output port and video plane. The + output is DPI. + +properties: + compatible: + const: ti,k2g-dss + + reg: + maxItems: 5 + minItems: 5 + + reg-names: + items: + - const: cfg + - const: common + - const: vid1 + - const: ovr1 + - const: vp1 + + clocks: + maxItems: 2 + minItems: 2 + + clock-names: + items: + - const: fck + - const: vp1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + description: phandle to the associated power domain + + ports: + type: object + description: + Ports as described in Documentation/devictree/bindings/graph.txt + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + port@0: + type: object + description: + The DSS DPI output port node + + required: + - "#address-cells" + - "#size-cells" + + max-memory-bandwidth: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Input memory (from main memory to dispc) bandwidth limit in + bytes per second + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + - interrupts + - ports + +additionalProperties: false + +examples: + - | + #include + #include + + dss: dss@02540000 { + compatible = "ti,k2g-dss"; + reg = <0x02540000 0x400>, + <0x02550000 0x1000>, + <0x02557000 0x1000>, + <0x0255a800 0x100>, + <0x0255ac00 0x100>; + reg-names = "cfg", "common", "vid1", "ovr1", "vp1"; + clocks = <&k2g_clks 0x2 0>, + <&k2g_clks 0x2 1>; + clock-names = "fck", "vp1"; + interrupts = ; + + power-domains = <&k2g_pds 0x2>; + + max-memory-bandwidth = <230000000>; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + dpi_out: endpoint { + remote-endpoint = <&sii9022_in>; + }; + }; + }; + };