From patchwork Tue May 17 23:19:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rich Felker X-Patchwork-Id: 9250693 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4D7FD6075F for ; Thu, 28 Jul 2016 06:14:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 407A22623C for ; Thu, 28 Jul 2016 06:14:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 353CC26907; Thu, 28 Jul 2016 06:14:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=2.0 tests=BAYES_00, DATE_IN_PAST_96_XX, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E40B220855 for ; Thu, 28 Jul 2016 06:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163131AbcG1GOE (ORCPT ); Thu, 28 Jul 2016 02:14:04 -0400 Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:59299 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163077AbcG1GNo (ORCPT ); Thu, 28 Jul 2016 02:13:44 -0400 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1bSeZZ-0006WW-00; Thu, 28 Jul 2016 06:13:33 +0000 Message-Id: <9813bf559ad89ca6fecc438d9176d634bbc122a0.1469686300.git.dalias@libc.org> In-Reply-To: References: From: Rich Felker Date: Tue, 17 May 2016 23:19:25 +0000 Subject: [PATCH v4 1/2] of: add J-Core SPI master bindings To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-sh@vger.kernel.org Cc: Rob Herring , Mark Rutland , Mark Brown Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Rich Felker Acked-by: Rob Herring --- .../devicetree/bindings/spi/jcore,spi.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt diff --git a/Documentation/devicetree/bindings/spi/jcore,spi.txt b/Documentation/devicetree/bindings/spi/jcore,spi.txt new file mode 100644 index 0000000..815106d --- /dev/null +++ b/Documentation/devicetree/bindings/spi/jcore,spi.txt @@ -0,0 +1,30 @@ +J-Core SPI master + +Required properties: + +- compatible: Must be "jcore,spi2". + +- reg: Memory region for registers. + +- #address-cells: Must be 1. + +- #size-cells: Must be 0. + +Optional properties: + +- clock-frequency: Specifies an input clock frequency relative to + which the SPI clock speed must be programmed. Necessary only if + the input clock rate is something other than 50 MHz. + +See spi-bus.txt for additional properties not specific to this device. + +Example: + +spi@40 { + compatible = "jcore,spi2"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x40 0x8>; + spi-max-frequency = <25000000>; + clock-frequency = <50000000>; +}