From patchwork Thu May 22 11:56:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 30610 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8843D20369 for ; Thu, 22 May 2014 11:56:58 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id ij19sf11063390vcb.9 for ; Thu, 22 May 2014 04:56:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:cc:subject:message-id :references:mime-version:in-reply-to:user-agent:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe :content-type:content-disposition; bh=yHH5zngeheTYRjQzS6YKGq4foTT2PKXbQIdMmhjdeBo=; b=HWIO7gtZfeRFDSvTm3owXHMvE05MTuoBb9VyJtouS4xO887xzTYvPtTxH5P+j8RqR1 lV4wBZ2auA/fSn7ZqgWr9G6TYgeMOZkXMBxf2xSGWm3uQZ7mhHFO7UaGh5SCy88zxJxi X/Fz0ieniERC0xlxBv8Ssd/xits6yWNm8zl0CHovKvtXZrZrmZr2VQTMmgGdiPhClQZC SG7La3uS5aO8yxl2Zhv/gCbZjrZ0ee7s64faBt2ZTAaUFpPvuSQiJZlb++QKctVXBa4O SF3QkbGRkFfSW8S808LpiDilxT78VToxIycBWbG5s6daqYCSiJdyadG91LsVhhHbm6F0 24yQ== X-Gm-Message-State: ALoCoQmuNeDVksqM0Zxe219zsq3Ct4KqJZKPgOk4RHUyR0KEhkBjD+4QShXhT7BRYta5R2hTBC45 X-Received: by 10.236.133.201 with SMTP id q49mr20720613yhi.1.1400759818229; Thu, 22 May 2014 04:56:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.134 with SMTP id t6ls1160901qgd.20.gmail; Thu, 22 May 2014 04:56:58 -0700 (PDT) X-Received: by 10.52.103.74 with SMTP id fu10mr13147965vdb.7.1400759818119; Thu, 22 May 2014 04:56:58 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id ru2si4690894vcb.19.2014.05.22.04.56.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 04:56:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id id10so884755vcb.35 for ; Thu, 22 May 2014 04:56:58 -0700 (PDT) X-Received: by 10.58.84.65 with SMTP id w1mr49306367vey.8.1400759818000; Thu, 22 May 2014 04:56:58 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp192079vcb; Thu, 22 May 2014 04:56:57 -0700 (PDT) X-Received: by 10.68.190.74 with SMTP id go10mr28656011pbc.16.1400759817220; Thu, 22 May 2014 04:56:57 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xl4si33350401pab.5.2014.05.22.04.56.56 for ; Thu, 22 May 2014 04:56:56 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754858AbaEVL4t (ORCPT + 27 others); Thu, 22 May 2014 07:56:49 -0400 Received: from mail-ie0-f181.google.com ([209.85.223.181]:46866 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754016AbaEVL4s (ORCPT ); Thu, 22 May 2014 07:56:48 -0400 Received: by mail-ie0-f181.google.com with SMTP id rp18so1854406iec.40 for ; Thu, 22 May 2014 04:56:48 -0700 (PDT) X-Received: by 10.50.2.41 with SMTP id 9mr21634665igr.13.1400759808221; Thu, 22 May 2014 04:56:48 -0700 (PDT) Received: from lee--X1 (host109-148-113-200.range109-148.btcentralplus.com. [109.148.113.200]) by mx.google.com with ESMTPSA id y7sm12806956igl.13.2014.05.22.04.56.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 22 May 2014 04:56:47 -0700 (PDT) Date: Thu, 22 May 2014 12:56:43 +0100 From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: computersforpeace@gmail.com, linux-mtd@lists.infradead.org, Christophe Kerello Subject: [PATCH v2 09/10] mtd: st_spi_fsm: Provide mask to obtain correct boot device pins Message-ID: <20140522115643.GW6679@lee--X1> References: <1400757848-18075-1-git-send-email-lee.jones@linaro.org> <1400757848-18075-10-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 In-Reply-To: <1400757848-18075-10-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Content-Disposition: inline mtd: st_spi_fsm: Provide documentation for boot device mask property The system configuration registers which display which device the system booted on are in the same place on all boards which support the FSM. However, the bits do shift every so slightly. To combat these we're adding a new property which supplies the necessary mask used to abstract the required information. Cc: devicetree@vger.kernel.org Signed-off-by: Lee Jones --- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/Documentation/devicetree/bindings/mtd/st-fsm.txt b/Documentation/devicetree/bindings/mtd/st-fsm.txt index c248939..2ef9710 100644 --- a/Documentation/devicetree/bindings/mtd/st-fsm.txt +++ b/Documentation/devicetree/bindings/mtd/st-fsm.txt @@ -11,6 +11,10 @@ Optional properties: - st,syscfg : Phandle to boot-device system configuration registers - st,boot-device-reg : Address of the aforementioned boot-device register(s) - st,boot-device-spi : Expected boot-device value if booted via this device + - st,boot-device-msk : Mask to use when extracting boot device from the + above system config registers + NB: If any of the st,boot-device-* properties are missing, the driver falls + back to the default assumption of 'booted from SPI'. Example: spifsm: spifsm@fe902000{