Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: gpio: rcar: Add gpio-reserved-ranges support

Update the DT bindings documentation with the optional gpio-reserved-ranges
properties.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Biju Das and committed by
Linus Walleij
c0f6afad 496069b8

+35 -26
+35 -26
Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
··· 38 38 - #gpio-cells: Should be 2. The first cell is the GPIO number and the second 39 39 cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the 40 40 GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported. 41 - - gpio-ranges: Range of pins managed by the GPIO controller. 41 + - gpio-ranges: See gpio.txt. 42 42 43 43 Optional properties: 44 44 ··· 46 46 mandatory if the hardware implements a controllable functional clock for 47 47 the GPIO instance. 48 48 49 - Please refer to gpio.txt in this directory for details of gpio-ranges property 50 - and the common GPIO bindings used by client devices. 49 + - gpio-reserved-ranges: See gpio.txt. 50 + 51 + Please refer to gpio.txt in this directory for the common GPIO bindings used by 52 + client devices. 51 53 52 54 The GPIO controller also acts as an interrupt controller. It uses the default 53 55 two cells specifier as described in Documentation/devicetree/bindings/ 54 56 interrupt-controller/interrupts.txt. 55 57 56 - Example: R8A7779 (R-Car H1) GPIO controller nodes 58 + Example: R8A77470 (RZ/G1C) GPIO controller nodes 57 59 58 - gpio0: gpio@ffc40000 { 59 - compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio"; 60 - reg = <0xffc40000 0x2c>; 61 - interrupt-parent = <&gic>; 62 - interrupts = <0 141 0x4>; 63 - #gpio-cells = <2>; 64 - gpio-controller; 65 - gpio-ranges = <&pfc 0 0 32>; 66 - interrupt-controller; 67 - #interrupt-cells = <2>; 68 - }; 60 + gpio0: gpio@e6050000 { 61 + compatible = "renesas,gpio-r8a77470", 62 + "renesas,rcar-gen2-gpio"; 63 + reg = <0 0xe6050000 0 0x50>; 64 + interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; 65 + #gpio-cells = <2>; 66 + gpio-controller; 67 + gpio-ranges = <&pfc 0 0 23>; 68 + #interrupt-cells = <2>; 69 + interrupt-controller; 70 + clocks = <&cpg CPG_MOD 912>; 71 + power-domains = <&sysc R8A77470_PD_ALWAYS_ON>; 72 + resets = <&cpg 912>; 73 + }; 69 74 ... 70 - gpio6: gpio@ffc46000 { 71 - compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio"; 72 - reg = <0xffc46000 0x2c>; 73 - interrupt-parent = <&gic>; 74 - interrupts = <0 147 0x4>; 75 - #gpio-cells = <2>; 76 - gpio-controller; 77 - gpio-ranges = <&pfc 0 192 9>; 78 - interrupt-controller; 79 - #interrupt-cells = <2>; 80 - }; 75 + gpio3: gpio@e6053000 { 76 + compatible = "renesas,gpio-r8a77470", 77 + "renesas,rcar-gen2-gpio"; 78 + reg = <0 0xe6053000 0 0x50>; 79 + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 80 + #gpio-cells = <2>; 81 + gpio-controller; 82 + gpio-ranges = <&pfc 0 96 30>; 83 + gpio-reserved-ranges = <17 10>; 84 + #interrupt-cells = <2>; 85 + interrupt-controller; 86 + clocks = <&cpg CPG_MOD 909>; 87 + power-domains = <&sysc R8A77470_PD_ALWAYS_ON>; 88 + resets = <&cpg 909>; 89 + };