Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1433901ybh; Mon, 13 Jul 2020 19:52:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkebmew5r52XKJYn7lBnBaxrxx/PLwv45YIZ2Y61Xe1wOYopm5aYoQm73kDAjsGnW+OE8O X-Received: by 2002:a17:907:7290:: with SMTP id dt16mr2449449ejc.63.1594695129233; Mon, 13 Jul 2020 19:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594695129; cv=none; d=google.com; s=arc-20160816; b=RvV2WRKEEOvPFN0JMmS2jhFbQdalO4f70nTiybBWXzHSG3vDLMh/x0nS2Jno1T1bfi ATzRJaFFXp2HVD1g4dMTz7tCdvrsJK9rtbo5A9Gkp7zBoEibP1gpG+VYMgXwb3YYaEFR KR0SWkEQ8ZI6VANruVNcEkB3CD/GgWh2y/k4bKIZyu3jqIqXdpNnczH9DohG0XrNV9fq DH2HWNS+UTAptR+I7y5y4i6xMBfillU9d9ExK5Cd+lAgauoYtxCtE2YmPAKJynwOUh9s U5xltcD4myS2tiFwdYNFfPDTM87CwUd6jDHxaismmrn2XTEi+A1Xy9I0MV5yClUBSO/V l2Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=DdQRU+re2daApc1buZh/NOScJMoADL35yGQLsQdXB0M=; b=EgS7pCpgJ6w/Yi27F/tT5+KcgSPi8xZCGaW27YXTz1fTeiGAMRNvAALB34dyEbi2R9 LsSaEhjle0l2Mo7TBaOcEz7sOtFgI1cj9abV5EOs974YCmazxQnFpMifKv2el+/jyqMy hqJzk+bAJB77D2xC6UHHwJg7eJRY0M8sdef74Mf+xYT8qSzIT9RHLKzTUDoPHp3F6hJ9 WJ1XxZjsyT0Gkk5cUOES2aL6CPN2c3TyXTXc+RI9uHEunt++5VPc7aFYceYF3gX9XPll ZN0IU+fvJBbGq1MQtVWeIJLBEBLdKYMoM+5sdph5Ns+edTKcVYWMY5/6CO/clRrhn1Zr vgEg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox25si10364917ejb.408.2020.07.13.19.51.45; Mon, 13 Jul 2020 19:52:09 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726545AbgGNCtP (ORCPT + 99 others); Mon, 13 Jul 2020 22:49:15 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:40192 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbgGNCtP (ORCPT ); Mon, 13 Jul 2020 22:49:15 -0400 Received: by mail-il1-f196.google.com with SMTP id e18so13001279ilr.7; Mon, 13 Jul 2020 19:49:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=DdQRU+re2daApc1buZh/NOScJMoADL35yGQLsQdXB0M=; b=LtknXvta8Kz1C/vk2tTggkcKoVTwQX+UeiTeQ09r71DwrEb1cCS8P+uB5cP2z8VBIB 38u5utVpQ56NhggHHm14cR2bjU/w0KvR0Et4Sq2Im1dPr90rmFleWCB6IIzpXOZIhLM3 htPWqs/+4w2vpm+StWT3IvWXRSeMYtFv1zbDPEm8MGwKIQeaVK3ujyQH44o42AUDPcBh kNOb9Ctdz2uKqQSleuibFBezGNVsWohRbUR5il5gmy7xCDon1m3a+Cz8ezMhWcqUoGmM uqFK3B2R0fnTwCDnAOuXO1g1w05+JcSL6z2lmTNGMSF8HipoHVMmZo5Ci/gWy92viw5K U4kA== X-Gm-Message-State: AOAM531LnXMRZrTKETwHXYSYMqU9+SrusJqXTmj0N4azxKXeXWMYBYF1 vKEJuJko31UdbX3wC7cgAA== X-Received: by 2002:a92:c00d:: with SMTP id q13mr2499962ild.222.1594694954000; Mon, 13 Jul 2020 19:49:14 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id f18sm8489104ion.47.2020.07.13.19.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 19:49:13 -0700 (PDT) Received: (nullmailer pid 1187292 invoked by uid 1000); Tue, 14 Jul 2020 02:49:12 -0000 Date: Mon, 13 Jul 2020 20:49:12 -0600 From: Rob Herring To: Adrian Pop Cc: Maxime Coquelin , Alexandre Torgue , Lee Jones , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] ARM: dts: stm32: Enable MIPI DSI display support. Message-ID: <20200714024912.GA1184333@bogus> References: <20200702172714.158786-1-pop.adrian61@gmail.com> <20200702172714.158786-2-pop.adrian61@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702172714.158786-2-pop.adrian61@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 02, 2020 at 08:27:14PM +0300, Adrian Pop wrote: > STM32f769-disco features a 4" MIPI DSI display: add support for it. > On Cortex-M7 DMA can't use cached memory. For this reason I use a dedicated > memory pool for DMA with no-cache attribute which is located at the end of > RAM. > > Signed-off-by: Adrian Pop > --- > arch/arm/boot/dts/stm32f746.dtsi | 34 +++++++++++++++++++ > arch/arm/boot/dts/stm32f769-disco.dts | 49 +++++++++++++++++++++++++++ > 2 files changed, 83 insertions(+) > > diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi > index 93c063796780..577a812ca01c 100644 > --- a/arch/arm/boot/dts/stm32f746.dtsi > +++ b/arch/arm/boot/dts/stm32f746.dtsi > @@ -48,6 +48,19 @@ / { > #address-cells = <1>; > #size-cells = <1>; > > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + linux,dma { Build your DT with W=1. This will have a warning. > + compatible = "shared-dma-pool"; > + linux,dma-default; > + no-map; > + reg = <0xc0f00000 0x100000>; > + }; > + }; > + > clocks { > clk_hse: clk-hse { > #clock-cells = <0>; > @@ -75,6 +88,27 @@ clk_i2s_ckin: clk-i2s-ckin { > }; > > soc { > + ltdc: display-controller@40016800 { > + compatible = "st,stm32-ltdc"; > + reg = <0x40016800 0x200>; > + interrupts = <88>, <89>; > + resets = <&rcc STM32F7_APB2_RESET(LTDC)>; > + clocks = <&rcc 1 CLK_LCD>; > + clock-names = "lcd"; > + status = "disabled"; > + }; > + > + dsi: dsi@40016c00 { > + compatible = "st,stm32-dsi"; > + reg = <0x40016c00 0x800>; > + interrupts = <98>; > + clocks = <&rcc 1 CLK_F769_DSI>, <&clk_hse>; > + clock-names = "pclk", "ref"; > + resets = <&rcc STM32F7_APB2_RESET(DSI)>; > + reset-names = "apb"; > + status = "disabled"; > + }; > + > timer2: timer@40000000 { > compatible = "st,stm32-timer"; > reg = <0x40000000 0x400>; > diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts > index 1626e00bb2cb..a9e81b49809c 100644 > --- a/arch/arm/boot/dts/stm32f769-disco.dts > +++ b/arch/arm/boot/dts/stm32f769-disco.dts > @@ -153,3 +153,52 @@ &usbotg_hs { > pinctrl-names = "default"; > status = "okay"; > }; > + > +&dsi { > + #address-cells = <1>; > + #size-cells = <0>; > + status = "okay"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + dsi_in: endpoint { > + remote-endpoint = <<dc_out_dsi>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + dsi_out: endpoint { > + remote-endpoint = <&dsi_in_panel>; > + }; > + }; > + > + }; > + > + panel: panel { > + compatible = "orisetech,otm8009a"; > + reg = <0>; > + reset-gpios = <&gpioj 15 GPIO_ACTIVE_LOW>; > + status = "okay"; Don't need status. Enabled is the default. > + > + port { > + dsi_in_panel: endpoint { > + remote-endpoint = <&dsi_out>; > + }; > + }; > + }; > +}; > + > +<dc { > + status = "okay"; > + > + port { > + ltdc_out_dsi: endpoint { > + remote-endpoint = <&dsi_in>; > + }; > + }; > +}; > -- > 2.27.0 >