@@ -6,31 +6,31 @@ Subject: Add JetHub D2
66---
77 arch/arm/dts/Makefile | 3 +-
88 arch/arm/dts/meson-sm1-jethome-jethub-j200-u-boot.dtsi | 13 +
9- arch/arm/dts/meson-sm1-jethome-jethub-j200.dts | 654 ++++++++++
9+ arch/arm/dts/meson-sm1-jethome-jethub-j200.dts | 711 ++++++++++
1010 board/amlogic/jethub-j200/MAINTAINERS | 8 +
1111 board/amlogic/jethub-j200/Makefile | 6 +
1212 board/amlogic/jethub-j200/jethub-j200.c | 89 ++
13- configs/jethub_j200_defconfig | 119 ++
13+ configs/jethub_j200_defconfig | 120 ++
1414 doc/board/amlogic/index.rst | 1 +
1515 doc/board/amlogic/jethub-j200.rst | 50 +
1616 drivers/power/regulator/regulator-uclass.c | 2 +-
1717 include/configs/jethub.h | 9 +
18- 11 files changed, 952 insertions(+), 2 deletions(-)
18+ 11 files changed, 1010 insertions(+), 2 deletions(-)
1919
2020diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
2121index 111111111111..222222222222 100644
2222--- a/arch/arm/dts/Makefile
2323+++ b/arch/arm/dts/Makefile
24- @@ -100 ,7 +100 ,8 @@ dtb-$(CONFIG_ARCH_S5P4418) += \
24+ @@ -78 ,7 +78 ,8 @@ dtb-$(CONFIG_ARCH_S5P4418) += \
2525 s5p4418-nanopi2.dtb
2626
2727 dtb-$(CONFIG_ARCH_MESON) += \
2828- meson-a1-ad401.dtb
2929+ meson-a1-ad401.dtb \
3030+ meson-sm1-jethome-jethub-j200.dtb
3131
32- dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \
33- tegra20-medcom-wide .dtb \
32+ dtb-$(CONFIG_ARCH_TEGRA) += \
33+ tegra20-acer-a500-picasso .dtb \
3434diff --git a/arch/arm/dts/meson-sm1-jethome-jethub-j200-u-boot.dtsi b/arch/arm/dts/meson-sm1-jethome-jethub-j200-u-boot.dtsi
3535new file mode 100644
3636index 000000000000..111111111111
@@ -55,7 +55,7 @@ new file mode 100644
5555index 000000000000..111111111111
5656--- /dev/null
5757+++ b/arch/arm/dts/meson-sm1-jethome-jethub-j200.dts
58- @@ -0,0 +1,654 @@
58+ @@ -0,0 +1,711 @@
5959+ // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6060+ /*
6161+ * Copyright (c) 2024 JetHome
@@ -710,6 +710,63 @@ index 000000000000..111111111111
710710+ reg = <0x32 0x20>;
711711+ };
712712+ };
713+ +
714+ + &cpu_thermal {
715+ + trips {
716+ + cpu_passive: cpu-passive {
717+ + temperature = <70000>; /* millicelsius */
718+ + hysteresis = <2000>; /* millicelsius */
719+ + type = "passive"; /* */
720+ + };
721+ +
722+ + cpu_hot: cpu-hot {
723+ + temperature = <85000>; /* millicelsius */
724+ + hysteresis = <2000>; /* millicelsius */
725+ + type = "hot";
726+ + };
727+ +
728+ + cpu_critical: cpu-critical {
729+ + temperature = <90000>; /* millicelsius */
730+ + hysteresis = <2000>; /* millicelsius */
731+ + type = "critical";
732+ + };
733+ + };
734+ +
735+ + cooling-maps {
736+ + map0 {
737+ + trip = <&cpu_passive>;
738+ + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
739+ + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
740+ + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
741+ + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
742+ + };
743+ +
744+ + map1 {
745+ + trip = <&cpu_hot>;
746+ + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
747+ + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
748+ + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
749+ + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
750+ + };
751+ + };
752+ + };
753+ +
754+ + &ddr_thermal {
755+ + trips {
756+ + ddr_passive: ddr-passive {
757+ + temperature = <70000>; /* millicelsius */
758+ + hysteresis = <2000>; /* millicelsius */
759+ + type = "passive";
760+ + };
761+ +
762+ + ddr_critical: ddr-critical {
763+ + temperature = <85000>; /* millicelsius */
764+ + hysteresis = <2000>; /* millicelsius */
765+ + type = "critical";
766+ + };
767+ + };
768+ +
769+ + };
713770diff --git a/board/amlogic/jethub-j200/MAINTAINERS b/board/amlogic/jethub-j200/MAINTAINERS
714771new file mode 100644
715772index 000000000000..111111111111
@@ -749,7 +806,7 @@ index 000000000000..111111111111
749806+ *
750807+ */
751808+
752- + #include <common.h>
809+ + // #include <common.h>
753810+ #include <dm.h>
754811+ #include <adc.h>
755812+ #include <env.h>
@@ -836,7 +893,7 @@ new file mode 100644
836893index 000000000000..111111111111
837894--- /dev/null
838895+++ b/configs/jethub_j200_defconfig
839- @@ -0,0 +1,119 @@
896+ @@ -0,0 +1,120 @@
840897+ CONFIG_OF_UPSTREAM=n
841898+ CONFIG_ARM=y
842899+ CONFIG_SYS_BOARD="jethub-j200"
@@ -893,6 +950,7 @@ index 000000000000..111111111111
893950+ CONFIG_DM_SPI_FLASH=y
894951+ CONFIG_SPI_FLASH_WINBOND=y
895952+ CONFIG_SPI_FLASH_XTX=y
953+ + CONFIG_SPI_LOAD=y
896954+ CONFIG_PHY_REALTEK=y
897955+ CONFIG_DM_MDIO=y
898956+ CONFIG_DM_MDIO_MUX=y
@@ -960,7 +1018,7 @@ diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst
9601018index 111111111111..222222222222 100644
9611019--- a/doc/board/amlogic/index.rst
9621020+++ b/doc/board/amlogic/index.rst
963- @@ -95 ,6 +95 ,7 @@ Board Documentation
1021+ @@ -97 ,6 +97 ,7 @@ Board Documentation
9641022 beelink-gtkingpro
9651023 jethub-j80
9661024 jethub-j100
@@ -1028,7 +1086,7 @@ diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulato
10281086index 111111111111..222222222222 100644
10291087--- a/drivers/power/regulator/regulator-uclass.c
10301088+++ b/drivers/power/regulator/regulator-uclass.c
1031- @@ -186 ,7 +186 ,7 @@ int regulator_set_enable(struct udevice *dev, bool enable)
1089+ @@ -191 ,7 +191 ,7 @@ int regulator_set_enable(struct udevice *dev, bool enable)
10321090 }
10331091 }
10341092 }
0 commit comments