Merge pull request #2432 from adamg88/fix-ogu-max3-dts

Amlogic/linux: fix voltage stepping on OGU/RGB10-Max3-Pro
This commit is contained in:
Adam 2023-11-28 00:19:35 +00:00 committed by GitHub
commit 589c18f042
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 122 additions and 4 deletions

View file

@ -1,9 +1,9 @@
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts
new file mode 100644
index 000000000000..d0a7ba2c2bd4
index 000000000000..b35abc50bd40
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts
@@ -0,0 +1,935 @@
@@ -0,0 +1,991 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2022 Neil Armstrong <narmstrong@kernel.org>
@ -361,6 +361,62 @@ index 000000000000..d0a7ba2c2bd4
+ clock-latency = <50000>;
+};
+
+/* RK817 only supports 12.5mV steps, round up the values */
+&cpu_opp_table_0 {
+ opp-1000000000 {
+ opp-microvolt = <737500>;
+ };
+ opp-1200000000 {
+ opp-microvolt = <737500>;
+ };
+ opp-1398000000 {
+ opp-microvolt = <762500>;
+ };
+ opp-1512000000 {
+ opp-microvolt = <800000>;
+ };
+ opp-1608000000 {
+ opp-microvolt = <837500>;
+ };
+ opp-1704000000 {
+ opp-microvolt = <862500>;
+ };
+ opp-1896000000 {
+ opp-microvolt = <987500>;
+ };
+ opp-1992000000 {
+ opp-microvolt = <1012500>;
+ };
+};
+
+/* RK818 only supports 12.5mV steps, round up the values */
+&cpub_opp_table_1 {
+ opp-1000000000 {
+ opp-microvolt = <775000>;
+ };
+ opp-1200000000 {
+ opp-microvolt = <775000>;
+ };
+ opp-1398000000 {
+ opp-microvolt = <800000>;
+ };
+ opp-1512000000 {
+ opp-microvolt = <825000>;
+ };
+ opp-1608000000 {
+ opp-microvolt = <862500>;
+ };
+ opp-1704000000 {
+ opp-microvolt = <900000>;
+ };
+ opp-1800000000 {
+ opp-microvolt = <987500>;
+ };
+ opp-1908000000 {
+ opp-microvolt = <1025000>;
+ };
+};
+
+&i2c_AO {
+ status = "okay";
+ pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;

View file

@ -1,9 +1,9 @@
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-powkiddy-rgb10-max-3.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-powkiddy-rgb10-max-3.dts
new file mode 100644
index 000000000000..fd4f97b5ccd3
index 000000000000..a0c8db0cf378
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-powkiddy-rgb10-max-3.dts
@@ -0,0 +1,924 @@
@@ -0,0 +1,986 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2022 Neil Armstrong <narmstrong@kernel.org>
@ -350,6 +350,68 @@ index 000000000000..fd4f97b5ccd3
+ clock-latency = <50000>;
+};
+
+/* RK817 only supports 12.5mV steps, round up the values */
+&cpu_opp_table_0 {
+ opp-1000000000 {
+ opp-microvolt = <762500>;
+ };
+ opp-1200000000 {
+ opp-microvolt = <787500>;
+ };
+ opp-1398000000 {
+ opp-microvolt = <812500>;
+ };
+ opp-1512000000 {
+ opp-microvolt = <862500>;
+ };
+ opp-1608000000 {
+ opp-microvolt = <912500>;
+ };
+ opp-1704000000 {
+ opp-microvolt = <962500>;
+ };
+ opp-1800000000 {
+ opp-microvolt = <1012500>;
+ };
+};
+
+/* RK818 only supports 12.5mV steps, round up the values */
+&cpub_opp_table_1 {
+ opp-1000000000 {
+ opp-microvolt = <737500>;
+ };
+ opp-1200000000 {
+ opp-microvolt = <762500>;
+ };
+ opp-1398000000 {
+ opp-microvolt = <775000>;
+ };
+ opp-1512000000 {
+ opp-microvolt = <775000>;
+ };
+ opp-1608000000 {
+ opp-microvolt = <787500>;
+ };
+ opp-1704000000 {
+ opp-microvolt = <800000>;
+ };
+ opp-1800000000 {
+ opp-microvolt = <837500>;
+ };
+ opp-1908000000 {
+ opp-microvolt = <862500>;
+ };
+ opp-2016000000 {
+ opp-microvolt = <912500>;
+ };
+ opp-2108000000 {
+ opp-microvolt = <962500>;
+ };
+ opp-2208000000 {
+ opp-microvolt = <1012500>;
+ };
+};
+
+&i2c_AO {
+ status = "okay";
+ pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;