Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6736061imm; Mon, 27 Aug 2018 23:30:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY+76eEE7XGo3NIXyxhXsOylpxIQJbyE/vw3oNlkh67jFwnicrbJIc6guC53mogBrs4kMOC X-Received: by 2002:a17:902:a502:: with SMTP id s2-v6mr152742plq.311.1535437836443; Mon, 27 Aug 2018 23:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535437836; cv=none; d=google.com; s=arc-20160816; b=QG3vBCcMrZaGF8znyuCQWd64J1bkqICRTfVINoEaZ3A3qh0nRO4xppltUkZFbOsLcP rnT2G0qNyHKTCdopq3P4U4ie5ng6eaXjahzjeyP6XwJkgC386ipiyu27Vw2HOc4MikWR fEub/t1tgdAQ8NwON7j5H3Fih824biNhXoPuf7IMd1NL0j/rpgKNFscVjofsJK/GUy7x TWbEoKZPDLGVjzYxX00t4bFG5JL3oHDHzcEJLXLKqxvJsPZy8qicMHIs16sV4U/KckOU AOx/F+DNc5nrr5O6Yi5GWR6GcXCwDJA2DETuMDevaSrtm0GqPxIQg4hu0UvUHK6rj+dr MMUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=ewZ5O2rDFOYe+/5K252v0DglSdW3KaY+V5tIKDeFnLQ=; b=CBg0Y8Nt5w8dnFcFiSsOXouGQHljejxgJ2Kxrca25ne9GZKqMBIt0xLxauHScZy/iY /wYnTJGsCAqfT7JMptln64KB7sSuxre5TBpGISAPh2gLaHOiQO4fZ3A2ParI0DyRoa3n kh703X99EWYHGK02JMtN+/5CkTKxf7q6UTSb7wnW/oSjOF0PLeQvelDxUzXAF6BZxinD Sn0guQRpI9+qPTXYprjR4LpxQNY57cHa5IhzFBCrq5Bi5aAZ/XaxNlsE1UfWoeWTaesB xc+XCYufdkUK96cHUXGtXF6qITeEOdM0DC7cNVhaywNeTC/i7x7sLkBEty+fsIc0gYCN qbIQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12-v6si221325pgz.665.2018.08.27.23.30.18; Mon, 27 Aug 2018 23:30:36 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727222AbeH1KTK (ORCPT + 99 others); Tue, 28 Aug 2018 06:19:10 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38399 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726979AbeH1KTJ (ORCPT ); Tue, 28 Aug 2018 06:19:09 -0400 X-UUID: 925edb777be34548b88cb7a9f5e19138-20180828 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 596432030; Tue, 28 Aug 2018 14:28:52 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 28 Aug 2018 14:28:49 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 28 Aug 2018 14:28:48 +0800 From: Leilk Liu To: Mark Brown CC: Mark Rutland , Matthias Brugger , Sascha Hauer , , , , , , , , Leilk Liu Subject: [PATCH 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform Date: Tue, 28 Aug 2018 14:28:03 +0800 Message-ID: <1535437685-30230-2-git-send-email-leilk.liu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1535437685-30230-1-git-send-email-leilk.liu@mediatek.com> References: <1535437685-30230-1-git-send-email-leilk.liu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git a/Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt b/Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt new file mode 100644 index 0000000..dcb8934 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt @@ -0,0 +1,39 @@ +Binding for MTK SPI Slave controller + +Required properties: +- compatible: should be one of the following. + - mediatek,mt2712-spi: for mt2712 platforms + +- reg: Address and length of the register set for the device + +- interrupts: Should contain spi interrupt + +- clocks: phandles to input clocks. + The first should be one of the following. It's PLL. + - <&topckgen CLK_TOP_UNIVPLL1_D2>: specify parent clock 312MHZ. + It's the default one. + - <&topckgen CLK_TOP_UNIVPLL1_D4>: specify parent clock 156MHZ. + - <&topckgen CLK_TOP_UNIVPLL2_D4>: specify parent clock 104MHZ. + - <&topckgen CLK_TOP_UNIVPLL1_D8>: specify parent clock 78MHZ. + The second should be <&topckgen CLK_TOP_SPISLV_SEL>. It's clock mux. + The third is <&infracfg CLK_INFRA_AO_SPI1>. It's clock gate. + +- clock-names: shall be "parent-clk" for the parent clock, "sel-clk" for the + muxes clock, and "spi-clk" for the clock gate. + +- spi-slave: Empty property indicating the SPI controller is used in slave mode. + +Example: + +- SoC Specific Portion: +spis: spi@10013000 { + compatible = "mediatek,mt2712-spi-slave"; + reg = <0 0x10013000 0 0x100>; + interrupts = ; + clocks = <&topckgen CLK_TOP_UNIVPLL1_D2>, + <&topckgen CLK_TOP_SPISLV_SEL>, + <&infracfg CLK_INFRA_AO_SPI1>; + clock-names = "parent-clk", "sel-clk", "spi-clk"; + spi-slave; + status = "disabled"; +}; -- 1.7.9.5