1*ae5de77eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*ae5de77eSEmmanuel Vadot%YAML 1.2 3*ae5de77eSEmmanuel Vadot--- 4*ae5de77eSEmmanuel Vadot$id: http://devicetree.org/schemas/ata/st,ahci.yaml# 5*ae5de77eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*ae5de77eSEmmanuel Vadot 7*ae5de77eSEmmanuel Vadottitle: STMicroelectronics STi SATA controller 8*ae5de77eSEmmanuel Vadot 9*ae5de77eSEmmanuel Vadotmaintainers: 10*ae5de77eSEmmanuel Vadot - Patrice Chotard <patrice.chotard@foss.st.com> 11*ae5de77eSEmmanuel Vadot 12*ae5de77eSEmmanuel VadotallOf: 13*ae5de77eSEmmanuel Vadot - $ref: ahci-common.yaml# 14*ae5de77eSEmmanuel Vadot 15*ae5de77eSEmmanuel Vadotproperties: 16*ae5de77eSEmmanuel Vadot compatible: 17*ae5de77eSEmmanuel Vadot const: st,ahci 18*ae5de77eSEmmanuel Vadot 19*ae5de77eSEmmanuel Vadot interrupt-names: 20*ae5de77eSEmmanuel Vadot items: 21*ae5de77eSEmmanuel Vadot - const: hostc 22*ae5de77eSEmmanuel Vadot 23*ae5de77eSEmmanuel Vadot clocks: 24*ae5de77eSEmmanuel Vadot maxItems: 1 25*ae5de77eSEmmanuel Vadot 26*ae5de77eSEmmanuel Vadot clock-names: 27*ae5de77eSEmmanuel Vadot items: 28*ae5de77eSEmmanuel Vadot - const: ahci_clk 29*ae5de77eSEmmanuel Vadot 30*ae5de77eSEmmanuel Vadot resets: 31*ae5de77eSEmmanuel Vadot items: 32*ae5de77eSEmmanuel Vadot - description: Power-down line 33*ae5de77eSEmmanuel Vadot - description: Soft-reset line 34*ae5de77eSEmmanuel Vadot - description: Power-reset line 35*ae5de77eSEmmanuel Vadot 36*ae5de77eSEmmanuel Vadot reset-names: 37*ae5de77eSEmmanuel Vadot items: 38*ae5de77eSEmmanuel Vadot - const: pwr-dwn 39*ae5de77eSEmmanuel Vadot - const: sw-rst 40*ae5de77eSEmmanuel Vadot - const: pwr-rst 41*ae5de77eSEmmanuel Vadot 42*ae5de77eSEmmanuel Vadotrequired: 43*ae5de77eSEmmanuel Vadot - compatible 44*ae5de77eSEmmanuel Vadot - interrupt-names 45*ae5de77eSEmmanuel Vadot - phys 46*ae5de77eSEmmanuel Vadot - phy-names 47*ae5de77eSEmmanuel Vadot - clocks 48*ae5de77eSEmmanuel Vadot - clock-names 49*ae5de77eSEmmanuel Vadot 50*ae5de77eSEmmanuel VadotunevaluatedProperties: false 51*ae5de77eSEmmanuel Vadot 52*ae5de77eSEmmanuel Vadotexamples: 53*ae5de77eSEmmanuel Vadot - | 54*ae5de77eSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 55*ae5de77eSEmmanuel Vadot #include <dt-bindings/phy/phy.h> 56*ae5de77eSEmmanuel Vadot #include <dt-bindings/reset/stih407-resets.h> 57*ae5de77eSEmmanuel Vadot #include <dt-bindings/clock/stih407-clks.h> 58*ae5de77eSEmmanuel Vadot 59*ae5de77eSEmmanuel Vadot sata@9b20000 { 60*ae5de77eSEmmanuel Vadot compatible = "st,ahci"; 61*ae5de77eSEmmanuel Vadot reg = <0x9b20000 0x1000>; 62*ae5de77eSEmmanuel Vadot interrupts = <GIC_SPI 159 IRQ_TYPE_NONE>; 63*ae5de77eSEmmanuel Vadot interrupt-names = "hostc"; 64*ae5de77eSEmmanuel Vadot phys = <&phy_port0 PHY_TYPE_SATA>; 65*ae5de77eSEmmanuel Vadot phy-names = "sata-phy"; 66*ae5de77eSEmmanuel Vadot resets = <&powerdown STIH407_SATA0_POWERDOWN>, 67*ae5de77eSEmmanuel Vadot <&softreset STIH407_SATA0_SOFTRESET>, 68*ae5de77eSEmmanuel Vadot <&softreset STIH407_SATA0_PWR_SOFTRESET>; 69*ae5de77eSEmmanuel Vadot reset-names = "pwr-dwn", "sw-rst", "pwr-rst"; 70*ae5de77eSEmmanuel Vadot clocks = <&clk_s_c0_flexgen CLK_ICN_REG>; 71*ae5de77eSEmmanuel Vadot clock-names = "ahci_clk"; 72*ae5de77eSEmmanuel Vadot }; 73