From patchwork Thu Dec 4 10:21:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 41924 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 76F5625E8C for ; Thu, 4 Dec 2014 10:24:29 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf10709273lab.11 for ; Thu, 04 Dec 2014 02:24:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=fjF3vRgcspDuIPKYYMJY+BpnJ866m7WiDB4sg2zVV3M=; b=RU7+Bg7xwl/sbjXAHMiPyVkavGG6O9NS7wuqMBJelIx7DDBCfO9e04hmED+yr/GkoE yY4PXt7yzHXwi6YAdNRDugksce/c5frK+9jIE1cjHN1x1hSjty29UbOhy99Lc/DOFvVg qQLy9K71lA8wxxRFuqMYfwsKoS6EYC2aVQpHVJ5Sw4Mmi+RmAmnkOdGTjVsIa4dtYoPO rSt3jC7QKQyNONWs966mvZ/fg6EKbGOL6jx3N6jWuWtTvtsNvP3mdjHRuZdGxncKHLWq f3gEbcoeIU8sTNbT6X97hpF3sA6xIYLPRG8mOynCkFrg2fgI+zwZ4jYQSFtGDTvi8xR+ kP9w== X-Gm-Message-State: ALoCoQl0DzJZ7f4ySkRR0hUE8gneMjh9NAw2YlIohADALtRymJJWTSfyV10FLH7DbyPacvEQEELm X-Received: by 10.112.147.131 with SMTP id tk3mr2099462lbb.2.1417688668383; Thu, 04 Dec 2014 02:24:28 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.225 with SMTP id y1ls253246lae.25.gmail; Thu, 04 Dec 2014 02:24:28 -0800 (PST) X-Received: by 10.112.199.138 with SMTP id jk10mr8605544lbc.86.1417688668214; Thu, 04 Dec 2014 02:24:28 -0800 (PST) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id l8si25420518lag.90.2014.12.04.02.24.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Dec 2014 02:24:28 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id w7so13868092lbi.29 for ; Thu, 04 Dec 2014 02:24:28 -0800 (PST) X-Received: by 10.112.235.196 with SMTP id uo4mr8505413lbc.66.1417688668110; Thu, 04 Dec 2014 02:24:28 -0800 (PST) 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.112.184.201 with SMTP id ew9csp10361lbc; Thu, 4 Dec 2014 02:24:27 -0800 (PST) X-Received: by 10.68.229.193 with SMTP id ss1mr24976670pbc.16.1417688666539; Thu, 04 Dec 2014 02:24:26 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si42341875pdp.190.2014.12.04.02.24.25 for ; Thu, 04 Dec 2014 02:24:26 -0800 (PST) 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 S1754357AbaLDKYW (ORCPT + 26 others); Thu, 4 Dec 2014 05:24:22 -0500 Received: from mail-yk0-f179.google.com ([209.85.160.179]:41265 "EHLO mail-yk0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754291AbaLDKW0 (ORCPT ); Thu, 4 Dec 2014 05:22:26 -0500 Received: by mail-yk0-f179.google.com with SMTP id 19so7749035ykq.24 for ; Thu, 04 Dec 2014 02:22:26 -0800 (PST) X-Received: by 10.170.191.137 with SMTP id i131mr13314066yke.100.1417688546263; Thu, 04 Dec 2014 02:22:26 -0800 (PST) Received: from localhost.localdomain (host109-148-232-11.range109-148.btcentralplus.com. [109.148.232.11]) by mx.google.com with ESMTPSA id y67sm16089929yhc.11.2014.12.04.02.22.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Dec 2014 02:22:25 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, computersforpeace@gmail.com, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2 RESEND 09/11] mtd: st_spi_fsm: Provide documentation for boot device mask property Date: Thu, 4 Dec 2014 10:21:50 +0000 Message-Id: <1417688512-7644-10-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417688512-7644-1-git-send-email-lee.jones@linaro.org> References: <1417688512-7644-1-git-send-email-lee.jones@linaro.org> 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.217.170 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: , 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 --- Documentation/devicetree/bindings/mtd/st-fsm.txt | 4 ++++ 1 file changed, 4 insertions(+) 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{