From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754356AbaLDKYW (ORCPT ); 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 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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{ -- 1.9.1