Received: by 10.223.176.5 with SMTP id f5csp538463wra; Wed, 7 Feb 2018 03:33:15 -0800 (PST) X-Google-Smtp-Source: AH8x225Xgy3M/7OgqdJ8ZtxeNk2t7ZLv1Q3WMe0chYr7SKhnX1bvXbCn44ciHwAlPEZLKiWwAA1S X-Received: by 10.98.63.15 with SMTP id m15mr5630976pfa.221.1518003195344; Wed, 07 Feb 2018 03:33:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518003195; cv=none; d=google.com; s=arc-20160816; b=sXNWC59bTC9/jjGXWVgUXVX8kB+FFjs4m4vDYypZ4CnKlnusdBnZ6ZKxqUE3ZQQ7PD IRWYTj+8v8E9Zl8Xhr3s54zK1ya4Ee9pAblYHuaTTvjab+UApE9wAStttOEC0LtQ+G8N 0lMEU3s7i56yc/+hQOdYcNd47F8pNDG9B/q3h750+PRLLoRWwSEpus+WBACFjR8zTWEV tPjxKcRNelp+ZdhBrVF7oynp0utfzHYPtHFsCRrmBuA4nDNJEk5qmcBcY4Xs2B7uQiye 4TILEKyDjsIkZiA+Ol6qXdOYBaIFTNxsGfcNoEv9kcb/G15mK8520J4uVMkoQyGgWnnL UpRw== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=NOymbqvAmut4f3hidUB1emykiKqQPyebmZfjE8YSsIY=; b=y6CcIPqFfc9aFDKAX2jDWJxECEpc5bgtmBZ5nxewr+/+R+iyEfGUKlysmYXFZ76ey9 uLiWi7vWQnjZBUQRzXZSrlNxlxIfHLJYHdM+zq/jOR2W+6lO4cf5zKUMlm10kV9rqJpO 2Ynbiv4W2dFqLI+Lg9j00hyGNjH7+gbOJb8ok7N6mzsh5U/m4rqaKgsEsJIrqi39CUfC 9pQjkB0pulwJjTg/tkSu1xVUGoN46TWTPcYsvjEnOwlqxxAUlH3K/llWUfiJyI9uPLbz gn1OXnfxbkfyKU4/vsByoxonvBpkGi7ESmXI7slKnhbCYnd0nL9HPnmdk8qaZyDq0UFj ggXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oV4tMGwc; 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 b31-v6si956725plb.24.2018.02.07.03.33.01; Wed, 07 Feb 2018 03:33:15 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oV4tMGwc; 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 S1753949AbeBGLbr (ORCPT + 99 others); Wed, 7 Feb 2018 06:31:47 -0500 Received: from mail-wr0-f176.google.com ([209.85.128.176]:40167 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753796AbeBGLbo (ORCPT ); Wed, 7 Feb 2018 06:31:44 -0500 Received: by mail-wr0-f176.google.com with SMTP id i56so629826wra.7; Wed, 07 Feb 2018 03:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NOymbqvAmut4f3hidUB1emykiKqQPyebmZfjE8YSsIY=; b=oV4tMGwc4MTLU7H1xSzumF/naNhNe3td2gtidkvSRN9aIfNy1lDqmgjdgLippMTZpC ntd9giJv9YdFVXwgdRUtWC9FZ3hbWFs/qUL9XzVB1ZgIhloOxckGl+PHggnNuZS2aDdg BncthdCXGF6Akzrl2tIBt55k98VfMrU05255z7gxctWaI9pGvy37FXK3gsUDleixSxee y8CtGAXZqQbbx4kcin/gTmtOZSeuiQfDABk/fyzUO5/T/CGphZJyuGp8GCq2QC+N7p92 SLCu6LEOl0VpsTkYuF0jBzWtCakVx4m4VHmbNqnOTVMvUcKKyiuDWodtB/jFqeS4xMM5 rGqg== 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NOymbqvAmut4f3hidUB1emykiKqQPyebmZfjE8YSsIY=; b=YK2o4kUNYzSpwjGEOpw07mCxiYl9rB7BnQA5C8Tskoq9QkVWjLz1/EHj2/LSJXJcmI GesO9VUc749zp25ZJRBY0jFo08we2hCB4IvbL9w2w0WQvnyepbUsMWJ00hVvALMErfVq UvUttQyOyPCwOUlLxldDksb7+Ptc6SdRGcLXFetNvNg5OJxW/7GdzZ93aS4WdivFNnBv u6vwNfvN2DFo5iI7Vg+rX/6+/QdidlcFv9C+PMHB3CdwCB1A1Vo4pbFYzN7sQdGptiDP exTOJtYjQrquj88irFAmYTkx59n98EpQ/8M/kYPoaR7e6FJE/giFubmIOy8bJVp+Epud Duag== X-Gm-Message-State: APf1xPDjzlDJUaqfcSG1zq3k3AvmApDLT55cLAkegbz2D6ypE9ZrHV99 JLHeM2aE5sZgc+7jvS/QlNjLZB5Q X-Received: by 10.223.208.135 with SMTP id y7mr4956688wrh.185.1518003102626; Wed, 07 Feb 2018 03:31:42 -0800 (PST) Received: from ziggy.stardust ([37.223.139.174]) by smtp.gmail.com with ESMTPSA id h32sm666451wrf.65.2018.02.07.03.31.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 03:31:42 -0800 (PST) Subject: Re: [PATCH v2 04/16] arm64: dts: mt7622: add pinctrl related device nodes To: sean.wang@mediatek.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <98781a6d32fcc8d42e4646a183246e70d5139154.1517910489.git.sean.wang@mediatek.com> From: Matthias Brugger Message-ID: <7f7d3d94-7d4e-9b66-048a-e100a45a2137@gmail.com> Date: Wed, 7 Feb 2018 12:31:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <98781a6d32fcc8d42e4646a183246e70d5139154.1517910489.git.sean.wang@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 02/06/2018 10:52 AM, sean.wang@mediatek.com wrote: > From: Sean Wang > > add pinctrl device nodes and rfb1 board, additionally include all pin > groups possible being used on rfb1 board and available gpio keys. > > Signed-off-by: Sean Wang > --- > arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 200 +++++++++++++++++++++++++++ > arch/arm64/boot/dts/mediatek/mt7622.dtsi | 7 + > 2 files changed, 207 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts > index c08309d..bd1093a 100644 > --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts > +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts > @@ -7,6 +7,8 @@ > */ > > /dts-v1/; > +#include > + > #include "mt7622.dtsi" > > / { > @@ -17,11 +19,209 @@ > bootargs = "console=ttyS0,115200n1"; > }; > > + gpio-keys { > + compatible = "gpio-keys-polled"; > + poll-interval = <100>; > + > + factory { > + label = "factory"; > + linux,code = ; > + gpios = <&pio 0 0>; > + }; > + > + wps { > + label = "wps"; > + linux,code = ; > + gpios = <&pio 102 0>; > + }; > + }; > + > memory { > reg = <0 0x40000000 0 0x3F000000>; > }; > }; > > +&pio { > + /* eMMC is shared pin with parallel NAND */ > + emmc_pins_default: emmc-pins-default { > + mux { > + function = "emmc", "emmc_rst"; > + groups = "emmc"; > + }; > + }; > + > + emmc_pins_uhs: emmc-pins-uhs { > + mux { > + function = "emmc"; > + groups = "emmc"; > + }; > + }; > + > + eth_pins: eth-pins { > + mux { > + function = "eth"; > + groups = "mdc_mdio", "rgmii_via_gmac2"; > + }; > + }; > + > + i2c1_pins: i2c1-pins { > + mux { > + function = "i2c"; > + groups = "i2c1_0"; > + }; > + }; > + > + i2c2_pins: i2c2-pins { > + mux { > + function = "i2c"; > + groups = "i2c2_0"; > + }; > + }; > + > + i2s1_pins: i2s1-pins { > + mux { > + function = "i2s"; > + groups = "i2s_out_bclk_ws_mclk", > + "i2s1_in_data", > + "i2s1_out_data"; > + }; > + }; > + > + irrx_pins: irrx-pins { > + mux { > + function = "ir"; > + groups = "ir_1_rx"; > + }; > + }; > + > + irtx_pins: irtx-pins { > + mux { > + function = "ir"; > + groups = "ir_1_tx"; > + }; > + }; > + > + /* Parallel nand is shared pin with eMMC */ > + parallel_nand_pins: parallel-nand-pins { > + mux { > + function = "flash"; > + groups = "par_nand"; > + }; > + }; > + > + pcie0_pins: pcie0-pins { > + mux { > + groups = "pcie0_pad_perst", > + "pcie0_1_waken", > + "pcie0_1_clkreq"; > + function = "pcie"; > + }; > + }; > + > + pcie1_pins: pcie1-pins { > + mux { > + groups = "pcie1_pad_perst", > + "pcie1_0_waken", > + "pcie1_0_clkreq"; > + function = "pcie"; > + }; > + }; > + > + pmic_bus_pins: pmic-bus-pins { > + mux { > + groups = "pmic_bus"; > + function = "pmic"; > + }; > + }; Some bikeshedding here. Can you please add function before groups, so that it is uniform through out the file? Thanks, Matthias > + > + pwm7_pins: pwm1-2-pins { > + mux { > + function = "pwm"; > + groups = "pwm_ch7_2"; > + }; > + }; > + > + wled_pins: wled-pins { > + mux { > + function = "led"; > + groups = "wled"; > + }; > + }; > + > + sd0_pins_default: sd0-pins-default { > + mux { > + function = "sd"; > + groups = "sd_0"; > + }; > + }; > + > + sd0_pins_uhs: sd0-pins-uhs { > + mux { > + function = "sd"; > + groups = "sd_0"; > + }; > + }; > + > + /* Serial NAND is shared pin with SPI-NOR */ > + serial_nand_pins: serial-nand-pins { > + mux { > + function = "flash"; > + groups = "snfi"; > + }; > + }; > + > + spic0_pins: spic0-pins { > + mux { > + function = "spi"; > + groups = "spic0_0"; > + }; > + }; > + > + spic1_pins: spic1-pins { > + mux { > + function = "spi"; > + groups = "spic1_0"; > + }; > + }; > + > + /* SPI-NOR is shared pin with serial NAND */ > + spi_nor_pins: spi-nor-pins { > + mux { > + function = "flash"; > + groups = "spi_nor"; > + }; > + }; > + > + /* serial NAND is shared pin with SPI-NOR */ > + serial_nand_pins: serial-nand-pins { > + mux { > + function = "flash"; > + groups = "snfi"; > + }; > + }; > + > + uart0_pins: uart0-pins { > + mux { > + function = "uart"; > + groups = "uart0_0_tx_rx" ; > + }; > + }; > + > + uart2_pins: uart2-pins { > + mux { > + function = "uart"; > + groups = "uart2_1_tx_rx" ; > + }; > + }; > + > + watchdog_pins: watchdog-pins { > + mux { > + function = "watchdog"; > + groups = "watchdog"; > + }; > + }; > +}; > + > &uart0 { > status = "okay"; > }; > diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi > index 81207e6..8211bf7 100644 > --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi > @@ -147,6 +147,13 @@ > #clock-cells = <1>; > }; > > + pio: pinctrl@10211000 { > + compatible = "mediatek,mt7622-pinctrl"; > + reg = <0 0x10211000 0 0x1000>; > + gpio-controller; > + #gpio-cells = <2>; > + }; > + > gic: interrupt-controller@10300000 { > compatible = "arm,gic-400"; > interrupt-controller; >