Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16865956ybl; Wed, 1 Jan 2020 15:58:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyHtSRx5+Y/ypPM+4gybI9bpzRDrShX8/5qvzGbVQVzuPcwJPEuV7dc74DjrUkLACVzUue1 X-Received: by 2002:a9d:7c8f:: with SMTP id q15mr76556807otn.140.1577923134833; Wed, 01 Jan 2020 15:58:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577923134; cv=none; d=google.com; s=arc-20160816; b=q9AvTAAKVDP7aZdra5+Lid/F+0nedt+1r1z44E3ztYhYebJJ3orgNhbpEzQKhDhVQl 3kQKHyzJNALYd07tBAgULDjxXEbgmuw59W6IR297GI0IoafCMpXj9ak/2+ZxnVam0VHb Z5gbM8uF8MqlhCuclN1+sv2YOtvohVEUuuOIiFU3SWVtMb80PvN1Z6M5mKfwR5M0tAwk vT+t/X7BB9fNAyINiswFdY9IBQ3875QAB5NT6JX3IzjgTrtIDWkty86QWbkTEAx3pCRx CxRqa9OLqm7r6YPPu0MooDh+m4B7UoAlQtws5GtmDH7/y4TgKVKuwAuIKgyOOC1QPbIU O29g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1u0XUFsbVMoqQAb5aADvF/uT/DLlkjgZL56Wrrzd6xs=; b=gLeoNrlMDp27sWqhd1uE/snZjWQlwa70vSBZ1NHx+V9CJxRt0Jm8PqpuWih9kWYvm3 jdlTlmaIu0Lx5XZIjIhM6xRdeEowndh+FM5/lYbTwQScOVkdRgK8dEjrYmmXcASf2Ivs NOUeQ8devP22NT/yLEJWe2DxRwK1EwdpMt2MgYLpRORPmrBOdrmdnfGQh5oYDQeXkM/E Z9QFIfhB5V3lCjlivBjPaiPv4/x8Vaz6xBANlPTyz+NzKdt4CWaZj/tvhC3YmhhpksjJ /RcYf1XqTb4fx8chBFYz9NYfXiBX/G3bhBypcDPXym6pTXX/qTzwGqGHJPPBceq3LOM/ 8KPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZzPHqwEG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si28799634otd.50.2020.01.01.15.58.43; Wed, 01 Jan 2020 15:58:54 -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=@gmail.com header.s=20161025 header.b=ZzPHqwEG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727472AbgAAX6F (ORCPT + 99 others); Wed, 1 Jan 2020 18:58:05 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:47042 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727441AbgAAX6F (ORCPT ); Wed, 1 Jan 2020 18:58:05 -0500 Received: by mail-wr1-f66.google.com with SMTP id z7so37755502wrl.13; Wed, 01 Jan 2020 15:58:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1u0XUFsbVMoqQAb5aADvF/uT/DLlkjgZL56Wrrzd6xs=; b=ZzPHqwEGodnAsXq1pC4nPntUuQtCki7IYKWkgY1OmDk4Bk+Pgcd+Lkb8TBbUbQsks8 ycVvml9NeZJwsnnB4As2FplNXmCBw8t8Io1bo896yYejlf+FSjBqSZzZCntlVcV2kZ4b 1euAh/VM3biC8yFd7wc6RKJWRNeyqqwePDi/+ZnQOvlMzV89yeu/iGBoEh5mW1gBcmNx aBQMQC66fWLJYu7hdjomwDCvuUomkNZXDJTyH9V4lW5pEdVvlR6QJ+8ZzmjNnTNdl+3r Ltlj0QK/N2r8dIiUcOPLXP7HTsNjJr8MqHZaL+aGKvfghp2x3FusBHkDp1s3h/Fgp9r7 UcBQ== 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=1u0XUFsbVMoqQAb5aADvF/uT/DLlkjgZL56Wrrzd6xs=; b=FE7vSzuQiMJTAZ5oudi0Kfqj269567nURdC0K1J8QwM6jL2J1jWtzcO2BdKlCspkpY HJUgSqyaoNQGYi7rp0l3KEJkzakT2kXRyz0mcfHmSZ8lxjMm7/pE0bPLA1MZRvet7oiY mHhvjkoOpJXli7NgnKIKEt4pP3owuvT9Xa5UX90667OcLYJmYR8YZJZDNCeMgQ5jRCg6 nG6I//ABWs2mqo0EOvjGW7LLK9F0btwejjEkcj2L7dOjL1ubl5Xx+lInXnghtw4wLyuu SUsx2CFkuh1P6msZ7EFhy+DBtXFxu2eQYmomJiFnNQnWqVtcTnYMZ9Zo+0/8BHDl6tcA rK+A== X-Gm-Message-State: APjAAAWubtPFapigb1Q81U23OVEfe3uaCvn0VND/lN3LORdUYB2YwOAZ CZEvMUtRjN8v4/l6W+jV3fk= X-Received: by 2002:a5d:4983:: with SMTP id r3mr79769065wrq.134.1577923082584; Wed, 01 Jan 2020 15:58:02 -0800 (PST) Received: from XPS-15-7590.home ([2a01:cb19:16b:9900:21b2:eaec:d723:ee6e]) by smtp.gmail.com with ESMTPSA id h2sm58869289wrt.45.2020.01.01.15.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jan 2020 15:58:02 -0800 (PST) From: Joris Offouga To: linux-arm-kernel@lists.infradead.org Cc: Fabio Estevam , Otavio Salvador , Joris Offouga , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH V4] ARM: dts: imx7d-pico: Add LCD support Date: Thu, 2 Jan 2020 00:57:18 +0100 Message-Id: <20200101235719.21466-1-offougajoris@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fabio Estevam Add support for the VXT VL050-8048NT-C01 panel connected through the 24 bit parallel LCDIF interface. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador Signed-off-by: Joris Offouga --- Changes v3 -> v4 declare pinmux for lcd fix muxing value for pwm Changes v2 -> v3 rename pintcrl_backlight to pinctrl_pwm4 sort the nodes alphabetical Changes v1 -> v2 change "From:" Joris Offouga to Fabio Estevam set Joris Offouga signed-off to the last one arch/arm/boot/dts/imx7d-pico.dtsi | 90 +++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-pico.dtsi b/arch/arm/boot/dts/imx7d-pico.dtsi index 6f50ebf31a0a..e57da0d32b98 100644 --- a/arch/arm/boot/dts/imx7d-pico.dtsi +++ b/arch/arm/boot/dts/imx7d-pico.dtsi @@ -7,12 +7,42 @@ #include "imx7d.dtsi" / { + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm4 0 50000 0>; + brightness-levels = <0 36 72 108 144 180 216 255>; + default-brightness-level = <6>; + }; + /* Will be filled by the bootloader */ memory@80000000 { device_type = "memory"; reg = <0x80000000 0>; }; + panel { + compatible = "vxt,vl050-8048nt-c01"; + backlight = <&backlight>; + power-supply = <®_lcd_3v3>; + + port { + panel_in: endpoint { + remote-endpoint = <&display_out>; + }; + }; + }; + + reg_lcd_3v3: regulator-lcd-3v3 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_lcdreg_on>; + regulator-name = "lcd-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_wlreg_on: regulator-wlreg_on { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -230,6 +260,18 @@ }; }; +&lcdif { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcdif>; + status = "okay"; + + port { + display_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; +}; + &sai1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai1>; @@ -260,6 +302,8 @@ }; &pwm4 { /* Backlight */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm4>; status = "okay"; }; @@ -413,6 +457,40 @@ >; }; + pinctrl_lcdif: lcdifgrp { + fsl,pins = < + MX7D_PAD_LCD_DATA00__LCD_DATA0 0x79 + MX7D_PAD_LCD_DATA01__LCD_DATA1 0x79 + MX7D_PAD_LCD_DATA02__LCD_DATA2 0x79 + MX7D_PAD_LCD_DATA03__LCD_DATA3 0x79 + MX7D_PAD_LCD_DATA04__LCD_DATA4 0x79 + MX7D_PAD_LCD_DATA05__LCD_DATA5 0x79 + MX7D_PAD_LCD_DATA06__LCD_DATA6 0x79 + MX7D_PAD_LCD_DATA07__LCD_DATA7 0x79 + MX7D_PAD_LCD_DATA08__LCD_DATA8 0x79 + MX7D_PAD_LCD_DATA09__LCD_DATA9 0x79 + MX7D_PAD_LCD_DATA10__LCD_DATA10 0x79 + MX7D_PAD_LCD_DATA11__LCD_DATA11 0x79 + MX7D_PAD_LCD_DATA12__LCD_DATA12 0x79 + MX7D_PAD_LCD_DATA13__LCD_DATA13 0x79 + MX7D_PAD_LCD_DATA14__LCD_DATA14 0x79 + MX7D_PAD_LCD_DATA15__LCD_DATA15 0x79 + MX7D_PAD_LCD_DATA16__LCD_DATA16 0x79 + MX7D_PAD_LCD_DATA17__LCD_DATA17 0x79 + MX7D_PAD_LCD_DATA18__LCD_DATA18 0x79 + MX7D_PAD_LCD_DATA19__LCD_DATA19 0x79 + MX7D_PAD_LCD_DATA20__LCD_DATA20 0x79 + MX7D_PAD_LCD_DATA21__LCD_DATA21 0x79 + MX7D_PAD_LCD_DATA22__LCD_DATA22 0x79 + MX7D_PAD_LCD_DATA23__LCD_DATA23 0x79 + MX7D_PAD_LCD_CLK__LCD_CLK 0x79 + MX7D_PAD_LCD_ENABLE__LCD_ENABLE 0x78 + MX7D_PAD_LCD_VSYNC__LCD_VSYNC 0x78 + MX7D_PAD_LCD_HSYNC__LCD_HSYNC 0x78 + MX7D_PAD_LCD_RESET__GPIO3_IO4 0x14 + >; + }; + pinctrl_pwm1: pwm1 { fsl,pins = < MX7D_PAD_GPIO1_IO08__PWM1_OUT 0x7f @@ -431,6 +509,12 @@ >; }; + pinctrl_pwm4: pwm4grp{ + fsl,pins = < + MX7D_PAD_GPIO1_IO11__PWM4_OUT 0x7f + >; + }; + pinctrl_reg_wlreg_on: regregongrp { fsl,pins = < MX7D_PAD_ECSPI1_SCLK__GPIO4_IO16 0x59 @@ -577,6 +661,12 @@ >; }; + pinctrl_reg_lcdreg_on: reglcdongrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO06__GPIO1_IO6 0x59 + >; + }; + pinctrl_wdog: wdoggrp { fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74 -- 2.20.1