Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1313570ybj; Thu, 7 May 2020 21:15:15 -0700 (PDT) X-Google-Smtp-Source: APiQypIyma7YFBSUPGwdqNsoBDxR+zBs2SrjxsZLDDJVAMT0jxW1lbGctf0vgPeCfIrGMWYRGxRq X-Received: by 2002:a17:906:3399:: with SMTP id v25mr254262eja.217.1588911315460; Thu, 07 May 2020 21:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588911315; cv=none; d=google.com; s=arc-20160816; b=jMumEZ+aN9WmKI0cX03JMymgKiDJtIJqkaz1/T4dQDaCkb0Rl1oUQlvytdZ2eBOeam yg14DRQIh8KXnDAly/wspzOgj8a6lYKvYlMbr5OfYOBDwD2md1GZWgbfUGONCNcugTAN j1NQ87zXEoivOQbIKKQr6yS/mS6K0IKS24HKq9h/Pg3ig9Oepgl8PWG1BoSsKHCfGDag FKBOcag1VYN7dJn5hr7RNikvY4ptE3GHLJmmSksNpGnvb+FMn+9Gd3tHIBJ5Qt0x8PlJ CGqltIF5HNw4xSCCGnYeCSHNOznMx4A5J79J/j0BJPNgmgqpswBDrP5A9nOmD/WAzMYE iaeA== 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:dkim-signature; bh=FwcBHEkgpi816HDa38k8dH6l9iAu/nO4Zhpk53Krt/4=; b=diHK6WjU0USkDfgAs8cDZm8snS4NiGJTihYWty+wQrCXq82xD1kbSCKENypGp/StmT wMxwUOs4ZRrj4UhosyIVx4+IF591afUyVbS4urOWj+fw2tGZueMWyxr9slfbPjlQS7oL H3iLkf9Mll18vjBMDyNowXIpQYBbEyXQJZcNZTbaSBZvfQmZZweGwZrjtvCQYB8kAkRh Wg/XBxWgNJ4ER4WdFuL9XtF/XC6cvjtfoY0JEyiJ+Z42VVn8+guPoCmsCZnPpvReU2g0 79L1Tet7eR3+wupRn9i1KkFx+mz4v0FE3MfJMPSV3otSxg6U+DLd0U6SfYML6R7TDsSK loLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HcozJuek; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si268877ejd.119.2020.05.07.21.14.52; Thu, 07 May 2020 21:15:15 -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=@gmail.com header.s=20161025 header.b=HcozJuek; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726211AbgEHENa (ORCPT + 99 others); Fri, 8 May 2020 00:13:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725287AbgEHEN3 (ORCPT ); Fri, 8 May 2020 00:13:29 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6FA8C05BD43; Thu, 7 May 2020 21:13:29 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id r4so278017pgg.4; Thu, 07 May 2020 21:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FwcBHEkgpi816HDa38k8dH6l9iAu/nO4Zhpk53Krt/4=; b=HcozJuektBhBGZGzSb6NtiZUXW+vXKMz+tmI9HpmNvc6WneM4GYTXNr8Z9jNyMKaqU dBp5dsPXy/FmQHQQa7/6hcGuKWjHXY+cS+0YcnQzvypM5GvJJ53YaxVfhPYQDZ0wMFTi K5G1Klp0fpWZmr5uy/5ziRvjbmpIEEzRldIjRVMrHGjbvCQ2SWIz3Lfe6jpPKyScPOEI n/F+Bh6qLaN4YVt1Btx61eEJlmLn3xN2UnNrjpiNOZ75aWOdPboleRsRNObFS4D4ejpx EWXHrFGCsgQdna0sMAdu06UzueA+PnpdEz/A9tNfKOFLDL9Y5Ea3RWq9nhabQeiz5Y6H MtIQ== 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:in-reply-to :references; bh=FwcBHEkgpi816HDa38k8dH6l9iAu/nO4Zhpk53Krt/4=; b=K9fgXNXFjLGN65FBLaE7Xvbri+lG1YYPKGqZhJ1+em8mSPKDrNK/+7FbucHzADPe25 zEkhYdxIdw8F0VnGbtCZ7CkRsnibjO7ZxJ0pS/Hk9v5Jh+0vjSHB+kI/M4zpZi33kF77 qbj4xvVPYOqDRGMe5UVd6Ud5pRlXyorn4dNga//9hLt+scYWavsTaMsyHILjyiv1t1/E pawOY/qPQShWlBIJYIlj9cbtcJqPprnom1/x1HhCaHQ4jERv2lO3lPsfsOlJ8KfvcwaF CeoEb7M8DXqdilsKnRRFfBnte3vQzL+/x6QvPaRcv5eqwQkJEfDZIK4Am4fVnODIoALy AgtA== X-Gm-Message-State: AGi0PuaF5Ov+2gf2KCSPybxtsZu+jGRi9VvUhsL/d5kJpl8Dx6qmd5gT GFPg6kYXUHkTH/AECD2tNdA= X-Received: by 2002:a62:f941:: with SMTP id g1mr763602pfm.118.1588911209459; Thu, 07 May 2020 21:13:29 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([103.206.190.146]) by smtp.gmail.com with ESMTPSA id h12sm314868pfq.176.2020.05.07.21.13.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2020 21:13:29 -0700 (PDT) From: dillon.minfei@gmail.com To: robh+dt@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, mturquette@baylibre.com, sboyd@kernel.org Cc: devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-clk@vger.kernel.org, dillon min Subject: [PATCH v2 2/5] ARM: dts: stm32: enable ltdc binding with ili9341 on stm32429-disco board Date: Fri, 8 May 2020 12:13:11 +0800 Message-Id: <1588911194-12433-3-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588911194-12433-1-git-send-email-dillon.minfei@gmail.com> References: <1588911194-12433-1-git-send-email-dillon.minfei@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: dillon min Enable the ltdc & ili9341 on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts index 30c0f67..2d9637a 100644 --- a/arch/arm/boot/dts/stm32f429-disco.dts +++ b/arch/arm/boot/dts/stm32f429-disco.dts @@ -49,6 +49,8 @@ #include "stm32f429.dtsi" #include "stm32f429-pinctrl.dtsi" #include +#include +#include / { model = "STMicroelectronics STM32F429i-DISCO board"; @@ -127,3 +129,41 @@ pinctrl-names = "default"; status = "okay"; }; + +<dc { + status = "okay"; + pinctrl-0 = <<dc_pins_f429_disco>; + pinctrl-names = "default"; + + port { + ltdc_out_rgb: endpoint { + remote-endpoint = <&panel_in_rgb>; + }; + }; +}; + +&spi5 { + status = "okay"; + pinctrl-0 = <&spi5_pins>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + cs-gpios = <&gpioc 2 GPIO_ACTIVE_LOW>; + dmas = <&dma2 3 2 0x400 0x0>, + <&dma2 4 2 0x400 0x0>; + dma-names = "rx", "tx"; + display: display@0{ + /* Connect panel-ilitek-9341 to ltdc */ + compatible = "stm32f429,ltdc-panel", "ilitek,ili9341"; + reg = <0>; + spi-3wire; + spi-max-frequency = <10000000>; + dc-gpios = <&gpiod 13 0>; + port { + panel_in_rgb: endpoint { + remote-endpoint = <<dc_out_rgb>; + }; + }; + }; +}; + -- 2.7.4