Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2091537imm; Mon, 3 Sep 2018 18:54:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbhtQUcGERrlKXJ21HHnMGyXGk3PNL1b1lk0q1aCfRx9+UqBRvPLsGNkSaJbXG0IS/PcGo8 X-Received: by 2002:a17:902:744a:: with SMTP id e10-v6mr31347454plt.165.1536026067566; Mon, 03 Sep 2018 18:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536026067; cv=none; d=google.com; s=arc-20160816; b=eVXz2FpNk8OKxmJvDyvncoT/7UrW1kkDKVsufHFRTVFJhIzMewSL+jQJHRoDQ9sWzW tlcyVUJTkLUA+hHX4PiwSaIucLB0AINkJ1mR/NSa+yTUAIuM5NdqFnHRkao2y4CAk/l9 wNdT6io+jXl9/29oVQuhB3vB+IOSFX6kfhANaCJ6J9nmTpAt96UQHvu8PN2y6Cfn30xq rjCm+tXKIpLRorKHic3ThLsXDFcEZjBcVxiVkpVMmCX9vg+bz92PzAxqMLRarXbk/83Y ocJ4buI2cnfB7CbVI5v+q2y1SC/JFh1QVm8hgV9/aioHSCOE8CW41GPwpth5tJkEWggN 1caw== 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=0UA/zBjYlrYxeiUTayx5D1L1Xmabq4voN6W/kLnUnGE=; b=oDlWIGyFuqXRMlX02qrPqRfKpopuiGNgS4PA/VolRAzAXa8IoILlvoYjGR83EI2m3W Hga0EsFxOHUSCFPgTAtszUg79h9bXXRAZkc7vvtFROiR3y2hE28wsatlJvs82vkLFV07 Lf6dFeaLLsqsdj6DdeZylhrM9frkG2XJJ91TGHOUOpBGTnrNhh4DaY97noJohoQT/eRa oaaFUjOE/PeX79ITb674sTmVYuSpq5r0TIUpSz/BOOVAPG2e+5ESB8NXYRZxtHj7knZw PxikFKkZNRsz3Mhp84gGo0cjFOfg11UPEIy2Hg8AZCg8jtS9YBF9bw1n9mTb/hsZdvqL 9x0Q== 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 n3-v6si19477541pgh.359.2018.09.03.18.54.12; Mon, 03 Sep 2018 18:54:27 -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 S1726319AbeIDGOv (ORCPT + 99 others); Tue, 4 Sep 2018 02:14:51 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:63641 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725911AbeIDGOv (ORCPT ); Tue, 4 Sep 2018 02:14:51 -0400 X-UUID: 4fdd7678e71c4b458a8d078f2d77ffc4-20180904 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1234789877; Tue, 04 Sep 2018 09:51:53 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 4 Sep 2018 09:51:51 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 4 Sep 2018 09:51:50 +0800 From: Leilk Liu To: Mark Brown CC: Mark Rutland , Matthias Brugger , Sascha Hauer , , , , , , , , Leilk Liu Subject: [PATCH v2 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform Date: Tue, 4 Sep 2018 09:51:44 +0800 Message-ID: <1536025906-24422-2-git-send-email-leilk.liu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1536025906-24422-1-git-send-email-leilk.liu@mediatek.com> References: <1536025906-24422-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 | 35 ++++++++++++++++++++ 1 file changed, 35 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..d379369 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt @@ -0,0 +1,35 @@ +Binding for MTK SPI Slave controller + +Required properties: +- compatible: should be one of the following. + - mediatek,mt2712-spi-slave: for mt2712 platforms +- reg: Address and length of the register set for the device. +- interrupts: Should contain spi interrupt. +- clocks: phandles to input clocks. + It's clock gate, and should be <&infracfg CLK_INFRA_AO_SPI1>. +- clock-names: should be "spi-clk" for the clock gate. +- spi-slave: Empty property indicating the SPI controller is used in slave mode. + +Optional properties: +- assigned-clocks: it's mux clock, should be <&topckgen CLK_TOP_SPISLV_SEL>. +- assigned-clock-parents: parent of mux clock. + It's PLL, and should be on of the following. + - <&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. + +Example: +- SoC Specific Portion: +spis1: spi@10013000 { + compatible = "mediatek,mt2712-spi-slave"; + reg = <0 0x10013000 0 0x100>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_AO_SPI1>; + clock-names = "spi-clk"; + assigned-clocks = <&topckgen CLK_TOP_SPISLV_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL1_D2>; + spi-slave; + status = "disabled"; +}; -- 1.7.9.5