0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002
0003 /dts-v1/;
0004
0005 #include "rk3566-soquartz.dtsi"
0006
0007 / {
0008 model = "Pine64 RK3566 SoQuartz with CM4-IO Carrier Board";
0009 compatible = "pine64,soquartz-cm4io", "pine64,soquartz", "rockchip,rk3566";
0010
0011 /* labeled +12v in schematic */
0012 vcc12v_dcin: vcc12v-dcin-regulator {
0013 compatible = "regulator-fixed";
0014 regulator-name = "vcc12v_dcin";
0015 regulator-always-on;
0016 regulator-boot-on;
0017 regulator-min-microvolt = <12000000>;
0018 regulator-max-microvolt = <12000000>;
0019 };
0020
0021 /* labeled +5v in schematic */
0022 vcc_5v: vcc-5v-regulator {
0023 compatible = "regulator-fixed";
0024 regulator-name = "vcc_5v";
0025 regulator-always-on;
0026 regulator-boot-on;
0027 regulator-min-microvolt = <5000000>;
0028 regulator-max-microvolt = <5000000>;
0029 vin-supply = <&vcc12v_dcin>;
0030 };
0031 };
0032
0033 &gmac1 {
0034 status = "okay";
0035 };
0036
0037 /*
0038 * i2c1 is exposed on CM1 / Module1A
0039 * pin 80 - SCL0 - i2c1_scl_m0, pullup to vcc3v3_pmu
0040 * pin 82 - SDA0 - i2c1_sda_m0, pullup to vcc3v3_pmu
0041 */
0042 &i2c1 {
0043 status = "okay";
0044
0045 /*
0046 * the rtc interrupt is tied to PMIC_PWRON,
0047 * it will force reset the board if triggered.
0048 */
0049 pcf85063: rtc@51 {
0050 compatible = "nxp,pcf85063";
0051 reg = <0x51>;
0052 };
0053 };
0054
0055 /*
0056 * i2c2 is exposed on CM1 / Module1A - to PI40
0057 * pin 56 - GPIO3 - i2c2_scl_m1, pullup to vcc_3v3, shared with i2s1_8ch
0058 * pin 58 - GPIO2 - i2c2_sda_m1, pullup to vcc_3v3
0059 */
0060 &i2c2 {
0061 status = "disabled";
0062 };
0063
0064 /*
0065 * i2c3 is exposed on CM1 / Module1A - to PI40
0066 * pin 35 - ID_SC(GPIO28) - i2c3_scl_m0, pullup to vcc_3v3
0067 * pin 36 - ID_SD(GPIO27) - i2c3_sda_m0, pullup to vcc_3v3
0068 */
0069 &i2c3 {
0070 status = "disabled";
0071 };
0072
0073 /*
0074 * i2c4 is exposed on CM2 / Module1B - to PI40
0075 * pin 45 - GPIO24 - i2c4_scl_m1
0076 * pin 47 - GPIO23 - i2c4_sda_m1
0077 */
0078 &i2c4 {
0079 status = "disabled";
0080 };
0081
0082 /*
0083 * i2s1_8ch is exposed on CM1 / Module1A - to PI40
0084 * pin 24 - GPIO26 - i2s1_sdi1_m1
0085 * pin 25 - GPIO21 - i2s1_sdo0_m1
0086 * pin 26 - GPIO19 - i2s1_lrck_tx_m1
0087 * pin 27 - GPIO20 - i2s1_sdi0_m1
0088 * pin 29 - GPIO16 - i2s1_sdi3_m1
0089 * pin 30 - GPIO6 - i2s1_sdi2_m1
0090 * pin 40 - GPIO9 - i2s1_sdo1_m1, shared with spi3
0091 * pin 41 - GPIO25 - i2s1_sdo2_m1
0092 * pin 49 - GPIO18 - i2s1_sclk_tx_m1
0093 * pin 50 - GPIO17 - i2s1_mclk_m1
0094 * pin 56 - GPIO3 - i2s1_sdo3_m1, shared with i2c2
0095 */
0096 &i2s1_8ch {
0097 status = "disabled";
0098 };
0099
0100 &led_diy {
0101 status = "okay";
0102 };
0103
0104 &led_work {
0105 status = "okay";
0106 };
0107
0108 &rgmii_phy1 {
0109 status = "okay";
0110 };
0111
0112 /*
0113 * saradc is exposed on CM1 / Module1A - to J2
0114 * pin 94 - AIN1 - saradc_vin3
0115 * pin 96 - AIN0 - saradc_vin2
0116 */
0117 &saradc {
0118 status = "disabled";
0119 };
0120
0121 &sdmmc0 {
0122 vmmc-supply = <&sdmmc_pwr>;
0123 status = "okay";
0124 };
0125
0126 &sdmmc_pwr {
0127 regulator-min-microvolt = <3300000>;
0128 regulator-max-microvolt = <3300000>;
0129 status = "okay";
0130 };
0131
0132 /*
0133 * spi3 is exposed on CM1 / Module1A - to PI40
0134 * pin 37 - GPIO7 - spi3_cs1_m0
0135 * pin 38 - GPIO11 - spi3_clk_m0
0136 * pin 39 - GPIO8 - spi3_cs0_m0
0137 * pin 40 - GPIO9 - spi3_miso_m0, shared with i2s1_8ch
0138 * pin 44 - GPIO10 - spi3_mosi_m0
0139 */
0140 &spi3 {
0141 status = "disabled";
0142 };
0143
0144 /*
0145 * uart2 is exposed on CM1 / Module1A - to PI40
0146 * pin 51 - GPIO15 - uart2_rx_m0
0147 * pin 55 - GPIO14 - uart2_tx_m0
0148 */
0149 &uart2 {
0150 status = "okay";
0151 };
0152
0153 /*
0154 * uart7 is exposed on CM1 / Module1A - to PI40
0155 * pin 46 - GPIO22 - uart7_tx_m2
0156 * pin 47 - GPIO23 - uart7_rx_m2
0157 */
0158 &uart7 {
0159 status = "okay";
0160 };
0161
0162 &usb2phy0 {
0163 status = "okay";
0164 };
0165
0166 &usb2phy0_otg {
0167 phy-supply = <&vcc_5v>;
0168 status = "okay";
0169 };
0170
0171 &usb_host0_xhci {
0172 status = "okay";
0173 };
0174
0175 &vbus {
0176 vin-supply = <&vcc_5v>;
0177 };