Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1145406imm; Mon, 9 Jul 2018 18:28:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc/CaWYN4C3+yludivrapIUBiNLDr5TZr0eNswf9f5vv5K2Aic1KwyivC9jDeCjCvUtNuWX X-Received: by 2002:a63:220d:: with SMTP id i13-v6mr14979899pgi.212.1531186086557; Mon, 09 Jul 2018 18:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531186086; cv=none; d=google.com; s=arc-20160816; b=nCJfi+Q0koeeZAp3wert7lHdjUY8JTsMXfN5s6OxhAqkjasaL3IUnJpFzzgNZ0uqBH IQANUcY3rwFE//EHhydrdtD9ZyA4UsDOe6PPcD8KYLLXV9yhlaT2KtnoTbvjJNKqFegC lH/iUHylDK5VZS4A+36Bw2DnwF4icLoMA1RKEq0+Jw+8hFmMZNJypnvdfQp9m0Axpygk n34nhaxR4FUezZDfbo1Xp9kLEgpyp/mhEGzZALj6cY26hf6w6hkTbpMAyBe9iLnjuvpe Dzi6vhWH6Cf5mTX9q3QjtE0EDOw8PXWt/rnpC0h4siN6yhYcMS1nma/X6wWZRUBa3pKM GVqA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=YY9SJxDmgip145G5Z2EwKEKbL9/moR8jZJmT64RB4Io=; b=gq7Y7MdYJBfBXE2YzHSwZMaWBu9zdB+/s3LIUQNDQstqzLmh8dvzKJXxFhY/O1LsRo B3ktpAekKRn5iEFssbjdfJdBCJ7PaHdc8ANNILGBq5qOM5Zg3Q34+EN0Q3lkUjr40FLz G58ofz/8u7WggQSf4lNON+sghzOeOHf136KSBzquilxJQ2/ek0niVkdUnXgAspTdQ6Q3 o5+vLrpH4dbs4XoUUqlA999KtEDXIg/ZomThLHLj2RMqfsOth7rAW/yF8huHNKkktdt0 5IoVzDWZ7pG02mOr/xykkoR2oIcNmNAD4l831x1QvBppykkJp9o4PUwE4v/7+t7AstNs 726A== 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 b184-v6si17092172pfg.94.2018.07.09.18.27.51; Mon, 09 Jul 2018 18:28:06 -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 S1754664AbeGJB0u (ORCPT + 99 others); Mon, 9 Jul 2018 21:26:50 -0400 Received: from mail-sh2.amlogic.com ([58.32.228.45]:34613 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754581AbeGJB0n (ORCPT ); Mon, 9 Jul 2018 21:26:43 -0400 Received: from [192.168.90.200] (10.18.20.235) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 10 Jul 2018 09:25:57 +0800 Subject: Re: [PATCH 0/3] pinctrl: meson-g12a: add pinctrl driver support To: Martin Blumenstingl References: <20180704224511.29350-1-yixun.lan@amlogic.com> <78da7e13-e80b-d714-86d0-7c5f6fc0d9f5@baylibre.com> <886462fa-1833-a99a-a2fa-5b7dd58341fd@amlogic.com> CC: , Neil Armstrong , , , , , , , , , , , From: Yixun Lan Message-ID: <9fa17a38-236f-1d83-97fa-beb06046f023@amlogic.com> Date: Tue, 10 Jul 2018 09:26:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.18.20.235] X-ClientProxiedBy: mail-sh2.amlogic.com (10.18.11.6) To mail-sh2.amlogic.com (10.18.11.6) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI Martin: thanks for your suggestion On 07/10/18 06:02, Martin Blumenstingl wrote: > 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 > Yes > > >> 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 > sure >>> 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) I can add a comment > > Regards > Martin > > . >