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