Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp221794oof; Mon, 24 Sep 2018 19:21:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV63B8PI2c+XWtYIgL6JYiUbZv4zn6T0x4RfHtmlpIcU9BqrZ+EMMuEPVZdDFCUc0HKLaIHVC X-Received: by 2002:a17:902:74c8:: with SMTP id f8-v6mr1273725plt.95.1537842084215; Mon, 24 Sep 2018 19:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537842084; cv=none; d=google.com; s=arc-20160816; b=rd32nd/g62tfNKpwE72MBvLNfa9o/TLBFSdMik+0RWVEdVtemcO/hTN5HKOYwfZ+EM fvYKi3qaOZEljCF2Hpm91hvjNGwhhWkHwXlc+MlBSI/7ZdMlzySyvikWJrSelVMIMdNQ CKddnpFHDwP/4QkpkAyv5becKo7TgJ3BU1rzApc1eeIW/C7yBvG9ynSu2GpmWGDhZwqi LH0WJEGtqwoeVNnAk8lYcYNs7rUIYbIXQJB0A/i+NPjgqAk91hmvnLTitVfRQQ1/fUXD dV/uvbxovO78DfoXlye1MzLVn0w5M2kxi4aJFJ+PDXelukQsS79WgT6iKbdM3gepEoZ4 IHjQ== 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; bh=SCGgjhgstw60GgnS1pfBySxDV8/CAmNd8yqJ7Qx84VM=; b=P325UKK0EjGwPJOeB3M+5pzCz++Ke02NKlgGR/uFgAwOH0i+iyXFwKnavTFHbA6dHW Apf9JwT8S3IUfgAftcJAG28JTOJ97u03WGg9ocWZprMLmJRAlcDKr9vumJge/xSxSFPT 3iEe5Quah3KN8qO4oArsUB7hQayWOEQyOfxpiFCVcSiHUux7sLx6XWKajsCJdP+Vec5v F5FH34QgldzGH6xAxcuu4o4TEPl0/tAU9RngiSK2f7MjretuPS4fBpwhqhqaM9YfRhYi /owYyEh6ZLpBjRk6GtNDalRWXpKQIqJdkQhx4zN7NYvT91bHdE1fathUTDBTRiBMNtu1 GS/g== 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 r21-v6si974675pgi.690.2018.09.24.19.21.08; Mon, 24 Sep 2018 19:21:24 -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 S1727698AbeIYI0H (ORCPT + 99 others); Tue, 25 Sep 2018 04:26:07 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33224 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727410AbeIYI0G (ORCPT ); Tue, 25 Sep 2018 04:26:06 -0400 X-UUID: dac8a18b4f9c4f0fbbee2dad81593109-20180925 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1977793686; Tue, 25 Sep 2018 10:20:49 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 25 Sep 2018 10:20:47 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 25 Sep 2018 10:20:46 +0800 From: Leilk Liu To: Mark Brown CC: Mark Rutland , Matthias Brugger , Sascha Hauer , , , , , , , Leilk Liu Subject: [PATCH v4 1/3] spi: mediatek: add bindings for Mediatek MT2712 soc platform Date: Tue, 25 Sep 2018 10:20:41 +0800 Message-ID: <1537842043-15255-2-git-send-email-leilk.liu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1537842043-15255-1-git-send-email-leilk.liu@mediatek.com> References: <1537842043-15255-1-git-send-email-leilk.liu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: D5A961C7741076093A5FD8CDEB2B9FFB9D3D3051F8FF60CF4560D388FF42FEE72000:8 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 | 32 ++++++++++++++++++++ 1 file changed, 32 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..09cb2c4 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt @@ -0,0 +1,32 @@ +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" for the clock gate. + +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"; + assigned-clocks = <&topckgen CLK_TOP_SPISLV_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL1_D2>; +}; -- 1.7.9.5