build/patch/kernel/archive/odroidxu4-5.12/0071-ODROID-HC4-Introduce-new-SBC-board-ODROID-HC4.patch

66 lines
1.9 KiB
Diff

From 5452e139c7c221306252b1b6238a7689a9cc43e3 Mon Sep 17 00:00:00 2001
From: Dongjin Kim <tobetter@gmail.com>
Date: Wed, 10 Jun 2020 13:11:12 +0900
Subject: [PATCH 071/109] ODROID-HC4: Introduce new SBC board 'ODROID-HC4'
Change-Id: I1ef7c77dd26c0870c2057a090417bb59ba0ba52c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
---
arch/arm64/boot/dts/amlogic/Makefile | 1 +
.../boot/dts/amlogic/meson64_odroidhc4.dts | 32 +++++++++++++++++++
2 files changed, 33 insertions(+)
create mode 100644 arch/arm64/boot/dts/amlogic/meson64_odroidhc4.dts
diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile
index 9d3ef969eb55..3a9671f3a292 100644
--- a/arch/arm64/boot/dts/amlogic/Makefile
+++ b/arch/arm64/boot/dts/amlogic/Makefile
@@ -53,5 +53,6 @@ dtb-$(CONFIG_ARCH_MESON) += meson-a1-ad401.dtb
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidc2.dtb
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidc4.dtb
+dtb-$(CONFIG_ARCH_MESON) += meson64_odroidhc4.dtb
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidn2.dtb
dtb-$(CONFIG_ARCH_MESON) += meson64_odroidn2_plus.dtb
diff --git a/arch/arm64/boot/dts/amlogic/meson64_odroidhc4.dts b/arch/arm64/boot/dts/amlogic/meson64_odroidhc4.dts
new file mode 100644
index 000000000000..d8e8246d3868
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/meson64_odroidhc4.dts
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 Dongjin Kim <tobetter@gmail.com>
+ */
+
+/dts-v1/;
+
+#include "meson-sm1-odroid-hc4.dts"
+
+/ {
+ model = "Hardkernel ODROID-HC4";
+};
+
+&cpu_opp_table {
+ /delete-node/ opp-100000000;
+ /delete-node/ opp-250000000;
+ /delete-node/ opp-500000000;
+ /delete-node/ opp-667000000;
+
+ opp-2016000000 {
+ opp-hz = /bits/ 64 <2016000000>;
+ opp-microvolt = <1010000>;
+ };
+ opp-2100000000 {
+ opp-hz = /bits/ 64 <2100000000>;
+ opp-microvolt = <1030000>;
+ };
+};
+
+&vddcpu {
+ regulator-max-microvolt = <1030000>;
+};
--
2.25.1