From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Mon, 15 Aug 2016 22:16:35 +0200 Subject: [U-Boot] [U-Boot, v7, 3/4] pinctrl: at91-pio4: Add pinctrl driver In-Reply-To: <1469006188-10815-4-git-send-email-wenyou.yang@atmel.com> (from Wenyou Yang on Wed, 20 Jul 2016 17:16:27 +0800) References: <1469006188-10815-4-git-send-email-wenyou.yang@atmel.com> Message-ID: <1471292195-22330-1-git-send-email-andreas@biessmann.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wenyou Yang, Wenyou Yang writes: >AT91 PIO4 controller is a combined gpio-controller, pin-mux and >pin-config module. The peripheral's pins are assigned through >per-pin based muxing logic. > >The pin configuration is performed on specific registers which >are shared along with the gpio controller. So regard the pinctrl >device as a child of atmel_pio4 device. > >Signed-off-by: Wenyou Yang >Reviewed-by: Simon Glass >Reviewed-by: Andreas Bie?mann >--- > >Changes in v7: None >Changes in v6: None >Changes in v5: > - Fixed the return value, -ENODEV->-EINVAL. > - Remove check on dev_get_parent() return. > >Changes in v4: None >Changes in v3: > - Rework due to the pinctrl device is regarded as atmel_pio4 > device's child. > >Changes in v2: > - remove meaningless comment. > - add else path for argument of pinconf. > - add inline attribute for atmel_pio4_bank_base(). > - add handle if the pinmux entries is greater maximum value. > > drivers/pinctrl/Kconfig | 7 ++ > drivers/pinctrl/Makefile | 1 + > drivers/pinctrl/pinctrl-at91-pio4.c | 182 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 190 insertions(+) > create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c applied to u-boot-atmel/master, thanks! I had to rebase this patch before applying. Best regards, Andreas Bie?mann