dt-bindings: pinctrl: aspeed: Add reg property as a hint
authorAndrew Jeffery <andrew@aj.id.au>
Tue, 3 Dec 2019 12:04:02 +0000 (22:34 +1030)
committerJoel Stanley <joel@jms.id.au>
Mon, 16 Dec 2019 23:35:26 +0000 (10:35 +1100)
The pinctrl node sits under a syscon device, and can assume offsets from
the base of the syscon based on the compatible. However, for devicetree
correctness allow a reg property to be specified, which an associated
driver may choose to use to discover associated resources.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/aspeed,ast2500-pinctrl.yaml

index 39ad8657d018525dc5a0ca9d91a5852e19956c78..bb690e20c36800d16a722ba633c5e08d404ac543 100644 (file)
@@ -22,6 +22,9 @@ description: |+
 properties:
   compatible:
     const: aspeed,ast2400-pinctrl
+  reg:
+    description: |
+      A hint for the memory regions associated with the pin-controller
 
 patternProperties:
   '^.*$':
index 3c6405be07edca9b96e16085d7039acff76838c9..f7f5d57f2c9adc70d99056779f9070e8f7b2058b 100644 (file)
@@ -23,6 +23,9 @@ description: |+
 properties:
   compatible:
     const: aspeed,ast2500-pinctrl
+  reg:
+    description: |
+      A hint for the memory regions associated with the pin-controller
   aspeed,external-nodes:
     minItems: 2
     maxItems: 2