1 // SPDX-License-Identifier: GPL-2.0+ 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2020 Facebook Inc. 2 // Copyright (c) 2020 Facebook Inc. 3 3 4 #include "aspeed-g6.dtsi" 4 #include "aspeed-g6.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 6 7 / { 7 / { 8 aliases { 8 aliases { 9 mmc0 = &emmc; 9 mmc0 = &emmc; 10 spi1 = &spi1; 10 spi1 = &spi1; 11 spi2 = &spi_gpio; 11 spi2 = &spi_gpio; 12 }; 12 }; 13 13 14 chosen { 14 chosen { 15 bootargs = "console=ttyS0,9600 15 bootargs = "console=ttyS0,9600n8 root=/dev/ram rw vmalloc=640M"; 16 }; 16 }; 17 17 18 memory@80000000 { 18 memory@80000000 { 19 device_type = "memory"; 19 device_type = "memory"; 20 reg = <0x80000000 0x80000000>; 20 reg = <0x80000000 0x80000000>; 21 }; 21 }; 22 22 23 /* 23 /* 24 * GPIO-based SPI Master is required t 24 * GPIO-based SPI Master is required to access SPI TPM, because 25 * full-duplex SPI transactions are no 25 * full-duplex SPI transactions are not supported by ASPEED SPI 26 * Controllers. 26 * Controllers. 27 */ 27 */ 28 spi_gpio: spi { 28 spi_gpio: spi { 29 status = "okay"; 29 status = "okay"; 30 compatible = "spi-gpio"; 30 compatible = "spi-gpio"; 31 #address-cells = <1>; 31 #address-cells = <1>; 32 #size-cells = <0>; 32 #size-cells = <0>; 33 33 34 gpio-sck = <&gpio0 ASPEED_GPIO 34 gpio-sck = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>; 35 gpio-mosi = <&gpio0 ASPEED_GPI 35 gpio-mosi = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>; 36 gpio-miso = <&gpio0 ASPEED_GPI 36 gpio-miso = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>; 37 37 38 tpm@0 { 38 tpm@0 { 39 compatible = "infineon 39 compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; 40 spi-max-frequency = <3 40 spi-max-frequency = <33000000>; 41 reg = <0>; 41 reg = <0>; 42 }; 42 }; 43 }; 43 }; 44 }; 44 }; 45 45 46 &fmc { 46 &fmc { 47 status = "okay"; 47 status = "okay"; 48 48 49 flash@0 { 49 flash@0 { 50 status = "okay"; 50 status = "okay"; 51 m25p,fast-read; 51 m25p,fast-read; 52 label = "spi0.0"; 52 label = "spi0.0"; 53 53 54 #include "facebook-bmc-flash-layout-128.dtsi" 54 #include "facebook-bmc-flash-layout-128.dtsi" 55 }; 55 }; 56 56 57 flash@1 { 57 flash@1 { 58 status = "okay"; 58 status = "okay"; 59 m25p,fast-read; 59 m25p,fast-read; 60 label = "spi0.1"; 60 label = "spi0.1"; 61 61 62 partitions { 62 partitions { 63 compatible = "fixed-pa 63 compatible = "fixed-partitions"; 64 #address-cells = <1>; 64 #address-cells = <1>; 65 #size-cells = <1>; 65 #size-cells = <1>; 66 66 67 flash1@0 { 67 flash1@0 { 68 reg = <0x0 0x8 68 reg = <0x0 0x8000000>; 69 label = "flash 69 label = "flash1"; 70 }; 70 }; 71 }; 71 }; 72 }; 72 }; 73 }; 73 }; 74 74 75 &spi1 { 75 &spi1 { 76 status = "okay"; 76 status = "okay"; 77 }; 77 }; 78 78 79 &uart1 { 79 &uart1 { 80 status = "okay"; 80 status = "okay"; 81 }; 81 }; 82 82 83 &uart2 { 83 &uart2 { 84 status = "okay"; 84 status = "okay"; 85 }; 85 }; 86 86 87 &uart5 { 87 &uart5 { 88 status = "okay"; 88 status = "okay"; 89 }; 89 }; 90 90 91 &wdt1 { 91 &wdt1 { 92 status = "okay"; 92 status = "okay"; 93 }; 93 }; 94 94 95 &i2c0 { 95 &i2c0 { 96 status = "okay"; 96 status = "okay"; 97 }; 97 }; 98 98 99 &i2c1 { 99 &i2c1 { 100 status = "okay"; 100 status = "okay"; 101 }; 101 }; 102 102 103 &i2c2 { 103 &i2c2 { 104 status = "okay"; 104 status = "okay"; 105 }; 105 }; 106 106 107 &i2c3 { 107 &i2c3 { 108 status = "okay"; 108 status = "okay"; 109 }; 109 }; 110 110 111 &i2c4 { 111 &i2c4 { 112 status = "okay"; 112 status = "okay"; 113 }; 113 }; 114 114 115 &i2c5 { 115 &i2c5 { 116 status = "okay"; 116 status = "okay"; 117 }; 117 }; 118 118 119 &i2c6 { 119 &i2c6 { 120 status = "okay"; 120 status = "okay"; 121 }; 121 }; 122 122 123 &i2c7 { 123 &i2c7 { 124 status = "okay"; 124 status = "okay"; 125 }; 125 }; 126 126 127 &i2c8 { 127 &i2c8 { 128 status = "okay"; 128 status = "okay"; 129 }; 129 }; 130 130 131 &i2c9 { 131 &i2c9 { 132 status = "okay"; 132 status = "okay"; 133 }; 133 }; 134 134 135 &i2c10 { 135 &i2c10 { 136 status = "okay"; 136 status = "okay"; 137 }; 137 }; 138 138 139 &i2c12 { 139 &i2c12 { 140 status = "okay"; 140 status = "okay"; 141 }; 141 }; 142 142 143 &i2c13 { 143 &i2c13 { 144 status = "okay"; 144 status = "okay"; 145 }; 145 }; 146 146 147 &i2c15 { 147 &i2c15 { 148 status = "okay"; 148 status = "okay"; 149 }; 149 }; 150 150 151 &vhub { 151 &vhub { 152 status = "okay"; 152 status = "okay"; 153 }; 153 }; 154 154 155 &emmc_controller { 155 &emmc_controller { 156 status = "okay"; 156 status = "okay"; 157 }; 157 }; 158 158 159 &emmc { 159 &emmc { 160 status = "okay"; 160 status = "okay"; 161 161 162 non-removable; 162 non-removable; 163 max-frequency = <25000000>; 163 max-frequency = <25000000>; 164 bus-width = <4>; 164 bus-width = <4>; 165 }; 165 }; 166 166 167 &rtc { 167 &rtc { 168 status = "okay"; 168 status = "okay"; 169 }; 169 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.