Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2304014ybt; Tue, 16 Jun 2020 02:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL044oktt9o0Zo/DFk0W7ZtR1Hwd9aJcoThuTun1J3HGsIpS1OR4MBR8Z7v/0ORtKP+M0w X-Received: by 2002:a17:906:a1cb:: with SMTP id bx11mr1837100ejb.526.1592299808761; Tue, 16 Jun 2020 02:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592299808; cv=none; d=google.com; s=arc-20160816; b=mD82MPjRdKgh+du44WceXzv+w1Nrv/t/1V3XmkQV1C0LloiGiPzTFtiq6ziCBAJ7Nk BNgy/uwL49OuMscXquZlmUKxS4ACN4ngmbFzHQMjHYoLc7RLl+nrwaNXIbZnMHNZy4ci bQ8RutPeQACmSfdWyL4rUCG83BixZb9yF3eQU6bJYnX5wwldqT25etsXwKVjFe1OLFpF gcKIrRg7rzA+h2B4rVFwvy/i5MPjcc87aJxY7qLda4gLbDpSdxsG6AaY5/GrVlc76mOC DiXvFzuQFN6JwU7LFiGrCsQQ/laQ0/NY6PWGkzk0/i/ES3p5DtraahOGsgRBJXduIk32 pdzg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=x3QhgzPYsk4YXww5OnxJ96yfR+po6PyrH4a8GDqlKe8=; b=p2Odj0T5ZkPskiWJa2+3WzZ4eHm/UBzsnjSJuEDMxJItCcazCoFY9NjM64MScMgJ23 +E8Acatc60lTW7NitnHoV23LI/IuhQDk1rW8e8mF8HynRUHeLjt4EzuRJIvXL6g5Xga9 CWW4bxf4sncknsIf6lZ4/e+2sdLP7+F8A15624t7I13izDGvXss7Lh9m6SI/e6angO7G kz+Gnvx7A1lhjZQ33Q0Vv33ru5t9LY9JsJSfv9njS4tSHMi15TqZ7L71KlUb6O301ZoH aLdM2SB9B12MDSmPWFiQc2NX7DEGPiJgi5EF5vkNcdfWwh4WnLu9wIulMB88gC8+YQoV Fj+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oP8HT6xP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h17si10421129eds.347.2020.06.16.02.29.44; Tue, 16 Jun 2020 02:30:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oP8HT6xP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727966AbgFPJ15 (ORCPT + 99 others); Tue, 16 Jun 2020 05:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgFPJ14 (ORCPT ); Tue, 16 Jun 2020 05:27:56 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A20A2C05BD43; Tue, 16 Jun 2020 02:27:56 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id x25so6780042edr.8; Tue, 16 Jun 2020 02:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=x3QhgzPYsk4YXww5OnxJ96yfR+po6PyrH4a8GDqlKe8=; b=oP8HT6xPm+Jd8PbfAnJfzBLJDQMtCiW9hmZNAZKWE8HMgB9EPpSEHL71WU9pKn9Arr dPhLjNWwKgbY7muygCZZh2ynHlxcaASViVzRpgRwsBjIPLzx2RP8PvYsx628zblvh9NC REIqD1Q18GODNR+fb5p3kx/zLM5eHsNKw58de5oUaRGQ08AoaHEpeNjPGBMyKk7UMMzu 7MGx2LJiJOl5kt/W0jEWbS4UoBYNXsggcskbAd8gr8MNi6Xov/1xHaue5xHFT0hVHzm6 ucMrcmix+hcukIsMqqjeGTpl4lLA3EpEm0P7SsV/fGWb8e+JE2c+WgtB/Ax4gh6eRMbO i+SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=x3QhgzPYsk4YXww5OnxJ96yfR+po6PyrH4a8GDqlKe8=; b=ZA5yR982d1j6RXCnRa4tuQRRbqz8Pf966576fI1OMfz/JIhDPB6tO+VYM/xagD0LDB mFIFBP5mr64wYn5DxwbN6sp8iFtVzX5XVRtSz1BaAHViBo3Tn9gKlyybXAhO2l9dMrqF GT49rnOoFmlU3wzwESs+n8Z6ZPlq7j2AUJ3JsWhFTmaWgY4wdTYbhx61eXqTqs1YXHd8 2h3gBGE/n6aBq3H5oQPphaLU/AqGd4xz4oGyjoso+3jTlb0t0BUgtVoaikLwK1+hDcXB lgS6LhXxBK++DfjywEF3hRiu0qO7Lhq6rRu5Y4Vu/XQPQb2AzCCj3FA3/Nec9RITL0Mp BPkA== X-Gm-Message-State: AOAM532Y/Q79k+SONReEd4Tj9JuJX+iTfRJXGoLulAfzkSWJsaGQtVOi Ku/nfWI4GwjtILSWlvKIRJzT74z8gDhsN+3VmzGKYlId3AE= X-Received: by 2002:a05:6402:1c87:: with SMTP id cy7mr1757571edb.354.1592299675040; Tue, 16 Jun 2020 02:27:55 -0700 (PDT) MIME-Version: 1.0 References: <20200522030743.10204-1-frank@allwinnertech.com> <20200522030743.10204-3-frank@allwinnertech.com> <20200522152803.twvfvuhd6ztunvll@gilmour.lan> <8c7a8eeb-f4ea-4df7-b381-5aeab6dd170a.frank@allwinnertech.com> <20200605151306.kqmyj673kux4sbaa@gilmour.lan> In-Reply-To: <20200605151306.kqmyj673kux4sbaa@gilmour.lan> From: Frank Lee Date: Tue, 16 Jun 2020 17:26:01 +0800 Message-ID: Subject: =?UTF-8?B?UmU6IOWbnuWkje+8mltQQVRDSCAyLzRdIHBpbmN0cmw6IHN1bnhpOiBhZGQgc3VwcG9ydA==?= =?UTF-8?B?IGZvciB0aGUgQWxsd2lubmVyIEExMDAgcGluIGNvbnRyb2xsZXI=?= To: Maxime Ripard Cc: wens , =?UTF-8?B?5p2O5oms6Z+s?= , "linus.walleij" , "robh+dt" , mturquette , sboyd , "p.zabel" , =?UTF-8?B?6buE54OB55Sf?= , linux-arm-kernel , devicetree , linux-kernel , linux-clk , linux-gpio Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI Chen-Yu, Linus, On Fri, Jun 5, 2020 at 11:13 PM Maxime Ripard wrote: > > Hi Frank, > > On Wed, Jun 03, 2020 at 05:44:36PM +0800, =E6=9D=8E=E6=89=AC=E9=9F=AC wro= te: > > >> + SUNXI_PIN(SUNXI_PINCTRL_PIN(F, 0), > > >> + SUNXI_FUNCTION(0x0, "gpio_in"), > > >> + SUNXI_FUNCTION(0x1, "gpio_out"), > > >> + SUNXI_FUNCTION(0x2, "mmc0"), /* D1 */ > > >> + SUNXI_FUNCTION(0x3, "jtag"), /* MS1 */ > > >> + SUNXI_FUNCTION(0x4, "jtag"), /* MS_GPU */ > > > > > >We should use another name here, since the code will just pick the fir= st one and > > >ignore the second. What about jtag-gpu? > > > > The underscores are used in front, so changing it to jtag_gpu may be mo= re consistent. > > Yep, that makes sense > > > >> + SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 7), > > >> + SUNXI_FUNCTION(0x0, "gpio_in"), > > >> + SUNXI_FUNCTION(0x1, "gpio_out"), > > >> + SUNXI_FUNCTION(0x2, "spdif"), /* DIN */ > > >> + SUNXI_FUNCTION(0x3, "i2s0"), /* DOUT0 */ > > >> + SUNXI_FUNCTION(0x4, "i2s0"), /* DIN1 */ > > > > > >I guess the second one would be i2s1? > > > > No, each i2s may have many inputs and outputs. > > > > SUNXI_PIN(SUNXI_PINCTRL_PIN(H, 19), > > SUNXI_FUNCTION(0x0, "gpio_in"), > > SUNXI_FUNCTION(0x1, "gpio_out"), > > SUNXI_FUNCTION(0x2, "cir0"), /* IN */ > > SUNXI_FUNCTION(0x3, "i2s3_dout3"), /* DOUT3 */ > > SUNXI_FUNCTION(0x4, "i2s3_din3"), /* DIN3 */ > > SUNXI_FUNCTION(0x5, "ledc"), > > SUNXI_FUNCTION_IRQ_BANK(0x6, 6, 19)), > > > > Considering that the same pin has multiple same functions, > > so add a suffix, like i2s3_dout3 and i2s3_din3? > > > > Or specify muxsel in the device tree may be another solution. > > Having muxsel is not really an option. We have two sets of bindings to > maintain already, adding a third one would make it fairly hard to > maintain. And the second binding we support is the generic pinctrl > binding, so I'm not really sure why we would want to move away from > that. > > And I'm not really fond of having a suffix either. It kind of breaks the > consistency we had so far, and ideally I'd like to keep that. > > Chen-Yu, Linus? Any input on that one? PING......