1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 2 3 /dts-v1/; 3 /dts-v1/; 4 4 5 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 9 10 #include "rk3566-soquartz.dtsi" 10 #include "rk3566-soquartz.dtsi" 11 11 12 / { 12 / { 13 model = "Pine64 SOQuartz on Blade carr !! 13 model = "PINE64 RK3566 SOQuartz on Blade carrier board"; 14 compatible = "pine64,soquartz-blade", 14 compatible = "pine64,soquartz-blade", "pine64,soquartz", "rockchip,rk3566"; 15 << 16 aliases { << 17 ethernet0 = &gmac1; << 18 }; << 19 15 20 /* labeled VCC3V0_SD in schematic to n 16 /* labeled VCC3V0_SD in schematic to not conflict with PMIC regulator */ 21 vcc3v0_sd: vcc3v0-sd-regulator { 17 vcc3v0_sd: vcc3v0-sd-regulator { 22 compatible = "regulator-fixed" 18 compatible = "regulator-fixed"; 23 regulator-name = "vcc3v0_sd"; 19 regulator-name = "vcc3v0_sd"; 24 regulator-always-on; 20 regulator-always-on; 25 regulator-boot-on; 21 regulator-boot-on; 26 regulator-min-microvolt = <330 22 regulator-min-microvolt = <3300000>; 27 regulator-max-microvolt = <330 23 regulator-max-microvolt = <3300000>; 28 vin-supply = <&vcc3v3_sys>; 24 vin-supply = <&vcc3v3_sys>; 29 }; 25 }; 30 26 31 /* labeled VCC_SSD in schematic */ 27 /* labeled VCC_SSD in schematic */ 32 vcc3v3_pcie_p: vcc3v3-pcie-regulator { 28 vcc3v3_pcie_p: vcc3v3-pcie-regulator { 33 compatible = "regulator-fixed" 29 compatible = "regulator-fixed"; 34 regulator-name = "vcc3v3_pcie_ 30 regulator-name = "vcc3v3_pcie_p"; 35 regulator-always-on; 31 regulator-always-on; 36 regulator-boot-on; 32 regulator-boot-on; 37 regulator-min-microvolt = <330 33 regulator-min-microvolt = <3300000>; 38 regulator-max-microvolt = <330 34 regulator-max-microvolt = <3300000>; 39 vin-supply = <&vbus>; 35 vin-supply = <&vbus>; 40 }; 36 }; 41 37 42 vcc5v_dcin: vcc5v-dcin-regulator { 38 vcc5v_dcin: vcc5v-dcin-regulator { 43 compatible = "regulator-fixed" 39 compatible = "regulator-fixed"; 44 regulator-name = "vcc5v_dcin"; 40 regulator-name = "vcc5v_dcin"; 45 regulator-always-on; 41 regulator-always-on; 46 regulator-boot-on; 42 regulator-boot-on; 47 regulator-min-microvolt = <500 43 regulator-min-microvolt = <5000000>; 48 regulator-max-microvolt = <500 44 regulator-max-microvolt = <5000000>; 49 }; 45 }; 50 }; 46 }; 51 47 52 &combphy2 { 48 &combphy2 { 53 phy-supply = <&vcc3v3_sys>; 49 phy-supply = <&vcc3v3_sys>; 54 status = "okay"; 50 status = "okay"; 55 }; 51 }; 56 52 57 &gmac1 { 53 &gmac1 { 58 status = "okay"; 54 status = "okay"; 59 }; 55 }; 60 56 61 /* 57 /* 62 * i2c1 is exposed on CM1 / Module1A 58 * i2c1 is exposed on CM1 / Module1A 63 * pin 80 - SCL0 - i2c1_scl_m0, pullup to vcc3 59 * pin 80 - SCL0 - i2c1_scl_m0, pullup to vcc3v3_pmu 64 * pin 82 - SDA0 - i2c1_sda_m0, pullup to vcc3 60 * pin 82 - SDA0 - i2c1_sda_m0, pullup to vcc3v3_pmu 65 */ 61 */ 66 &i2c1 { 62 &i2c1 { 67 status = "okay"; 63 status = "okay"; 68 64 69 }; 65 }; 70 66 71 /* 67 /* 72 * i2c2 is exposed on CM1 / Module1A - to PI40 68 * i2c2 is exposed on CM1 / Module1A - to PI40 73 * pin 56 - GPIO3 - i2c2_scl_m1, pullup to vcc 69 * pin 56 - GPIO3 - i2c2_scl_m1, pullup to vcc_3v3, shared with i2s1_8ch 74 * pin 58 - GPIO2 - i2c2_sda_m1, pullup to vcc 70 * pin 58 - GPIO2 - i2c2_sda_m1, pullup to vcc_3v3 75 */ 71 */ 76 &i2c2 { 72 &i2c2 { 77 status = "disabled"; 73 status = "disabled"; 78 }; 74 }; 79 75 80 /* 76 /* 81 * i2c3 is exposed on CM1 / Module1A - to PI40 77 * i2c3 is exposed on CM1 / Module1A - to PI40 82 * pin 35 - ID_SC(GPIO28) - i2c3_scl_m0, pullu 78 * pin 35 - ID_SC(GPIO28) - i2c3_scl_m0, pullup to vcc_3v3 83 * pin 36 - ID_SD(GPIO27) - i2c3_sda_m0, pullu 79 * pin 36 - ID_SD(GPIO27) - i2c3_sda_m0, pullup to vcc_3v3 84 */ 80 */ 85 &i2c3 { 81 &i2c3 { 86 status = "disabled"; 82 status = "disabled"; 87 }; 83 }; 88 84 89 /* 85 /* 90 * i2c4 is exposed on CM2 / Module1B - to PI40 86 * i2c4 is exposed on CM2 / Module1B - to PI40 91 * pin 45 - GPIO24 - i2c4_scl_m1 87 * pin 45 - GPIO24 - i2c4_scl_m1 92 * pin 47 - GPIO23 - i2c4_sda_m1 88 * pin 47 - GPIO23 - i2c4_sda_m1 93 */ 89 */ 94 &i2c4 { 90 &i2c4 { 95 status = "disabled"; 91 status = "disabled"; 96 }; 92 }; 97 93 98 /* 94 /* 99 * i2s1_8ch is exposed on CM1 / Module1A - to 95 * i2s1_8ch is exposed on CM1 / Module1A - to PI40 100 * pin 24 - GPIO26 - i2s1_sdi1_m1 96 * pin 24 - GPIO26 - i2s1_sdi1_m1 101 * pin 25 - GPIO21 - i2s1_sdo0_m1 97 * pin 25 - GPIO21 - i2s1_sdo0_m1 102 * pin 26 - GPIO19 - i2s1_lrck_tx_m1 98 * pin 26 - GPIO19 - i2s1_lrck_tx_m1 103 * pin 27 - GPIO20 - i2s1_sdi0_m1 99 * pin 27 - GPIO20 - i2s1_sdi0_m1 104 * pin 29 - GPIO16 - i2s1_sdi3_m1 100 * pin 29 - GPIO16 - i2s1_sdi3_m1 105 * pin 30 - GPIO6 - i2s1_sdi2_m1 101 * pin 30 - GPIO6 - i2s1_sdi2_m1 106 * pin 40 - GPIO9 - i2s1_sdo1_m1, shared with 102 * pin 40 - GPIO9 - i2s1_sdo1_m1, shared with spi3 107 * pin 41 - GPIO25 - i2s1_sdo2_m1 103 * pin 41 - GPIO25 - i2s1_sdo2_m1 108 * pin 49 - GPIO18 - i2s1_sclk_tx_m1 104 * pin 49 - GPIO18 - i2s1_sclk_tx_m1 109 * pin 50 - GPIO17 - i2s1_mclk_m1 105 * pin 50 - GPIO17 - i2s1_mclk_m1 110 * pin 56 - GPIO3 - i2s1_sdo3_m1, shared with 106 * pin 56 - GPIO3 - i2s1_sdo3_m1, shared with i2c2 111 */ 107 */ 112 &i2s1_8ch { 108 &i2s1_8ch { 113 status = "disabled"; 109 status = "disabled"; 114 }; 110 }; 115 111 116 &led_diy { 112 &led_diy { 117 color = <LED_COLOR_ID_RED>; 113 color = <LED_COLOR_ID_RED>; 118 function = LED_FUNCTION_DISK_ACTIVITY; 114 function = LED_FUNCTION_DISK_ACTIVITY; 119 linux,default-trigger = "disk-activity 115 linux,default-trigger = "disk-activity"; 120 status = "okay"; 116 status = "okay"; 121 }; 117 }; 122 118 123 &led_work { 119 &led_work { 124 color = <LED_COLOR_ID_GREEN>; 120 color = <LED_COLOR_ID_GREEN>; 125 function = LED_FUNCTION_STATUS; 121 function = LED_FUNCTION_STATUS; 126 linux,default-trigger = "heartbeat"; 122 linux,default-trigger = "heartbeat"; 127 status = "okay"; 123 status = "okay"; 128 }; 124 }; 129 125 130 &pcie2x1 { 126 &pcie2x1 { 131 vpcie3v3-supply = <&vcc3v3_pcie_p>; 127 vpcie3v3-supply = <&vcc3v3_pcie_p>; 132 status = "okay"; 128 status = "okay"; 133 }; 129 }; 134 130 135 &rgmii_phy1 { 131 &rgmii_phy1 { 136 status = "okay"; 132 status = "okay"; 137 }; 133 }; 138 134 139 /* 135 /* 140 * saradc is exposed on CM1 / Module1A - to J2 136 * saradc is exposed on CM1 / Module1A - to J2 141 * pin 94 - AIN1 - saradc_vin3 137 * pin 94 - AIN1 - saradc_vin3 142 * pin 96 - AIN0 - saradc_vin2 138 * pin 96 - AIN0 - saradc_vin2 143 */ 139 */ 144 &saradc { 140 &saradc { 145 status = "disabled"; 141 status = "disabled"; 146 }; 142 }; 147 143 148 &sdmmc0 { 144 &sdmmc0 { 149 vmmc-supply = <&vcc3v0_sd>; 145 vmmc-supply = <&vcc3v0_sd>; 150 status = "okay"; 146 status = "okay"; 151 }; 147 }; 152 148 153 /* 149 /* 154 * spi3 is exposed on CM1 / Module1A - to PI40 150 * spi3 is exposed on CM1 / Module1A - to PI40 155 * pin 37 - GPIO7 - spi3_cs1_m0 151 * pin 37 - GPIO7 - spi3_cs1_m0 156 * pin 38 - GPIO11 - spi3_clk_m0 152 * pin 38 - GPIO11 - spi3_clk_m0 157 * pin 39 - GPIO8 - spi3_cs0_m0 153 * pin 39 - GPIO8 - spi3_cs0_m0 158 * pin 40 - GPIO9 - spi3_miso_m0, shared with 154 * pin 40 - GPIO9 - spi3_miso_m0, shared with i2s1_8ch 159 * pin 44 - GPIO10 - spi3_mosi_m0 155 * pin 44 - GPIO10 - spi3_mosi_m0 160 */ 156 */ 161 &spi3 { 157 &spi3 { 162 status = "disabled"; 158 status = "disabled"; 163 }; 159 }; 164 160 165 /* 161 /* 166 * uart2 is exposed on CM1 / Module1A - to PI4 162 * uart2 is exposed on CM1 / Module1A - to PI40 167 * pin 51 - GPIO15 - uart2_rx_m0 163 * pin 51 - GPIO15 - uart2_rx_m0 168 * pin 55 - GPIO14 - uart2_tx_m0 164 * pin 55 - GPIO14 - uart2_tx_m0 169 */ 165 */ 170 &uart2 { 166 &uart2 { 171 status = "okay"; 167 status = "okay"; 172 }; 168 }; 173 169 174 /* 170 /* 175 * uart7 is exposed on CM1 / Module1A - to PI4 171 * uart7 is exposed on CM1 / Module1A - to PI40 176 * pin 46 - GPIO22 - uart7_tx_m2 172 * pin 46 - GPIO22 - uart7_tx_m2 177 * pin 47 - GPIO23 - uart7_rx_m2 173 * pin 47 - GPIO23 - uart7_rx_m2 178 */ 174 */ 179 &uart7 { 175 &uart7 { 180 status = "okay"; 176 status = "okay"; 181 }; 177 }; 182 178 183 &usb2phy0 { 179 &usb2phy0 { 184 status = "okay"; 180 status = "okay"; 185 }; 181 }; 186 182 187 &usb2phy0_otg { 183 &usb2phy0_otg { 188 phy-supply = <&vbus>; 184 phy-supply = <&vbus>; 189 status = "okay"; 185 status = "okay"; 190 }; 186 }; 191 187 192 &usb_host0_xhci { 188 &usb_host0_xhci { 193 status = "okay"; 189 status = "okay"; 194 }; 190 }; 195 191 196 &vbus { 192 &vbus { 197 vin-supply = <&vcc5v_dcin>; 193 vin-supply = <&vcc5v_dcin>; 198 }; 194 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.