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

dt-bindings: gpio: Convert Fujitsu MB86S7x GPIO to DT schema

Convert the Fujitsu MB86S7x GPIO binding to DT schema format.

The "socionext,synquacer-gpio" compatible was not documented, but is
compatible with "fujitsu,mb86s70-gpio" and is in use (in u-boot
Synquacer dts).

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Rob Herring and committed by
Bartosz Golaszewski
1da5aa27 6ecb741e

+50 -20
-20
Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.txt
··· 1 - Fujitsu MB86S7x GPIO Controller 2 - ------------------------------- 3 - 4 - Required properties: 5 - - compatible: Should be "fujitsu,mb86s70-gpio" 6 - - reg: Base address and length of register space 7 - - clocks: Specify the clock 8 - - gpio-controller: Marks the device node as a gpio controller. 9 - - #gpio-cells: Should be <2>. The first cell is the pin number and the 10 - second cell is used to specify optional parameters: 11 - - bit 0 specifies polarity (0 for normal, 1 for inverted). 12 - 13 - Examples: 14 - gpio0: gpio@31000000 { 15 - compatible = "fujitsu,mb86s70-gpio"; 16 - reg = <0 0x31000000 0x10000>; 17 - gpio-controller; 18 - #gpio-cells = <2>; 19 - clocks = <&clk 0 2 1>; 20 - };
+50
Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/gpio/fujitsu,mb86s70-gpio.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Fujitsu MB86S7x GPIO Controller 8 + 9 + maintainers: 10 + - Jassi Brar <jaswinder.singh@linaro.org> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - items: 16 + - const: socionext,synquacer-gpio 17 + - const: fujitsu,mb86s70-gpio 18 + - const: fujitsu,mb86s70-gpio 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + '#gpio-cells': 24 + const: 2 25 + 26 + gpio-controller: true 27 + gpio-line-names: true 28 + 29 + clocks: 30 + maxItems: 1 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - '#gpio-cells' 36 + - gpio-controller 37 + - clocks 38 + 39 + additionalProperties: false 40 + 41 + examples: 42 + - | 43 + gpio@31000000 { 44 + compatible = "fujitsu,mb86s70-gpio"; 45 + reg = <0x31000000 0x10000>; 46 + gpio-controller; 47 + #gpio-cells = <2>; 48 + clocks = <&clk 0 2 1>; 49 + }; 50 + ...