1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2021 Amlogic, Inc. All rights 4 */ 5 6 /dts-v1/; 7 8 #include "amlogic-c3.dtsi" 9 10 / { 11 model = "Amlogic C302 aw409 Developmen 12 compatible = "amlogic,aw409", "amlogic 13 interrupt-parent = <&gic>; 14 #address-cells = <2>; 15 #size-cells = <2>; 16 17 aliases { 18 serial0 = &uart_b; 19 spi0 = &spifc; 20 }; 21 22 memory@0 { 23 device_type = "memory"; 24 reg = <0x0 0x0 0x0 0x10000000> 25 }; 26 27 reserved-memory { 28 #address-cells = <2>; 29 #size-cells = <2>; 30 ranges; 31 32 /* 9 MiB reserved for ARM Trus 33 secmon_reserved: secmon@7f0000 34 compatible = "shared-d 35 reg = <0x0 0x07f00000 36 no-map; 37 }; 38 }; 39 40 main_12v: regulator-main-12v { 41 compatible = "regulator-fixed" 42 regulator-name = "12V"; 43 regulator-min-microvolt = <120 44 regulator-max-microvolt = <120 45 regulator-boot-on; 46 regulator-always-on; 47 }; 48 49 vcc_5v: regulator-vcc-5v { 50 compatible = "regulator-fixed" 51 regulator-name = "VCC5V"; 52 regulator-min-microvolt = <500 53 regulator-max-microvolt = <500 54 vin-supply = <&main_12v>; 55 regulator-boot-on; 56 regulator-always-on; 57 }; 58 59 vddq: regulator-vddq { 60 compatible = "regulator-fixed" 61 regulator-name = "VDDQ"; 62 regulator-min-microvolt = <120 63 regulator-max-microvolt = <120 64 vin-supply = <&main_12v>; 65 regulator-boot-on; 66 regulator-always-on; 67 }; 68 69 vddao_3v3: regulator-vddao-3v3 { 70 compatible = "regulator-fixed" 71 regulator-name = "VDDAO3V3"; 72 regulator-min-microvolt = <330 73 regulator-max-microvolt = <330 74 vin-supply = <&main_12v>; 75 regulator-boot-on; 76 regulator-always-on; 77 }; 78 79 vddao_1v8: regulator-vddao-1v8 { 80 compatible = "regulator-fixed" 81 regulator-name = "VDDAO1V8"; 82 regulator-min-microvolt = <180 83 regulator-max-microvolt = <180 84 vin-supply = <&vddao_3v3>; 85 regulator-boot-on; 86 regulator-always-on; 87 }; 88 89 ddr4_2v5: regulator-ddr4-2v5 { 90 compatible = "regulator-fixed" 91 regulator-name = "DDR4_2V5"; 92 regulator-min-microvolt = <250 93 regulator-max-microvolt = <250 94 vin-supply = <&vddao_3v3>; 95 regulator-boot-on; 96 regulator-always-on; 97 }; 98 99 vcc_3v3: regulator-vcc-3v3 { 100 compatible = "regulator-fixed" 101 regulator-name = "VCC3V3"; 102 regulator-min-microvolt = <330 103 regulator-max-microvolt = <330 104 vin-supply = <&vddao_3v3>; 105 regulator-boot-on; 106 regulator-always-on; 107 }; 108 109 vcc_1v8: regulator-vcc-1v8 { 110 compatible = "regulator-fixed" 111 regulator-name = "VCC1V8"; 112 regulator-min-microvolt = <180 113 regulator-max-microvolt = <180 114 vin-supply = <&vcc_3v3>; 115 regulator-boot-on; 116 regulator-always-on; 117 }; 118 119 vdd_1v8: regulator-vdd-1v8 { 120 compatible = "regulator-fixed" 121 regulator-name = "VDD1V8_BOOT" 122 regulator-min-microvolt = <180 123 regulator-max-microvolt = <180 124 vin-supply = <&vcc_3v3>; 125 regulator-boot-on; 126 regulator-always-on; 127 }; 128 129 vddio_b: regulator-vddio-3v3-b { 130 compatible = "regulator-fixed" 131 regulator-name = "VDDIO_B"; 132 regulator-min-microvolt = <330 133 regulator-max-microvolt = <330 134 vin-supply = <&vcc_3v3>; 135 regulator-boot-on; 136 regulator-always-on; 137 }; 138 139 sdcard: regulator-sdcard { 140 compatible = "regulator-fixed" 141 regulator-name = "SDCARD_POWER 142 regulator-min-microvolt = <330 143 regulator-max-microvolt = <330 144 vin-supply = <&vddao_3v3>; 145 gpio = <&gpio GPIOA_4 GPIO_ACT 146 regulator-boot-on; 147 regulator-always-on; 148 }; 149 }; 150 151 &uart_b { 152 status = "okay"; 153 }; 154 155 &nand { 156 status = "okay"; 157 #address-cells = <1>; 158 #size-cells = <0>; 159 160 pinctrl-0 = <&nand_pins>; 161 pinctrl-names = "default"; 162 163 nand@0 { 164 reg = <0>; 165 #address-cells = <1>; 166 #size-cells = <1>; 167 nand-on-flash-bbt; 168 169 partition@0 { 170 label = "boot"; 171 reg = <0x0 0x00200000> 172 }; 173 partition@200000 { 174 label = "env"; 175 reg = <0x00200000 0x00 176 }; 177 partition@600000 { 178 label = "system"; 179 reg = <0x00600000 0x00 180 }; 181 partition@1000000 { 182 label = "rootfs"; 183 reg = <0x01000000 0x03 184 }; 185 partition@4000000 { 186 label = "media"; 187 reg = <0x04000000 0x80 188 }; 189 }; 190 }; 191 192 ðmac { 193 status = "okay"; 194 phy-handle = <&internal_ephy>; 195 phy-mode = "rmii"; 196 }; 197 198 &spifc { 199 #address-cells = <1>; 200 #size-cells = <0>; 201 202 pinctrl-0 = <&spifc_pins>; 203 pinctrl-names = "default"; 204 205 nand@0 { 206 compatible = "spi-nand"; 207 reg = <0>; 208 spi-max-frequency = <83000000> 209 spi-tx-bus-width = <4>; 210 spi-rx-bus-width = <4>; 211 status = "disabled"; 212 213 partitions { 214 compatible = "fixed-pa 215 #address-cells = <1>; 216 #size-cells = <1>; 217 218 partition@0 { 219 label = "boot" 220 reg = <0 0x200 221 }; 222 223 partition@200000 { 224 label = "env"; 225 reg = <0x20000 226 }; 227 228 partition@600000 { 229 label = "syste 230 reg = <0x60000 231 }; 232 233 partition@1000000 { 234 label = "rootf 235 reg = <0x10000 236 }; 237 238 partition@4000000 { 239 label = "data" 240 reg = <0x40000 241 }; 242 }; 243 }; 244 }; 245 246 &sd { 247 status = "okay"; 248 pinctrl-0 = <&sdcard_pins>; 249 pinctrl-1 = <&sdcard_clk_gate_pins>; 250 pinctrl-names = "default","clk-gate"; 251 252 bus-width = <4>; 253 cap-sd-highspeed; 254 max-frequency = <50000000>; 255 disable-wp; 256 257 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_ 258 vmmc-supply = <&sdcard>; 259 vqmmc-supply = <&sdcard>; 260 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.