Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1968471ybb; Sun, 29 Mar 2020 18:35:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vub6x5JytriE5Smyt+DqgLV00Kh2M7HCptyV4OYfy9e5y5qyKG39ITu9VFj/RFkLXDB/6Fu X-Received: by 2002:aca:4046:: with SMTP id n67mr6324587oia.156.1585532100476; Sun, 29 Mar 2020 18:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585532100; cv=none; d=google.com; s=arc-20160816; b=mncSj0d7xHfVrVmxIjRUmZMQWEyFglZDG1CdCTa3svZRZv7Bu+NvJ/UMvNQ8w/AWsg pqymdeBsArf/IzU0zfFe28bwxtqcpgxakQUi1i66EqnHCHmSb3OLEMFLBqUl6YNy+p7k LAJmkpN2qSg3soBYaPIg1pseqq+mX2b+uymJ4AZM9ckT6h93yrdvTfKZUbzSLa5GvmMt hP2mVWI5uxMEBkGQn2P3Z6B3XCZBgjskd+waYD7J4jjm6GzlfiWBZLS5PE2rlTa8whyX OoBngqSG7pcS0W7cxmJMJ53ZNEUlrZp/BlFegQjuXppYR0InXqtgJLzaHj86vW6Pgcdi nWyQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=WP/68sdAVhA4pCeTP+BkOFWtEc+vtdV+AenpdHiO+Tw=; b=FPcq8fYh6YApATS/IOFiOK5kH3LWAv4s3IvcWpaN1tnGaoFwE+CwSfO8FCqhwXKQl6 /AQXks803Gm4hLCAad7+33bs6WvCdgZNdlyKDvddUtN2QkVFYgmr+6IAHdAzIs1Btqxn 7BIzdMBx42dcMV/9T/f7vOvorqY+VjIkdXSI5LFFJeV0UNApHQVHdP67dF+Ch6HdqjRK 56PaOV+ffznakse10ufnSjRwXqUh5dnAy/jkfoWyvlgOLaKDjz3nqhQufyEzLWiam+gt zBveFTlz3LlrLpOlj9+26pfNl7iHaKWHf1NgXyQumtk4Yu/Jqq22qx8B3Mis4Fyhe/P7 s/uA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si1525139oti.106.2020.03.29.18.34.45; Sun, 29 Mar 2020 18:35:00 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727986AbgC3BY5 (ORCPT + 99 others); Sun, 29 Mar 2020 21:24:57 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:57282 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727830AbgC3BY5 (ORCPT ); Sun, 29 Mar 2020 21:24:57 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48rFBD6LBGz1qrFS; Mon, 30 Mar 2020 03:24:52 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48rFBD42WBz1r0bl; Mon, 30 Mar 2020 03:24:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Fvub03wl5HIX; Mon, 30 Mar 2020 03:24:51 +0200 (CEST) X-Auth-Info: od+I4xl5ut2Q/YmRdmMDkY5JVWT6qwkF+EZ0I+fyrGA= Received: from [IPv6:::1] (unknown [195.140.253.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 30 Mar 2020 03:24:51 +0200 (CEST) Subject: Re: [03/12] bus: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver To: Christophe Kerello , miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, tony@atomide.com Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com References: <1584975532-8038-1-git-send-email-christophe.kerello@st.com> <1584975532-8038-4-git-send-email-christophe.kerello@st.com> From: Marek Vasut Message-ID: Date: Mon, 30 Mar 2020 03:24:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <1584975532-8038-4-git-send-email-christophe.kerello@st.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/23/20 3:58 PM, Christophe Kerello wrote: > The driver adds the support for the STMicroelectronics FMC2 EBI controller > found on STM32MP SOCs. > On DH STM32MP1 SoM in PDK2 carrier board, Tested-by: Marek Vasut btw. it seems this sets BTRx DATLAT and CLKDIV to 0xf , it's "Don't care" in the datasheet for Muxed mode, but then it should probably be set to 0. The bindings I used are below: &fmc { pinctrl-names = "default", "sleep"; pinctrl-0 = <&fmc_pins_b>; pinctrl-1 = <&fmc_sleep_pins_b>; status = "okay"; #address-cells = <1>; #size-cells = <1>; /delete-property/interrupts; /delete-property/dmas; /delete-property/dma-names; reg = <0x58002000 0x1000>; ranges; ebi { #address-cells = <2>; #size-cells = <1>; compatible = "st,stm32mp1-fmc2-ebi"; ranges = <0 0 0x60000000 0x4000000>, <1 0 0x64000000 0x4000000>, <2 0 0x68000000 0x4000000>, <3 0 0x6c000000 0x4000000>; ksz8851: ks8851mll@0,0 { compatible = "micrel,ks8851-mll"; reg = <1 0x0 0x2 1 0x2 0x20000>; interrupt-parent = <&gpioc>; interrupts = <3 IRQ_TYPE_LEVEL_LOW>; bank-width = <2>; /* Timing values are in nS */ st,fmc2_ebi_cs_mux_enable; st,fmc2_ebi_cs_transaction_type = <4>; st,fmc2_ebi_cs_buswidth = <16>; st,fmc2_ebi_cs_address_setup = <6>; st,fmc2_ebi_cs_address_hold = <6>; st,fmc2_ebi_cs_data_setup = <127>; st,fmc2_ebi_cs_bus_turnaround = <9>; st,fmc2_ebi_cs_data_hold = <9>; }; sram@3,0 { compatible = "mtd-ram"; reg = <3 0x0 0x80000>; bank-width = <2>; /* Timing values are in nS */ st,fmc2_ebi_cs_mux_enable; st,fmc2_ebi_cs_transaction_type = <4>; st,fmc2_ebi_cs_buswidth = <16>; st,fmc2_ebi_cs_address_setup = <6>; st,fmc2_ebi_cs_address_hold = <6>; st,fmc2_ebi_cs_data_setup = <127>; st,fmc2_ebi_cs_bus_turnaround = <9>; st,fmc2_ebi_cs_data_hold = <9>; }; }; };