From patchwork Tue Apr 19 06:56:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 8877221 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B7AD89F1C1 for ; Tue, 19 Apr 2016 06:59:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E08382022A for ; Tue, 19 Apr 2016 06:59:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C94D201BC for ; Tue, 19 Apr 2016 06:59:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1asPbC-00076q-5T; Tue, 19 Apr 2016 06:57:26 +0000 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1asPb8-00075O-M3 for linux-arm-kernel@lists.infradead.org; Tue, 19 Apr 2016 06:57:23 +0000 Received: by mail-lf0-x236.google.com with SMTP id j11so7760620lfb.1 for ; Mon, 18 Apr 2016 23:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lu3VvaJMmBPtiErNdCVgZbmRA4hiHdwiV/tsHtCR7rM=; b=KhhebWtHVTSchMf4sq4NiyT/Ws6r1R3LdFDel1ej9h1+CFOeZQihh1Do1Hdt2ZHTm8 rJOCHVtPXRkACkURd8Zbur0ykEQkKQBrGow0IYzvd0QL+BwsHiMVI9fjB68MKttagGjO VyOE6QEPDVr/2W08NfEQuZpodKs7yeShihc2fhiUllWKBHx5fWqLxrya2Q++zwLG1jNY w2WPUGEL7bDu40J/1FIuVecKFTQrbZweFNmXgCoHHbaRM3/3opQ2EBNVY/ZfV5tRH7Zc M7BouSZ3DZSBUyum6+NfXz3+/X7Ak8I47WHTpoOPDo2E0sO81p09fY+B1eZ46uzUUTbV CuqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lu3VvaJMmBPtiErNdCVgZbmRA4hiHdwiV/tsHtCR7rM=; b=NtzJR0oah2792qfetTvHudF2HrNX+RbstVUF54DAxPBTO5YHlpdyYgxdS5j4pu9q44 1vfku6fdciuNWzzE8LNKnZ8DqWV5ZHD8gBaZv1YBmWGAVeN95+WVv2X1+zFxGw+GWKQ/ /k6X9aden2wvJqt89QLNJKPNv/rjflGy5RJtdU/GAkTdfTFyDxZ1B3JcBdAEwcaJt6xv JK1T2nQhkmpHtzirNkOpNz+VL8f+R9Si77S0jwamKIWlQzrZgTsN5Ok8RjyEsMU+9+5M HBPVroj5KxQY9DjWZmVNX3JYGU8dMWxbJH09Cq2eZr/yzhbr7p7Haa5TO4ukIMezLYqw /lcw== X-Gm-Message-State: AOPr4FXcwqvBQYR3FivPUuKoo8MlKdPMgOojq0FloMuC7Yozqgeeixmkvha+l06pGpux4A== X-Received: by 10.25.39.210 with SMTP id n201mr519534lfn.121.1461049019235; Mon, 18 Apr 2016 23:56:59 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id c191sm8055811lfb.29.2016.04.18.23.56.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Apr 2016 23:56:58 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Florian Fainelli Subject: [PATCH] ARM: BCM5301X: Add DT entry for SPI controller and NOR flash Date: Tue, 19 Apr 2016 08:56:46 +0200 Message-Id: <1461049006-22818-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160418_235722_929478_44923B74 X-CRM114-Status: GOOD ( 12.81 ) X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Russell King , Pawel Moll , Ian Campbell , Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , open list , Rob Herring , Kumar Gala , "open list:BROADCOM BCM5301X ARM ARCHITECTURE" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Controller is present on every BCM4708* board but only few devices have serial flash attached so mark it as disabled by default. Signed-off-by: Rafa? Mi?ecki --- arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts | 4 ++++ arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 4 ++++ arch/arm/boot/dts/bcm5301x.dtsi | 14 ++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts index c973f768..1c7e53d 100644 --- a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts +++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts @@ -59,3 +59,7 @@ &uart0 { status = "okay"; }; + +&spi_nor { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts index 4d610ff..8b0c440 100644 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts @@ -122,3 +122,7 @@ &uart0 { status = "okay"; }; + +&spi_nor { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index 9c06d91..7d4d29b 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -225,6 +225,20 @@ #address-cells = <1>; #size-cells = <1>; }; + + spi@29000 { + reg = <0x00029000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + + spi_nor: spi-nor@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <20000000>; + linux,part-probe = "ofpart", "bcm47xxpart"; + status = "disabled"; + }; + }; }; lcpll0: lcpll0@1800c100 {