Skip to content

Commit

Permalink
Merge pull request torvalds#186 from Ken-Vamrs/linux-5.10-gen-rkr4.1
Browse files Browse the repository at this point in the history
Changes:
  * ROCK 3A/3B: Add SPI Nor Flash.
  * ROCK 3A/3B: Support wakeup.

Signed-off-by: Stephen Chen <stephen@radxa.com>
  • Loading branch information
RadxaStephen authored Aug 18, 2023
2 parents 2c36347 + b9c2329 commit ce8634e
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 9 deletions.
39 changes: 39 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_host_en>;
regulator-name = "vcc5v0_host";
regulator-always-on;
regulator-boot-on;
};

vcc5v0_otg: vcc5v0-otg-regulator {
Expand All @@ -135,6 +137,8 @@
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_otg_en>;
regulator-name = "vcc5v0_otg";
regulator-always-on;
regulator-boot-on;
};

vcc5v0_usbhub: vcc5v0-usbhub-regulator {
Expand Down Expand Up @@ -680,6 +684,26 @@
status = "okay";
};

&sfc {
status = "okay";
max-freq = <50000000>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&fspi_pins>;

spi_flash: spi-flash@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-max-frequency = <50000000>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
status = "okay";
};
};

&sfc {
status = "okay";
};
Expand Down Expand Up @@ -918,6 +942,21 @@

&rockchip_suspend {
status = "okay";
rockchip,sleep-debug-en = <1>;
rockchip,sleep-mode-config = <
(0
| RKPM_SLP_CENTER_OFF
| RKPM_SLP_HW_PLLS_OFF
| RKPM_SLP_PMUALIVE_32K
| RKPM_SLP_32K_PVTM
)
>;
rockchip,wakeup-config = <
(0
| RKPM_GPIO_WKUP_EN
| RKPM_USB_WKUP_EN
)
>;
};

&pinctrl {
Expand Down
47 changes: 38 additions & 9 deletions arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
pinctrl-0 = <&vcc5v0_host_en>;
regulator-name = "vcc5v0_host";
regulator-always-on;
regulator-boot-on;
};

vcc5v0_otg: vcc5v0-otg-regulator {
Expand All @@ -150,6 +151,8 @@
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_otg_en>;
regulator-name = "vcc5v0_otg";
regulator-always-on;
regulator-boot-on;
};

pcie30_avdd0v9: pcie30-avdd0v9 {
Expand Down Expand Up @@ -211,15 +214,6 @@
status = "okay";
};

bt_wake: bt-wake-gpio-regulator {
compatible = "regulator-fixed";
regulator-name = "bt_wake";
enable-active-high;
gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
regulator-boot-on;
regulator-always-on;
};

gpio_leds: gpio-leds {
compatible = "gpio-leds";
status = "okay";
Expand Down Expand Up @@ -794,6 +788,26 @@
status = "okay";
};

&sfc {
status = "okay";
max-freq = <50000000>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&fspi_pins>;

spi_flash: spi-flash@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-max-frequency = <50000000>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
status = "okay";
};
};

&sfc {
status = "okay";
};
Expand Down Expand Up @@ -1041,6 +1055,21 @@

&rockchip_suspend {
status = "okay";
rockchip,sleep-debug-en = <1>;
rockchip,sleep-mode-config = <
(0
| RKPM_SLP_CENTER_OFF
| RKPM_SLP_HW_PLLS_OFF
| RKPM_SLP_PMUALIVE_32K
| RKPM_SLP_32K_PVTM
)
>;
rockchip,wakeup-config = <
(0
| RKPM_GPIO_WKUP_EN
| RKPM_USB_WKUP_EN
)
>;
};

&can1 {
Expand Down

0 comments on commit ce8634e

Please sign in to comment.