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

dt-bindings: aspeed-sgpio: Convert txt bindings to yaml.

sgpio-aspeed bindings should be converted to yaml format.

Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210712100317.23298-2-steven_lee@aspeedtech.com
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Steven Lee and committed by
Joel Stanley
85aef2b2 db2d7420

+75 -46
+75
Documentation/devicetree/bindings/gpio/aspeed,sgpio.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/aspeed,sgpio.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Aspeed SGPIO controller 8 + 9 + maintainers: 10 + - Andrew Jeffery <andrew@aj.id.au> 11 + 12 + description: 13 + This SGPIO controller is for ASPEED AST2500 SoC, it supports up to 80 full 14 + featured Serial GPIOs. Each of the Serial GPIO pins can be programmed to 15 + support the following options 16 + - Support interrupt option for each input port and various interrupt 17 + sensitivity option (level-high, level-low, edge-high, edge-low) 18 + - Support reset tolerance option for each output port 19 + - Directly connected to APB bus and its shift clock is from APB bus clock 20 + divided by a programmable value. 21 + - Co-work with external signal-chained TTL components (74LV165/74LV595) 22 + 23 + properties: 24 + compatible: 25 + enum: 26 + - aspeed,ast2400-sgpio 27 + - aspeed,ast2500-sgpio 28 + 29 + reg: 30 + maxItems: 1 31 + 32 + gpio-controller: true 33 + 34 + '#gpio-cells': 35 + const: 2 36 + 37 + interrupts: 38 + maxItems: 1 39 + 40 + interrupt-controller: true 41 + 42 + clocks: 43 + maxItems: 1 44 + 45 + ngpios: true 46 + 47 + bus-frequency: true 48 + 49 + required: 50 + - compatible 51 + - reg 52 + - gpio-controller 53 + - '#gpio-cells' 54 + - interrupts 55 + - interrupt-controller 56 + - ngpios 57 + - clocks 58 + - bus-frequency 59 + 60 + additionalProperties: false 61 + 62 + examples: 63 + - | 64 + #include <dt-bindings/clock/aspeed-clock.h> 65 + sgpio: sgpio@1e780200 { 66 + #gpio-cells = <2>; 67 + compatible = "aspeed,ast2500-sgpio"; 68 + gpio-controller; 69 + interrupts = <40>; 70 + reg = <0x1e780200 0x0100>; 71 + clocks = <&syscon ASPEED_CLK_APB>; 72 + interrupt-controller; 73 + ngpios = <80>; 74 + bus-frequency = <12000000>; 75 + };
-46
Documentation/devicetree/bindings/gpio/sgpio-aspeed.txt
··· 1 - Aspeed SGPIO controller Device Tree Bindings 2 - -------------------------------------------- 3 - 4 - This SGPIO controller is for ASPEED AST2500 SoC, it supports up to 80 full 5 - featured Serial GPIOs. Each of the Serial GPIO pins can be programmed to 6 - support the following options: 7 - - Support interrupt option for each input port and various interrupt 8 - sensitivity option (level-high, level-low, edge-high, edge-low) 9 - - Support reset tolerance option for each output port 10 - - Directly connected to APB bus and its shift clock is from APB bus clock 11 - divided by a programmable value. 12 - - Co-work with external signal-chained TTL components (74LV165/74LV595) 13 - 14 - Required properties: 15 - 16 - - compatible : Should be one of 17 - "aspeed,ast2400-sgpio", "aspeed,ast2500-sgpio" 18 - - #gpio-cells : Should be 2, see gpio.txt 19 - - reg : Address and length of the register set for the device 20 - - gpio-controller : Marks the device node as a GPIO controller 21 - - interrupts : Interrupt specifier, see interrupt-controller/interrupts.txt 22 - - interrupt-controller : Mark the GPIO controller as an interrupt-controller 23 - - ngpios : number of *hardware* GPIO lines, see gpio.txt. This will expose 24 - 2 software GPIOs per hardware GPIO: one for hardware input, one for hardware 25 - output. Up to 80 pins, must be a multiple of 8. 26 - - clocks : A phandle to the APB clock for SGPM clock division 27 - - bus-frequency : SGPM CLK frequency 28 - 29 - The sgpio and interrupt properties are further described in their respective 30 - bindings documentation: 31 - 32 - - Documentation/devicetree/bindings/gpio/gpio.txt 33 - - Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 34 - 35 - Example: 36 - sgpio: sgpio@1e780200 { 37 - #gpio-cells = <2>; 38 - compatible = "aspeed,ast2500-sgpio"; 39 - gpio-controller; 40 - interrupts = <40>; 41 - reg = <0x1e780200 0x0100>; 42 - clocks = <&syscon ASPEED_CLK_APB>; 43 - interrupt-controller; 44 - ngpios = <8>; 45 - bus-frequency = <12000000>; 46 - };