Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1092711imm; Thu, 31 May 2018 15:18:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIPVmUxz1gkHjSX3Shw0BXP2BfgC+7cuI5yedOpADuTbk6nrwPq0IB+GjyfwN/d7A/LbWwA X-Received: by 2002:a63:b34e:: with SMTP id x14-v6mr6932676pgt.243.1527805101531; Thu, 31 May 2018 15:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527805101; cv=none; d=google.com; s=arc-20160816; b=sySDfbUcJ/ggbITvMhMXz5zWWSYHemBguxY3PIgEDhaiMYUuTDRJXsmnvh70yRM6cO Sh14Xe0QaLLvIFg46kW8F4a3vhn2H7ww6Utik49qsgrkKKgETSA6kMeNp1lWnRasYBxH NF2IuhkDmOsz093ozeFZdHtqPpyCV7fFHJOkXakBfPaC8LJDM8ZQ4lydsNkRK6XgB8Ez cwlk8zvXvf1ZmDcLKRXA49j8tOWdEft03atbIQQ+QsSDyBKGDOoD8EpYylsSc8ZmvSoC Avybs/mHMknmG6mKMmTfsbY74IQyaAhuzgRXyf7iDVfPakBNO9EQL6pdZQXwkUbC6WBU dNjQ== 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:arc-authentication-results; bh=E5XoQ++c3sCcqGhBdSE+RNOb6k09wvK09EDy/4cfK18=; b=KY7YHJ1Ns9Y3LNVMFzlFv1+Mh6jK+WGVDIZLyFihMpn3ZnS98t1OU1Ev7nSPNHGgj7 VHdSgAl2Ld91KrAYAarE5gBGdRZ/1mYS8crUpL9ejMiyehyBegA3CWI48ma3eM6KX3B0 CnYb0TiTek1lR75CewfNROE2R092YTwdH2UXLIm8jfxnW5yxC3Z/oMWZ2taFSpGO6ulD FzXq1d6WU37UfviNvqp9lJyfGXAASzRpYdAayrpJeJvqovXdmFW43m/SvUD8appqx+If VTOAa3vzFLgeu9O5OBbIxiSsAWAWy7w1+j0tiTk7echwajus+iLnSphZkX9rg8RnrpjN Wv1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=z6G58j7e; 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 q11-v6si18152191pll.10.2018.05.31.15.18.06; Thu, 31 May 2018 15:18:21 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=z6G58j7e; 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 S1751305AbeEaWRH (ORCPT + 99 others); Thu, 31 May 2018 18:17:07 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:37564 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750927AbeEaWQm (ORCPT ); Thu, 31 May 2018 18:16:42 -0400 Received: from trochilidae.toradex.int (unknown [37.17.239.3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 422495C1EF7; Fri, 1 Jun 2018 00:16:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1527805000; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E5XoQ++c3sCcqGhBdSE+RNOb6k09wvK09EDy/4cfK18=; b=z6G58j7ehXclfC4BsWI7+e81DTnzyxsAjWc0vxFF2w5Xln5rBX2htvO+oqR1Lh440BGccH 71QaQTp+gTC2XzuFhtjXFLr7F6jL9pR1nMBPWqQTmioGictAsVwF4jxCmTGmp59bEGUqIz ViyAcGI6E6vhGlkq9XMNSn08Hxa7hHM= From: Stefan Agner To: boris.brezillon@bootlin.com, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, thierry.reding@gmail.com Cc: dev@lynxeye.de, miquel.raynal@bootlin.com, richard@nod.at, marcel@ziswiler.com, krzk@kernel.org, digetx@gmail.com, benjamin.lindqvist@endian.se, jonathanh@nvidia.com, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, mirza.krak@gmail.com, stefan@agner.ch, linux-mtd@lists.infradead.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 5/6] ARM: dts: tegra: add Tegra20 NAND flash controller node Date: Fri, 1 Jun 2018 00:16:36 +0200 Message-Id: <20180531221637.6017-6-stefan@agner.ch> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180531221637.6017-1-stefan@agner.ch> References: <20180531221637.6017-1-stefan@agner.ch> X-Spamd-Result: default: False [-2.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_TWELVE(0.00)[23]; BAYES_HAM(-3.00)[100.00%]; RCVD_TLS_ALL(0.00)[]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_CONTAINS_FROM(1.00)[]; ASN(0.00)[asn:13030, ipnet:37.17.238.0/23, country:CH]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lucas Stach Add basic controller device tree node to be extended by individual boards. Use the assigned-clocks mechanism to set NDFLASH clock to a sensible default rate of 150MHz. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 0a7136462a1a..64911903ef99 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts/tegra20.dtsi @@ -425,6 +425,21 @@ status = "disabled"; }; + nand: nand@70008000 { + compatible = "nvidia,tegra20-nand"; + reg = <0x70008000 0x100>; + interrupts = ; + clocks = <&tegra_car TEGRA20_CLK_NDFLASH>; + clock-names = "nand"; + resets = <&tegra_car 13>; + reset-names = "nand"; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + assigned-clocks = <&tegra_car TEGRA20_CLK_NDFLASH>; + assigned-clock-rates = <150000000>; + }; + pwm: pwm@7000a000 { compatible = "nvidia,tegra20-pwm"; reg = <0x7000a000 0x100>; -- 2.17.0