Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4396076ybc; Fri, 15 Nov 2019 04:05:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyo8EBLGs6qd2evoD7y/8joOfIfYMUNCqPRZAcnp0FQPH38bq8gX88kUOLilKwm1GkBaUDZ X-Received: by 2002:a1c:a743:: with SMTP id q64mr13903363wme.44.1573819533063; Fri, 15 Nov 2019 04:05:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573819533; cv=none; d=google.com; s=arc-20160816; b=v9sekhbHX3SHqRABO/g3Or+5AW+Ndkt6BWZS8EYrCUtXLNLUJmVtWw6jyCEPq4hHgh tSNNkJWN9VZY9L6v1jwyLuWfGtggxB7EPj89BaMR4NzBMJx/hZP1ICjU6OrTVpgS7EeS 3I945rBLzcpdqEbD+ncPyNb2whUEqv513vkmCpONRDQyLyslkgpij0sMZ/EC0u8CbuSI jpkijdIje/31dukm/KXyCwOk4PD/thzAnmOhga413/jfFoYDvltruWyFkHtlcTOvJanb 7YWv5R9XdB6AEA66rLrSO3S2L+iIC42w2/BoEXlmgxJz73KkQnvEhjTxfszuz+3j2dvw HV5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=KeECuR7nAcpODRgQ/++EHjrR+8mtaHYPUf2zmqQ8Iio=; b=GuguNU4Mt2IEfJj65u+7r+Lsyv+2rpbIH3AE/kwwMcnix0ZOEoL/nMHkAOR7zz0Px1 Fc11YoEYhwT15pcl9oezHVWR9WT563sjM3oiOMZgZe4sHG9OsLrPTvRuFb3PGlqLY17N Xjjl+tjCK82/Si90cvyAJeQKhQ44LwB5SZ2hZ9M21bYYWc4RWM2ac1O/D/LB8FRRF5fc g7MQKghGf4WzT2gyQqDKQ/OJlMQOuv9NiOi1/7qjYGMbEHkQasPjhBiFyHSSkPR2vWEj AVwctpr+Pwh8BruJvYTNyM+j311Oq4BNr8TU8VYSm4h32ND2oeSm+Z86cn04XJenGuuk xyZQ== 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 q6si5753614edr.194.2019.11.15.04.05.07; Fri, 15 Nov 2019 04:05:33 -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; 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 S1727420AbfKOMD7 (ORCPT + 99 others); Fri, 15 Nov 2019 07:03:59 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:22340 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727368AbfKOMD7 (ORCPT ); Fri, 15 Nov 2019 07:03:59 -0500 Received: from localhost.localdomain (10.28.8.19) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.1591.10; Fri, 15 Nov 2019 20:04:18 +0800 From: Qianggui Song To: Linus Walleij , CC: Qianggui Song , Neil Armstrong , Jerome Brunet , Kevin Hilman , Martin Blumenstingl , Carlo Caione , Rob Herring , Xingyu Chen , Jianxin Pan , Hanjie Lin , Mark Rutland , , , , Subject: [PATCH v6 0/3] pinctrl: meson-a1: add pinctrl driver Date: Fri, 15 Nov 2019 20:03:46 +0800 Message-ID: <1573819429-6937-1-git-send-email-qianggui.song@amlogic.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.28.8.19] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds Pin controller driver support for Meson-A1 Soc which shares the same register layout of pinmux with previous Meson-G12A, however there is difference for gpio and pin config registers in A1. Note that since dt-binding patch has been removed from this patch set, compiling need header file in patch 1 of [3]. Changes since v5 at [4] - modify return value when meson_map_resource return err or null for gpio/mux in meson_pinctrl_parse_dt. Changes since v4 at [3] - remove dt-binding patch for it can be merged first according to Linus Walleij's suggestion. - make SoCs before g12a share the same aobus dt paser function - make A1 dt paser function also as common part for later chip will re-use this definition. - modify meson_map_resource return value Changes since v3 at [2] - separate ao fixup from meson_pinctrl_parse_dt - provide ao extra dt parse callback for each SoC Changes since v2 at [1]: - make dt parser callback as a separate patch Changes since v1 at [0]: - collect Reviewed-by - modify commit log - add an extra dt parser function for a1 [0] https://lore.kernel.org/linux-amlogic/1568700442-18540-1-git-send-email-qianggui.song@amlogic.com/ [1] https://lore.kernel.org/linux-amlogic/1570532999-23302-1-git-send-email-qianggui.song@amlogic.com/ [2] https://lore.kernel.org/linux-amlogic/1571050492-6598-1-git-send-email-qianggui.song@amlogic.com/ [3] https://lore.kernel.org/linux-amlogic/1572004167-24150-1-git-send-email-qianggui.song@amlogic.com/ [4] https://lore.kernel.org/linux-amlogic/1573203636-7436-1-git-send-email-qianggui.song@amlogic.com/ Qianggui Song (3): pinctrl: meson: add a new callback for SoCs fixup pinctrl: meson: add pinctrl driver support for Meson-A1 SoC arm64: dts: meson: a1: add pinctrl controller support arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 18 + drivers/pinctrl/meson/Kconfig | 6 + drivers/pinctrl/meson/Makefile | 1 + drivers/pinctrl/meson/pinctrl-meson-a1.c | 942 +++++++++++++++++++++++++++++ drivers/pinctrl/meson/pinctrl-meson-axg.c | 1 + drivers/pinctrl/meson/pinctrl-meson-g12a.c | 9 + drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 1 + drivers/pinctrl/meson/pinctrl-meson-gxl.c | 1 + drivers/pinctrl/meson/pinctrl-meson.c | 38 +- drivers/pinctrl/meson/pinctrl-meson.h | 7 + drivers/pinctrl/meson/pinctrl-meson8.c | 1 + drivers/pinctrl/meson/pinctrl-meson8b.c | 1 + 12 files changed, 1017 insertions(+), 9 deletions(-) create mode 100644 drivers/pinctrl/meson/pinctrl-meson-a1.c -- 1.9.1