1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2019 Fuzhou Rockchip Electron 3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 #include "rk3308.dtsi" 7 #include "rk3308.dtsi" 8 8 9 / { 9 / { 10 model = "Firefly ROC-RK3308-CC board"; 10 model = "Firefly ROC-RK3308-CC board"; 11 compatible = "firefly,roc-rk3308-cc", 11 compatible = "firefly,roc-rk3308-cc", "rockchip,rk3308"; 12 << 13 aliases { << 14 mmc0 = &sdmmc; << 15 mmc1 = &emmc; << 16 }; << 17 << 18 chosen { 12 chosen { 19 stdout-path = "serial2:1500000 13 stdout-path = "serial2:1500000n8"; 20 }; 14 }; 21 15 22 ir-receiver { !! 16 ir_rx { 23 compatible = "gpio-ir-receiver 17 compatible = "gpio-ir-receiver"; 24 gpios = <&gpio0 RK_PC0 GPIO_AC 18 gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>; 25 pinctrl-names = "default"; 19 pinctrl-names = "default"; 26 pinctrl-0 = <&ir_recv_pin>; 20 pinctrl-0 = <&ir_recv_pin>; 27 }; 21 }; 28 22 29 ir_tx { 23 ir_tx { 30 compatible = "pwm-ir-tx"; 24 compatible = "pwm-ir-tx"; 31 pwms = <&pwm5 0 25000 0>; 25 pwms = <&pwm5 0 25000 0>; 32 }; 26 }; 33 27 34 leds { 28 leds { 35 compatible = "gpio-leds"; 29 compatible = "gpio-leds"; 36 30 37 power_led: led-0 { !! 31 power { 38 label = "firefly:red:p 32 label = "firefly:red:power"; 39 linux,default-trigger !! 33 linux,default-trigger = "ir-power-click"; 40 default-state = "on"; 34 default-state = "on"; 41 gpios = <&gpio0 RK_PA6 35 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 42 }; 36 }; 43 37 44 user_led: led-1 { !! 38 user { 45 label = "firefly:blue: 39 label = "firefly:blue:user"; 46 linux,default-trigger !! 40 linux,default-trigger = "ir-user-click"; 47 default-state = "off"; 41 default-state = "off"; 48 gpios = <&gpio0 RK_PB2 42 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; 49 }; 43 }; 50 }; 44 }; 51 45 52 typec_vcc5v: typec-vcc5v { 46 typec_vcc5v: typec-vcc5v { 53 compatible = "regulator-fixed" 47 compatible = "regulator-fixed"; 54 regulator-name = "typec_vcc5v" 48 regulator-name = "typec_vcc5v"; 55 regulator-min-microvolt = <500 49 regulator-min-microvolt = <5000000>; 56 regulator-max-microvolt = <500 50 regulator-max-microvolt = <5000000>; 57 regulator-always-on; 51 regulator-always-on; 58 regulator-boot-on; 52 regulator-boot-on; 59 }; 53 }; 60 54 61 vcc5v0_sys: vcc5v0-sys { 55 vcc5v0_sys: vcc5v0-sys { 62 compatible = "regulator-fixed" 56 compatible = "regulator-fixed"; 63 regulator-name = "vcc5v0_sys"; 57 regulator-name = "vcc5v0_sys"; 64 regulator-min-microvolt = <500 58 regulator-min-microvolt = <5000000>; 65 regulator-max-microvolt = <500 59 regulator-max-microvolt = <5000000>; 66 regulator-always-on; 60 regulator-always-on; 67 regulator-boot-on; 61 regulator-boot-on; 68 vin-supply = <&typec_vcc5v>; 62 vin-supply = <&typec_vcc5v>; 69 }; 63 }; 70 64 71 vcc_io: vcc-io { 65 vcc_io: vcc-io { 72 compatible = "regulator-fixed" 66 compatible = "regulator-fixed"; 73 regulator-name = "vcc_io"; 67 regulator-name = "vcc_io"; 74 regulator-min-microvolt = <330 68 regulator-min-microvolt = <3300000>; 75 regulator-max-microvolt = <330 69 regulator-max-microvolt = <3300000>; 76 regulator-always-on; 70 regulator-always-on; 77 regulator-boot-on; 71 regulator-boot-on; 78 vin-supply = <&vcc5v0_sys>; 72 vin-supply = <&vcc5v0_sys>; 79 }; 73 }; 80 74 81 vcc_sdmmc: vcc-sdmmc { 75 vcc_sdmmc: vcc-sdmmc { 82 compatible = "regulator-gpio"; 76 compatible = "regulator-gpio"; 83 regulator-name = "vcc_sdmmc"; 77 regulator-name = "vcc_sdmmc"; 84 regulator-min-microvolt = <180 78 regulator-min-microvolt = <1800000>; 85 regulator-max-microvolt = <330 79 regulator-max-microvolt = <3300000>; 86 gpios = <&gpio0 RK_PA7 GPIO_AC 80 gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>; 87 states = <1800000 0x0>, !! 81 states = <1800000 0x0 88 <3300000 0x1>; !! 82 3300000 0x1>; 89 vin-supply = <&vcc5v0_sys>; 83 vin-supply = <&vcc5v0_sys>; 90 }; 84 }; 91 85 92 vcc_sd: vcc-sd { 86 vcc_sd: vcc-sd { 93 compatible = "regulator-fixed" 87 compatible = "regulator-fixed"; 94 gpio = <&gpio4 RK_PD6 GPIO_ACT 88 gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_LOW>; 95 regulator-name = "vcc_sd"; 89 regulator-name = "vcc_sd"; 96 regulator-min-microvolt = <330 90 regulator-min-microvolt = <3300000>; 97 regulator-max-microvolt = <330 91 regulator-max-microvolt = <3300000>; 98 regulator-always-on; 92 regulator-always-on; 99 regulator-boot-on; 93 regulator-boot-on; 100 vin-supply = <&vcc_io>; !! 94 vim-supply = <&vcc_io>; 101 }; 95 }; 102 96 103 vdd_core: vdd-core { 97 vdd_core: vdd-core { 104 compatible = "pwm-regulator"; 98 compatible = "pwm-regulator"; 105 pwms = <&pwm0 0 5000 1>; 99 pwms = <&pwm0 0 5000 1>; 106 regulator-name = "vdd_core"; 100 regulator-name = "vdd_core"; 107 regulator-min-microvolt = <827 101 regulator-min-microvolt = <827000>; 108 regulator-max-microvolt = <134 102 regulator-max-microvolt = <1340000>; >> 103 regulator-init-microvolt = <1015000>; 109 regulator-settling-time-up-us 104 regulator-settling-time-up-us = <250>; 110 regulator-always-on; 105 regulator-always-on; 111 regulator-boot-on; 106 regulator-boot-on; 112 pwm-supply = <&vcc5v0_sys>; 107 pwm-supply = <&vcc5v0_sys>; 113 }; 108 }; 114 109 115 vdd_log: vdd-log { 110 vdd_log: vdd-log { 116 compatible = "regulator-fixed" 111 compatible = "regulator-fixed"; 117 regulator-name = "vdd_log"; 112 regulator-name = "vdd_log"; 118 regulator-min-microvolt = <105 113 regulator-min-microvolt = <1050000>; 119 regulator-max-microvolt = <105 114 regulator-max-microvolt = <1050000>; 120 regulator-always-on; 115 regulator-always-on; 121 regulator-boot-on; 116 regulator-boot-on; 122 vin-supply = <&vcc5v0_sys>; 117 vin-supply = <&vcc5v0_sys>; 123 }; 118 }; 124 }; 119 }; 125 120 126 &cpu0 { 121 &cpu0 { 127 cpu-supply = <&vdd_core>; 122 cpu-supply = <&vdd_core>; 128 }; 123 }; 129 124 130 &emmc { 125 &emmc { >> 126 bus-width = <8>; 131 cap-mmc-highspeed; 127 cap-mmc-highspeed; >> 128 disable-wp; 132 mmc-hs200-1_8v; 129 mmc-hs200-1_8v; 133 non-removable; 130 non-removable; 134 status = "okay"; 131 status = "okay"; 135 }; 132 }; 136 133 137 &i2c1 { 134 &i2c1 { 138 clock-frequency = <400000>; 135 clock-frequency = <400000>; 139 status = "okay"; 136 status = "okay"; 140 137 141 rtc: rtc@51 { 138 rtc: rtc@51 { 142 compatible = "nxp,pcf8563"; 139 compatible = "nxp,pcf8563"; 143 reg = <0x51>; 140 reg = <0x51>; 144 #clock-cells = <0>; 141 #clock-cells = <0>; 145 }; 142 }; 146 }; 143 }; 147 144 148 &pwm5 { 145 &pwm5 { 149 status = "okay"; 146 status = "okay"; 150 pinctrl-names = "active"; 147 pinctrl-names = "active"; 151 pinctrl-0 = <&pwm5_pin_pull_down>; 148 pinctrl-0 = <&pwm5_pin_pull_down>; 152 }; 149 }; 153 150 154 &pinctrl { 151 &pinctrl { 155 pinctrl-names = "default"; 152 pinctrl-names = "default"; 156 pinctrl-0 = <&rtc_32k>; 153 pinctrl-0 = <&rtc_32k>; 157 154 158 ir-receiver { 155 ir-receiver { 159 ir_recv_pin: ir-recv-pin { 156 ir_recv_pin: ir-recv-pin { 160 rockchip,pins = <0 RK_ 157 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 161 }; 158 }; 162 }; 159 }; 163 160 164 buttons { 161 buttons { 165 pwr_key: pwr-key { 162 pwr_key: pwr-key { 166 rockchip,pins = <0 RK_ 163 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; 167 }; 164 }; 168 }; 165 }; 169 }; 166 }; 170 167 171 &pwm0 { 168 &pwm0 { 172 status = "okay"; 169 status = "okay"; 173 pinctrl-0 = <&pwm0_pin_pull_down>; 170 pinctrl-0 = <&pwm0_pin_pull_down>; 174 }; 171 }; 175 172 176 &sdmmc { 173 &sdmmc { >> 174 bus-width = <4>; 177 cap-mmc-highspeed; 175 cap-mmc-highspeed; 178 cap-sd-highspeed; 176 cap-sd-highspeed; 179 card-detect-delay = <300>; 177 card-detect-delay = <300>; 180 sd-uhs-sdr25; 178 sd-uhs-sdr25; 181 sd-uhs-sdr50; 179 sd-uhs-sdr50; 182 sd-uhs-sdr104; 180 sd-uhs-sdr104; 183 vmmc-supply = <&vcc_sd>; 181 vmmc-supply = <&vcc_sd>; 184 vqmmc-supply = <&vcc_sdmmc>; 182 vqmmc-supply = <&vcc_sdmmc>; 185 status = "okay"; 183 status = "okay"; 186 }; 184 }; 187 185 188 &uart2 { 186 &uart2 { 189 status = "okay"; 187 status = "okay"; 190 }; 188 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.