Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4295048imu; Mon, 12 Nov 2018 08:44:08 -0800 (PST) X-Google-Smtp-Source: AJdET5fMBEgDAI7FpMkd+OgCYcd/awwJX+t+NBhoT5I4gONveqXnJS34tNIg3p+5nAyH+ISVJvkX X-Received: by 2002:a63:101d:: with SMTP id f29mr1467026pgl.38.1542041048494; Mon, 12 Nov 2018 08:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542041048; cv=none; d=google.com; s=arc-20160816; b=dTpp9Cl/HKrIGKJrTCPHKUmIIOW3M2ZUv5ev1h69ZY90AFse6361ORl4NFck/AWvfr 1y6Psybn/Qdwpy4ekCk4dM78h7jsJPYzeVHtrYoF8UEKL2IexBZYy1/mH11ihD48fKMC GwBsIoft+pf5S+gP2a3nMYddac86opESurqKs1SmmJVJdcVLztHL7clopAZIlHSsZkZv wneyWwG/8yXn0wv1g7f6LspNDLyMgQehMiAvjFJYxwDHyBbWMG2Qaa/8R9VUNkIa2sA/ UgsqlVofgzXFnYau5VVBf/IEffKFtxSpS56liDhT1VWADah6CRGZXSvDIX3loq+5n8hP TaxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=QFrd1LjkNzCxnwM3afHg7R8zuGB3aFnwvm2qFoM4qrQ=; b=UinNshhHixj/LyAzp4JY5Up8DG0MZUrVH3H9y/Ghk/2x4d4QSiKhDWh2fdEcOgGl/a wXOQaxY8rZJQgbIgDvLyRGjXyEDYVNSzSPmWw3IOYK+swxAK1ina+JMqg4H73icSJQho 8P5V90pBl49dhFHJ3Xs0c4fk4O5VZ2kok5khT9YPolu/p+ItHQy4Qe5v56vTgG2F34nX zTrx9sMbsx4CqnLRQUzJhLvow+DuB+L5WuzM+uIHblRUjINPj8sBxmoGHAq+acVPunRN 5wJLBgyZv+40Y9fmfadI8EkXskj12Qehd6diujD2Um+ibZUQhQp24tzFcDVl4sZRjUqL Xsag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16-v6si15670490pgu.525.2018.11.12.08.43.53; Mon, 12 Nov 2018 08:44:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730235AbeKMChW (ORCPT + 99 others); Mon, 12 Nov 2018 21:37:22 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:55140 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728199AbeKMChV (ORCPT ); Mon, 12 Nov 2018 21:37:21 -0500 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id wACGCjCS030401; Mon, 12 Nov 2018 18:12:45 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 749FF630C7; Mon, 12 Nov 2018 18:42:43 +0200 (IST) From: Tomer Maimon To: broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, yuenn@google.com, venture@google.com, brendanhiggins@google.com, avifishman70@gmail.com, joel@jms.id.au Cc: linux-spi@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tomer Maimon Subject: [PATCH v1 1/2] dt-binding: spi: add NPCM PSPI controller documentation Date: Mon, 12 Nov 2018 18:42:31 +0200 Message-Id: <20181112164232.435629-2-tmaimon77@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20181112164232.435629-1-tmaimon77@gmail.com> References: <20181112164232.435629-1-tmaimon77@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added device tree binding documentation for Nuvoton BMC NPCM Peripheral SPI controller. Signed-off-by: Tomer Maimon --- .../devicetree/bindings/spi/nuvoton,npcm-pspi.txt | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/nuvoton,npcm-pspi.txt diff --git a/Documentation/devicetree/bindings/spi/nuvoton,npcm-pspi.txt b/Documentation/devicetree/bindings/spi/nuvoton,npcm-pspi.txt new file mode 100644 index 000000000000..99606b22e5c2 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/nuvoton,npcm-pspi.txt @@ -0,0 +1,35 @@ +Nuvoton NPCM Peripheral Serial Peripheral Interface(PSPI) controller driver + +Nuvoton NPCM7xx SOC support two PSPI channels. + +Required properties: + - compatible : "nuvoton,npcm750-pspi" for NPCM7XX BMC + - #address-cells : should be 1. see spi-bus.txt + - #size-cells : should be 0. see spi-bus.txt + - specifies physical base address and size of the register. + - interrupts : contain PSPI interrupt. + - clocks : phandle of PSPI reference clock. + - clock-names: Should be "clk_apb5". + - pinctrl-names : a pinctrl state named "default" must be defined. + - pinctrl-0 : phandle referencing pin configuration of the device. + - cs-gpios: Specifies the gpio pins to be used for chipselects. + See: Documentation/devicetree/bindings/spi/spi-bus.txt + +Optional properties: +- clock-frequency : Input clock frequency to the PSPI block in Hz. + Default is 25000000 Hz. + +Example: + +spi0: spi@f0200000 { + compatible = "nuvoton,npcm750-pspi"; + reg = <0xf0200000 0x1000>; + pinctrl-names = "default"; + pinctrl-0 = <&pspi1_pins>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clk NPCM7XX_CLK_APB5>; + clock-names = "clk_apb5"; + cs-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; +}; -- 2.14.1