Skip to content

Commit

Permalink
Apply miyoo patches
Browse files Browse the repository at this point in the history
  • Loading branch information
tiopex committed Dec 6, 2023
1 parent 4175592 commit 0e71a07
Show file tree
Hide file tree
Showing 70 changed files with 19,803 additions and 18 deletions.
4 changes: 2 additions & 2 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,8 @@ source "arch/arm/mach-spear/Kconfig"
source "arch/arm/mach-sti/Kconfig"

source "arch/arm/mach-stm32/Kconfig"

source "arch/arm/mach-sunxi/Kconfig"
source "arch/arm/mach-suniv/Kconfig"

source "arch/arm/mach-tegra/Kconfig"

Expand Down Expand Up @@ -1322,7 +1322,7 @@ config ARCH_NR_GPIO
ARCH_ZYNQ || ARCH_ASPEED
default 512 if ARCH_EXYNOS || ARCH_KEYSTONE || SOC_OMAP5 || \
SOC_DRA7XX || ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210
default 416 if ARCH_SUNXI
default 416 if ARCH_SUNIV
default 392 if ARCH_U8500
default 352 if ARCH_VT8500
default 288 if ARCH_ROCKCHIP
Expand Down
1 change: 1 addition & 0 deletions arch/arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ machine-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga
machine-$(CONFIG_ARCH_STI) += sti
machine-$(CONFIG_ARCH_STM32) += stm32
machine-$(CONFIG_ARCH_SUNXI) += sunxi
machine-$(CONFIG_ARCH_SUNXI_V5) += suniv
machine-$(CONFIG_ARCH_TEGRA) += tegra
machine-$(CONFIG_ARCH_U8500) += ux500
machine-$(CONFIG_ARCH_VERSATILE) += versatile
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,9 @@ dtb-$(CONFIG_MACH_SUN9I) += \
sun9i-a80-optimus.dtb \
sun9i-a80-cubieboard4.dtb
dtb-$(CONFIG_MACH_SUNIV) += \
suniv-f1c500s-miyoo.dtb \
suniv-f1c100s-miyoo.dtb \
suniv-f1c100s-miyoo-4bit.dtb \
suniv-f1c100s-licheepi-nano.dtb
dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += \
tegra20-acer-a500-picasso.dtb \
Expand Down
96 changes: 96 additions & 0 deletions arch/arm/boot/dts/suniv-f1c100s-miyoo-4bit.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
// SPDX-License-Identifier: (GPL-2.0+ OR X11)
/*
* Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
* Copyright 2018 Steward Fu <steward.fu@gmail.com>
*/

/dts-v1/;
#include "suniv.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
model = "Miyoo Handheld";
compatible = "allwinner,suniv-f1c100s";

aliases {
serial1 = &uart1;
};

chosen {
stdout-path = "serial1:115200n8";
};

backlight {
compatible = "pwm-backlight";
pwms = <&pwm 1 58824 0>;
brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
default-brightness-level = <5>;
status = "okay";
};

reg_vcc3v3: vcc3v3 {
compatible = "regulator-fixed";
regulator-name = "vcc3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
};

&pwm {
pinctrl-names = "default";
pinctrl-0 = <&pwm1_pins_a>;
status = "okay";
};

&battery {
status = "okay";
};

&tcon0 {
status = "okay";
};

&mmc0 {
vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>;
broken-cd;
status = "okay";
};

&codec {
status = "okay";
};

&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins_a>;
status = "okay";
};

&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins_a>;
status = "okay";

flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
};
};

&otg_sram {
status = "okay";
};

&usb_otg {
dr_mode = "otg";
status = "okay";
};

&usbphy {
status = "okay";
};

96 changes: 96 additions & 0 deletions arch/arm/boot/dts/suniv-f1c100s-miyoo.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
// SPDX-License-Identifier: (GPL-2.0+ OR X11)
/*
* Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
* Copyright 2018 Steward Fu <steward.fu@gmail.com>
*/

/dts-v1/;
#include "suniv.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
model = "Miyoo Handheld";
compatible = "allwinner,suniv-f1c100s";

aliases {
serial1 = &uart1;
};

chosen {
stdout-path = "serial1:115200n8";
};

backlight {
compatible = "pwm-backlight";
pwms = <&pwm 1 58824 0>;
brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
default-brightness-level = <5>;
status = "okay";
};

reg_vcc3v3: vcc3v3 {
compatible = "regulator-fixed";
regulator-name = "vcc3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
};

&pwm {
pinctrl-names = "default";
pinctrl-0 = <&pwm1_pins_a>;
status = "okay";
};

&battery {
status = "okay";
};

&tcon0 {
status = "okay";
};

&mmc0 {
vmmc-supply = <&reg_vcc3v3>;
bus-width = <1>;
broken-cd;
status = "okay";
};

&codec {
status = "okay";
};

&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins_a>;
status = "okay";
};

&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins_a>;
status = "okay";

flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
};
};

&otg_sram {
status = "okay";
};

&usb_otg {
dr_mode = "otg";
status = "okay";
};

&usbphy {
status = "okay";
};

96 changes: 96 additions & 0 deletions arch/arm/boot/dts/suniv-f1c500s-miyoo.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
// SPDX-License-Identifier: (GPL-2.0+ OR X11)
/*
* Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
* Copyright 2018 Steward Fu <steward.fu@gmail.com>
*/

/dts-v1/;
#include "suniv.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
model = "Miyoo Handheld";
compatible = "allwinner,suniv-f1c100s";

aliases {
serial1 = &uart1;
};

chosen {
stdout-path = "serial1:115200n8";
};

backlight {
compatible = "pwm-backlight";
pwms = <&pwm 1 58824 0>;
brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
default-brightness-level = <5>;
status = "okay";
};

reg_vcc3v3: vcc3v3 {
compatible = "regulator-fixed";
regulator-name = "vcc3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
};

&pwm {
pinctrl-names = "default";
pinctrl-0 = <&pwm1_pins_a>;
status = "okay";
};

&battery {
status = "okay";
};

&tcon0 {
status = "okay";
};

&mmc0 {
vmmc-supply = <&reg_vcc3v3>;
bus-width = <1>;
broken-cd;
status = "okay";
};

&codec {
status = "okay";
};

&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins_a>;
status = "okay";
};

&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins_a>;
status = "okay";

flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
};
};

&otg_sram {
status = "okay";
};

&usb_otg {
dr_mode = "otg";
status = "okay";
};

&usbphy {
status = "okay";
};

Loading

0 comments on commit 0e71a07

Please sign in to comment.