Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'v6.19-rockchip-dts64-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into soc/dt

New boards: QNAP TS233 (2-bay variant of the RK3568 NAS series) and
Asus Tinkerboard 3 + 3S.
Additional peripherals enabled on 100ASK DshanPi A1, Orange Pi 3B,
Indiedroid Nova, QNAP-TSx33 series + LED states on Radxa boards,
power-domains for the previously added RK3368 display components.

* tag 'v6.19-rockchip-dts64-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: (22 commits)
arm64: dts: rockchip: enable RTC for 100ASK DshanPi A1
arm64: dts: rockchip: enable USB for 100ASK DshanPi A1
arm64: dts: rockchip: enable button for 100ASK DshanPi A1
arm64: dts: rockchip: add mmc aliases for 100ASK DshanPi A1
arm64: dts: rockchip: remove mmc max-frequency for 100ASK DshanPi A1
arm64: dts: rockchip: Enable i2c2 on Orange Pi 3B
arm64: dts: rockchip: Use default-state for power LED for Radxa boards
arm64: dts: rockchip: fix PCIe 3.3V regulator voltage on 9Tripod X3568 v4
arm64: dts: rockchip: Add power-domain to RK3368 VOP controller
arm64: dts: rockchip: Add power-domain to RK3368 DSI controller
arm64: dts: rockchip: Add host wake pin for wifi on Indiedroid Nova
arm64: dts: rockchip: Correct pinctrl for pcie for Indiedroid Nova
arm64: dts: rockchip: Define regulator for pcie2x1l2 on Indiedroid Nova
arm64: dts: rockchip: Add clk32k_in for Indiedroid Nova
arm64: dts: rockchip: Add Asus Tinker Board 3 and 3S device tree
dt-bindings: arm: rockchip: Add Asus Tinker Board 3/3S
dt-bindings: arm: rockchip: merge Asus Tinker and Tinker S
arm64: dts: rockchip: add QNAP TS233 devicetree
dt-bindings: arm: rockchip: add TS233 to RK3568-based QNAP NAS devices
arm64: dts: rockchip: move common qnap tsx33 parts to dtsi
...

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+1249 -603
+12 -6
Documentation/devicetree/bindings/arm/rockchip.yaml
··· 89 89 90 90 - description: Asus Tinker board 91 91 items: 92 - - const: asus,rk3288-tinker 92 + - enum: 93 + - asus,rk3288-tinker 94 + - asus,rk3288-tinker-s 93 95 - const: rockchip,rk3288 94 96 95 - - description: Asus Tinker board S 97 + - description: Asus Tinker Board 3/3S 96 98 items: 97 - - const: asus,rk3288-tinker-s 98 - - const: rockchip,rk3288 99 + - enum: 100 + - asus,rk3566-tinker-board-3 101 + - asus,rk3566-tinker-board-3s 102 + - const: rockchip,rk3566 99 103 100 104 - description: Beelink A1 101 105 items: ··· 893 889 - const: prt,mecsbc 894 890 - const: rockchip,rk3568 895 891 896 - - description: QNAP TS-433-4G 4-Bay NAS 892 + - description: QNAP TS-x33 NAS devices 897 893 items: 898 - - const: qnap,ts433 894 + - enum: 895 + - qnap,ts233 896 + - qnap,ts433 899 897 - const: rockchip,rk3568 900 898 901 899 - description: Radxa Compute Module 3 (CM3)
+3
arch/arm64/boot/dts/rockchip/Makefile
··· 130 130 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-nanopi-r3s.dtb 131 131 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-bigtreetech-cb2-manta.dtb 132 132 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-bigtreetech-pi2.dtb 133 + dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-tinker-board-3.dtb 134 + dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-tinker-board-3s.dtb 133 135 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-9tripod-x3568-v4.dtb 134 136 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb 135 137 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-easepi-r1.dtb ··· 146 144 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb 147 145 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-odroid-m1.dtb 148 146 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-photonicat.dtb 147 + dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-qnap-ts233.dtb 149 148 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-qnap-ts433.dtb 150 149 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-radxa-e25.dtb 151 150 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-roc-pc.dtb
-1
arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts
··· 35 35 function = LED_FUNCTION_POWER; 36 36 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 37 37 label = "rockpis:green:power"; 38 - linux,default-trigger = "default-on"; 39 38 }; 40 39 41 40 blue-led {
+2
arch/arm64/boot/dts/rockchip/rk3368.dtsi
··· 862 862 clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>; 863 863 clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; 864 864 iommus = <&vop_mmu>; 865 + power-domains = <&power RK3368_PD_VIO>; 865 866 resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>; 866 867 reset-names = "axi", "ahb", "dclk"; 867 868 status = "disabled"; ··· 897 896 clock-names = "pclk"; 898 897 phys = <&dphy>; 899 898 phy-names = "dphy"; 899 + power-domains = <&power RK3368_PD_VIO>; 900 900 resets = <&cru SRST_MIPIDSI0>; 901 901 reset-names = "apb"; 902 902 rockchip,grf = <&grf>;
+1 -1
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts
··· 39 39 led-0 { 40 40 function = LED_FUNCTION_POWER; 41 41 color = <LED_COLOR_ID_GREEN>; 42 + default-state = "on"; 42 43 gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_LOW>; 43 - linux,default-trigger = "default-on"; 44 44 }; 45 45 46 46 /* USER_LED2 */
-1
arch/arm64/boot/dts/rockchip/rk3528-rock-2a.dts
··· 45 45 default-state = "on"; 46 46 function = LED_FUNCTION_STATUS; 47 47 gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>; 48 - linux,default-trigger = "default-on"; 49 48 }; 50 49 }; 51 50
+5
arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b.dtsi
··· 435 435 }; 436 436 }; 437 437 438 + &i2c2 { 439 + pinctrl-0 = <&i2c2m1_xfer>; 440 + status = "okay"; 441 + }; 442 + 438 443 &i2s0_8ch { 439 444 status = "okay"; 440 445 };
+13
arch/arm64/boot/dts/rockchip/rk3566-tinker-board-3.dts
··· 1 + // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 + /* 3 + * Copyright (C) 2025 Michael Opdenacker <michael.opdenacker@rootcommit.com> 4 + */ 5 + 6 + /dts-v1/; 7 + 8 + #include "rk3566-tinker-board-3.dtsi" 9 + 10 + / { 11 + model = "Asus Tinker Board 3"; 12 + compatible = "asus,rk3566-tinker-board-3", "rockchip,rk3566"; 13 + };
+278
arch/arm64/boot/dts/rockchip/rk3566-tinker-board-3.dtsi
··· 1 + // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 + /* 3 + * Copyright (C) 2025 Michael Opdenacker <michael.opdenacker@rootcommit.com> 4 + */ 5 + 6 + #include <dt-bindings/gpio/gpio.h> 7 + #include <dt-bindings/leds/common.h> 8 + #include <dt-bindings/pinctrl/rockchip.h> 9 + #include <dt-bindings/soc/rockchip,vop2.h> 10 + #include "rk3566.dtsi" 11 + 12 + / { 13 + aliases { 14 + i2c0 = &i2c0; 15 + i2c2 = &i2c2; 16 + mmc1 = &sdmmc0; 17 + serial2 = &uart2; 18 + }; 19 + 20 + chosen { 21 + stdout-path = "serial2:1500000n8"; 22 + }; 23 + 24 + gpio_leds: gpio-leds { 25 + compatible = "gpio-leds"; 26 + 27 + act-led { 28 + gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; 29 + linux,default-trigger="mmc1"; 30 + }; 31 + 32 + rsv-led { 33 + gpios = <&gpio0 RK_PD6 GPIO_ACTIVE_HIGH>; 34 + linux,default-trigger="none"; 35 + }; 36 + }; 37 + 38 + vcc3v3_sys: regulator-3v3-vcc-sys { 39 + compatible = "regulator-fixed"; 40 + regulator-name = "vcc3v3_sys"; 41 + regulator-always-on; 42 + regulator-boot-on; 43 + regulator-min-microvolt = <3300000>; 44 + regulator-max-microvolt = <3300000>; 45 + vin-supply = <&vcc5v0_sys>; 46 + }; 47 + 48 + vcc5v0_sys: regulator-5v0-vcc-sys { 49 + compatible = "regulator-fixed"; 50 + regulator-name = "vcc5v0_sys"; 51 + regulator-always-on; 52 + regulator-boot-on; 53 + regulator-min-microvolt = <5000000>; 54 + regulator-max-microvolt = <5000000>; 55 + }; 56 + 57 + vcc5v0_usb_host: regulator-5v0-vcc-usb-host { 58 + compatible = "regulator-fixed"; 59 + enable-active-high; 60 + gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 61 + pinctrl-names = "default"; 62 + pinctrl-0 = <&u2_a_vbus_en>; 63 + regulator-name = "vcc5v0_usb_host"; 64 + regulator-min-microvolt = <5000000>; 65 + regulator-max-microvolt = <5000000>; 66 + vin-supply = <&vcc5v0_sys>; 67 + }; 68 + }; 69 + 70 + &cpu0 { 71 + cpu-supply = <&vdd_cpu>; 72 + }; 73 + 74 + &cpu1 { 75 + cpu-supply = <&vdd_cpu>; 76 + }; 77 + 78 + &cpu2 { 79 + cpu-supply = <&vdd_cpu>; 80 + }; 81 + 82 + &cpu3 { 83 + cpu-supply = <&vdd_cpu>; 84 + }; 85 + 86 + &i2c0 { 87 + status = "okay"; 88 + 89 + rk809: pmic@20 { 90 + compatible = "rockchip,rk809"; 91 + reg = <0x20>; 92 + assigned-clocks = <&cru I2S1_MCLKOUT_TX>; 93 + assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; 94 + #clock-cells = <1>; 95 + clocks = <&cru I2S1_MCLKOUT_TX>; 96 + clock-names = "mclk"; 97 + clock-output-names = "rk809-clkout1", "rk809-clkout2"; 98 + interrupt-parent = <&gpio0>; 99 + interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 100 + pinctrl-names = "default"; 101 + pinctrl-0 = <&pmic_int_l>, <&i2s1m0_mclk>; 102 + #sound-dai-cells = <0>; 103 + system-power-controller; 104 + wakeup-source; 105 + 106 + vcc1-supply = <&vcc3v3_sys>; 107 + vcc2-supply = <&vcc3v3_sys>; 108 + vcc3-supply = <&vcc3v3_sys>; 109 + vcc4-supply = <&vcc3v3_sys>; 110 + vcc5-supply = <&vcc3v3_sys>; 111 + vcc6-supply = <&vcc3v3_sys>; 112 + vcc7-supply = <&vcc3v3_sys>; 113 + vcc8-supply = <&vcc3v3_sys>; 114 + vcc9-supply = <&vcc3v3_sys>; 115 + 116 + regulators { 117 + vcc_1v8: DCDC_REG5 { 118 + regulator-name = "vcc_1v8"; 119 + regulator-always-on; 120 + regulator-boot-on; 121 + regulator-min-microvolt = <1800000>; 122 + regulator-max-microvolt = <1800000>; 123 + 124 + regulator-state-mem { 125 + regulator-off-in-suspend; 126 + }; 127 + }; 128 + 129 + vcc_3v3: SWITCH_REG1 { 130 + regulator-name = "vcc_3v3"; 131 + regulator-always-on; 132 + regulator-boot-on; 133 + 134 + regulator-state-mem { 135 + regulator-off-in-suspend; 136 + }; 137 + }; 138 + 139 + vcc3v3_sd: SWITCH_REG2 { 140 + regulator-name = "vcc3v3_sd"; 141 + regulator-always-on; 142 + regulator-boot-on; 143 + 144 + regulator-state-mem { 145 + regulator-off-in-suspend; 146 + }; 147 + }; 148 + 149 + vccio_sd: LDO_REG5 { 150 + regulator-name = "vccio_sd"; 151 + regulator-always-on; 152 + regulator-boot-on; 153 + regulator-min-microvolt = <1800000>; 154 + regulator-max-microvolt = <3300000>; 155 + 156 + regulator-state-mem { 157 + regulator-off-in-suspend; 158 + }; 159 + }; 160 + }; 161 + }; 162 + 163 + vdd_cpu: regulator@40 { 164 + compatible = "silergy,syr827"; 165 + reg = <0x40>; 166 + fcs,suspend-voltage-selector = <1>; 167 + regulator-name = "vdd_cpu"; 168 + regulator-always-on; 169 + regulator-boot-on; 170 + regulator-min-microvolt = <830000>; 171 + regulator-max-microvolt = <1200000>; 172 + regulator-ramp-delay = <2300>; 173 + vin-supply = <&vcc3v3_sys>; 174 + 175 + regulator-state-mem { 176 + regulator-off-in-suspend; 177 + }; 178 + }; 179 + }; 180 + 181 + &i2c2 { 182 + status = "okay"; 183 + 184 + eeprom@50 { 185 + compatible = "atmel,24c08"; 186 + reg = <0x50>; 187 + pinctrl-names = "default"; 188 + pinctrl-0 = <&eeprom_wc_n>; 189 + }; 190 + 191 + rtc_isl1208: rtc@6f { 192 + compatible = "isil,isl1208"; 193 + reg = <0x6f>; 194 + interrupt-names = "irq"; 195 + interrupts-extended = <&gpio0 RK_PD3 IRQ_TYPE_EDGE_FALLING>; 196 + pinctrl-names = "default"; 197 + pinctrl-0 = <&rtcic_int_l>; 198 + }; 199 + }; 200 + 201 + &pinctrl { 202 + eeprom { 203 + eeprom_wc_n: eeprom-wc-n { 204 + rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>; 205 + }; 206 + }; 207 + 208 + pmic { 209 + pmic_int_l: pmic-int-l { 210 + rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 211 + }; 212 + }; 213 + 214 + rtc { 215 + rtcic_int_l: rtcic-int-l { 216 + rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>; 217 + }; 218 + }; 219 + 220 + usb { 221 + u2_a_vbus_en: u2-a-vbus-en { 222 + rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 223 + }; 224 + 225 + u3_a_vbus_en: u3-a-vbus-en { 226 + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 227 + }; 228 + }; 229 + }; 230 + 231 + &sdmmc0 { 232 + bus-width = <4>; 233 + cap-sd-highspeed; 234 + disable-wp; 235 + pinctrl-names = "default"; 236 + pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 237 + vmmc-supply = <&vcc3v3_sd>; 238 + vqmmc-supply = <&vccio_sd>; 239 + status = "okay"; 240 + }; 241 + 242 + &uart2 { 243 + status = "okay"; 244 + }; 245 + 246 + &usb_host0_ehci { 247 + status = "okay"; 248 + }; 249 + 250 + &usb_host0_ohci { 251 + status = "okay"; 252 + }; 253 + 254 + &usb_host1_ehci { 255 + status = "okay"; 256 + }; 257 + 258 + &usb_host1_ohci { 259 + status = "okay"; 260 + }; 261 + 262 + &usb2phy0 { 263 + status = "okay"; 264 + }; 265 + 266 + &usb2phy0_host { 267 + phy-supply = <&vcc5v0_usb_host>; 268 + status = "okay"; 269 + }; 270 + 271 + &usb2phy1 { 272 + status = "okay"; 273 + }; 274 + 275 + &usb2phy1_host { 276 + phy-supply = <&vcc5v0_usb_host>; 277 + status = "okay"; 278 + };
+30
arch/arm64/boot/dts/rockchip/rk3566-tinker-board-3s.dts
··· 1 + // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 + /* 3 + * Copyright (C) 2025 Michael Opdenacker <michael.opdenacker@rootcommit.com> 4 + */ 5 + 6 + /dts-v1/; 7 + 8 + #include "rk3566-tinker-board-3.dtsi" 9 + 10 + / { 11 + model = "Asus Tinker Board 3S"; 12 + compatible = "asus,rk3566-tinker-board-3s", "rockchip,rk3566"; 13 + 14 + aliases { 15 + mmc0 = &sdhci; 16 + }; 17 + }; 18 + 19 + &sdhci { 20 + bus-width = <8>; 21 + cap-mmc-highspeed; 22 + max-frequency = <200000000>; 23 + mmc-hs200-1_8v; 24 + non-removable; 25 + pinctrl-names = "default"; 26 + pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; 27 + vmmc-supply = <&vcc_3v3>; 28 + vqmmc-supply = <&vcc_1v8>; 29 + status = "okay"; 30 + };
+7 -7
arch/arm64/boot/dts/rockchip/rk3568-9tripod-x3568-v4.dts
··· 170 170 }; 171 171 172 172 vcc3v3_pcie: regulator-vcc3v3-pcie { 173 - compatible = "regulator-gpio"; 174 - regulator-name = "vcc3v3_pcie"; 175 - regulator-min-microvolt = <100000>; 176 - regulator-max-microvolt = <3300000>; 173 + compatible = "regulator-fixed"; 174 + enable-active-high; 175 + gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>; 177 176 pinctrl-names = "default"; 178 177 pinctrl-0 = <&vcc3v3_pcie_en_pin>; 179 - gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>; 180 - gpios-states = <1>; 181 - states = <100000 0>, <3300000 1>; 178 + regulator-name = "vcc3v3_pcie"; 179 + regulator-min-microvolt = <3300000>; 180 + regulator-max-microvolt = <3300000>; 182 181 startup-delay-us = <5000>; 182 + vin-supply = <&dc_12v>; 183 183 }; 184 184 185 185 vcc5v0_sys: regulator-vcc5v0-sys {
+131
arch/arm64/boot/dts/rockchip/rk3568-qnap-ts233.dts
··· 1 + // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 + /* 3 + * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 4 + * Copyright (c) 2024 Heiko Stuebner <heiko@sntech.de> 5 + */ 6 + 7 + /dts-v1/; 8 + 9 + #include "rk3568-qnap-tsx33.dtsi" 10 + 11 + / { 12 + model = "Qnap TS-233-2G NAS System 2-Bay"; 13 + compatible = "qnap,ts233", "rockchip,rk3568"; 14 + 15 + aliases { 16 + ethernet0 = &gmac0; 17 + }; 18 + }; 19 + 20 + /* connected to sata2 */ 21 + &combphy2 { 22 + status = "okay"; 23 + }; 24 + 25 + &gmac0 { 26 + assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; 27 + assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_2TOP>; 28 + assigned-clock-rates = <0>, <125000000>; 29 + clock_in_out = "output"; 30 + phy-handle = <&rgmii_phy0>; 31 + phy-mode = "rgmii-id"; 32 + pinctrl-names = "default"; 33 + pinctrl-0 = <&gmac0_miim 34 + &gmac0_tx_bus2 35 + &gmac0_rx_bus2 36 + &gmac0_rgmii_clk 37 + &gmac0_rgmii_bus>; 38 + status = "okay"; 39 + }; 40 + 41 + &i2c1 { 42 + /* eeprom for vital-product-data on the backplane */ 43 + eeprom@56 { 44 + compatible = "giantec,gt24c04a", "atmel,24c04"; 45 + reg = <0x56>; 46 + label = "VPD_BP"; 47 + num-addresses = <2>; 48 + pagesize = <16>; 49 + read-only; 50 + }; 51 + }; 52 + 53 + &leds { 54 + led-1 { 55 + color = <LED_COLOR_ID_GREEN>; 56 + function = LED_FUNCTION_DISK; 57 + gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>; 58 + label = "hdd2:green:disk"; 59 + linux,default-trigger = "disk-activity"; 60 + pinctrl-names = "default"; 61 + pinctrl-0 = <&hdd2_led_pin>; 62 + }; 63 + }; 64 + 65 + &mcu { 66 + compatible = "qnap,ts233-mcu"; 67 + }; 68 + 69 + &mdio0 { 70 + rgmii_phy0: ethernet-phy@3 { 71 + /* Motorcomm YT8521 phy */ 72 + compatible = "ethernet-phy-ieee802.3-c22"; 73 + reg = <0x3>; 74 + pinctrl-0 = <&eth_phy0_reset_pin>; 75 + pinctrl-names = "default"; 76 + reset-assert-us = <10000>; 77 + reset-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>; 78 + }; 79 + }; 80 + 81 + &pinctrl { 82 + gmac0 { 83 + eth_phy0_reset_pin: eth-phy0-reset-pin { 84 + rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>; 85 + }; 86 + }; 87 + 88 + leds { 89 + hdd2_led_pin: hdd2-led-pin { 90 + rockchip,pins = <1 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>; 91 + }; 92 + }; 93 + }; 94 + 95 + &sata2 { 96 + status = "okay"; 97 + }; 98 + 99 + &usb2phy1 { 100 + status = "okay"; 101 + }; 102 + 103 + /* connected to usb_host1_ehci/ohci */ 104 + &usb2phy1_host { 105 + phy-supply = <&vcc5v0_host>; 106 + status = "okay"; 107 + }; 108 + 109 + /* connected to usb_host0_ehci/ohci */ 110 + &usb2phy1_otg { 111 + phy-supply = <&vcc5v0_host>; 112 + status = "okay"; 113 + }; 114 + 115 + /* right port backside */ 116 + &usb_host0_ehci { 117 + status = "okay"; 118 + }; 119 + 120 + &usb_host0_ohci { 121 + status = "okay"; 122 + }; 123 + 124 + /* left port backside */ 125 + &usb_host1_ehci { 126 + status = "okay"; 127 + }; 128 + 129 + &usb_host1_ohci { 130 + status = "okay"; 131 + };
+37 -567
arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts
··· 6 6 7 7 /dts-v1/; 8 8 9 - #include <dt-bindings/input/input.h> 10 - #include <dt-bindings/leds/common.h> 11 - #include <dt-bindings/gpio/gpio.h> 12 - #include "rk3568.dtsi" 9 + #include "rk3568-qnap-tsx33.dtsi" 13 10 14 11 / { 15 12 model = "Qnap TS-433-4G NAS System 4-Bay"; ··· 14 17 15 18 aliases { 16 19 ethernet0 = &gmac0; 17 - mmc0 = &sdhci; 18 - rtc0 = &rtc_rv8263; 19 - }; 20 - 21 - chosen { 22 - stdout-path = "serial2:115200n8"; 23 - }; 24 - 25 - keys { 26 - compatible = "gpio-keys"; 27 - pinctrl-0 = <&copy_button_pin>, <&reset_button_pin>; 28 - pinctrl-names = "default"; 29 - 30 - key-copy { 31 - label = "copy"; 32 - gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>; 33 - linux,code = <KEY_COPY>; 34 - }; 35 - 36 - key-reset { 37 - label = "reset"; 38 - gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_LOW>; 39 - linux,code = <KEY_RESTART>; 40 - }; 41 - }; 42 - 43 - leds { 44 - compatible = "gpio-leds"; 45 - 46 - led-0 { 47 - color = <LED_COLOR_ID_GREEN>; 48 - function = LED_FUNCTION_DISK; 49 - gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>; 50 - label = "hdd1:green:disk"; 51 - linux,default-trigger = "disk-activity"; 52 - pinctrl-names = "default"; 53 - pinctrl-0 = <&hdd1_led_pin>; 54 - }; 55 - 56 - led-1 { 57 - color = <LED_COLOR_ID_GREEN>; 58 - function = LED_FUNCTION_DISK; 59 - gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>; 60 - label = "hdd2:green:disk"; 61 - linux,default-trigger = "disk-activity"; 62 - pinctrl-names = "default"; 63 - pinctrl-0 = <&hdd2_led_pin>; 64 - }; 65 - 66 - led-2 { 67 - color = <LED_COLOR_ID_GREEN>; 68 - function = LED_FUNCTION_DISK; 69 - gpios = <&gpio1 RK_PD7 GPIO_ACTIVE_LOW>; 70 - label = "hdd3:green:disk"; 71 - linux,default-trigger = "disk-activity"; 72 - pinctrl-names = "default"; 73 - pinctrl-0 = <&hdd3_led_pin>; 74 - }; 75 - 76 - led-3 { 77 - color = <LED_COLOR_ID_GREEN>; 78 - function = LED_FUNCTION_DISK; 79 - gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>; 80 - label = "hdd4:green:disk"; 81 - linux,default-trigger = "disk-activity"; 82 - pinctrl-names = "default"; 83 - pinctrl-0 = <&hdd4_led_pin>; 84 - }; 85 - }; 86 - 87 - dc_12v: regulator-dc-12v { 88 - compatible = "regulator-fixed"; 89 - regulator-name = "dc_12v"; 90 - regulator-always-on; 91 - regulator-boot-on; 92 - regulator-min-microvolt = <12000000>; 93 - regulator-max-microvolt = <12000000>; 94 20 }; 95 21 96 22 vcc3v3_pcie: regulator-vcc3v3-pcie { ··· 25 105 gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; 26 106 vin-supply = <&dc_12v>; 27 107 }; 28 - 29 - vcc3v3_sys: regulator-vcc3v3-sys { 30 - compatible = "regulator-fixed"; 31 - regulator-name = "vcc3v3_sys"; 32 - regulator-always-on; 33 - regulator-boot-on; 34 - regulator-min-microvolt = <3300000>; 35 - regulator-max-microvolt = <3300000>; 36 - vin-supply = <&dc_12v>; 37 - }; 38 - 39 - vcc5v0_host: regulator-vcc5v0-host { 40 - compatible = "regulator-fixed"; 41 - enable-active-high; 42 - pinctrl-names = "default"; 43 - pinctrl-0 = <&vcc5v0_host_en>; 44 - gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 45 - regulator-name = "vcc5v0_host"; 46 - regulator-always-on; 47 - regulator-boot-on; 48 - regulator-min-microvolt = <5000000>; 49 - regulator-max-microvolt = <5000000>; 50 - vin-supply = <&vcc5v0_usb>; 51 - }; 52 - 53 - vcc5v0_otg: regulator-vcc5v0-otg { 54 - compatible = "regulator-fixed"; 55 - enable-active-high; 56 - gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; 57 - pinctrl-names = "default"; 58 - pinctrl-0 = <&vcc5v0_otg_en>; 59 - regulator-name = "vcc5v0_otg"; 60 - regulator-always-on; 61 - regulator-boot-on; 62 - regulator-min-microvolt = <5000000>; 63 - regulator-max-microvolt = <5000000>; 64 - vin-supply = <&vcc5v0_usb>; 65 - }; 66 - 67 - vcc5v0_sys: regulator-vcc5v0-sys { 68 - compatible = "regulator-fixed"; 69 - regulator-name = "vcc5v0_sys"; 70 - regulator-always-on; 71 - regulator-boot-on; 72 - regulator-min-microvolt = <5000000>; 73 - regulator-max-microvolt = <5000000>; 74 - vin-supply = <&dc_12v>; 75 - }; 76 - 77 - vcc5v0_usb: regulator-vcc5v0-usb { 78 - compatible = "regulator-fixed"; 79 - regulator-name = "vcc5v0_usb"; 80 - regulator-always-on; 81 - regulator-boot-on; 82 - regulator-min-microvolt = <5000000>; 83 - regulator-max-microvolt = <5000000>; 84 - vin-supply = <&dc_12v>; 85 - }; 86 - }; 87 - 88 - /* connected to usb_host0_xhci */ 89 - &combphy0 { 90 - status = "okay"; 91 - }; 92 - 93 - /* connected to sata1 */ 94 - &combphy1 { 95 - status = "okay"; 96 108 }; 97 109 98 110 /* connected to sata2 */ 99 111 &combphy2 { 100 112 status = "okay"; 101 - }; 102 - 103 - &cpu0 { 104 - cpu-supply = <&vdd_cpu>; 105 - }; 106 - 107 - &cpu1 { 108 - cpu-supply = <&vdd_cpu>; 109 - }; 110 - 111 - &cpu2 { 112 - cpu-supply = <&vdd_cpu>; 113 - }; 114 - 115 - &cpu3 { 116 - cpu-supply = <&vdd_cpu>; 117 113 }; 118 114 119 115 &gmac0 { ··· 48 212 status = "okay"; 49 213 }; 50 214 51 - &gpu { 52 - mali-supply = <&vdd_gpu>; 53 - status = "okay"; 54 - }; 55 - 56 - &i2c0 { 57 - status = "okay"; 58 - 59 - pmic@20 { 60 - compatible = "rockchip,rk809"; 61 - reg = <0x20>; 62 - interrupt-parent = <&gpio0>; 63 - interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 64 - #clock-cells = <1>; 65 - pinctrl-names = "default"; 66 - pinctrl-0 = <&pmic_int_l>; 67 - system-power-controller; 68 - vcc1-supply = <&vcc3v3_sys>; 69 - vcc2-supply = <&vcc3v3_sys>; 70 - vcc3-supply = <&vcc3v3_sys>; 71 - vcc4-supply = <&vcc3v3_sys>; 72 - vcc5-supply = <&vcc3v3_sys>; 73 - vcc6-supply = <&vcc3v3_sys>; 74 - vcc7-supply = <&vcc3v3_sys>; 75 - vcc8-supply = <&vcc3v3_sys>; 76 - vcc9-supply = <&vcc3v3_sys>; 77 - wakeup-source; 78 - 79 - regulators { 80 - vdd_logic: DCDC_REG1 { 81 - regulator-name = "vdd_logic"; 82 - regulator-always-on; 83 - regulator-boot-on; 84 - regulator-initial-mode = <0x2>; 85 - regulator-min-microvolt = <500000>; 86 - regulator-max-microvolt = <1350000>; 87 - regulator-ramp-delay = <6001>; 88 - 89 - regulator-state-mem { 90 - regulator-off-in-suspend; 91 - }; 92 - }; 93 - 94 - vdd_gpu: DCDC_REG2 { 95 - regulator-name = "vdd_gpu"; 96 - regulator-always-on; 97 - regulator-initial-mode = <0x2>; 98 - regulator-min-microvolt = <500000>; 99 - regulator-max-microvolt = <1350000>; 100 - regulator-ramp-delay = <6001>; 101 - 102 - regulator-state-mem { 103 - regulator-off-in-suspend; 104 - }; 105 - }; 106 - 107 - vcc_ddr: DCDC_REG3 { 108 - regulator-name = "vcc_ddr"; 109 - regulator-always-on; 110 - regulator-boot-on; 111 - regulator-initial-mode = <0x2>; 112 - 113 - regulator-state-mem { 114 - regulator-on-in-suspend; 115 - }; 116 - }; 117 - 118 - vdd_npu: DCDC_REG4 { 119 - regulator-name = "vdd_npu"; 120 - regulator-initial-mode = <0x2>; 121 - regulator-min-microvolt = <500000>; 122 - regulator-max-microvolt = <1350000>; 123 - regulator-ramp-delay = <6001>; 124 - 125 - regulator-state-mem { 126 - regulator-off-in-suspend; 127 - }; 128 - }; 129 - 130 - vcc_1v8: DCDC_REG5 { 131 - regulator-name = "vcc_1v8"; 132 - regulator-always-on; 133 - regulator-boot-on; 134 - regulator-min-microvolt = <1800000>; 135 - regulator-max-microvolt = <1800000>; 136 - 137 - regulator-state-mem { 138 - regulator-off-in-suspend; 139 - }; 140 - }; 141 - 142 - vdda0v9_image: LDO_REG1 { 143 - regulator-name = "vdda0v9_image"; 144 - regulator-always-on; 145 - regulator-min-microvolt = <900000>; 146 - regulator-max-microvolt = <900000>; 147 - 148 - regulator-state-mem { 149 - regulator-off-in-suspend; 150 - }; 151 - }; 152 - 153 - vdda_0v9: LDO_REG2 { 154 - regulator-name = "vdda_0v9"; 155 - regulator-always-on; 156 - regulator-boot-on; 157 - regulator-min-microvolt = <900000>; 158 - regulator-max-microvolt = <900000>; 159 - 160 - regulator-state-mem { 161 - regulator-off-in-suspend; 162 - }; 163 - }; 164 - 165 - vdda0v9_pmu: LDO_REG3 { 166 - regulator-name = "vdda0v9_pmu"; 167 - regulator-always-on; 168 - regulator-boot-on; 169 - regulator-min-microvolt = <900000>; 170 - regulator-max-microvolt = <900000>; 171 - 172 - regulator-state-mem { 173 - regulator-on-in-suspend; 174 - regulator-suspend-microvolt = <900000>; 175 - }; 176 - }; 177 - 178 - vccio_acodec: LDO_REG4 { 179 - regulator-name = "vccio_acodec"; 180 - regulator-always-on; 181 - regulator-boot-on; 182 - regulator-min-microvolt = <3300000>; 183 - regulator-max-microvolt = <3300000>; 184 - 185 - regulator-state-mem { 186 - regulator-off-in-suspend; 187 - }; 188 - }; 189 - 190 - vccio_sd: LDO_REG5 { 191 - regulator-name = "vccio_sd"; 192 - regulator-min-microvolt = <1800000>; 193 - regulator-max-microvolt = <3300000>; 194 - 195 - regulator-state-mem { 196 - regulator-off-in-suspend; 197 - }; 198 - }; 199 - 200 - vcc3v3_pmu: LDO_REG6 { 201 - regulator-name = "vcc3v3_pmu"; 202 - regulator-always-on; 203 - regulator-boot-on; 204 - regulator-min-microvolt = <3300000>; 205 - regulator-max-microvolt = <3300000>; 206 - 207 - regulator-state-mem { 208 - regulator-on-in-suspend; 209 - regulator-suspend-microvolt = <3300000>; 210 - }; 211 - }; 212 - 213 - vcca_1v8: LDO_REG7 { 214 - regulator-name = "vcca_1v8"; 215 - regulator-always-on; 216 - regulator-boot-on; 217 - regulator-min-microvolt = <1800000>; 218 - regulator-max-microvolt = <1800000>; 219 - 220 - regulator-state-mem { 221 - regulator-off-in-suspend; 222 - }; 223 - }; 224 - 225 - vcca1v8_pmu: LDO_REG8 { 226 - regulator-name = "vcca1v8_pmu"; 227 - regulator-always-on; 228 - regulator-boot-on; 229 - regulator-min-microvolt = <1800000>; 230 - regulator-max-microvolt = <1800000>; 231 - 232 - regulator-state-mem { 233 - regulator-on-in-suspend; 234 - regulator-suspend-microvolt = <1800000>; 235 - }; 236 - }; 237 - 238 - vcca1v8_image: LDO_REG9 { 239 - regulator-name = "vcca1v8_image"; 240 - regulator-always-on; 241 - regulator-min-microvolt = <1800000>; 242 - regulator-max-microvolt = <1800000>; 243 - 244 - regulator-state-mem { 245 - regulator-off-in-suspend; 246 - }; 247 - }; 248 - 249 - vcc_3v3: SWITCH_REG1 { 250 - regulator-name = "vcc_3v3"; 251 - regulator-always-on; 252 - regulator-boot-on; 253 - 254 - regulator-state-mem { 255 - regulator-off-in-suspend; 256 - }; 257 - }; 258 - 259 - vcc3v3_sd: SWITCH_REG2 { 260 - regulator-name = "vcc3v3_sd"; 261 - /* 262 - * turning this off, breaks access to both 263 - * PCIe controllers, refclk generator perhaps 264 - */ 265 - regulator-always-on; 266 - regulator-boot-on; 267 - 268 - regulator-state-mem { 269 - regulator-off-in-suspend; 270 - }; 271 - }; 272 - }; 273 - }; 274 - 275 - vdd_cpu: regulator@40 { 276 - compatible = "silergy,syr827"; 277 - reg = <0x40>; 278 - fcs,suspend-voltage-selector = <1>; 279 - regulator-name = "vdd_cpu"; 280 - regulator-always-on; 281 - regulator-boot-on; 282 - regulator-min-microvolt = <712500>; 283 - regulator-max-microvolt = <1390000>; 284 - regulator-ramp-delay = <2300>; 285 - vin-supply = <&vcc5v0_sys>; 286 - }; 287 - }; 288 - 289 215 &i2c1 { 290 - status = "okay"; 291 - 292 - rtc_rv8263: rtc@51 { 293 - compatible = "microcrystal,rv8263"; 294 - reg = <0x51>; 295 - wakeup-source; 296 - }; 297 - 298 - /* eeprom for vital-product-data on the mainboard */ 299 - eeprom@54 { 300 - compatible = "giantec,gt24c04a", "atmel,24c04"; 301 - reg = <0x54>; 302 - label = "VPD_MB"; 303 - num-addresses = <2>; 304 - pagesize = <16>; 305 - read-only; 306 - }; 307 - 308 216 /* eeprom for vital-product-data on the backplane */ 309 217 eeprom@56 { 310 218 compatible = "giantec,gt24c04a", "atmel,24c04"; ··· 60 480 }; 61 481 }; 62 482 483 + &leds { 484 + led-1 { 485 + color = <LED_COLOR_ID_GREEN>; 486 + function = LED_FUNCTION_DISK; 487 + gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>; 488 + label = "hdd2:green:disk"; 489 + linux,default-trigger = "disk-activity"; 490 + pinctrl-names = "default"; 491 + pinctrl-0 = <&hdd2_led_pin>; 492 + }; 493 + 494 + led-2 { 495 + color = <LED_COLOR_ID_GREEN>; 496 + function = LED_FUNCTION_DISK; 497 + gpios = <&gpio1 RK_PD7 GPIO_ACTIVE_LOW>; 498 + label = "hdd3:green:disk"; 499 + linux,default-trigger = "disk-activity"; 500 + pinctrl-names = "default"; 501 + pinctrl-0 = <&hdd3_led_pin>; 502 + }; 503 + 504 + led-3 { 505 + color = <LED_COLOR_ID_GREEN>; 506 + function = LED_FUNCTION_DISK; 507 + gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>; 508 + label = "hdd4:green:disk"; 509 + linux,default-trigger = "disk-activity"; 510 + pinctrl-names = "default"; 511 + pinctrl-0 = <&hdd4_led_pin>; 512 + }; 513 + }; 514 + 515 + &mcu { 516 + compatible = "qnap,ts433-mcu"; 517 + }; 518 + 63 519 &mdio0 { 64 520 rgmii_phy0: ethernet-phy@3 { 65 521 /* Motorcomm YT8521 phy */ ··· 105 489 pinctrl-names = "default"; 106 490 reset-assert-us = <10000>; 107 491 reset-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>; 108 - }; 109 - }; 110 - 111 - /* 112 - * The MCU can provide system temperature too, but only by polling and of 113 - * course also cannot set trip points. So attach to the cpu thermal-zone 114 - * instead to control the fan. 115 - */ 116 - &cpu_thermal { 117 - trips { 118 - case_fan0: case-fan0 { 119 - hysteresis = <2000>; 120 - temperature = <35000>; 121 - type = "active"; 122 - }; 123 - 124 - case_fan1: case-fan1 { 125 - hysteresis = <2000>; 126 - temperature = <45000>; 127 - type = "active"; 128 - }; 129 - 130 - case_fan2: case-fan2 { 131 - hysteresis = <2000>; 132 - temperature = <65000>; 133 - type = "active"; 134 - }; 135 - }; 136 - 137 - cooling-maps { 138 - /* 139 - * Always provide some air movement, due to small case 140 - * full of harddrives. 141 - */ 142 - map1 { 143 - cooling-device = <&fan THERMAL_NO_LIMIT 1>; 144 - trip = <&case_fan0>; 145 - }; 146 - 147 - map2 { 148 - cooling-device = <&fan 2 3>; 149 - trip = <&case_fan1>; 150 - }; 151 - 152 - map3 { 153 - cooling-device = <&fan 4 THERMAL_NO_LIMIT>; 154 - trip = <&case_fan2>; 155 - }; 156 492 }; 157 493 }; 158 494 ··· 135 567 }; 136 568 }; 137 569 138 - keys { 139 - copy_button_pin: copy-button-pin { 140 - rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>; 141 - }; 142 - 143 - reset_button_pin: reset-button-pin { 144 - rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; 145 - }; 146 - }; 147 - 148 570 leds { 149 - hdd1_led_pin: hdd1-led-pin { 150 - rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>; 151 - }; 152 - 153 571 hdd2_led_pin: hdd2-led-pin { 154 572 rockchip,pins = <1 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>; 155 573 }; ··· 148 594 rockchip,pins = <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; 149 595 }; 150 596 }; 151 - 152 - pmic { 153 - pmic_int_l: pmic-int-l { 154 - rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 155 - }; 156 - }; 157 - 158 - usb { 159 - vcc5v0_host_en: vcc5v0-host-en { 160 - rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 161 - }; 162 - 163 - vcc5v0_otg_en: vcc5v0-otg-en { 164 - rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 165 - }; 166 - }; 167 - }; 168 - 169 - &pmu_io_domains { 170 - vccio4-supply = <&vcc_1v8>; 171 - vccio6-supply = <&vcc_1v8>; 172 - status = "okay"; 173 - }; 174 - 175 - &sata1 { 176 - status = "okay"; 177 597 }; 178 598 179 599 &sata2 { 180 - status = "okay"; 181 - }; 182 - 183 - &sdhci { 184 - bus-width = <8>; 185 - max-frequency = <200000000>; 186 - non-removable; 187 - pinctrl-names = "default"; 188 - pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; 189 - status = "okay"; 190 - }; 191 - 192 - &tsadc { 193 - rockchip,hw-tshut-mode = <1>; 194 - rockchip,hw-tshut-polarity = <0>; 195 - status = "okay"; 196 - }; 197 - 198 - /* 199 - * Connected to an MCU, that provides access to more LEDs, 200 - * buzzer, fan control and more. 201 - */ 202 - &uart0 { 203 - status = "okay"; 204 - 205 - mcu { 206 - compatible = "qnap,ts433-mcu"; 207 - 208 - fan: fan-0 { 209 - #cooling-cells = <2>; 210 - cooling-levels = <0 64 89 128 166 204 221 238>; 211 - }; 212 - }; 213 - }; 214 - 215 - /* 216 - * Pins available on CN3 connector at TTL voltage level (3V3). 217 - * ,_ _. 218 - * |1234| 1=TX 2=VCC 219 - * `----' 3=RX 4=GND 220 - */ 221 - &uart2 { 222 - status = "okay"; 223 - }; 224 - 225 - &usb2phy0 { 226 - status = "okay"; 227 - }; 228 - 229 - /* connected to usb_host0_xhci */ 230 - &usb2phy0_otg { 231 - phy-supply = <&vcc5v0_otg>; 232 600 status = "okay"; 233 601 }; 234 602 ··· 176 700 }; 177 701 178 702 &usb_host0_ohci { 179 - status = "okay"; 180 - }; 181 - 182 - /* front port */ 183 - &usb_host0_xhci { 184 - dr_mode = "host"; 185 703 status = "okay"; 186 704 }; 187 705
+608
arch/arm64/boot/dts/rockchip/rk3568-qnap-tsx33.dtsi
··· 1 + #include <dt-bindings/input/input.h> 2 + #include <dt-bindings/leds/common.h> 3 + #include <dt-bindings/gpio/gpio.h> 4 + #include "rk3568.dtsi" 5 + 6 + / { 7 + aliases { 8 + mmc0 = &sdhci; 9 + rtc0 = &rtc_rv8263; 10 + }; 11 + 12 + chosen { 13 + stdout-path = "serial2:115200n8"; 14 + }; 15 + 16 + keys { 17 + compatible = "gpio-keys"; 18 + pinctrl-0 = <&copy_button_pin>, <&reset_button_pin>; 19 + pinctrl-names = "default"; 20 + 21 + key-copy { 22 + label = "copy"; 23 + gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>; 24 + linux,code = <KEY_COPY>; 25 + }; 26 + 27 + key-reset { 28 + label = "reset"; 29 + gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_LOW>; 30 + linux,code = <KEY_RESTART>; 31 + }; 32 + }; 33 + 34 + leds: leds { 35 + compatible = "gpio-leds"; 36 + 37 + led-0 { 38 + color = <LED_COLOR_ID_GREEN>; 39 + function = LED_FUNCTION_DISK; 40 + gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>; 41 + label = "hdd1:green:disk"; 42 + linux,default-trigger = "disk-activity"; 43 + pinctrl-names = "default"; 44 + pinctrl-0 = <&hdd1_led_pin>; 45 + }; 46 + }; 47 + 48 + dc_12v: regulator-dc-12v { 49 + compatible = "regulator-fixed"; 50 + regulator-name = "dc_12v"; 51 + regulator-always-on; 52 + regulator-boot-on; 53 + regulator-min-microvolt = <12000000>; 54 + regulator-max-microvolt = <12000000>; 55 + }; 56 + 57 + vcc3v3_sys: regulator-vcc3v3-sys { 58 + compatible = "regulator-fixed"; 59 + regulator-name = "vcc3v3_sys"; 60 + regulator-always-on; 61 + regulator-boot-on; 62 + regulator-min-microvolt = <3300000>; 63 + regulator-max-microvolt = <3300000>; 64 + vin-supply = <&dc_12v>; 65 + }; 66 + 67 + vcc5v0_host: regulator-vcc5v0-host { 68 + compatible = "regulator-fixed"; 69 + enable-active-high; 70 + pinctrl-names = "default"; 71 + pinctrl-0 = <&vcc5v0_host_en>; 72 + gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 73 + regulator-name = "vcc5v0_host"; 74 + regulator-always-on; 75 + regulator-boot-on; 76 + regulator-min-microvolt = <5000000>; 77 + regulator-max-microvolt = <5000000>; 78 + vin-supply = <&vcc5v0_usb>; 79 + }; 80 + 81 + vcc5v0_otg: regulator-vcc5v0-otg { 82 + compatible = "regulator-fixed"; 83 + enable-active-high; 84 + gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; 85 + pinctrl-names = "default"; 86 + pinctrl-0 = <&vcc5v0_otg_en>; 87 + regulator-name = "vcc5v0_otg"; 88 + regulator-always-on; 89 + regulator-boot-on; 90 + regulator-min-microvolt = <5000000>; 91 + regulator-max-microvolt = <5000000>; 92 + vin-supply = <&vcc5v0_usb>; 93 + }; 94 + 95 + vcc5v0_sys: regulator-vcc5v0-sys { 96 + compatible = "regulator-fixed"; 97 + regulator-name = "vcc5v0_sys"; 98 + regulator-always-on; 99 + regulator-boot-on; 100 + regulator-min-microvolt = <5000000>; 101 + regulator-max-microvolt = <5000000>; 102 + vin-supply = <&dc_12v>; 103 + }; 104 + 105 + vcc5v0_usb: regulator-vcc5v0-usb { 106 + compatible = "regulator-fixed"; 107 + regulator-name = "vcc5v0_usb"; 108 + regulator-always-on; 109 + regulator-boot-on; 110 + regulator-min-microvolt = <5000000>; 111 + regulator-max-microvolt = <5000000>; 112 + vin-supply = <&dc_12v>; 113 + }; 114 + }; 115 + 116 + /* connected to usb_host0_xhci */ 117 + &combphy0 { 118 + status = "okay"; 119 + }; 120 + 121 + /* connected to sata1 */ 122 + &combphy1 { 123 + status = "okay"; 124 + }; 125 + 126 + &cpu0 { 127 + cpu-supply = <&vdd_cpu>; 128 + }; 129 + 130 + &cpu1 { 131 + cpu-supply = <&vdd_cpu>; 132 + }; 133 + 134 + &cpu2 { 135 + cpu-supply = <&vdd_cpu>; 136 + }; 137 + 138 + &cpu3 { 139 + cpu-supply = <&vdd_cpu>; 140 + }; 141 + 142 + /* 143 + * The MCU can provide system temperature too, but only by polling and of 144 + * course also cannot set trip points. So attach to the cpu thermal-zone 145 + * instead to control the fan. 146 + */ 147 + &cpu_thermal { 148 + trips { 149 + case_fan0: case-fan0 { 150 + hysteresis = <2000>; 151 + temperature = <35000>; 152 + type = "active"; 153 + }; 154 + 155 + case_fan1: case-fan1 { 156 + hysteresis = <2000>; 157 + temperature = <45000>; 158 + type = "active"; 159 + }; 160 + 161 + case_fan2: case-fan2 { 162 + hysteresis = <2000>; 163 + temperature = <65000>; 164 + type = "active"; 165 + }; 166 + }; 167 + 168 + cooling-maps { 169 + /* 170 + * Always provide some air movement, due to small case 171 + * full of harddrives. 172 + */ 173 + map1 { 174 + cooling-device = <&fan THERMAL_NO_LIMIT 1>; 175 + trip = <&case_fan0>; 176 + }; 177 + 178 + map2 { 179 + cooling-device = <&fan 2 3>; 180 + trip = <&case_fan1>; 181 + }; 182 + 183 + map3 { 184 + cooling-device = <&fan 4 THERMAL_NO_LIMIT>; 185 + trip = <&case_fan2>; 186 + }; 187 + }; 188 + }; 189 + 190 + &gpu { 191 + mali-supply = <&vdd_gpu>; 192 + status = "okay"; 193 + }; 194 + 195 + &i2c0 { 196 + status = "okay"; 197 + 198 + pmic@20 { 199 + compatible = "rockchip,rk809"; 200 + reg = <0x20>; 201 + interrupt-parent = <&gpio0>; 202 + interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 203 + #clock-cells = <1>; 204 + pinctrl-names = "default"; 205 + pinctrl-0 = <&pmic_int_l>; 206 + system-power-controller; 207 + vcc1-supply = <&vcc3v3_sys>; 208 + vcc2-supply = <&vcc3v3_sys>; 209 + vcc3-supply = <&vcc3v3_sys>; 210 + vcc4-supply = <&vcc3v3_sys>; 211 + vcc5-supply = <&vcc3v3_sys>; 212 + vcc6-supply = <&vcc3v3_sys>; 213 + vcc7-supply = <&vcc3v3_sys>; 214 + vcc8-supply = <&vcc3v3_sys>; 215 + vcc9-supply = <&vcc3v3_sys>; 216 + wakeup-source; 217 + 218 + regulators { 219 + vdd_logic: DCDC_REG1 { 220 + regulator-name = "vdd_logic"; 221 + regulator-always-on; 222 + regulator-boot-on; 223 + regulator-initial-mode = <0x2>; 224 + regulator-min-microvolt = <500000>; 225 + regulator-max-microvolt = <1350000>; 226 + regulator-ramp-delay = <6001>; 227 + 228 + regulator-state-mem { 229 + regulator-off-in-suspend; 230 + }; 231 + }; 232 + 233 + vdd_gpu: DCDC_REG2 { 234 + regulator-name = "vdd_gpu"; 235 + regulator-always-on; 236 + regulator-initial-mode = <0x2>; 237 + regulator-min-microvolt = <500000>; 238 + regulator-max-microvolt = <1350000>; 239 + regulator-ramp-delay = <6001>; 240 + 241 + regulator-state-mem { 242 + regulator-off-in-suspend; 243 + }; 244 + }; 245 + 246 + vcc_ddr: DCDC_REG3 { 247 + regulator-name = "vcc_ddr"; 248 + regulator-always-on; 249 + regulator-boot-on; 250 + regulator-initial-mode = <0x2>; 251 + 252 + regulator-state-mem { 253 + regulator-on-in-suspend; 254 + }; 255 + }; 256 + 257 + vdd_npu: DCDC_REG4 { 258 + regulator-name = "vdd_npu"; 259 + regulator-initial-mode = <0x2>; 260 + regulator-min-microvolt = <500000>; 261 + regulator-max-microvolt = <1350000>; 262 + regulator-ramp-delay = <6001>; 263 + 264 + regulator-state-mem { 265 + regulator-off-in-suspend; 266 + }; 267 + }; 268 + 269 + vcc_1v8: DCDC_REG5 { 270 + regulator-name = "vcc_1v8"; 271 + regulator-always-on; 272 + regulator-boot-on; 273 + regulator-min-microvolt = <1800000>; 274 + regulator-max-microvolt = <1800000>; 275 + 276 + regulator-state-mem { 277 + regulator-off-in-suspend; 278 + }; 279 + }; 280 + 281 + vdda0v9_image: LDO_REG1 { 282 + regulator-name = "vdda0v9_image"; 283 + regulator-always-on; 284 + regulator-min-microvolt = <900000>; 285 + regulator-max-microvolt = <900000>; 286 + 287 + regulator-state-mem { 288 + regulator-off-in-suspend; 289 + }; 290 + }; 291 + 292 + vdda_0v9: LDO_REG2 { 293 + regulator-name = "vdda_0v9"; 294 + regulator-always-on; 295 + regulator-boot-on; 296 + regulator-min-microvolt = <900000>; 297 + regulator-max-microvolt = <900000>; 298 + 299 + regulator-state-mem { 300 + regulator-off-in-suspend; 301 + }; 302 + }; 303 + 304 + vdda0v9_pmu: LDO_REG3 { 305 + regulator-name = "vdda0v9_pmu"; 306 + regulator-always-on; 307 + regulator-boot-on; 308 + regulator-min-microvolt = <900000>; 309 + regulator-max-microvolt = <900000>; 310 + 311 + regulator-state-mem { 312 + regulator-on-in-suspend; 313 + regulator-suspend-microvolt = <900000>; 314 + }; 315 + }; 316 + 317 + vccio_acodec: LDO_REG4 { 318 + regulator-name = "vccio_acodec"; 319 + regulator-always-on; 320 + regulator-boot-on; 321 + regulator-min-microvolt = <3300000>; 322 + regulator-max-microvolt = <3300000>; 323 + 324 + regulator-state-mem { 325 + regulator-off-in-suspend; 326 + }; 327 + }; 328 + 329 + vccio_sd: LDO_REG5 { 330 + regulator-name = "vccio_sd"; 331 + regulator-min-microvolt = <1800000>; 332 + regulator-max-microvolt = <3300000>; 333 + 334 + regulator-state-mem { 335 + regulator-off-in-suspend; 336 + }; 337 + }; 338 + 339 + vcc3v3_pmu: LDO_REG6 { 340 + regulator-name = "vcc3v3_pmu"; 341 + regulator-always-on; 342 + regulator-boot-on; 343 + regulator-min-microvolt = <3300000>; 344 + regulator-max-microvolt = <3300000>; 345 + 346 + regulator-state-mem { 347 + regulator-on-in-suspend; 348 + regulator-suspend-microvolt = <3300000>; 349 + }; 350 + }; 351 + 352 + vcca_1v8: LDO_REG7 { 353 + regulator-name = "vcca_1v8"; 354 + regulator-always-on; 355 + regulator-boot-on; 356 + regulator-min-microvolt = <1800000>; 357 + regulator-max-microvolt = <1800000>; 358 + 359 + regulator-state-mem { 360 + regulator-off-in-suspend; 361 + }; 362 + }; 363 + 364 + vcca1v8_pmu: LDO_REG8 { 365 + regulator-name = "vcca1v8_pmu"; 366 + regulator-always-on; 367 + regulator-boot-on; 368 + regulator-min-microvolt = <1800000>; 369 + regulator-max-microvolt = <1800000>; 370 + 371 + regulator-state-mem { 372 + regulator-on-in-suspend; 373 + regulator-suspend-microvolt = <1800000>; 374 + }; 375 + }; 376 + 377 + vcca1v8_image: LDO_REG9 { 378 + regulator-name = "vcca1v8_image"; 379 + regulator-always-on; 380 + regulator-min-microvolt = <1800000>; 381 + regulator-max-microvolt = <1800000>; 382 + 383 + regulator-state-mem { 384 + regulator-off-in-suspend; 385 + }; 386 + }; 387 + 388 + vcc_3v3: SWITCH_REG1 { 389 + regulator-name = "vcc_3v3"; 390 + regulator-always-on; 391 + regulator-boot-on; 392 + 393 + regulator-state-mem { 394 + regulator-off-in-suspend; 395 + }; 396 + }; 397 + 398 + vcc3v3_sd: SWITCH_REG2 { 399 + regulator-name = "vcc3v3_sd"; 400 + /* 401 + * turning this off, breaks access to both 402 + * PCIe controllers, refclk generator perhaps 403 + */ 404 + regulator-always-on; 405 + regulator-boot-on; 406 + 407 + regulator-state-mem { 408 + regulator-off-in-suspend; 409 + }; 410 + }; 411 + }; 412 + }; 413 + 414 + vdd_cpu: regulator@40 { 415 + compatible = "silergy,syr827"; 416 + reg = <0x40>; 417 + fcs,suspend-voltage-selector = <1>; 418 + regulator-name = "vdd_cpu"; 419 + regulator-always-on; 420 + regulator-boot-on; 421 + regulator-min-microvolt = <712500>; 422 + regulator-max-microvolt = <1390000>; 423 + regulator-ramp-delay = <2300>; 424 + vin-supply = <&vcc5v0_sys>; 425 + }; 426 + }; 427 + 428 + &i2c1 { 429 + status = "okay"; 430 + 431 + rtc_rv8263: rtc@51 { 432 + compatible = "microcrystal,rv8263"; 433 + reg = <0x51>; 434 + wakeup-source; 435 + }; 436 + 437 + /* eeprom for vital-product-data on the mainboard */ 438 + eeprom@54 { 439 + compatible = "giantec,gt24c04a", "atmel,24c04"; 440 + reg = <0x54>; 441 + label = "VPD_MB"; 442 + num-addresses = <2>; 443 + pagesize = <16>; 444 + read-only; 445 + }; 446 + }; 447 + 448 + &pinctrl { 449 + keys { 450 + copy_button_pin: copy-button-pin { 451 + rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>; 452 + }; 453 + 454 + reset_button_pin: reset-button-pin { 455 + rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; 456 + }; 457 + }; 458 + 459 + leds { 460 + hdd1_led_pin: hdd1-led-pin { 461 + rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>; 462 + }; 463 + }; 464 + 465 + pmic { 466 + pmic_int_l: pmic-int-l { 467 + rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 468 + }; 469 + }; 470 + 471 + usb { 472 + vcc5v0_host_en: vcc5v0-host-en { 473 + rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 474 + }; 475 + 476 + vcc5v0_otg_en: vcc5v0-otg-en { 477 + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 478 + }; 479 + }; 480 + }; 481 + 482 + &pmu_io_domains { 483 + vccio4-supply = <&vcc_1v8>; 484 + vccio6-supply = <&vcc_1v8>; 485 + status = "okay"; 486 + }; 487 + 488 + &sata1 { 489 + status = "okay"; 490 + }; 491 + 492 + &sdhci { 493 + bus-width = <8>; 494 + max-frequency = <200000000>; 495 + non-removable; 496 + pinctrl-names = "default"; 497 + pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; 498 + status = "okay"; 499 + }; 500 + 501 + &tsadc { 502 + rockchip,hw-tshut-mode = <1>; 503 + rockchip,hw-tshut-polarity = <0>; 504 + status = "okay"; 505 + }; 506 + 507 + /* 508 + * Connected to an MCU, that provides access to more LEDs, 509 + * buzzer, fan control and more. 510 + */ 511 + &uart0 { 512 + status = "okay"; 513 + 514 + mcu: mcu { 515 + fan: fan-0 { 516 + #cooling-cells = <2>; 517 + cooling-levels = <0 64 89 128 166 204 221 238>; 518 + }; 519 + 520 + nvmem-layout { 521 + compatible = "fixed-layout"; 522 + #address-cells = <1>; 523 + #size-cells = <1>; 524 + 525 + serial-number@0 { 526 + reg = <0x0 0x13>; 527 + }; 528 + 529 + ext-port@22 { 530 + reg = <0x22 0x2>; 531 + }; 532 + 533 + mac0: mac@24 { 534 + compatible = "mac-base"; 535 + reg = <0x24 0x11>; 536 + #nvmem-cell-cells = <1>; 537 + }; 538 + 539 + mac1: mac@35 { 540 + compatible = "mac-base"; 541 + reg = <0x35 0x11>; 542 + #nvmem-cell-cells = <1>; 543 + }; 544 + 545 + mac2: mac@46 { 546 + compatible = "mac-base"; 547 + reg = <0x46 0x11>; 548 + #nvmem-cell-cells = <1>; 549 + }; 550 + 551 + mac3: mac@57 { 552 + compatible = "mac-base"; 553 + reg = <0x57 0x11>; 554 + #nvmem-cell-cells = <1>; 555 + }; 556 + 557 + mac4: mac@68 { 558 + compatible = "mac-base"; 559 + reg = <0x68 0x11>; 560 + #nvmem-cell-cells = <1>; 561 + }; 562 + 563 + mac5: mac@79 { 564 + compatible = "mac-base"; 565 + reg = <0x79 0x11>; 566 + #nvmem-cell-cells = <1>; 567 + }; 568 + 569 + mac6: mac@8a { 570 + compatible = "mac-base"; 571 + reg = <0x8a 0x11>; 572 + #nvmem-cell-cells = <1>; 573 + }; 574 + 575 + mac7: mac@9b { 576 + compatible = "mac-base"; 577 + reg = <0x9b 0x11>; 578 + #nvmem-cell-cells = <1>; 579 + }; 580 + }; 581 + }; 582 + }; 583 + 584 + /* 585 + * Pins available on CN3 connector at TTL voltage level (3V3). 586 + * ,_ _. 587 + * |1234| 1=TX 2=VCC 588 + * `----' 3=RX 4=GND 589 + */ 590 + &uart2 { 591 + status = "okay"; 592 + }; 593 + 594 + &usb2phy0 { 595 + status = "okay"; 596 + }; 597 + 598 + /* connected to usb_host0_xhci */ 599 + &usb2phy0_otg { 600 + phy-supply = <&vcc5v0_otg>; 601 + status = "okay"; 602 + }; 603 + 604 + /* front port */ 605 + &usb_host0_xhci { 606 + dr_mode = "host"; 607 + status = "okay"; 608 + };
+91 -2
arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts
··· 7 7 /dts-v1/; 8 8 9 9 #include <dt-bindings/gpio/gpio.h> 10 + #include <dt-bindings/input/input.h> 10 11 #include <dt-bindings/leds/common.h> 11 12 #include <dt-bindings/pinctrl/rockchip.h> 12 13 #include <dt-bindings/soc/rockchip,vop2.h> ··· 20 19 aliases { 21 20 ethernet0 = &gmac0; 22 21 ethernet1 = &gmac1; 22 + mmc0 = &sdhci; 23 + mmc1 = &sdmmc; 23 24 }; 24 25 25 26 chosen { ··· 64 61 hdmi_con_in: endpoint { 65 62 remote-endpoint = <&hdmi_out_con>; 66 63 }; 64 + }; 65 + }; 66 + 67 + keys-0 { 68 + compatible = "adc-keys"; 69 + io-channels = <&saradc 0>; 70 + io-channel-names = "buttons"; 71 + keyup-threshold-microvolt = <1800000>; 72 + poll-interval = <100>; 73 + 74 + button-maskrom { 75 + label = "MASKROM"; 76 + linux,code = <KEY_SETUP>; 77 + press-threshold-microvolt = <0>; 78 + }; 79 + }; 80 + 81 + keys-1 { 82 + compatible = "adc-keys"; 83 + io-channels = <&saradc 1>; 84 + io-channel-names = "buttons"; 85 + keyup-threshold-microvolt = <1800000>; 86 + poll-interval = <100>; 87 + 88 + button-recovery { 89 + label = "RECOVERY"; 90 + linux,code = <KEY_VENDOR>; 91 + press-threshold-microvolt = <0>; 92 + }; 93 + }; 94 + 95 + keys-2 { 96 + compatible = "adc-keys"; 97 + io-channels = <&saradc 4>; 98 + io-channel-names = "buttons"; 99 + keyup-threshold-microvolt = <1800000>; 100 + poll-interval = <100>; 101 + 102 + button-user2 { 103 + label = "USER2"; 104 + linux,code = <BTN_2>; 105 + press-threshold-microvolt = <0>; 106 + }; 107 + }; 108 + 109 + keys-3 { 110 + compatible = "gpio-keys"; 111 + pinctrl-names = "default"; 112 + pinctrl-0 = <&gpio0_a0_d>; 113 + 114 + button-user1 { 115 + gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; 116 + label = "USER1"; 117 + linux,code = <BTN_1>; 118 + wakeup-source; 67 119 }; 68 120 }; 69 121 ··· 655 597 }; 656 598 }; 657 599 600 + &i2c2 { 601 + status = "okay"; 602 + 603 + rtc@68 { 604 + compatible = "dallas,ds1338"; 605 + reg = <0x68>; 606 + }; 607 + }; 608 + 658 609 &i2c4 { 659 610 status = "okay"; 660 611 ··· 726 659 }; 727 660 }; 728 661 662 + gpio-keys { 663 + gpio0_a0_d: gpio0-a0-d { 664 + rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; 665 + }; 666 + }; 667 + 729 668 headphone { 730 669 hp_det: hp-det { 731 670 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; ··· 759 686 status = "okay"; 760 687 }; 761 688 689 + &saradc { 690 + vref-supply = <&vcca1v8_pldo2_s0>; 691 + status = "okay"; 692 + }; 693 + 762 694 &sdhci { 763 695 bus-width = <8>; 764 696 full-pwr-cycle-in-suspend; 765 - max-frequency = <200000000>; 766 697 mmc-hs400-1_8v; 767 698 mmc-hs400-enhanced-strobe; 768 699 no-sdio; ··· 780 703 cap-mmc-highspeed; 781 704 cap-sd-highspeed; 782 705 disable-wp; 783 - max-frequency = <200000000>; 784 706 sd-uhs-sdr104; 785 707 vmmc-supply = <&vcc_3v3_s0>; 786 708 vqmmc-supply = <&vccio_sd_s0>; ··· 806 730 807 731 &uart0 { 808 732 pinctrl-0 = <&uart0m0_xfer>; 733 + status = "okay"; 734 + }; 735 + 736 + &usbdp_phy { 737 + status = "okay"; 738 + }; 739 + 740 + &usb_drd0_dwc3 { 741 + status = "okay"; 742 + }; 743 + 744 + &usb_drd1_dwc3 { 745 + dr_mode = "host"; 809 746 status = "okay"; 810 747 }; 811 748
+1 -1
arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts
··· 52 52 53 53 power-led { 54 54 color = <LED_COLOR_ID_GREEN>; 55 + default-state = "on"; 55 56 function = LED_FUNCTION_STATUS; 56 57 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; 57 - linux,default-trigger = "default-on"; 58 58 }; 59 59 60 60 user-led {
+1 -1
arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
··· 88 88 pinctrl-0 = <&led_pins>; 89 89 90 90 power-led1 { 91 + default-state = "on"; 91 92 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; 92 - linux,default-trigger = "default-on"; 93 93 }; 94 94 95 95 hdd-led2 {
+28 -15
arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts
··· 430 430 clock-output-names = "hym8563"; 431 431 interrupt-parent = <&gpio0>; 432 432 interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; 433 - pinctrl-0 = <&hym8563_int>; 433 + pinctrl-0 = <&hym8563_int>, <&clk32k_in>; 434 434 pinctrl-names = "default"; 435 435 wakeup-source; 436 436 }; ··· 483 483 }; 484 484 485 485 &pcie2x1l2 { 486 - pinctrl-0 = <&rtl8111_perstb>; 486 + pinctrl-0 = <&pcie20x1m0_perstn>, <&pcie20x1m0_clkreqn>, 487 + <&pcie20x1m0_waken>; 487 488 pinctrl-names = "default"; 489 + reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; 490 + vpcie3v3-supply = <&vcc_3v3_s3>; 488 491 status = "okay"; 489 492 }; 490 493 ··· 517 514 }; 518 515 }; 519 516 520 - ethernet-pins { 521 - rtl8111_perstb: rtl8111-perstb { 522 - rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>; 523 - }; 524 - }; 525 - 526 517 hym8563 { 527 518 528 519 hym8563_int: hym8563-int { 529 520 rockchip,pins = 530 521 <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; 531 - }; 532 - }; 533 - 534 - sdio-pwrseq { 535 - wifi_enable_h: wifi-enable-h { 536 - rockchip,pins = 537 - <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; 538 522 }; 539 523 }; 540 524 ··· 534 544 typec5v_pwren: typec5v-pwren { 535 545 rockchip,pins = 536 546 <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 547 + }; 548 + }; 549 + 550 + wifi { 551 + wifi_enable_h: wifi-enable-h { 552 + rockchip,pins = 553 + <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; 554 + }; 555 + 556 + wifi_host_wake_irq: wifi-host-wake-irq { 557 + rockchip,pins = 558 + <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; 537 559 }; 538 560 }; 539 561 }; ··· 598 596 }; 599 597 600 598 &sdio { 599 + #address-cells = <1>; 601 600 bus-width = <4>; 602 601 cap-sd-highspeed; 603 602 cap-sdio-irq; ··· 610 607 no-sd; 611 608 non-removable; 612 609 sd-uhs-sdr104; 610 + #size-cells = <0>; 613 611 vmmc-supply = <&vcc_3v3_s3>; 614 612 vqmmc-supply = <&vcc_1v8_s3>; 615 613 status = "okay"; 614 + 615 + sdio_wifi: wifi@1 { 616 + reg = <1>; 617 + interrupt-parent = <&gpio0>; 618 + interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>; 619 + interrupt-names = "host-wake"; 620 + pinctrl-0 = <&wifi_host_wake_irq>; 621 + pinctrl-names = "default"; 622 + }; 616 623 }; 617 624 618 625 &sdmmc {
+1 -1
arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
··· 61 61 62 62 power-led { 63 63 color = <LED_COLOR_ID_GREEN>; 64 + default-state = "on"; 64 65 function = LED_FUNCTION_POWER; 65 66 gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>; 66 - linux,default-trigger = "default-on"; 67 67 }; 68 68 }; 69 69