From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932756AbbFJPFF (ORCPT ); Wed, 10 Jun 2015 11:05:05 -0400 Received: from eusmtp01.atmel.com ([212.144.249.242]:21195 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751308AbbFJPE5 (ORCPT ); Wed, 10 Jun 2015 11:04:57 -0400 From: Ludovic Desroches To: , , , CC: , , , Ludovic Desroches Subject: [RESEND PATCH 0/2] get pinctrl more flexible for per pin muxing controllers Date: Wed, 10 Jun 2015 17:04:55 +0200 Message-ID: <1433948699-19800-1-git-send-email-ludovic.desroches@atmel.com> X-Mailer: git-send-email 2.2.0 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The way pins, groups and functions are tied is too constraining for some controllers. It concerns mainly the ones we don't care about groups and functions, each pin can be muxed to any functions. The goal of these two patches is too remove some of the constraints. I have added the prototype of a pin controller and device tree to show the way I want to use these changes. I couldn't test it on boards using generic pinconf so I am not sure that I don't break something... Ludovic Desroches (4): pinctrl: change function behavior for per pin muxing controllers pinctrl: introduce complex pin description pinctrl: rough draft for a future controller ARM: at91/dt: proto dt arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-sama5d4ek_proto.dts | 243 ++++++++++ arch/arm/boot/dts/sama5d4_proto-pinfunc.h | 463 +++++++++++++++++++ arch/arm/boot/dts/sama5d4_proto.dtsi | 716 +++++++++++++++++++++++++++++ drivers/pinctrl/Kconfig | 10 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinconf-generic.c | 44 +- drivers/pinctrl/pinctrl-at91-pio4.c | 625 +++++++++++++++++++++++++ drivers/pinctrl/pinmux.c | 58 +-- include/linux/pinctrl/pinctrl.h | 6 + include/linux/pinctrl/pinmux.h | 3 + 11 files changed, 2134 insertions(+), 36 deletions(-) create mode 100644 arch/arm/boot/dts/at91-sama5d4ek_proto.dts create mode 100644 arch/arm/boot/dts/sama5d4_proto-pinfunc.h create mode 100644 arch/arm/boot/dts/sama5d4_proto.dtsi create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c -- 2.2.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic Desroches Subject: [RESEND PATCH 0/2] get pinctrl more flexible for per pin muxing controllers Date: Wed, 10 Jun 2015 17:04:55 +0200 Message-ID: <1433948699-19800-1-git-send-email-ludovic.desroches@atmel.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Sender: linux-gpio-owner@vger.kernel.org To: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: swarren@wwwdotorg.org, linus.walleij@linaro.org, nicolas.ferre@atmel.com, Ludovic Desroches List-Id: devicetree@vger.kernel.org Hi, The way pins, groups and functions are tied is too constraining for some controllers. It concerns mainly the ones we don't care about groups and functions, each pin can be muxed to any functions. The goal of these two patches is too remove some of the constraints. I have added the prototype of a pin controller and device tree to show the way I want to use these changes. I couldn't test it on boards using generic pinconf so I am not sure that I don't break something... Ludovic Desroches (4): pinctrl: change function behavior for per pin muxing controllers pinctrl: introduce complex pin description pinctrl: rough draft for a future controller ARM: at91/dt: proto dt arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-sama5d4ek_proto.dts | 243 ++++++++++ arch/arm/boot/dts/sama5d4_proto-pinfunc.h | 463 +++++++++++++++++++ arch/arm/boot/dts/sama5d4_proto.dtsi | 716 +++++++++++++++++++++++++++++ drivers/pinctrl/Kconfig | 10 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinconf-generic.c | 44 +- drivers/pinctrl/pinctrl-at91-pio4.c | 625 +++++++++++++++++++++++++ drivers/pinctrl/pinmux.c | 58 +-- include/linux/pinctrl/pinctrl.h | 6 + include/linux/pinctrl/pinmux.h | 3 + 11 files changed, 2134 insertions(+), 36 deletions(-) create mode 100644 arch/arm/boot/dts/at91-sama5d4ek_proto.dts create mode 100644 arch/arm/boot/dts/sama5d4_proto-pinfunc.h create mode 100644 arch/arm/boot/dts/sama5d4_proto.dtsi create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c -- 2.2.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludovic.desroches@atmel.com (Ludovic Desroches) Date: Wed, 10 Jun 2015 17:04:55 +0200 Subject: [RESEND PATCH 0/2] get pinctrl more flexible for per pin muxing controllers Message-ID: <1433948699-19800-1-git-send-email-ludovic.desroches@atmel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, The way pins, groups and functions are tied is too constraining for some controllers. It concerns mainly the ones we don't care about groups and functions, each pin can be muxed to any functions. The goal of these two patches is too remove some of the constraints. I have added the prototype of a pin controller and device tree to show the way I want to use these changes. I couldn't test it on boards using generic pinconf so I am not sure that I don't break something... Ludovic Desroches (4): pinctrl: change function behavior for per pin muxing controllers pinctrl: introduce complex pin description pinctrl: rough draft for a future controller ARM: at91/dt: proto dt arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-sama5d4ek_proto.dts | 243 ++++++++++ arch/arm/boot/dts/sama5d4_proto-pinfunc.h | 463 +++++++++++++++++++ arch/arm/boot/dts/sama5d4_proto.dtsi | 716 +++++++++++++++++++++++++++++ drivers/pinctrl/Kconfig | 10 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinconf-generic.c | 44 +- drivers/pinctrl/pinctrl-at91-pio4.c | 625 +++++++++++++++++++++++++ drivers/pinctrl/pinmux.c | 58 +-- include/linux/pinctrl/pinctrl.h | 6 + include/linux/pinctrl/pinmux.h | 3 + 11 files changed, 2134 insertions(+), 36 deletions(-) create mode 100644 arch/arm/boot/dts/at91-sama5d4ek_proto.dts create mode 100644 arch/arm/boot/dts/sama5d4_proto-pinfunc.h create mode 100644 arch/arm/boot/dts/sama5d4_proto.dtsi create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c -- 2.2.0