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