New board: Alientek DLRV1126 Eeprom for RK3288-Tinker-board * tag 'v7.3-rockchip-dts32-1' of https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: ARM: dts: rockchip: Add Alientek DLRV1126 ARM: dts: rockchip: Add RV1126 I2C5 dt-bindings: arm: rockchip: Add Alientek DLRV1126 dt-bindings: vendor-prefixes: add alientek ARM: dts: rockchip: add eeprom node to rk3288-tinker
Unified · Split
| @@ -162,6 +162,13 @@ properties: · 161 unmodified lines | |||
| 162 | - const: coolpi,pi-4b | 162 | - const: coolpi,pi-4b |
| 163 | - const: rockchip,rk3588s | 163 | - const: rockchip,rk3588s |
| 164 | 164 | ||
| 165 | - description: Alientek CLRV1126F SoM based boards | ||
| 166 | items: | ||
| 167 | - enum: | ||
| 168 | - alientek,dlrv1126 | ||
| 169 | - const: alientek,clrv1126f | ||
| 170 | - const: rockchip,rv1126 | ||
| 171 | |||
| 165 | - description: Edgeble Neural Compute Module 2(Neu2) SoM based boards | 172 | - description: Edgeble Neural Compute Module 2(Neu2) SoM based boards |
| 166 | items: | 173 | items: |
| 167 | - const: edgeble,neural-compute-module-2-io # Edgeble Neural Compute Module 2 IO Board | 174 | - const: edgeble,neural-compute-module-2-io # Edgeble Neural Compute Module 2 IO Board |
| @@ -88,6 +88,8 @@ patternProperties: · 87 unmodified lines | |||
| 88 | description: ALFA Network Inc. | 88 | description: ALFA Network Inc. |
| 89 | "^algoltek,.*": | 89 | "^algoltek,.*": |
| 90 | description: AlgolTek, Inc. | 90 | description: AlgolTek, Inc. |
| 91 | "^alientek,.*": | ||
| 92 | description: Guangzhou Xingyi Intelligent Technology Co., Ltd. | ||
| 91 | "^allegro,.*": | 93 | "^allegro,.*": |
| 92 | description: Allegro DVT | 94 | description: Allegro DVT |
| 93 | "^allegromicro,.*": | 95 | "^allegromicro,.*": |
| @@ -5,6 +5,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \ · 4 unmodified lines | |||
| 5 | rv1108-evb.dtb \ | 5 | rv1108-evb.dtb \ |
| 6 | rv1109-relfor-saib.dtb \ | 6 | rv1109-relfor-saib.dtb \ |
| 7 | rv1109-sonoff-ihost.dtb \ | 7 | rv1109-sonoff-ihost.dtb \ |
| 8 | rv1126-alientek-dlrv1126.dtb \ | ||
| 8 | rv1126-edgeble-neu2-io.dtb \ | 9 | rv1126-edgeble-neu2-io.dtb \ |
| 9 | rv1126-sonoff-ihost.dtb \ | 10 | rv1126-sonoff-ihost.dtb \ |
| 10 | rk3036-evb.dtb \ | 11 | rk3036-evb.dtb \ |
| @@ -344,6 +344,11 @@ · 343 unmodified lines | |||
| 344 | 344 | ||
| 345 | &i2c2 { | 345 | &i2c2 { |
| 346 | status = "okay"; | 346 | status = "okay"; |
| 347 | |||
| 348 | eeprom@50 { | ||
| 349 | compatible = "atmel,24c08"; | ||
| 350 | reg = <0x50>; | ||
| 351 | }; | ||
| 347 | }; | 352 | }; |
| 348 | 353 | ||
| 349 | &i2c5 { | 354 | &i2c5 { |
| @@ -0,0 +1,291 @@ | |||
| 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2026 Yanan He <grumpycat921013@gmail.com> | ||
| 4 | */ | ||
| 5 | |||
| 6 | #include "rv1126.dtsi" | ||
| 7 | |||
| 8 | / { | ||
| 9 | compatible = "alientek,clrv1126f", "rockchip,rv1126"; | ||
| 10 | |||
| 11 | aliases { | ||
| 12 | mmc0 = &emmc; | ||
| 13 | }; | ||
| 14 | }; | ||
| 15 | |||
| 16 | &cpu0 { | ||
| 17 | cpu-supply = <&vdd_arm>; | ||
| 18 | }; | ||
| 19 | |||
| 20 | &cpu1 { | ||
| 21 | cpu-supply = <&vdd_arm>; | ||
| 22 | }; | ||
| 23 | |||
| 24 | &cpu2 { | ||
| 25 | cpu-supply = <&vdd_arm>; | ||
| 26 | }; | ||
| 27 | |||
| 28 | &cpu3 { | ||
| 29 | cpu-supply = <&vdd_arm>; | ||
| 30 | }; | ||
| 31 | |||
| 32 | &emmc { | ||
| 33 | bus-width = <8>; | ||
| 34 | cap-mmc-highspeed; | ||
| 35 | mmc-hs200-1_8v; | ||
| 36 | non-removable; | ||
| 37 | pinctrl-names = "default"; | ||
| 38 | pinctrl-0 = <&emmc_bus8 &emmc_cmd &emmc_clk &emmc_rstnout>; | ||
| 39 | rockchip,default-sample-phase = <90>; | ||
| 40 | vmmc-supply = <&vcc_3v3>; | ||
| 41 | vqmmc-supply = <&vcc_1v8>; | ||
| 42 | status = "okay"; | ||
| 43 | }; | ||
| 44 | |||
| 45 | &i2c0 { | ||
| 46 | clock-frequency = <400000>; | ||
| 47 | status = "okay"; | ||
| 48 | |||
| 49 | rk809: pmic@20 { | ||
| 50 | compatible = "rockchip,rk809"; | ||
| 51 | reg = <0x20>; | ||
| 52 | interrupt-parent = <&gpio0>; | ||
| 53 | interrupts = <RK_PB1 IRQ_TYPE_LEVEL_LOW>; | ||
| 54 | #clock-cells = <1>; | ||
| 55 | #sound-dai-cells = <0>; | ||
| 56 | clock-output-names = "rk808-clkout1", "rk808-clkout2"; | ||
| 57 | clock-names = "mclk"; | ||
| 58 | clocks = <&cru MCLK_I2S0_TX_OUT2IO>; | ||
| 59 | assigned-clocks = <&cru MCLK_I2S0_TX_OUT2IO>; | ||
| 60 | assigned-clock-parents = <&cru MCLK_I2S0_TX>; | ||
| 61 | pinctrl-names = "default"; | ||
| 62 | pinctrl-0 = <&pmic_int_l>; | ||
| 63 | rockchip,system-power-controller; | ||
| 64 | wakeup-source; | ||
| 65 | |||
| 66 | vcc1-supply = <&vcc5v0_sys>; | ||
| 67 | vcc2-supply = <&vcc5v0_sys>; | ||
| 68 | vcc3-supply = <&vcc5v0_sys>; | ||
| 69 | vcc4-supply = <&vcc5v0_sys>; | ||
| 70 | vcc5-supply = <&vcc_buck5>; | ||
| 71 | vcc6-supply = <&vcc_buck5>; | ||
| 72 | vcc7-supply = <&vcc5v0_sys>; | ||
| 73 | vcc8-supply = <&vcc3v3_sys>; | ||
| 74 | vcc9-supply = <&vcc5v0_sys>; | ||
| 75 | |||
| 76 | regulators { | ||
| 77 | vdd_npu_vepu: DCDC_REG1 { | ||
| 78 | regulator-name = "vdd_npu_vepu"; | ||
| 79 | regulator-always-on; | ||
| 80 | regulator-boot-on; | ||
| 81 | regulator-initial-mode = <0x2>; | ||
| 82 | regulator-min-microvolt = <650000>; | ||
| 83 | regulator-max-microvolt = <950000>; | ||
| 84 | regulator-ramp-delay = <6001>; | ||
| 85 | |||
| 86 | regulator-state-mem { | ||
| 87 | regulator-off-in-suspend; | ||
| 88 | }; | ||
| 89 | }; | ||
| 90 | |||
| 91 | vdd_arm: DCDC_REG2 { | ||
| 92 | regulator-name = "vdd_arm"; | ||
| 93 | regulator-always-on; | ||
| 94 | regulator-boot-on; | ||
| 95 | regulator-initial-mode = <0x2>; | ||
| 96 | regulator-min-microvolt = <725000>; | ||
| 97 | regulator-max-microvolt = <1350000>; | ||
| 98 | regulator-ramp-delay = <6001>; | ||
| 99 | |||
| 100 | regulator-state-mem { | ||
| 101 | regulator-off-in-suspend; | ||
| 102 | }; | ||
| 103 | }; | ||
| 104 | |||
| 105 | vcc_ddr: DCDC_REG3 { | ||
| 106 | regulator-name = "vcc_ddr"; | ||
| 107 | regulator-always-on; | ||
| 108 | regulator-boot-on; | ||
| 109 | regulator-initial-mode = <0x2>; | ||
| 110 | |||
| 111 | regulator-state-mem { | ||
| 112 | regulator-on-in-suspend; | ||
| 113 | }; | ||
| 114 | }; | ||
| 115 | |||
| 116 | vcc3v3_sys: DCDC_REG4 { | ||
| 117 | regulator-name = "vcc3v3_sys"; | ||
| 118 | regulator-always-on; | ||
| 119 | regulator-boot-on; | ||
| 120 | regulator-initial-mode = <0x2>; | ||
| 121 | regulator-min-microvolt = <3300000>; | ||
| 122 | regulator-max-microvolt = <3300000>; | ||
| 123 | |||
| 124 | regulator-state-mem { | ||
| 125 | regulator-on-in-suspend; | ||
| 126 | regulator-suspend-microvolt = <3300000>; | ||
| 127 | }; | ||
| 128 | }; | ||
| 129 | |||
| 130 | vcc_buck5: DCDC_REG5 { | ||
| 131 | regulator-name = "vcc_buck5"; | ||
| 132 | regulator-always-on; | ||
| 133 | regulator-boot-on; | ||
| 134 | regulator-min-microvolt = <2200000>; | ||
| 135 | regulator-max-microvolt = <2200000>; | ||
| 136 | |||
| 137 | regulator-state-mem { | ||
| 138 | regulator-on-in-suspend; | ||
| 139 | regulator-suspend-microvolt = <2200000>; | ||
| 140 | }; | ||
| 141 | }; | ||
| 142 | |||
| 143 | vcc_0v8: LDO_REG1 { | ||
| 144 | regulator-name = "vcc_0v8"; | ||
| 145 | regulator-always-on; | ||
| 146 | regulator-boot-on; | ||
| 147 | regulator-min-microvolt = <800000>; | ||
| 148 | regulator-max-microvolt = <800000>; | ||
| 149 | |||
| 150 | regulator-state-mem { | ||
| 151 | regulator-off-in-suspend; | ||
| 152 | }; | ||
| 153 | }; | ||
| 154 | |||
| 155 | vcc1v8_pmu: LDO_REG2 { | ||
| 156 | regulator-name = "vcc1v8_pmu"; | ||
| 157 | regulator-always-on; | ||
| 158 | regulator-boot-on; | ||
| 159 | regulator-min-microvolt = <1800000>; | ||
| 160 | regulator-max-microvolt = <1800000>; | ||
| 161 | |||
| 162 | regulator-state-mem { | ||
| 163 | regulator-on-in-suspend; | ||
| 164 | regulator-suspend-microvolt = <1800000>; | ||
| 165 | }; | ||
| 166 | }; | ||
| 167 | |||
| 168 | vdd0v8_pmu: LDO_REG3 { | ||
| 169 | regulator-name = "vcc0v8_pmu"; | ||
| 170 | regulator-always-on; | ||
| 171 | regulator-boot-on; | ||
| 172 | regulator-min-microvolt = <800000>; | ||
| 173 | regulator-max-microvolt = <800000>; | ||
| 174 | |||
| 175 | regulator-state-mem { | ||
| 176 | regulator-on-in-suspend; | ||
| 177 | regulator-suspend-microvolt = <800000>; | ||
| 178 | }; | ||
| 179 | }; | ||
| 180 | |||
| 181 | vcc_1v8: LDO_REG4 { | ||
| 182 | regulator-name = "vcc_1v8"; | ||
| 183 | regulator-always-on; | ||
| 184 | regulator-boot-on; | ||
| 185 | regulator-min-microvolt = <1800000>; | ||
| 186 | regulator-max-microvolt = <1800000>; | ||
| 187 | |||
| 188 | regulator-state-mem { | ||
| 189 | regulator-on-in-suspend; | ||
| 190 | regulator-suspend-microvolt = <1800000>; | ||
| 191 | }; | ||
| 192 | }; | ||
| 193 | |||
| 194 | vcc_dovdd: LDO_REG5 { | ||
| 195 | regulator-name = "vcc_dovdd"; | ||
| 196 | regulator-always-on; | ||
| 197 | regulator-boot-on; | ||
| 198 | regulator-min-microvolt = <1800000>; | ||
| 199 | regulator-max-microvolt = <1800000>; | ||
| 200 | |||
| 201 | regulator-state-mem { | ||
| 202 | regulator-off-in-suspend; | ||
| 203 | }; | ||
| 204 | }; | ||
| 205 | |||
| 206 | vcc_dvdd: LDO_REG6 { | ||
| 207 | regulator-name = "vcc_dvdd"; | ||
| 208 | regulator-min-microvolt = <1200000>; | ||
| 209 | regulator-max-microvolt = <1200000>; | ||
| 210 | |||
| 211 | regulator-state-mem { | ||
| 212 | regulator-off-in-suspend; | ||
| 213 | }; | ||
| 214 | }; | ||
| 215 | |||
| 216 | vcc_avdd: LDO_REG7 { | ||
| 217 | regulator-name = "vcc_avdd"; | ||
| 218 | regulator-min-microvolt = <2800000>; | ||
| 219 | regulator-max-microvolt = <2800000>; | ||
| 220 | |||
| 221 | regulator-state-mem { | ||
| 222 | regulator-off-in-suspend; | ||
| 223 | }; | ||
| 224 | }; | ||
| 225 | |||
| 226 | vccio_sd: LDO_REG8 { | ||
| 227 | regulator-name = "vccio_sd"; | ||
| 228 | regulator-always-on; | ||
| 229 | regulator-boot-on; | ||
| 230 | regulator-min-microvolt = <1800000>; | ||
| 231 | regulator-max-microvolt = <3300000>; | ||
| 232 | |||
| 233 | regulator-state-mem { | ||
| 234 | regulator-off-in-suspend; | ||
| 235 | }; | ||
| 236 | }; | ||
| 237 | |||
| 238 | vcc3v3_sd: LDO_REG9 { | ||
| 239 | regulator-name = "vcc3v3_sd"; | ||
| 240 | regulator-always-on; | ||
| 241 | regulator-boot-on; | ||
| 242 | regulator-min-microvolt = <3300000>; | ||
| 243 | regulator-max-microvolt = <3300000>; | ||
| 244 | |||
| 245 | regulator-state-mem { | ||
| 246 | regulator-off-in-suspend; | ||
| 247 | }; | ||
| 248 | }; | ||
| 249 | |||
| 250 | vcc_5v0: SWITCH_REG1 { | ||
| 251 | regulator-name = "vcc_5v0"; | ||
| 252 | }; | ||
| 253 | |||
| 254 | vcc_3v3: SWITCH_REG2 { | ||
| 255 | regulator-name = "vcc_3v3"; | ||
| 256 | regulator-always-on; | ||
| 257 | regulator-boot-on; | ||
| 258 | }; | ||
| 259 | }; | ||
| 260 | }; | ||
| 261 | }; | ||
| 262 | |||
| 263 | &pinctrl { | ||
| 264 | pmic { | ||
| 265 | pmic_int_l: pmic-int-l { | ||
| 266 | rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; | ||
| 267 | }; | ||
| 268 | }; | ||
| 269 | }; | ||
| 270 | |||
| 271 | &pmu_io_domains { | ||
| 272 | pmuio0-supply = <&vcc3v3_sys>; | ||
| 273 | pmuio1-supply = <&vcc3v3_sys>; | ||
| 274 | vccio1-supply = <&vcc_1v8>; | ||
| 275 | vccio2-supply = <&vccio_sd>; | ||
| 276 | vccio3-supply = <&vcc_1v8>; | ||
| 277 | vccio4-supply = <&vcc_3v3>; | ||
| 278 | vccio5-supply = <&vcc_3v3>; | ||
| 279 | vccio6-supply = <&vcc_3v3>; | ||
| 280 | vccio7-supply = <&vcc_1v8>; | ||
| 281 | status = "okay"; | ||
| 282 | }; | ||
| 283 | |||
| 284 | &saradc { | ||
| 285 | vref-supply = <&vcc_1v8>; | ||
| 286 | status = "okay"; | ||
| 287 | }; | ||
| 288 | |||
| 289 | &wdt { | ||
| 290 | status = "okay"; | ||
| 291 | }; | ||
| @@ -0,0 +1,256 @@ | |||
| 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2026 Yanan He <grumpycat921013@gmail.com> | ||
| 4 | */ | ||
| 5 | |||
| 6 | /dts-v1/; | ||
| 7 | #include <dt-bindings/input/input.h> | ||
| 8 | #include "rv1126-alientek-clrv1126f.dtsi" | ||
| 9 | |||
| 10 | / { | ||
| 11 | model = "Alientek ATK-DLRV1126"; | ||
| 12 | compatible = "alientek,dlrv1126", "alientek,clrv1126f", "rockchip,rv1126"; | ||
| 13 | |||
| 14 | aliases { | ||
| 15 | ethernet0 = &gmac; | ||
| 16 | mmc1 = &sdio; | ||
| 17 | mmc2 = &sdmmc; | ||
| 18 | }; | ||
| 19 | |||
| 20 | chosen { | ||
| 21 | stdout-path = "serial2:1500000n8"; | ||
| 22 | }; | ||
| 23 | |||
| 24 | adc-keys { | ||
| 25 | compatible = "adc-keys"; | ||
| 26 | io-channels = <&saradc 0>; | ||
| 27 | io-channel-names = "buttons"; | ||
| 28 | keyup-threshold-microvolt = <1800000>; | ||
| 29 | poll-interval = <100>; | ||
| 30 | |||
| 31 | button-esc { | ||
| 32 | label = "esc"; | ||
| 33 | linux,code = <KEY_ESC>; | ||
| 34 | press-threshold-microvolt = <0>; | ||
| 35 | }; | ||
| 36 | |||
| 37 | button-left { | ||
| 38 | label = "left"; | ||
| 39 | linux,code = <KEY_LEFT>; | ||
| 40 | press-threshold-microvolt = <801562>; | ||
| 41 | }; | ||
| 42 | |||
| 43 | button-menu { | ||
| 44 | label = "menu"; | ||
| 45 | linux,code = <KEY_MENU>; | ||
| 46 | press-threshold-microvolt = <1198828>; | ||
| 47 | }; | ||
| 48 | |||
| 49 | button-right { | ||
| 50 | label = "right"; | ||
| 51 | linux,code = <KEY_RIGHT>; | ||
| 52 | press-threshold-microvolt = <400781>; | ||
| 53 | }; | ||
| 54 | }; | ||
| 55 | |||
| 56 | leds { | ||
| 57 | compatible = "gpio-leds"; | ||
| 58 | |||
| 59 | led-0 { | ||
| 60 | label = "sys-led"; | ||
| 61 | gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; | ||
| 62 | linux,default-trigger = "heartbeat"; | ||
| 63 | default-state = "on"; | ||
| 64 | }; | ||
| 65 | |||
| 66 | led-1 { | ||
| 67 | label = "user-led"; | ||
| 68 | gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>; | ||
| 69 | linux,default-trigger = "none"; | ||
| 70 | default-state = "on"; | ||
| 71 | }; | ||
| 72 | }; | ||
| 73 | |||
| 74 | sound { | ||
| 75 | compatible = "simple-audio-card"; | ||
| 76 | simple-audio-card,format = "i2s"; | ||
| 77 | simple-audio-card,name = "Analog RK809"; | ||
| 78 | simple-audio-card,mclk-fs = <256>; | ||
| 79 | simple-audio-card,widgets = | ||
| 80 | "Speaker", "Speaker", | ||
| 81 | "Headphone", "Headphones", | ||
| 82 | "Microphone", "Mic Jack"; | ||
| 83 | simple-audio-card,routing = | ||
| 84 | "Speaker", "SPKO", | ||
| 85 | "Headphones", "HPOL", | ||
| 86 | "Headphones", "HPOR", | ||
| 87 | "MICL", "Mic Jack"; | ||
| 88 | |||
| 89 | simple-audio-card,cpu { | ||
| 90 | sound-dai = <&i2s0>; | ||
| 91 | }; | ||
| 92 | |||
| 93 | simple-audio-card,codec { | ||
| 94 | sound-dai = <&rk809>; | ||
| 95 | }; | ||
| 96 | }; | ||
| 97 | |||
| 98 | vcc5v0_sys: regulator-vcc5v0-sys { | ||
| 99 | compatible = "regulator-fixed"; | ||
| 100 | regulator-name = "vcc5v0_sys"; | ||
| 101 | regulator-always-on; | ||
| 102 | regulator-boot-on; | ||
| 103 | regulator-min-microvolt = <5000000>; | ||
| 104 | regulator-max-microvolt = <5000000>; | ||
| 105 | }; | ||
| 106 | |||
| 107 | sdio_pwrseq: pwrseq-sdio { | ||
| 108 | compatible = "mmc-pwrseq-simple"; | ||
| 109 | pinctrl-names = "default"; | ||
| 110 | pinctrl-0 = <&wifi_enable_h>; | ||
| 111 | reset-gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; | ||
| 112 | post-power-on-delay-ms = <200>; | ||
| 113 | power-off-delay-us = <20000>; | ||
| 114 | }; | ||
| 115 | }; | ||
| 116 | |||
| 117 | &gmac { | ||
| 118 | assigned-clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>, | ||
| 119 | <&cru CLK_GMAC_ETHERNET_OUT>; | ||
| 120 | assigned-clock-parents = <&cru CLK_GMAC_SRC_M1>, | ||
| 121 | <&cru RGMII_MODE_CLK>; | ||
| 122 | assigned-clock-rates = <125000000>, <0>, <25000000>; | ||
| 123 | clock_in_out = "input"; | ||
| 124 | phy-handle = <&phy>; | ||
| 125 | phy-mode = "rgmii-id"; | ||
| 126 | pinctrl-names = "default"; | ||
| 127 | pinctrl-0 = <&rgmiim1_miim &rgmiim1_bus2 &rgmiim1_bus4 | ||
| 128 | &clk_out_ethernetm1_pins>; | ||
| 129 | status = "okay"; | ||
| 130 | }; | ||
| 131 | |||
| 132 | &i2c5 { | ||
| 133 | status = "okay"; | ||
| 134 | clock-frequency = <400000>; | ||
| 135 | |||
| 136 | pcf8563: rtc@51 { | ||
| 137 | compatible = "nxp,pcf8563"; | ||
| 138 | reg = <0x51>; | ||
| 139 | #clock-cells = <0>; | ||
| 140 | clock-output-names = "xin32k"; | ||
| 141 | interrupt-parent = <&gpio1>; | ||
| 142 | interrupts = <RK_PD0 IRQ_TYPE_LEVEL_LOW>; | ||
| 143 | }; | ||
| 144 | }; | ||
| 145 | |||
| 146 | &i2s0 { | ||
| 147 | pinctrl-names = "default"; | ||
| 148 | pinctrl-0 = <&i2s0m0_sclk_tx>, | ||
| 149 | <&i2s0m0_mclk>, | ||
| 150 | <&i2s0m0_lrck_tx>, | ||
| 151 | <&i2s0m0_sdo0>, | ||
| 152 | <&i2s0m0_sdo1_sdi3>; | ||
| 153 | rockchip,trcm-sync-tx-only; | ||
| 154 | rockchip,i2s-rx-route = <3 1 2 0>; | ||
| 155 | rockchip,i2s-tx-route = <0 1 2 3>; | ||
| 156 | status = "okay"; | ||
| 157 | }; | ||
| 158 | |||
| 159 | &mdio { | ||
| 160 | phy: ethernet-phy@1 { | ||
| 161 | compatible = "ethernet-phy-ieee802.3-c22"; | ||
| 162 | reg = <0x1>; | ||
| 163 | clocks = <&cru CLK_GMAC_ETHERNET_OUT>; | ||
| 164 | pinctrl-names = "default"; | ||
| 165 | pinctrl-0 = <ð_phy_rst>; | ||
| 166 | reset-gpios = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>; | ||
| 167 | reset-assert-us = <20000>; | ||
| 168 | reset-deassert-us = <100000>; | ||
| 169 | }; | ||
| 170 | }; | ||
| 171 | |||
| 172 | &pinctrl { | ||
| 173 | bt { | ||
| 174 | bt_enable: bt-enable { | ||
| 175 | rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>; | ||
| 176 | }; | ||
| 177 | |||
| 178 | bt_wake_dev: bt-wake-dev { | ||
| 179 | rockchip,pins = <1 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; | ||
| 180 | }; | ||
| 181 | |||
| 182 | bt_wake_host: bt-wake-host { | ||
| 183 | rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; | ||
| 184 | }; | ||
| 185 | }; | ||
| 186 | |||
| 187 | ethernet { | ||
| 188 | eth_phy_rst: eth-phy-rst { | ||
| 189 | rockchip,pins = <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; | ||
| 190 | }; | ||
| 191 | }; | ||
| 192 | |||
| 193 | wifi { | ||
| 194 | wifi_enable_h: wifi-enable-h { | ||
| 195 | rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; | ||
| 196 | }; | ||
| 197 | }; | ||
| 198 | }; | ||
| 199 | |||
| 200 | &sdio { | ||
| 201 | bus-width = <4>; | ||
| 202 | cap-sdio-irq; | ||
| 203 | keep-power-in-suspend; | ||
| 204 | max-frequency = <25000000>; | ||
| 205 | mmc-pwrseq = <&sdio_pwrseq>; | ||
| 206 | non-removable; | ||
| 207 | pinctrl-names = "default"; | ||
| 208 | pinctrl-0 = <&sdmmc1_clk &sdmmc1_cmd &sdmmc1_bus4>; | ||
| 209 | rockchip,default-sample-phase = <90>; | ||
| 210 | vmmc-supply = <&vcc3v3_sd>; | ||
| 211 | vqmmc-supply = <&vcc_1v8>; | ||
| 212 | status = "okay"; | ||
| 213 | }; | ||
| 214 | |||
| 215 | &sdmmc { | ||
| 216 | bus-width = <4>; | ||
| 217 | cap-mmc-highspeed; | ||
| 218 | cap-sd-highspeed; | ||
| 219 | card-detect-delay = <200>; | ||
| 220 | pinctrl-names = "default"; | ||
| 221 | pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_bus4 &sdmmc0_det>; | ||
| 222 | rockchip,default-sample-phase = <90>; | ||
| 223 | sd-uhs-sdr12; | ||
| 224 | sd-uhs-sdr25; | ||
| 225 | sd-uhs-sdr104; | ||
| 226 | vmmc-supply = <&vcc3v3_sd>; | ||
| 227 | vqmmc-supply = <&vccio_sd>; | ||
| 228 | status = "okay"; | ||
| 229 | }; | ||
| 230 | |||
| 231 | &uart0 { | ||
| 232 | pinctrl-names = "default"; | ||
| 233 | pinctrl-0 = <&uart0_xfer &uart0_ctsn &uart0_rtsn>; | ||
| 234 | uart-has-rtscts; | ||
| 235 | status = "okay"; | ||
| 236 | |||
| 237 | bluetooth { | ||
| 238 | compatible = "brcm,bcm43430a1-bt"; | ||
| 239 | clocks = <&rk809 1>; | ||
| 240 | clock-names = "lpo"; | ||
| 241 | device-wakeup-gpios = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>; | ||
| 242 | interrupt-parent = <&gpio0>; | ||
| 243 | interrupts = <RK_PA5 IRQ_TYPE_EDGE_RISING>; | ||
| 244 | interrupt-names = "host-wakeup"; | ||
| 245 | max-speed = <115200>; | ||
| 246 | pinctrl-names = "default"; | ||
| 247 | pinctrl-0 = <&bt_enable>, <&bt_wake_dev>, <&bt_wake_host>; | ||
| 248 | shutdown-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>; | ||
| 249 | vbat-supply = <&vcc_3v3>; | ||
| 250 | vddio-supply = <&vcc_1v8>; | ||
| 251 | }; | ||
| 252 | }; | ||
| 253 | |||
| 254 | &uart2 { | ||
| 255 | status = "okay"; | ||
| 256 | }; | ||
| @@ -123,6 +123,16 @@ · 122 unmodified lines | |||
| 123 | <1 RK_PD7 3 &pcfg_pull_none>; | 123 | <1 RK_PD7 3 &pcfg_pull_none>; |
| 124 | }; | 124 | }; |
| 125 | }; | 125 | }; |
| 126 | i2c5 { | ||
| 127 | /omit-if-no-ref/ | ||
| 128 | i2c5m0_xfer: i2c5m0-xfer { | ||
| 129 | rockchip,pins = | ||
| 130 | /* i2c5_scl_m0 */ | ||
| 131 | <2 RK_PA5 7 &pcfg_pull_none_drv_level_0_smt>, | ||
| 132 | /* i2c5_sda_m0 */ | ||
| 133 | <2 RK_PB3 7 &pcfg_pull_none_drv_level_0_smt>; | ||
| 134 | }; | ||
| 135 | }; | ||
| 126 | i2s0 { | 136 | i2s0 { |
| 127 | i2s0m0_lrck_tx: i2s0m0-lrck-tx { | 137 | i2s0m0_lrck_tx: i2s0m0-lrck-tx { |
| 128 | rockchip,pins = | 138 | rockchip,pins = |
| @@ -23,6 +23,7 @@ · 22 unmodified lines | |||
| 23 | i2c0 = &i2c0; | 23 | i2c0 = &i2c0; |
| 24 | i2c2 = &i2c2; | 24 | i2c2 = &i2c2; |
| 25 | i2c3 = &i2c3; | 25 | i2c3 = &i2c3; |
| 26 | i2c5 = &i2c5; | ||
| 26 | serial0 = &uart0; | 27 | serial0 = &uart0; |
| 27 | serial1 = &uart1; | 28 | serial1 = &uart1; |
| 28 | serial2 = &uart2; | 29 | serial2 = &uart2; |
| @@ -400,6 +401,20 @@ · 371 unmodified lines | |||
| 400 | status = "disabled"; | 401 | status = "disabled"; |
| 401 | }; | 402 | }; |
| 402 | 403 | ||
| 404 | i2c5: i2c@ff540000 { | ||
| 405 | compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c"; | ||
| 406 | reg = <0xff540000 0x1000>; | ||
| 407 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; | ||
| 408 | clocks = <&cru CLK_I2C5>, <&cru PCLK_I2C5>; | ||
| 409 | clock-names = "i2c", "pclk"; | ||
| 410 | pinctrl-names = "default"; | ||
| 411 | pinctrl-0 = <&i2c5m0_xfer>; | ||
| 412 | rockchip,grf = <&pmugrf>; | ||
| 413 | #address-cells = <1>; | ||
| 414 | #size-cells = <0>; | ||
| 415 | status = "disabled"; | ||
| 416 | }; | ||
| 417 | |||
| 403 | pwm8: pwm@ff550000 { | 418 | pwm8: pwm@ff550000 { |
| 404 | compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm"; | 419 | compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm"; |
| 405 | reg = <0xff550000 0x10>; | 420 | reg = <0xff550000 0x10>; |