1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/ata/allwinner,sun8i-r40-ahci.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: Allwinner R40 AHCI SATA Controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Chen-Yu Tsai <wens@csie.org> 11c66ec88fSEmmanuel Vadot - Maxime Ripard <mripard@kernel.org> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotproperties: 14c66ec88fSEmmanuel Vadot compatible: 15c66ec88fSEmmanuel Vadot const: allwinner,sun8i-r40-ahci 16c66ec88fSEmmanuel Vadot 17c66ec88fSEmmanuel Vadot reg: 18c66ec88fSEmmanuel Vadot maxItems: 1 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot clocks: 21c66ec88fSEmmanuel Vadot items: 22c66ec88fSEmmanuel Vadot - description: AHCI Bus Clock 23c66ec88fSEmmanuel Vadot - description: AHCI Module Clock 24c66ec88fSEmmanuel Vadot 25c66ec88fSEmmanuel Vadot interrupts: 26c66ec88fSEmmanuel Vadot maxItems: 1 27c66ec88fSEmmanuel Vadot 28c66ec88fSEmmanuel Vadot resets: 29c66ec88fSEmmanuel Vadot maxItems: 1 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot reset-names: 32c66ec88fSEmmanuel Vadot const: ahci 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot ahci-supply: 35c66ec88fSEmmanuel Vadot description: Regulator for the AHCI controller 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot phy-supply: 38c66ec88fSEmmanuel Vadot description: Regulator for the SATA PHY power 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadotrequired: 41c66ec88fSEmmanuel Vadot - compatible 42c66ec88fSEmmanuel Vadot - reg 43c66ec88fSEmmanuel Vadot - clocks 44c66ec88fSEmmanuel Vadot - interrupts 45c66ec88fSEmmanuel Vadot - resets 46c66ec88fSEmmanuel Vadot - reset-names 47c66ec88fSEmmanuel Vadot 48c66ec88fSEmmanuel VadotadditionalProperties: false 49c66ec88fSEmmanuel Vadot 50c66ec88fSEmmanuel Vadotexamples: 51c66ec88fSEmmanuel Vadot - | 52c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 53c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/sun8i-r40-ccu.h> 54c66ec88fSEmmanuel Vadot #include <dt-bindings/reset/sun8i-r40-ccu.h> 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel Vadot ahci: sata@1c18000 { 57c66ec88fSEmmanuel Vadot compatible = "allwinner,sun8i-r40-ahci"; 58c66ec88fSEmmanuel Vadot reg = <0x01c18000 0x1000>; 59c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; 60c66ec88fSEmmanuel Vadot clocks = <&ccu CLK_BUS_SATA>, <&ccu CLK_SATA>; 61c66ec88fSEmmanuel Vadot resets = <&ccu RST_BUS_SATA>; 62c66ec88fSEmmanuel Vadot reset-names = "ahci"; 63c66ec88fSEmmanuel Vadot ahci-supply = <®_dldo4>; 64c66ec88fSEmmanuel Vadot phy-supply = <®_eldo3>; 65c66ec88fSEmmanuel Vadot }; 66c66ec88fSEmmanuel Vadot 67c66ec88fSEmmanuel Vadot... 68