Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2641392ybz; Mon, 27 Apr 2020 01:26:22 -0700 (PDT) X-Google-Smtp-Source: APiQypLVEendXmNEJhCuas9+LgDwyLtYCxWH9UQrwJdFi0+jTN0osQ4RtG+rScmN97w8W3U2FNo8 X-Received: by 2002:a17:906:1a06:: with SMTP id i6mr18146791ejf.90.1587975981936; Mon, 27 Apr 2020 01:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587975981; cv=none; d=google.com; s=arc-20160816; b=kZBdH2w0xMjEy2ljQ4lRTupQbR1LkkVx9MpjbJfNbwWtuVoxb7jcQEQiWxF16otH52 DJHnR/PqKzQmGc4JeAeYUmXsL0jFr37lxW+BbO2mf3lJEg+dwcFN7IXOlH+bK75AICmB Zc3mK+IPVpgUXxWBKu5EJ/tb7M1+C2Qf5Rhp8LtzLBn4GF/SqEotuoqyeFYjLDG9PPw/ x0YsGntCJkhSrv01Gtpq0o0tjFaFwV0fHucTlEywmX26lK8gbrxyyajrCS9mcRM4Ghet 3zqhsFIi4GcBt7Fxirqmd7vM+97FMVLzOknV9u7+I3jbT8qyvRKkVEbIwvhbTuCEmEDh eb0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=hiTTZAjlgrQz0GGioXpUqkFP/qoGePBh0W3i5NLCBaA=; b=AbruNfP3O41jzzF4EZtQKvNUNrWz1fl9kSeCiE9f6G14C4jZ1R66fR2JRv2zVrdG8A /CvYxuHFFBgeaMUytjzsBTeb520tdPwRntKAv1B/eHrhRqsS9ceWDE9y4bbS0C4T35+J xHKgAmzursVGfPvMAMzAFOfYSw5NgNTi2Obo/PQ0afFVEYwA8sm6waaFCRGQq4gjAXx5 e63UYSfVGv2yZQrnLpwI0wjbUAJjfGxck3RgdKlCLEhJf1x5jEudi1HDvmg0e6G5UHU0 oV1o1YHJ/npQKw+XOdQDpyIJmcr4uhYg3weRsCFkDHUWfGFMAgNC07rCwzRsGRfszoFJ B37w== ARC-Authentication-Results: i=1; mx.google.com; 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 d17si7767314ejw.87.2020.04.27.01.25.58; Mon, 27 Apr 2020 01:26:21 -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; 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 S1726839AbgD0IWj (ORCPT + 99 others); Mon, 27 Apr 2020 04:22:39 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:3257 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726003AbgD0IWj (ORCPT ); Mon, 27 Apr 2020 04:22:39 -0400 X-IronPort-AV: E=Sophos;i="5.73,323,1583161200"; d="scan'208";a="45602852" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 27 Apr 2020 17:22:37 +0900 Received: from renesas-VirtualBox.ree.adwin.renesas.com (unknown [172.29.51.26]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 22F4A41D9F73; Mon, 27 Apr 2020 17:22:32 +0900 (JST) From: Gareth Williams To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maxime Ripard , Hans Verkuil , Icenowy Zheng , Mauro Carvalho Chehab , Vivek Unune , Stephen Rothwell Cc: Gareth Williams , Phil Edworthy , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] drm/db9000: Add bindings documentation for LCD controller Date: Mon, 27 Apr 2020 09:21:48 +0100 Message-Id: <1587975709-2092-3-git-send-email-gareth.williams.jx@renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587975709-2092-1-git-send-email-gareth.williams.jx@renesas.com> References: <1587975709-2092-1-git-send-email-gareth.williams.jx@renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the DT bindings information for the Digital Blocks DB9000 LCD controller. Also include documentation for the Renesas RZN1 specific compatible string. Signed-off-by: Gareth Williams --- .../devicetree/bindings/display/db9000,du.yaml | 87 ++++++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 2 files changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/db9000,du.yaml diff --git a/Documentation/devicetree/bindings/display/db9000,du.yaml b/Documentation/devicetree/bindings/display/db9000,du.yaml new file mode 100644 index 0000000..73a9311 --- /dev/null +++ b/Documentation/devicetree/bindings/display/db9000,du.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/db9000,du.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DB9000 LCD Controller + +maintainers: + - Gareth Williams + +description: | + This is an LCD controller by Digital Blocks available for SoCs. The DB9000 + controller reads from the framebuffer to display on a single RGB interface. + Output may be formatted in RGB or BGR. The driver also supports the PWM + logic that is included with the controller. + +properties: + + compatible: + oneOf: + - const: digital-blocks,drm-db9000 + - const: digital-blocks,drm-rzn1 + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: | + A phandle and clock-specifier pair to be used as a pixel clock. + + clock-names: + items: + - const: lcd_eclk + + port: + type: object + description: The panel endpoint connection. + + bits-per-pixel: + description: | + Default is 24. This selects the number of bits used to represent + a single pixel within the controller. + $ref: "/schemas/types.yaml#/definitions/uint32" + enum: [8, 16, 24, 32] + + bus-width: + description: | + The width of the interface to the LCD panel. This is needed + if the bits-per-pixel property is set to 16 or less, but the board + connects to a 24-bit panel. In which case, the controller will shift the + 16-bit data to the most significant bits of the device. Default is 24. + + "#pwm-cells": + const: 2 + +required: + - compatible + - "#pwm-cells" + - reg + - interrupts + - clocks + - clock-names + - port + +examples: + - |+ + drm@53004000 { + compatible = "digital-blocks,drm-db9000"; + reg = <0x53004000 0x1000>; + interrupts = <10 97 120>; + clocks = <&sysctrl 26>; + clock-names = "clk_slcd"; + bus-width = <24>; + pinctrl-0 = <&pins_lcd>; + #pwm-cells = <2>; + + port { + drm_point: endpoint@0 { + remote-endpoint = <&display_in>; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 6992bbb..138f76e 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -235,6 +235,8 @@ patternProperties: description: Shenzhen Yagu Electronic Technology Co., Ltd. "^digi,.*": description: Digi International Inc. + "^digital-blocks,.*": + description: Digital Blocks, Inc. "^digilent,.*": description: Diglent, Inc. "^dioo,.*": -- 2.7.4