From 22dbb52fdf27625437ecd785a77a99473b857fce Mon Sep 17 00:00:00 2001 From: adamg Date: Sat, 25 Nov 2023 12:35:44 +0000 Subject: [PATCH] Amlogic/linux: use upstream voltages for odroid-go-ultra and remove OC --- ...1.02-Add-ODROID-GO-Ultra-device-tree.patch | 90 ++----------------- 1 file changed, 6 insertions(+), 84 deletions(-) diff --git a/projects/Amlogic/packages/linux/patches/S922X/001.02-Add-ODROID-GO-Ultra-device-tree.patch b/projects/Amlogic/packages/linux/patches/S922X/001.02-Add-ODROID-GO-Ultra-device-tree.patch index af1b464d0..a85bca789 100644 --- a/projects/Amlogic/packages/linux/patches/S922X/001.02-Add-ODROID-GO-Ultra-device-tree.patch +++ b/projects/Amlogic/packages/linux/patches/S922X/001.02-Add-ODROID-GO-Ultra-device-tree.patch @@ -1,7 +1,9 @@ -diff -rupN linux.orig/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts linux/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts ---- linux.orig/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts 1970-01-01 00:00:00.000000000 +0000 -+++ linux/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts 2023-09-12 13:20:28.956694441 +0000 -@@ -0,0 +1,1015 @@ +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 +--- /dev/null ++++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts +@@ -0,0 +1,935 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2022 Neil Armstrong @@ -359,86 +361,6 @@ diff -rupN linux.orig/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts + 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 = <1050000>; -+ }; -+ opp-2016000000 { -+ opp-hz = /bits/ 64 <2016000000>; -+ opp-microvolt = <1050000>; -+ }; -+}; -+ -+/* 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>; -+ }; -+ opp-2016000000 { -+ opp-hz = /bits/ 64 <2016000000>; -+ opp-microvolt = <1025000>; -+ }; -+ opp-2100000000 { -+ opp-hz = /bits/ 64 <2100000000>; -+ opp-microvolt = <1025000>; -+ }; -+ opp-2208000000 { -+ opp-hz = /bits/ 64 <2208000000>; -+ opp-microvolt = <1050000>; -+ }; -+ opp-2304000000 { -+ opp-hz = /bits/ 64 <2304000000>; -+ opp-microvolt = <1050000>; -+ }; -+ opp-2400000000 { -+ opp-hz = /bits/ 64 <2400000000>; -+ opp-microvolt = <1050000>; -+ }; -+}; -+ +&i2c_AO { + status = "okay"; + pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;