diff --git a/config/boards/pocketchip.csc b/config/boards/pocketchip-sd.csc similarity index 70% rename from config/boards/pocketchip.csc rename to config/boards/pocketchip-sd.csc index 25ba2464728e..12560137b634 100644 --- a/config/boards/pocketchip.csc +++ b/config/boards/pocketchip-sd.csc @@ -1,4 +1,4 @@ -# Allwinner R8(A13) single core 512Mb (NextThing C.H.I.P.) +# Allwinner R8(A13) single core 512Mb (NextThing C.H.I.P.) with MMC2 breakout BOARD_NAME="NextThing C.H.I.P." BOARDFAMILY="sun5i" BOARD_MAINTAINER="TheSnowfield" diff --git a/config/kernel/linux-sunxi-current.config b/config/kernel/linux-sunxi-current.config index 8ed1d8f2b136..4979e258bebf 100644 --- a/config/kernel/linux-sunxi-current.config +++ b/config/kernel/linux-sunxi-current.config @@ -911,6 +911,7 @@ CONFIG_INPUT_EVDEV=m CONFIG_KEYBOARD_QT1050=m CONFIG_KEYBOARD_GPIO=m CONFIG_KEYBOARD_GPIO_POLLED=m +CONFIG_KEYBOARD_TCA8418=m CONFIG_KEYBOARD_MATRIX=m CONFIG_KEYBOARD_PINEPHONE=m CONFIG_KEYBOARD_SUN4I_LRADC=m diff --git a/config/kernel/linux-sunxi-edge.config b/config/kernel/linux-sunxi-edge.config index f3d26ef3ce33..fc34fed52824 100644 --- a/config/kernel/linux-sunxi-edge.config +++ b/config/kernel/linux-sunxi-edge.config @@ -906,6 +906,7 @@ CONFIG_INPUT_EVDEV=m CONFIG_KEYBOARD_QT1050=m CONFIG_KEYBOARD_GPIO=m CONFIG_KEYBOARD_GPIO_POLLED=m +CONFIG_KEYBOARD_TCA8418=m CONFIG_KEYBOARD_MATRIX=m CONFIG_KEYBOARD_PINEPHONE=m CONFIG_KEYBOARD_SUN4I_LRADC=m diff --git a/config/kernel/linux-sunxi-legacy.config b/config/kernel/linux-sunxi-legacy.config index e48f13d78222..5f586504b873 100644 --- a/config/kernel/linux-sunxi-legacy.config +++ b/config/kernel/linux-sunxi-legacy.config @@ -806,6 +806,7 @@ CONFIG_INPUT_JOYDEV=m CONFIG_INPUT_EVDEV=m CONFIG_KEYBOARD_GPIO=m CONFIG_KEYBOARD_GPIO_POLLED=m +CONFIG_KEYBOARD_TCA8418=m CONFIG_KEYBOARD_MATRIX=m CONFIG_KEYBOARD_SUN4I_LRADC=m CONFIG_KEYBOARD_TM2_TOUCHKEY=m diff --git a/patch/kernel/archive/sunxi-6.6/patches.armbian/arm-dts-sun5i-r8-pocketchip-disable-usb-otg-to-bypass-boot-hanging.patch b/patch/kernel/archive/sunxi-6.6/patches.armbian/arm-dts-sun5i-r8-pocketchip-disable-usb-otg-to-bypass-boot-hanging.patch deleted file mode 100644 index 494e709e6b4d..000000000000 --- a/patch/kernel/archive/sunxi-6.6/patches.armbian/arm-dts-sun5i-r8-pocketchip-disable-usb-otg-to-bypass-boot-hanging.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> -Date: Sun, 22 Dec 2024 18:30:42 +0000 -Subject: arm:dts:sun5i-r8-chip disable USB OTG to bypass boot hanging - arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts - -Signed-off-by: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> ---- - arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts b/arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts -index 111111111111..222222222222 100644 ---- a/arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts -+++ b/arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts -@@ -275,8 +275,8 @@ &usb_power_supply { - &usbphy { - status = "okay"; - -- usb0_id_det-gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ -- usb0_vbus_power-supply = <&usb_power_supply>; -- usb0_vbus-supply = <®_usb0_vbus>; -+ // usb0_id_det-gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ -+ // usb0_vbus_power-supply = <&usb_power_supply>; -+ // usb0_vbus-supply = <®_usb0_vbus>; - usb1_vbus-supply = <®_vcc5v0>; - }; --- -Armbian - diff --git a/patch/kernel/archive/sunxi-6.6/patches.armbian/arm-dts-sun5i-r8-pocketchip-dts.patch b/patch/kernel/archive/sunxi-6.6/patches.armbian/arm-dts-sun5i-r8-pocketchip-dts.patch new file mode 100644 index 000000000000..5fb09f14519c --- /dev/null +++ b/patch/kernel/archive/sunxi-6.6/patches.armbian/arm-dts-sun5i-r8-pocketchip-dts.patch @@ -0,0 +1,359 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +Date: Fri, 3 Jan 2025 19:14:57 +0000 +Subject: arm:dts:sun5i-r8-chip pocketchip dts + +Signed-off-by: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +--- + arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts | 202 +++++++++- + arch/arm/boot/dts/allwinner/sun5i-a13.dtsi | 2 +- + 2 file changed, 197 insertions(+), 7 deletions(-) + +diff --git a/arch/arm/boot/dts/allwinner/sun5i-a13.dtsi b/arch/arm/boot/dts/allwinner/sun5i-a13.dtsi +index 3325ab07094a..a4843c8a6a3a 100644 +--- a/arch/arm/boot/dts/allwinner/sun5i-a13.dtsi ++++ b/arch/arm/boot/dts/allwinner/sun5i-a13.dtsi +@@ -77,11 +77,11 @@ cpu_crit: cpu_crit { + }; + }; + }; + }; + +- display-engine { ++ de: display-engine { + compatible = "allwinner,sun5i-a13-display-engine"; + allwinner,pipelines = <&fe0>; + }; + + soc { + +diff --git a/arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts b/arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts +index 4192c23848c3..42640fe87564 100644 +--- a/arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts ++++ b/arch/arm/boot/dts/allwinner/sun5i-r8-chip.dts +@@ -41,15 +41,20 @@ + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + ++/** ++ * ref: https://gist.github.com/macromorgan/b2b241635efc6f4eb84098499bcecb31 ++ */ ++ + /dts-v1/; + #include "sun5i-r8.dtsi" + #include "sunxi-common-regulators.dtsi" + + #include ++#include + #include + + / { + model = "NextThing C.H.I.P."; + compatible = "nextthing,chip", "allwinner,sun5i-r8", "allwinner,sun5i-a13"; +@@ -61,10 +66,22 @@ aliases { + serial0 = &uart1; + serial1 = &uart3; + spi0 = &spi2; + }; + ++ backlight: backlight { ++ compatible = "pwm-backlight"; ++ pwms = <&pwm 0 8000 1>; ++ power-supply = <®_vcc3v3>; ++ brightness-levels = <0 1 2 4 8 12 16 24 28 32 100>; ++ default-brightness-level = <8>; ++ ++ pinctrl-names = "default"; ++ pinctrl-0 = <&chip_bl_en>; ++ enable-gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; ++ }; ++ + chosen { + stdout-path = "serial0:115200n8"; + }; + + leds { +@@ -73,10 +90,35 @@ leds { + led-0 { + label = "chip:white:status"; + gpios = <&axp_gpio 2 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; ++ ++ led-1 { ++ label = "sd:red:error"; ++ gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; // PC15 ++ default-state = "off"; ++ }; ++ ++ led-2 { ++ label = "sd:yellow:msg"; ++ gpios = <&pio 2 14 GPIO_ACTIVE_HIGH>; // PC14 ++ default-state = "off"; ++ }; ++ ++ led-3 { ++ label = "sd:green:disk"; ++ gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; // PC13 ++ default-state = "off"; ++ }; ++ ++ led-4 { ++ label = "sd:orange:wlan"; ++ gpios = <&pio 2 12 GPIO_ACTIVE_HIGH>; // PC12 ++ default-state = "off"; ++ }; ++ + }; + + mmc0_pwrseq: mmc0_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&pio 2 19 GPIO_ACTIVE_LOW>; /* PC19 */ +@@ -84,10 +126,28 @@ mmc0_pwrseq: mmc0_pwrseq { + + onewire { + compatible = "w1-gpio"; + gpios = <&pio 3 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PD2 */ + }; ++ ++ panel { ++ #address-cells = <1>; ++ #size-cells = <0>; ++ power-supply = <®_vcc3v3>; ++ compatible = "olimex,lcd-olinuxino-4.3"; ++ backlight = <&backlight>; ++ ++ port { ++ panel_input: endpoint { ++ remote-endpoint = <&tcon0_out_panel>; ++ }; ++ }; ++ }; ++}; ++ ++&de { ++ status = "okay"; + }; + + &be0 { + status = "okay"; + }; +@@ -102,10 +162,14 @@ &cpu0 { + + &ehci0 { + status = "okay"; + }; + ++&fe0 { ++ status = "okay"; ++}; ++ + &i2c0 { + status = "okay"; + + axp209: pmic@34 { + reg = <0x34>; +@@ -129,11 +193,89 @@ &ac_power_supply { + &battery_power_supply { + status = "okay"; + }; + + &i2c1 { +- status = "disabled"; ++ status = "okay"; ++ #address-cells = <1>; ++ #size-cells = <0>; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&i2c1_pins>; ++ keyboard: keyboard@34 { ++ compatible = "ti,tca8418"; ++ reg = <0x34>; ++ interrupt-parent = <&pio>; ++ interrupts = <6 1 IRQ_TYPE_EDGE_FALLING>; ++ keypad,num-rows = <6>; ++ keypad,num-columns = <10>; ++ keypad,autorepeat; ++ linux,keymap = < ++ MATRIX_KEY(0, 1, KEY_1) ++ MATRIX_KEY(0, 2, KEY_2) ++ MATRIX_KEY(0, 3, KEY_3) ++ MATRIX_KEY(0, 4, KEY_4) ++ MATRIX_KEY(0, 5, KEY_5) ++ MATRIX_KEY(0, 6, KEY_6) ++ MATRIX_KEY(0, 7, KEY_7) ++ MATRIX_KEY(0, 8, KEY_8) ++ MATRIX_KEY(0, 9, KEY_9) ++ MATRIX_KEY(1, 0, KEY_Q) ++ MATRIX_KEY(1, 1, KEY_W) ++ MATRIX_KEY(1, 2, KEY_E) ++ MATRIX_KEY(1, 3, KEY_R) ++ MATRIX_KEY(1, 4, KEY_T) ++ MATRIX_KEY(1, 5, KEY_Y) ++ MATRIX_KEY(1, 6, KEY_U) ++ MATRIX_KEY(1, 7, KEY_I) ++ MATRIX_KEY(1, 8, KEY_O) ++ MATRIX_KEY(1, 9, KEY_P) ++ MATRIX_KEY(2, 0, KEY_A) ++ MATRIX_KEY(2, 1, KEY_S) ++ MATRIX_KEY(2, 2, KEY_D) ++ MATRIX_KEY(2, 3, KEY_F) ++ MATRIX_KEY(2, 4, KEY_G) ++ MATRIX_KEY(2, 5, KEY_H) ++ MATRIX_KEY(2, 6, KEY_J) ++ MATRIX_KEY(2, 7, KEY_K) ++ MATRIX_KEY(2, 8, KEY_L) ++ MATRIX_KEY(2, 9, KEY_ENTER) ++ MATRIX_KEY(3, 0, KEY_TAB) ++ MATRIX_KEY(3, 1, KEY_Z) ++ MATRIX_KEY(3, 2, KEY_X) ++ MATRIX_KEY(3, 3, KEY_C) ++ MATRIX_KEY(3, 4, KEY_V) ++ MATRIX_KEY(3, 5, KEY_B) ++ MATRIX_KEY(3, 6, KEY_N) ++ MATRIX_KEY(3, 7, KEY_M) ++ MATRIX_KEY(3, 8, KEY_UP) ++ MATRIX_KEY(3, 9, KEY_DOWN) ++ MATRIX_KEY(4, 0, KEY_LEFTSHIFT) ++ MATRIX_KEY(4, 1, KEY_RIGHTALT) ++ MATRIX_KEY(4, 2, KEY_LEFTALT) ++ MATRIX_KEY(4, 3, KEY_SPACE) ++ MATRIX_KEY(4, 4, KEY_RIGHTCTRL) ++ MATRIX_KEY(4, 5, KEY_SLASH) ++ MATRIX_KEY(4, 6, KEY_RIGHTSHIFT) ++ MATRIX_KEY(4, 8, KEY_LEFT) ++ MATRIX_KEY(4, 9, KEY_RIGHT) ++ MATRIX_KEY(5, 0, KEY_ESC) ++ MATRIX_KEY(5, 1, KEY_0) ++ MATRIX_KEY(5, 2, KEY_EQUAL) ++ MATRIX_KEY(5, 3, KEY_BACKSPACE) ++ MATRIX_KEY(5, 4, KEY_DOT) ++ >; ++ }; ++}; ++ ++&i2c1_pins { ++ drive-strength = <10>; ++ bias-disable; ++}; ++ ++&lcd_rgb565_pins { ++ drive-strength = <10>; ++ bias-disable; + }; + + &i2c2 { + status = "okay"; + +@@ -161,18 +303,52 @@ &mmc0 { + bus-width = <4>; + non-removable; + status = "okay"; + }; + ++&mmc2 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc2_4bit_pc_pins>; ++ vmmc-supply = <®_vcc3v3>; ++ bus-width = <4>; ++ broken-cd; ++ status = "okay"; ++}; ++ + &ohci0 { + status = "okay"; + }; + + &otg_sram { + status = "okay"; + }; + ++&pio { ++ vcc-pb-supply = <®_vcc3v3>; ++ vcc-pc-supply = <®_vcc3v3>; ++ vcc-pd-supply = <®_vcc3v3>; ++ vcc-pf-supply = <®_vcc3v3>; ++ vcc-pg-supply = <®_vcc3v3>; ++ chip_bl_en: chip_backlight_enable@0 { ++ pins = "PD18"; ++ function = "gpio_out"; ++ drive-strength = <10>; ++ bias-disable; ++ }; ++}; ++ ++&pwm { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&pwm0_pin>; ++ status = "okay"; ++}; ++ ++&pwm0_pin { ++ drive-strength = <10>; ++ bias-disable; ++}; ++ + ®_dcdc2 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + regulator-name = "cpuvdd"; + regulator-always-on; +@@ -228,24 +404,38 @@ ®_usb0_vbus { + vin-supply = <®_vcc5v0>; + gpio = <&pio 1 10 GPIO_ACTIVE_HIGH>; /* PB10 */ + status = "okay"; + }; + ++&rtp { ++ touchscreen-inverted-x; ++ touchscreen-inverted-y; ++ allwinner,ts-attached; ++}; ++ + &spi2 { + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pe_pins>; + status = "disabled"; + }; + + &tcon0 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&lcd_rgb565_pins>; + status = "okay"; + }; + +-&tve0 { +- status = "okay"; ++&tcon0_out { ++ tcon0_out_panel: endpoint { ++ remote-endpoint = <&panel_input>; ++ }; + }; + ++// &tve0 { ++// status = "okay"; ++// }; ++ + &uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pg_pins>; + status = "okay"; + }; +@@ -273,10 +463,10 @@ &usb_power_supply { + }; + + &usbphy { + status = "okay"; + +- usb0_id_det-gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ +- usb0_vbus_power-supply = <&usb_power_supply>; +- usb0_vbus-supply = <®_usb0_vbus>; ++ // usb0_id_det-gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ ++ // usb0_vbus_power-supply = <&usb_power_supply>; ++ // usb0_vbus-supply = <®_usb0_vbus>; + usb1_vbus-supply = <®_vcc5v0>; + }; +-- +Created with Armbian build tools https://github.com/armbian/build + diff --git a/patch/kernel/archive/sunxi-6.6/patches.armbian/drv-gpu-drm-sun4i-add-display-frontend-matching-for-sun5i-a13.patch b/patch/kernel/archive/sunxi-6.6/patches.armbian/drv-gpu-drm-sun4i-add-display-frontend-matching-for-sun5i-a13.patch new file mode 100644 index 000000000000..60955f457780 --- /dev/null +++ b/patch/kernel/archive/sunxi-6.6/patches.armbian/drv-gpu-drm-sun4i-add-display-frontend-matching-for-sun5i-a13.patch @@ -0,0 +1,32 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +Date: Wed, 1 Jan 2025 11:43:38 +0000 +Subject: drv:gpu:drm:sun4i:add display-frontend matching for sun5i-a13 + +Signed-off-by: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +--- + drivers/gpu/drm/sun4i/sun4i_frontend.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/drivers/gpu/drm/sun4i/sun4i_frontend.c b/drivers/gpu/drm/sun4i/sun4i_frontend.c +index 280d444dbb66..3690a80831bc 100644 +--- a/drivers/gpu/drm/sun4i/sun4i_frontend.c ++++ b/drivers/gpu/drm/sun4i/sun4i_frontend.c +@@ -696,10 +696,14 @@ static const struct sun4i_frontend_data sun8i_a33_frontend = { + const struct of_device_id sun4i_frontend_of_table[] = { + { + .compatible = "allwinner,sun4i-a10-display-frontend", + .data = &sun4i_a10_frontend + }, ++ { ++ .compatible = "allwinner,sun5i-a13-display-frontend", ++ .data = &sun4i_a10_frontend ++ }, + { + .compatible = "allwinner,sun7i-a20-display-frontend", + .data = &sun4i_a10_frontend + }, + { +-- +Created with Armbian build tools https://github.com/armbian/build + diff --git a/patch/kernel/archive/sunxi-6.6/series.conf b/patch/kernel/archive/sunxi-6.6/series.conf index ccf35bf65a09..515cc03b855e 100644 --- a/patch/kernel/archive/sunxi-6.6/series.conf +++ b/patch/kernel/archive/sunxi-6.6/series.conf @@ -261,6 +261,7 @@ patches.armbian/drv-gpu-drm-gem-dma-Export-with-handle-allocator.patch patches.armbian/drv-gpu-drm-sun4i-Add-GEM-allocator.patch patches.armbian/drv-gpu-drm-sun4i-Add-HDMI-audio-sun4i-hdmi-encoder.patch + patches.armbian/drv-gpu-drm-sun4i-add-display-frontend-matching-for-sun5i-a13.patch patches.armbian/drv-net-stmmac-dwmac-sun8i-second-EMAC-clock-register.patch patches.armbian/drv-phy-sun4i-usb-Allow-reset-line-to-be-shared.patch patches.armbian/drv-iio-adc-sun4i-gpadc-iio-rename-A33-specified-registers-to-c.patch @@ -386,6 +387,7 @@ patches.armbian/arm-dts-sun7i-a20-olinuxino-lime2-enable-ldo3-always-on.patch patches.armbian/arm-dts-sun7i-a20-olimex-som-204-evb-olinuxino-micro-decrease-d.patch patches.armbian/arm-dts-sun8i-h3-add-thermal-zones.patch + patches.armbian/arm-dts-sun5i-r8-pocketchip-dts.patch patches.armbian/arm64-dts-sun50i-a64-olinuxino-add-boards.patch patches.armbian/arm64-dts-sun50i-a64-olinuxino-emmc-enable-bluetooth.patch patches.armbian/arm64-dts-sun50i-a64-olinuxino-1Ge16GW-enable-bluetooth.patch diff --git a/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-defconfig.patch b/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-defconfig.patch new file mode 100644 index 000000000000..9f71592e5571 --- /dev/null +++ b/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-defconfig.patch @@ -0,0 +1,37 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +Date: Tue, 31 Dec 2024 11:25:21 +0000 +Subject: Enable u-boot sunxi mmc support and ums feature for PocketChip + +Signed-off-by: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +--- + configs/CHIP_defconfig | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/configs/CHIP_defconfig b/configs/CHIP_defconfig +index cd9bdbfd36..49bae0d0e3 100644 +--- a/configs/CHIP_defconfig ++++ b/configs/CHIP_defconfig +@@ -7,15 +7,18 @@ CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y + CONFIG_USB0_VBUS_PIN="PB10" + CONFIG_VIDEO_COMPOSITE=y + CONFIG_CHIP_DIP_SCAN=y + CONFIG_SPL_I2C=y + CONFIG_CMD_DFU=y ++CONFIG_CMD_MMC=y ++CONFIG_CMD_USB_MASS_STORAGE=y + CONFIG_DFU_RAM=y + CONFIG_SYS_I2C_MVTWSI=y + CONFIG_SYS_I2C_SLAVE=0x7f + CONFIG_SYS_I2C_SPEED=400000 +-# CONFIG_MMC is not set ++CONFIG_MMC=y ++CONFIG_MMC_SUNXI_SLOT_EXTRA=2 + CONFIG_AXP_ALDO3_VOLT=3300 + CONFIG_AXP_ALDO4_VOLT=3300 + CONFIG_CONS_INDEX=2 + CONFIG_USB_EHCI_HCD=y + CONFIG_USB_OHCI_HCD=y +-- +Created with Armbian build tools https://github.com/armbian/build + diff --git a/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-dts-add-mmc2.patch b/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-dts-add-mmc2.patch new file mode 100644 index 000000000000..aff3f516377e --- /dev/null +++ b/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-dts-add-mmc2.patch @@ -0,0 +1,37 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +Date: Tue, 31 Dec 2024 06:39:19 +0000 +Subject: Add mmc2 controller + +Signed-off-by: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +--- + arch/arm/dts/sun5i-r8-chip.dts | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/arch/arm/dts/sun5i-r8-chip.dts b/arch/arm/dts/sun5i-r8-chip.dts +index 4192c23848..1b5702db0b 100644 +--- a/arch/arm/dts/sun5i-r8-chip.dts ++++ b/arch/arm/dts/sun5i-r8-chip.dts +@@ -161,10 +161,19 @@ + bus-width = <4>; + non-removable; + status = "okay"; + }; + ++&mmc2 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc2_4bit_pc_pins>; ++ vmmc-supply = <®_vcc3v3>; ++ bus-width = <4>; ++ broken-cd; ++ status = "okay"; ++}; ++ + &ohci0 { + status = "okay"; + }; + + &otg_sram { +-- +Created with Armbian build tools https://github.com/armbian/build +