0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002
0003 /dts-v1/;
0004
0005 #include "rk3036.dtsi"
0006
0007 / {
0008 model = "Rockchip RK3036 KylinBoard";
0009 compatible = "rockchip,rk3036-kylin", "rockchip,rk3036";
0010
0011 memory@60000000 {
0012 device_type = "memory";
0013 reg = <0x60000000 0x20000000>;
0014 };
0015
0016 leds: gpio-leds {
0017 compatible = "gpio-leds";
0018
0019 work_led: led-0 {
0020 gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
0021 label = "kylin:red:led";
0022 pinctrl-names = "default";
0023 pinctrl-0 = <&led_ctl>;
0024 };
0025 };
0026
0027 sdio_pwrseq: sdio-pwrseq {
0028 compatible = "mmc-pwrseq-simple";
0029 pinctrl-names = "default";
0030 pinctrl-0 = <&bt_wake_h>;
0031
0032 /*
0033 * On the module itself this is one of these (depending
0034 * on the actual card populated):
0035 * - SDIO_RESET_L_WL_REG_ON
0036 * - SDIO_RESET_L_WL_RST
0037 * - SDIO_RESET_L_BT_EN
0038 */
0039 reset-gpios = <&gpio0 RK_PD2 GPIO_ACTIVE_LOW>, /* WL_REG_ON */
0040 <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>, /* WL_RST */
0041 <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; /* BT_EN */
0042 };
0043
0044 sound {
0045 compatible = "simple-audio-card";
0046 simple-audio-card,format = "i2s";
0047 simple-audio-card,name = "rockchip,rt5616-codec";
0048 simple-audio-card,mclk-fs = <512>;
0049 simple-audio-card,widgets =
0050 "Microphone", "Microphone Jack",
0051 "Headphone", "Headphone Jack";
0052 simple-audio-card,routing =
0053 "MIC1", "Microphone Jack",
0054 "MIC2", "Microphone Jack",
0055 "Microphone Jack", "micbias1",
0056 "Headphone Jack", "HPOL",
0057 "Headphone Jack", "HPOR";
0058
0059 simple-audio-card,cpu {
0060 sound-dai = <&i2s>;
0061 };
0062
0063 simple-audio-card,codec {
0064 sound-dai = <&rt5616>;
0065 };
0066 };
0067
0068 vcc_sys: vsys-regulator {
0069 compatible = "regulator-fixed";
0070 regulator-name = "vcc_sys";
0071 regulator-min-microvolt = <5000000>;
0072 regulator-max-microvolt = <5000000>;
0073 regulator-always-on;
0074 regulator-boot-on;
0075 };
0076 };
0077
0078 &acodec {
0079 status = "okay";
0080 };
0081
0082 &emac {
0083 pinctrl-names = "default";
0084 pinctrl-0 = <&emac_xfer>, <&emac_mdio>;
0085 phy = <&phy0>;
0086 phy-reset-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; /* PHY_RST */
0087 phy-reset-duration = <10>; /* millisecond */
0088
0089 status = "okay";
0090
0091 phy0: ethernet-phy@0 {
0092 reg = <0>;
0093 };
0094 };
0095
0096 &emmc {
0097 status = "okay";
0098 };
0099
0100 &gpu {
0101 mali-supply = <&vdd_gpu>;
0102 status = "okay";
0103 };
0104
0105 &hdmi {
0106 status = "okay";
0107 };
0108
0109 &i2c1 {
0110 clock-frequency = <400000>;
0111
0112 status = "okay";
0113
0114 rk808: pmic@1b {
0115 compatible = "rockchip,rk808";
0116 reg = <0x1b>;
0117 interrupt-parent = <&gpio2>;
0118 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
0119 pinctrl-names = "default";
0120 pinctrl-0 = <&pmic_int &global_pwroff>;
0121 rockchip,system-power-controller;
0122 wakeup-source;
0123 #clock-cells = <1>;
0124 clock-output-names = "xin32k", "rk808-clkout2";
0125
0126 vcc1-supply = <&vcc_sys>;
0127 vcc2-supply = <&vcc_sys>;
0128 vcc3-supply = <&vcc_sys>;
0129 vcc4-supply = <&vcc_sys>;
0130 vcc6-supply = <&vcc_sys>;
0131 vcc7-supply = <&vcc_sys>;
0132 vcc8-supply = <&vcc_18>;
0133 vcc9-supply = <&vcc_io>;
0134 vcc10-supply = <&vcc_io>;
0135 vcc11-supply = <&vcc_sys>;
0136 vcc12-supply = <&vcc_io>;
0137 vddio-supply = <&vccio_pmu>;
0138
0139 regulators {
0140 vdd_cpu: DCDC_REG1 {
0141 regulator-always-on;
0142 regulator-boot-on;
0143 regulator-min-microvolt = <750000>;
0144 regulator-max-microvolt = <1350000>;
0145 regulator-name = "vdd_arm";
0146 regulator-state-mem {
0147 regulator-off-in-suspend;
0148 };
0149 };
0150
0151 vdd_gpu: DCDC_REG2 {
0152 regulator-always-on;
0153 regulator-boot-on;
0154 regulator-min-microvolt = <850000>;
0155 regulator-max-microvolt = <1250000>;
0156 regulator-name = "vdd_gpu";
0157 regulator-state-mem {
0158 regulator-on-in-suspend;
0159 regulator-suspend-microvolt = <1000000>;
0160 };
0161 };
0162
0163 vcc_ddr: DCDC_REG3 {
0164 regulator-always-on;
0165 regulator-boot-on;
0166 regulator-name = "vcc_ddr";
0167 regulator-state-mem {
0168 regulator-on-in-suspend;
0169 };
0170 };
0171
0172 vcc_io: DCDC_REG4 {
0173 regulator-always-on;
0174 regulator-boot-on;
0175 regulator-min-microvolt = <3300000>;
0176 regulator-max-microvolt = <3300000>;
0177 regulator-name = "vcc_io";
0178 regulator-state-mem {
0179 regulator-on-in-suspend;
0180 regulator-suspend-microvolt = <3300000>;
0181 };
0182 };
0183
0184 vccio_pmu: LDO_REG1 {
0185 regulator-always-on;
0186 regulator-boot-on;
0187 regulator-min-microvolt = <3300000>;
0188 regulator-max-microvolt = <3300000>;
0189 regulator-name = "vccio_pmu";
0190 regulator-state-mem {
0191 regulator-on-in-suspend;
0192 regulator-suspend-microvolt = <3300000>;
0193 };
0194 };
0195
0196 vcc_tp: LDO_REG2 {
0197 regulator-always-on;
0198 regulator-boot-on;
0199 regulator-min-microvolt = <3300000>;
0200 regulator-max-microvolt = <3300000>;
0201 regulator-name = "vcc_tp";
0202 regulator-state-mem {
0203 regulator-off-in-suspend;
0204 };
0205 };
0206
0207 vdd_10: LDO_REG3 {
0208 regulator-always-on;
0209 regulator-boot-on;
0210 regulator-min-microvolt = <1000000>;
0211 regulator-max-microvolt = <1000000>;
0212 regulator-name = "vdd_10";
0213 regulator-state-mem {
0214 regulator-on-in-suspend;
0215 regulator-suspend-microvolt = <1000000>;
0216 };
0217 };
0218
0219 vcc18_lcd: LDO_REG4 {
0220 regulator-always-on;
0221 regulator-boot-on;
0222 regulator-min-microvolt = <1800000>;
0223 regulator-max-microvolt = <1800000>;
0224 regulator-name = "vcc18_lcd";
0225 regulator-state-mem {
0226 regulator-on-in-suspend;
0227 regulator-suspend-microvolt = <1800000>;
0228 };
0229 };
0230
0231 vccio_sd: LDO_REG5 {
0232 regulator-always-on;
0233 regulator-boot-on;
0234 regulator-min-microvolt = <1800000>;
0235 regulator-max-microvolt = <3300000>;
0236 regulator-name = "vccio_sd";
0237 regulator-state-mem {
0238 regulator-on-in-suspend;
0239 regulator-suspend-microvolt = <3300000>;
0240 };
0241 };
0242
0243 vout5: LDO_REG6 {
0244 regulator-always-on;
0245 regulator-boot-on;
0246 regulator-min-microvolt = <1800000>;
0247 regulator-max-microvolt = <2500000>;
0248 regulator-name = "vout5";
0249 regulator-state-mem {
0250 regulator-on-in-suspend;
0251 regulator-suspend-microvolt = <1800000>;
0252 };
0253 };
0254
0255 vcc_18: LDO_REG7 {
0256 regulator-always-on;
0257 regulator-boot-on;
0258 regulator-min-microvolt = <1800000>;
0259 regulator-max-microvolt = <1800000>;
0260 regulator-name = "vcc_18";
0261 regulator-state-mem {
0262 regulator-on-in-suspend;
0263 regulator-suspend-microvolt = <1800000>;
0264 };
0265 };
0266
0267 vcca_codec: LDO_REG8 {
0268 regulator-always-on;
0269 regulator-boot-on;
0270 regulator-min-microvolt = <1800000>;
0271 regulator-max-microvolt = <1800000>;
0272 regulator-name = "vcca_codec";
0273 regulator-state-mem {
0274 regulator-on-in-suspend;
0275 regulator-suspend-microvolt = <1800000>;
0276 };
0277 };
0278
0279 vcc_wl: SWITCH_REG1 {
0280 regulator-always-on;
0281 regulator-boot-on;
0282 regulator-name = "vcc_wl";
0283 regulator-state-mem {
0284 regulator-on-in-suspend;
0285 };
0286 };
0287
0288 vcc_lcd: SWITCH_REG2 {
0289 regulator-always-on;
0290 regulator-boot-on;
0291 regulator-name = "vcc_lcd";
0292 regulator-state-mem {
0293 regulator-on-in-suspend;
0294 };
0295 };
0296 };
0297 };
0298 };
0299
0300 &i2c2 {
0301 status = "okay";
0302
0303 rt5616: rt5616@1b {
0304 compatible = "rt5616";
0305 reg = <0x1b>;
0306 clocks = <&cru SCLK_I2S_OUT>;
0307 clock-names = "mclk";
0308 #sound-dai-cells = <0>;
0309 };
0310 };
0311
0312 &i2s {
0313 status = "okay";
0314 };
0315
0316 &sdio {
0317 status = "okay";
0318
0319 bus-width = <4>;
0320 cap-sd-highspeed;
0321 cap-sdio-irq;
0322 rockchip,default-sample-phase = <90>;
0323 keep-power-in-suspend;
0324 mmc-pwrseq = <&sdio_pwrseq>;
0325 non-removable;
0326 pinctrl-names = "default";
0327 pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>;
0328 sd-uhs-sdr12;
0329 sd-uhs-sdr25;
0330 sd-uhs-sdr50;
0331 sd-uhs-sdr104;
0332 };
0333
0334 &sdmmc {
0335 bus-width = <4>;
0336 cap-mmc-highspeed;
0337 cap-sd-highspeed;
0338 card-detect-delay = <200>;
0339 disable-wp;
0340 pinctrl-names = "default";
0341 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
0342 };
0343
0344 &uart0 {
0345 status = "okay";
0346 };
0347
0348 &uart2 {
0349 status = "okay";
0350 };
0351
0352 &usb_host {
0353 status = "okay";
0354 };
0355
0356 &usb_otg {
0357 status = "okay";
0358 };
0359
0360 &vop {
0361 status = "okay";
0362 };
0363
0364 &vop_mmu {
0365 status = "okay";
0366 };
0367
0368 &pinctrl {
0369 leds {
0370 led_ctl: led-ctl {
0371 rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
0372 };
0373 };
0374
0375 pmic {
0376 pmic_int: pmic-int {
0377 rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_default>;
0378 };
0379 };
0380
0381 sdio {
0382 bt_wake_h: bt-wake-h {
0383 rockchip,pins = <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_default>;
0384 };
0385 };
0386
0387 sdmmc {
0388 sdmmc_pwr: sdmmc-pwr {
0389 rockchip,pins = <2 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
0390 };
0391 };
0392
0393 suspend {
0394 global_pwroff: global-pwroff {
0395 rockchip,pins = <2 RK_PA7 1 &pcfg_pull_none>;
0396 };
0397 };
0398 };