Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1002970imm; Mon, 9 Jul 2018 15:04:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfgrzVznNUaiBzmyYKu94pxbOhbbKnqkBHAP9VD5OEOyFhJr+j3TKAuF10PoVF7ceLlZqBA X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr23200126pfd.181.1531173862809; Mon, 09 Jul 2018 15:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531173862; cv=none; d=google.com; s=arc-20160816; b=RwdzGYaeRJOXpeqlfq9/SsYiexgXFJ2pjPMWW3/VgnlqWFwvN91YhuSeDKHmWqRDpz lgaE/sEjeiziuqNC/VTZELTZYW4o30HVaqpR7n0V19ZF+QgxXyGov294ruzgX58yJMrC vI805AejAg/UL5h0QpL/hY6SDwOkpJ15jleMN6gMmDFj/3ZcAIpBIbnRsz7SBzcevMaE FpaV3wjxP1hHS24B6s00jOsWehLd46hOCBLY79+ncgDjFkvrvl0gsAfJgyg23H9m9l47 1c39t6udfQGaJ1VzwjH91vLzvhTnchGNB09j8sPNuQIAA4+eV7+MKUaIUHC07qfc8Ism WUXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=+Cjxr5G5Y1GIBpOUfNW+gT1ntZISUPWUTZfcc9q89cs=; b=mAsfwjE19r04qELKj3GkSKQecqbvnUrPZhDU0VI8C80pSUFv87JE294i+lwZiVJU6K q9d7MS9HW5/igspNu+gXs3Y6+VMca6ImGbHTCgOY8pprSd35KxGD+wMSKf/fML3A2q61 wL+rdkUJp2kDUDHrfxmgPCQNAOXi2GS1bsnqYG8+ePtNLWUnOsIhcZmIOyfFraGUdtRM B+gHE9PiWLiy8HVWueuWpevjbhqt1Re1aHPkiWK9CkHyN4n8xXbFpLRcmCnMPr3uxV03 F6Bt3BsmgulAVLT3BYOADu1EoUrppWKjFWhS00Ya7Dz8kdvxwNn3osAT6B0RnnxpP6uo ZawA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=CudhMX3c; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13-v6si14054329pgv.374.2018.07.09.15.04.07; Mon, 09 Jul 2018 15:04:22 -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=@googlemail.com header.s=20161025 header.b=CudhMX3c; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933352AbeGIWDG (ORCPT + 99 others); Mon, 9 Jul 2018 18:03:06 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:40896 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933025AbeGIWDE (ORCPT ); Mon, 9 Jul 2018 18:03:04 -0400 Received: by mail-oi0-f66.google.com with SMTP id w126-v6so38813224oie.7; Mon, 09 Jul 2018 15:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+Cjxr5G5Y1GIBpOUfNW+gT1ntZISUPWUTZfcc9q89cs=; b=CudhMX3cM7mRIl9cD/A70tq1c+wrxdLpYI8D4IqUDUo82jK/7KWjvky/3DyqiRwzJc 46QaiVRsK4ogLbKd+LJAhlD6hRJHpe3ZKlH2JoNgBHF9KAHoIZvkmXXlbRUWipqIr4bA dBc85i9A30cT6JX9K9plLRP12LsFVUaXFhxogPKp+PNQRwRGywPATMetGWlG2m0bYBaL t+19nyppjzfS5q4w7EcM5WmPhARmxiYgdQpGTFhRoEQQnfbDvvHPhK5KvQDMfP2q3CxX OvO/RjeccBuirCR5jYB9FwRgXUaqtKgVoP3Q2j+B2h0VE2gWBvN8mn7ILIklRtIzS4fq r09g== 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; bh=+Cjxr5G5Y1GIBpOUfNW+gT1ntZISUPWUTZfcc9q89cs=; b=uUQyEvtFPNxZJMRYeyxLMpv8KZK0XXnSLUZ2JepELY0r3d/0G5JE4TV3HKqDmoeS72 kY/9DHcXtHWDN3bhyrg6Z1nwOMOsPge640JS9An7rJSgCfc/ynjOhTbPoINTZgDYTyZi 7Z4ZBEJAtnvDCFlozxSeqmBNFTiyGhF/paRq9olpG4o4um9ifMhVu0e1Gk23bkQSWpxw iotjkLwkrwYVgGOZ2IglPJWNxpinJQWwVtSQJiwhINWLFCYujd7qUsXHfNQlnEf8T0BA 5fDchvd33QbUwz4Lt6O+aOWIfoOOeEKhJu+lxwkN/JODtKoSpeLfkZfc766HdqFBOTax Uerg== X-Gm-Message-State: APt69E2dmckTx3XGmKk/asZmhg/Kd0wes2Joo4rahbKw9WCgXWk5E/K0 OBWHeDxvMAZKyV1TaGpXWTbbSyvl9phRbaVs1ec= X-Received: by 2002:aca:edc1:: with SMTP id l184-v6mr992336oih.65.1531173783675; Mon, 09 Jul 2018 15:03:03 -0700 (PDT) MIME-Version: 1.0 References: <20180704224511.29350-1-yixun.lan@amlogic.com> <78da7e13-e80b-d714-86d0-7c5f6fc0d9f5@baylibre.com> <886462fa-1833-a99a-a2fa-5b7dd58341fd@amlogic.com> In-Reply-To: <886462fa-1833-a99a-a2fa-5b7dd58341fd@amlogic.com> From: Martin Blumenstingl Date: Tue, 10 Jul 2018 00:02:52 +0200 Message-ID: Subject: Re: [PATCH 0/3] pinctrl: meson-g12a: add pinctrl driver support To: yixun.lan@amlogic.com Cc: Neil Armstrong , linus.walleij@linaro.org, linux-gpio@vger.kernel.org, robh@kernel.org, devicetree@vger.kernel.org, khilman@baylibre.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, carlo@caione.org, linux-amlogic@lists.infradead.org, xingyu.chen@amlogic.com, jbrunet@baylibre.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yixun, On Thu, Jul 5, 2018 at 4:53 AM Yixun Lan wrote: > > HI Neil > > On 07/04/18 22:57, Neil Armstrong wrote: > > Hi Yixun, > > > > On 05/07/2018 00:45, Yixun Lan wrote: > >> This patch series try to add pinctrl driver support for > >> the Meson-G12A SoC. > > > > Thanks for submitting these patches. > > > > Can you explicit this patchset with more details on the G12A SoC family ? > > It's relationship with AXG and the differences in term of pinmuxing with the other SoC families ? > > > I thought this was already discussed while we doing pinctrl driver for > Meson-AXG SoC. > > Anyway, here it is: > > Starting from Meson-AXG SoC, the pinctrl controller block using 4 > continues bit to specific pin mux function, while comparing to old > generation SoC which kind of using various length bits for the pin mux > definition. The new design would greatly simplify the software model.. > > for detail example, one 32bit register can describe 8 pins, and each of > them has 0-7 value to set, start from value 0 to 7. > > partition the register into 8 parts: > bit[3:0] > bit[7:4] > bit[11:8] > bit[15:12] > bit[19:16] > bit[23:20] > bit[27:24] > bit[31:28] > > > for each value: > value == 0, means the pin is GPIO > value = {1, 2, ... 7 } is one of specific PIN function OK, so AXG and G12A use the same register layout -> thus the same pinmux ops are re-used > I could put this info into cover-letter or commit message? if you have to resend this series anyways then it would be great if you could add it to the commit description > > Why is there a GPIOE bank within the AO controller ? > > > > It actually sit in the AO domain, although it's sounds strange from the > naming.. > > I'm not sure if it's good idea to append a AO suffix? since the > documentation just use the plain GPIOE I am fine with plain GPIOE if that's what your internal documentation uses it would be great if you could add a comment (or at least a note in the commit message) indicating that this is how the hardware is designed (initially I thought this was a bug since I have no documentation for the G12A chipset) Regards Martin