Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7250621imm; Tue, 28 Aug 2018 08:46:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY+2tV9ykQXnWoGvRGKcp4Cu+rJcGNOd6hmyeap8PPbkmfDoSD5iDe+agS0I9xzk33k8eEt X-Received: by 2002:a65:5a81:: with SMTP id c1-v6mr1616969pgt.120.1535471163630; Tue, 28 Aug 2018 08:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535471163; cv=none; d=google.com; s=arc-20160816; b=LQXTTS7fYfFjb/1BBIPbFwY4B0pTbE2jfXIXXhKf1/wTakvT17tsy5cdC82F2HLPpq BqMjMRnUSjfGbHqAvfUNS3RfR1ZZ5oIdqCAhNO+DWUD8iqsctmVq+Whg41tpOkhX868w VYPYyd7bT5y1ALQGVQKlx0v0Jh9BSh7zlSqIZ9VzWO2qx+VGqsgm55ZDEY8IHrIH+Z/J zVQv2FeWtT5xja60wtlzBPHd93wxLRUj354gUY5u693RDby5ZKmCrUx9XEXbI6Ld/bQS 7GlIqh6CUdOX7ZvPp34kKtR5/WrUjVVD/y7lG/gdO1YPLw9xQpmH8NN6K3u6u2fdpluD IyXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=6scLo5QvXKw9KWomkNV5R5201be5jne89uP5ua45/Bk=; b=WfbEetJW+nFXA2p4BTZlrIPlw7AkxuxzKsJN19yHjvymCGou2PHwhpDtga3/mNjKvc bTI/DOx2UgXMrzWrIYS8/D9FLeXsAyEPBe966u+HkofLfpHoTnHEQT8J+nuhYh5OxGGs CkGrEsmQ3GfWnxtEMoUgwzn2sIPlPSpg/5p8YCQVavQcQPdI9ZZibpvgOt21ijEpXXbt L7TxDV3ZQmnKQKcwkvMM06aAyDueKrd3nI0tS8G2TS9TNsHTt2giRhV2smXTafsq/9/4 Bxdb9c97hArdt44+Z92BNWcKscC2C6lyl6n1KCSS1S6XQSTz+SiOi/NYDcmMtGl1G+Rc qUJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LvcUVRBt; 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=pass (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 x26-v6si1119772pfn.286.2018.08.28.08.45.47; Tue, 28 Aug 2018 08:46:03 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LvcUVRBt; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727292AbeH1Tgk (ORCPT + 99 others); Tue, 28 Aug 2018 15:36:40 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:45408 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbeH1Tgj (ORCPT ); Tue, 28 Aug 2018 15:36:39 -0400 Received: by mail-ed1-f68.google.com with SMTP id p52-v6so1711943eda.12; Tue, 28 Aug 2018 08:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6scLo5QvXKw9KWomkNV5R5201be5jne89uP5ua45/Bk=; b=LvcUVRBtiJOjYmWAXUGEYz+ew3vz2Cb2IH90tOppuza8iUBl3MCxY152JFae1wruKU rkvfpCBY567+rX+2yrwaJOG3phMRzjoncVOSscBlri/Ei9HOI4mO/pWk6l3ht/kRA9Sc 5I/FG7APbW6VD3D2elHpzNRPX31PPIj79ydf4xAmj4dfygMA1FWARq/IgC8s6pIhzxR9 IRPE3qt5H3d5xI1rKO6U85rEWKqiwQGJLOFDLqQ3b93Vp4D9fpH1PcaZ57NzPbaYgWuH 6MiMRYEl5A/Ypy8sD28T0FGv/wON8CqErMnO5Csh0k4CAZtY9qXMWXHLXMD/CS5inwzH beMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=6scLo5QvXKw9KWomkNV5R5201be5jne89uP5ua45/Bk=; b=ViAXYENx/H237MUFgUJTjwfUbMnPUvD1GE3c4BuiALzGyC+4uZCCdKMmIQNGwWaUdc GZsLDwc7gWH7TQvo3VFk9kdfkETwZ7VRUOeQ8wG077JXPxujA6Z8KPIRV/yz1fi+iJ/i tzonNLyIyAN5YajCYmLDttOBTMtznl8RyORRE/624WX+y2WOfuMJCcQdh4i2s2umErVE gJGgxZz8uU7nFONY0zlU/O0iK6srdSAd5wh021GbXtPdyjU3wSBfDd806d6WXaZnKc/Z 9x2iSuuEo7z4Q6jOykxpb/apMOSIsl5K0Rr0GPwmaXvqFG+eGHl4Y8CthAOWQdGicyyI C3bQ== X-Gm-Message-State: APzg51DwNxmGDYAOLAgFwnU5qI7rPWb270E18UjsSdH5FcRL3J6Cfo+E 07IVKKb+bSTAaX8Ucbzw/Xo= X-Received: by 2002:a50:b158:: with SMTP id l24-v6mr3166595edd.31.1535471063464; Tue, 28 Aug 2018 08:44:23 -0700 (PDT) Received: from ziggy.stardust ([37.223.146.99]) by smtp.gmail.com with ESMTPSA id e25-v6sm763665edd.35.2018.08.28.08.44.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 08:44:22 -0700 (PDT) Subject: Re: [PATCH 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform To: Leilk Liu , Mark Brown Cc: Mark Rutland , Sascha Hauer , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-mediatek@lists.infradead.org, mengqi.zhang@mediatek.com, yt.shen@mediatek.com References: <1535437685-30230-1-git-send-email-leilk.liu@mediatek.com> <1535437685-30230-2-git-send-email-leilk.liu@mediatek.com> From: Matthias Brugger Openpgp: preference=signencrypt Autocrypt: addr=matthias.bgg@gmail.com; prefer-encrypt=mutual; keydata= xsFNBFP1zgUBEAC21D6hk7//0kOmsUrE3eZ55kjc9DmFPKIz6l4NggqwQjBNRHIMh04BbCMY fL3eT7ZsYV5nur7zctmJ+vbszoOASXUpfq8M+S5hU2w7sBaVk5rpH9yW8CUWz2+ZpQXPJcFa OhLZuSKB1F5JcvLbETRjNzNU7B3TdS2+zkgQQdEyt7Ij2HXGLJ2w+yG2GuR9/iyCJRf10Okq gTh//XESJZ8S6KlOWbLXRE+yfkKDXQx2Jr1XuVvM3zPqH5FMg8reRVFsQ+vI0b+OlyekT/Xe 0Hwvqkev95GG6x7yseJwI+2ydDH6M5O7fPKFW5mzAdDE2g/K9B4e2tYK6/rA7Fq4cqiAw1+u EgO44+eFgv082xtBez5WNkGn18vtw0LW3ESmKh19u6kEGoi0WZwslCNaGFrS4M7OH+aOJeqK fx5dIv2CEbxc6xnHY7dwkcHikTA4QdbdFeUSuj4YhIZ+0QlDVtS1QEXyvZbZky7ur9rHkZvP ZqlUsLJ2nOqsmahMTIQ8Mgx9SLEShWqD4kOF4zNfPJsgEMB49KbS2o9jx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XKgsFpNMKmBAWweBkVJAisoQeX 50OP+/11ArV0cv+fOTfJj0/KwFXJaaYh3LUQNILLBNxkSrhCLl8dUg53IbHx4NfIAgqxLWGf XM8DY1aFdU79pac005PuhxCWkKTJz3gCmznnoat4GCnL5gy/m0Qk45l4PFqwWXVLo9AQg2Kp 3mlIFZ6fsEKIAN5hxlbNvNb9V2Zo5bFZjPWPFTxOteM0omUAS+QopwU0yPLLGJVf2iCmItHc UXI+r2JwH1CJjrHWeQEI2ucSKsNa8FllDmG/fQ== Message-ID: Date: Tue, 28 Aug 2018 17:44:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1535437685-30230-2-git-send-email-leilk.liu@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/08/18 08:28, Leilk Liu wrote: > 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 Do I understand correctly that mt6xxx, mt7xxx and mt8xxx SoCs have a totally different architecture then mt27xx so they will need a totally different binding. If not, then please rename the binding description file and the driver. Regards, Matthias > > 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"; > +}; >