From 0f7ecfa760460464e1c17c6c33237084939b7cc0 Mon Sep 17 00:00:00 2001 From: Richard Fitzgerald Date: Wed, 28 Feb 2018 10:52:44 +0000 Subject: [PATCH] pinctrl: madera: Update to devicetree bindings Main change is that the description of how to declare states in the parent mfd driver is now moved to the mfd driver's binding doc, so it can be deleted from here. Change-Id: Ie0e9b6f719d6b5b1d84e7f0e6c946f171e56cc62 Signed-off-by: Richard Fitzgerald --- .../pinctrl/cirrus,madera-pinctrl.txt | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt index 913baf8af5b5..123c8d06bd70 100644 --- a/Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt @@ -9,7 +9,8 @@ The set of available GPIOs, functions and alternate function groups differs between codecs so refer to the datasheet for the codec for further information on what is supported on that device. -The properties for this driver exist within the parent MFD driver node. +The properties for this driver must exist within the parent MFD driver node. +See bindings/mfd/madera.txt. See also the core bindings for the parent MFD driver: @@ -18,16 +19,6 @@ See also the generic pinmix bindings: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt -Required properties of parent mfd node: - - pinctrl-names : must be "default" - - pinctrl-0 : a phandle to the node containing the subnodes containing default - configurations - -Required subnodes: - One subnode is required to contain the default settings. It contains an - arbitrary number of configuration subnodes, one for each group or pin - configuratio you want to apply as a default. - Required properties of configuration subnodes: - groups : name of one pin group to configure. One of: aif1, aif2, aif3, aif4, mif1, mif2, mif3, pdmspk1, pdmspk2, @@ -73,10 +64,10 @@ Example: cs47l85@0 { compatible = "cirrus,cs47l85"; - pinctrl-names = "default"; - pinctrl-0 = <&cs47l85_defaults>; + pinctrl-names = "active"; + pinctrl-0 = <&cs47l85_gpio_config>; - cs47l85_defaults: cs47l85-gpio-defaults { + cs47l85_gpio_config: cs47l85-gpio-config { aif1 { groups = "aif1"; function = "aif1"; -- 2.20.1