1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-C 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/ata/nvidia, 4 $id: http://devicetree.org/schemas/ata/nvidia,tegra-ahci.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Tegra AHCI SATA Controller 7 title: Tegra AHCI SATA Controller 8 8 9 maintainers: 9 maintainers: 10 - Thierry Reding <thierry.reding@gmail.com> 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jonathan Hunter <jonathanh@nvidia.com> 11 - Jonathan Hunter <jonathanh@nvidia.com> 12 12 13 properties: 13 properties: 14 compatible: 14 compatible: 15 enum: 15 enum: 16 - nvidia,tegra124-ahci 16 - nvidia,tegra124-ahci 17 - nvidia,tegra132-ahci 17 - nvidia,tegra132-ahci 18 - nvidia,tegra210-ahci 18 - nvidia,tegra210-ahci 19 - nvidia,tegra186-ahci 19 - nvidia,tegra186-ahci 20 20 21 reg: 21 reg: 22 minItems: 2 22 minItems: 2 23 items: 23 items: 24 - description: AHCI registers 24 - description: AHCI registers 25 - description: SATA configuration and IP 25 - description: SATA configuration and IPFS registers 26 - description: SATA AUX registers 26 - description: SATA AUX registers 27 27 28 interrupts: 28 interrupts: 29 maxItems: 1 29 maxItems: 1 30 30 31 clock-names: 31 clock-names: 32 items: 32 items: 33 - const: sata 33 - const: sata 34 - const: sata-oob 34 - const: sata-oob 35 35 36 clocks: 36 clocks: 37 maxItems: 2 37 maxItems: 2 38 38 39 reset-names: 39 reset-names: 40 minItems: 2 40 minItems: 2 41 items: 41 items: 42 - const: sata 42 - const: sata 43 - const: sata-cold 43 - const: sata-cold 44 - const: sata-oob 44 - const: sata-oob 45 45 46 resets: 46 resets: 47 minItems: 2 47 minItems: 2 48 maxItems: 3 48 maxItems: 3 49 49 50 iommus: 50 iommus: 51 maxItems: 1 51 maxItems: 1 52 52 53 interconnect-names: 53 interconnect-names: 54 items: 54 items: 55 - const: dma-mem 55 - const: dma-mem 56 - const: write 56 - const: write 57 57 58 interconnects: 58 interconnects: 59 maxItems: 2 59 maxItems: 2 60 60 61 power-domains: 61 power-domains: 62 items: 62 items: 63 - description: SAX power-domain 63 - description: SAX power-domain 64 64 65 phy-names: 65 phy-names: 66 items: 66 items: 67 - const: sata-0 67 - const: sata-0 68 68 69 phys: 69 phys: 70 maxItems: 1 70 maxItems: 1 71 71 72 hvdd-supply: 72 hvdd-supply: 73 description: SATA HVDD regulator supply. 73 description: SATA HVDD regulator supply. 74 74 75 vddio-supply: 75 vddio-supply: 76 description: SATA VDDIO regulator supply. 76 description: SATA VDDIO regulator supply. 77 77 78 avdd-supply: 78 avdd-supply: 79 description: SATA AVDD regulator supply. 79 description: SATA AVDD regulator supply. 80 80 81 target-5v-supply: 81 target-5v-supply: 82 description: SATA 5V power regulator suppl 82 description: SATA 5V power regulator supply. 83 83 84 target-12v-supply: 84 target-12v-supply: 85 description: SATA 12V power regulator supp 85 description: SATA 12V power regulator supply. 86 86 87 required: 87 required: 88 - compatible 88 - compatible 89 - reg 89 - reg 90 - interrupts 90 - interrupts 91 - clock-names 91 - clock-names 92 - clocks 92 - clocks 93 - reset-names 93 - reset-names 94 - resets 94 - resets 95 95 96 allOf: 96 allOf: 97 - if: 97 - if: 98 properties: 98 properties: 99 compatible: 99 compatible: 100 contains: 100 contains: 101 enum: 101 enum: 102 - nvidia,tegra124-ahci 102 - nvidia,tegra124-ahci 103 - nvidia,tegra132-ahci 103 - nvidia,tegra132-ahci 104 then: 104 then: 105 properties: 105 properties: 106 reg: 106 reg: 107 maxItems: 2 107 maxItems: 2 108 reset-names: 108 reset-names: 109 minItems: 3 109 minItems: 3 110 resets: 110 resets: 111 minItems: 3 111 minItems: 3 112 required: 112 required: 113 - phys 113 - phys 114 - phy-names 114 - phy-names 115 - hvdd-supply 115 - hvdd-supply 116 - vddio-supply 116 - vddio-supply 117 - avdd-supply 117 - avdd-supply 118 118 119 - if: 119 - if: 120 properties: 120 properties: 121 compatible: 121 compatible: 122 contains: 122 contains: 123 enum: 123 enum: 124 - nvidia,tegra210-ahci 124 - nvidia,tegra210-ahci 125 then: 125 then: 126 properties: 126 properties: 127 reg: 127 reg: 128 minItems: 3 128 minItems: 3 129 reset-names: 129 reset-names: 130 minItems: 3 130 minItems: 3 131 resets: 131 resets: 132 minItems: 3 132 minItems: 3 133 133 134 - if: 134 - if: 135 properties: 135 properties: 136 compatible: 136 compatible: 137 contains: 137 contains: 138 enum: 138 enum: 139 - nvidia,tegra186-ahci 139 - nvidia,tegra186-ahci 140 then: 140 then: 141 properties: 141 properties: 142 reg: 142 reg: 143 minItems: 3 143 minItems: 3 144 reset-names: 144 reset-names: 145 maxItems: 2 145 maxItems: 2 146 resets: 146 resets: 147 maxItems: 2 147 maxItems: 2 148 required: 148 required: 149 - iommus 149 - iommus 150 - interconnect-names 150 - interconnect-names 151 - interconnects 151 - interconnects 152 - power-domains 152 - power-domains 153 153 154 additionalProperties: false !! 154 additionalProperties: true 155 155 156 examples: 156 examples: 157 - | 157 - | 158 #include <dt-bindings/clock/tegra210-car.h 158 #include <dt-bindings/clock/tegra210-car.h> 159 #include <dt-bindings/reset/tegra210-car.h 159 #include <dt-bindings/reset/tegra210-car.h> 160 #include <dt-bindings/interrupt-controller 160 #include <dt-bindings/interrupt-controller/arm-gic.h> 161 161 162 sata@70020000 { 162 sata@70020000 { 163 compatible = "nvidia,tegra210-ahci 163 compatible = "nvidia,tegra210-ahci"; 164 reg = <0x70027000 0x00002000>, /* 164 reg = <0x70027000 0x00002000>, /* AHCI */ 165 <0x70020000 0x00007000>, /* 165 <0x70020000 0x00007000>, /* SATA */ 166 <0x70001100 0x00010000>; /* 166 <0x70001100 0x00010000>; /* SATA AUX */ 167 interrupts = <GIC_SPI 23 IRQ_TYPE_ 167 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; 168 clocks = <&tegra_car TEGRA210_CLK_ 168 clocks = <&tegra_car TEGRA210_CLK_SATA>, 169 <&tegra_car TEGRA210_CLK_ 169 <&tegra_car TEGRA210_CLK_SATA_OOB>; 170 clock-names = "sata", "sata-oob"; 170 clock-names = "sata", "sata-oob"; 171 resets = <&tegra_car 124>, 171 resets = <&tegra_car 124>, 172 <&tegra_car 129>, 172 <&tegra_car 129>, 173 <&tegra_car 123>; 173 <&tegra_car 123>; 174 reset-names = "sata", "sata-cold", 174 reset-names = "sata", "sata-cold", "sata-oob"; 175 }; 175 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.