dt-bindings: pinctrl: bcm4708-pinmux: improve example binding
Subsystems (3)
PATCH 1/1 dt-bindings: pinctrl: bcm4708-pinmux: improve example binding
From: Rafa? Mi?ecki <[email protected]>
Broadcom SoC pins are controlled using CRU ("Clock and Reset Unit" or "Central Resource Unit") registers. There are more CRU registers and functions so CRU should be represented as a separated block in DT.
Moreover CRU is a sub-block of DMU ("Device Management Unit") so that one should also get its own node.
--- .../bindings/pinctrl/brcm,bcm4708-pinmux.txt | 31 ++++++++++++++++------ 1 file changed, 23 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt +23 -8
@@ -30,13 +30,28 @@ For documentation of subnodes see: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt Example: - pinctrl at 1800c1c0 { - compatible = "brcm,bcm4708-pinmux"; - reg = <0x1800c1c0 0x24>; - reg-names = "cru_gpio_control"; - - spi { - function = "spi"; - groups = "spi_grp"; + dmu at 1800c000 { + compatible = "simple-bus"; + ranges = <0 0x1800c000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + cru at 100 { + compatible = "simple-bus"; + reg = <0x100 0x1a4>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + + pin-controller at 1c0 { + compatible = "brcm,bcm4708-pinmux"; + reg = <0x1c0 0x24>; + reg-names = "cru_gpio_control"; + + spi-pins { + function = "spi"; + groups = "spi_grp"; + }; + }; }; };
Signature · 1 line
2.13.7
PATCH 1/1 dt-bindings: pinctrl: bcm4708-pinmux: improve example binding
Quoted 10 lines · Rafa? Mi?ecki
From: Rafa? Mi?ecki <[email protected]>
Broadcom SoC pins are controlled using CRU ("Clock and Reset Unit" or "Central Resource Unit") registers. There are more CRU registers and functions so CRU should be represented as a separated block in DT.
Moreover CRU is a sub-block of DMU ("Device Management Unit") so that one should also get its own node.
Signed-off-by Rafa? Mi?ecki <[email protected]>
Patch applied. (I guess it answers my question with "let's fix this in-tree").
Yours,
Linus Walleij
PATCH 1/1 dt-bindings: pinctrl: bcm4708-pinmux: improve example binding
In reply to Rafał MiłeckiQuoted 23 lines · Rafa? Mi?ecki
From: Rafa? Mi?ecki <[email protected]>
Broadcom SoC pins are controlled using CRU ("Clock and Reset Unit" or "Central Resource Unit") registers. There are more CRU registers and functions so CRU should be represented as a separated block in DT.
Moreover CRU is a sub-block of DMU ("Device Management Unit") so that one should also get its own node.
Signed-off-by Rafa? Mi?ecki <[email protected]>--- .../bindings/pinctrl/brcm,bcm4708-pinmux.txt | 31 ++++++++++++++++------ 1 file changed, 23 insertions(+), 8 deletions(-)Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt +0
-0@@ -30,13 +30,28 @@ For documentation of subnodes see: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt Example:
Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt For documentation of subnodes see: · line 34
Quoted 10 lines
Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt +2
-8- pinctrl at 1800c1c0 { - compatible = "brcm,bcm4708-pinmux"; - reg = <0x1800c1c0 0x24>; - reg-names = "cru_gpio_control"; - - spi { - function = "spi"; - groups = "spi_grp"; + dmu at 1800c000 { + compatible = "simple-bus";
Everything in the DMU is going to warrant having sub-nodes?
Wanting a node per provider (clocks, reset, phy, etc.) is common, but I tend to push back on that if it's only to instantiate drivers and there aren't any DT resources within the nodes. A pinctrl is one case that's justified, but what is a bit unusual here is the 'simple-bus' nodes for things that are more than a collection of independent devices.
Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt For documentation of subnodes see: · line 40
Quoted 6 lines
Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt +6
-0+ ranges = <0 0x1800c000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + cru at 100 { + compatible = "simple-bus";
Same question here.
Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt For documentation of subnodes see: · line 46
Quoted 6 lines
Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt +6
-0+ reg = <0x100 0x1a4>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + + pin-controller at 1c0 {
'pinctrl' was the standard name.
Quoted 14 lines
Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt +9
-1+ compatible = "brcm,bcm4708-pinmux"; + reg = <0x1c0 0x24>; + reg-names = "cru_gpio_control"; + + spi-pins { + function = "spi"; + groups = "spi_grp"; + }; + }; }; }; --2.13.7