Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp133969imm; Wed, 4 Jul 2018 19:54:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc5dLMB+b6U46jmo0OFuFfnNFIKLZFpIhpL0eLONKqyPA87hRG0M1U1LevHRMNl3s1YZjEM X-Received: by 2002:a62:6a01:: with SMTP id f1-v6mr4487179pfc.156.1530759298588; Wed, 04 Jul 2018 19:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530759298; cv=none; d=google.com; s=arc-20160816; b=xTqGoSy6ujnFyygFFjCGzQtSIzsbq8CzCx7w2qxOqcFoXmyvo7NZF0M6+Y5vDpcYB7 lYfcES4lGpEO+8olNPTgOg6a5jUzt9amH3INQAtugupi9vo+8uHBHjzGcuQA0gnrlghF MvUoaBdTliI6FkQgNuhEmdsmLeKWPImgLGfsTJhgdyaUS7OKj6q/DYwrwIId4mJnc5lW Pr13cCGX3BIbl/DXvM3rp20PNR350OGUq9u3dTi27MzEr1jX3964KS7Z79v9rojNDta9 p4vNPS+Q1+/4ryYmFdMcTQdUeQB6ncwPV0QtClECpeKCuQgbo4JmfqaYSY1nY0YBjIKS N1rg== 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=GbfVIKu2mX8/Ff/KNaAQVirPF+zhgNLoy2IEVm1TxKE=; b=WayN5cQAZai8O/0CEvg48A7UjPzrNVqX4SA/fCvZKrk8ttkOWGt0Q7rS3WndiQfc8B ZOAYaRKux29jLoTX4LbI8o6ZR4Rso68jkd0kSLSayXGw8bcs5SbTA8Y1CbvGsJmxo4gO rqj/cxRIaSNd6/ndAcYmucnLRO01bO1Iaz8JqR3AEvYSm8edJBIwbRKeB4RgU1EYwXW+ 4lVtWDktuKkenOOoxKugqskqRIcBaN4Jvs+ZkiNDKbzI7vU2vd0hLmbbTI8kO7PUJ7lk ZIT9PLNpCPyOQk5RSMVDWlIopsBnUoQngryohIULj2pOQo4SM51zOOB0+PUnik1qRNVk elSA== 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 e62-v6si5119363pfe.327.2018.07.04.19.54.43; Wed, 04 Jul 2018 19:54:58 -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 S1753272AbeGECwk (ORCPT + 99 others); Wed, 4 Jul 2018 22:52:40 -0400 Received: from mail-sh2.amlogic.com ([58.32.228.45]:40761 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753002AbeGECwi (ORCPT ); Wed, 4 Jul 2018 22:52:38 -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; Thu, 5 Jul 2018 10:51:49 +0800 Subject: Re: [PATCH 0/3] pinctrl: meson-g12a: add pinctrl driver support To: Neil Armstrong , Linus Walleij , References: <20180704224511.29350-1-yixun.lan@amlogic.com> <78da7e13-e80b-d714-86d0-7c5f6fc0d9f5@baylibre.com> CC: , Jerome Brunet , Kevin Hilman , Carlo Caione , Rob Herring , Xingyu Chen , , , , From: Yixun Lan Message-ID: <886462fa-1833-a99a-a2fa-5b7dd58341fd@amlogic.com> Date: Thu, 5 Jul 2018 10:52:12 +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: <78da7e13-e80b-d714-86d0-7c5f6fc0d9f5@baylibre.com> 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 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 I could put this info into cover-letter or commit message? > 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 > Thanks, > Neil > >> >> Yixun Lan (3): >> documentation: Add compatibles for Amlogic Meson G12A pin controllers >> dt-bindings: pinctrl: meson-g12a: document pin name >> pinctrl: meson-g12a: add pinctrl driver support >> >> .../bindings/pinctrl/meson,pinctrl.txt | 2 + >> drivers/pinctrl/meson/Kconfig | 6 + >> drivers/pinctrl/meson/Makefile | 1 + >> drivers/pinctrl/meson/pinctrl-meson-g12a.c | 1432 +++++++++++++++++ >> include/dt-bindings/gpio/meson-g12a-gpio.h | 114 ++ >> 5 files changed, 1555 insertions(+) >> create mode 100644 drivers/pinctrl/meson/pinctrl-meson-g12a.c >> create mode 100644 include/dt-bindings/gpio/meson-g12a-gpio.h >> > > . >