From ecfde0c3d7ee27ec49692ab34a0737ca6a2e088b Mon Sep 17 00:00:00 2001 From: The-going <48602507+The-going@users.noreply.github.com> Date: Sat, 22 Feb 2025 10:25:13 +0300 Subject: [PATCH] sunxi-6.6: Add i2c3_pa, all pwm pins --- ...sun50i-h616-add-i2c3_pa-all-pwm-pins.patch | 76 +++++++++++++++++++ patch/kernel/archive/sunxi-6.6/series.armbian | 1 + patch/kernel/archive/sunxi-6.6/series.conf | 1 + 3 files changed, 78 insertions(+) create mode 100644 patch/kernel/archive/sunxi-6.6/patches.armbian/arm64-dts-sun50i-h616-add-i2c3_pa-all-pwm-pins.patch diff --git a/patch/kernel/archive/sunxi-6.6/patches.armbian/arm64-dts-sun50i-h616-add-i2c3_pa-all-pwm-pins.patch b/patch/kernel/archive/sunxi-6.6/patches.armbian/arm64-dts-sun50i-h616-add-i2c3_pa-all-pwm-pins.patch new file mode 100644 index 000000000000..4f91305cd0df --- /dev/null +++ b/patch/kernel/archive/sunxi-6.6/patches.armbian/arm64-dts-sun50i-h616-add-i2c3_pa-all-pwm-pins.patch @@ -0,0 +1,76 @@ +From 4b1a9e607e47f2005a3b6cdc5c834bfc66c903ee Mon Sep 17 00:00:00 2001 +From: The-going <48602507+The-going@users.noreply.github.com> +Date: Sat, 22 Feb 2025 10:16:51 +0300 +Subject: [PATCH] arm64: dts: sun50i-h616: add i2c3_pa, all pwm pins + +--- + .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 46 +++++++++++++++++++ + 1 file changed, 46 insertions(+) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +index 4c1b61b3c64f..fc1f15193d80 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +@@ -420,6 +420,11 @@ i2c2_ph_pins: i2c2-ph-pins { + function = "i2c2"; + }; + ++ i2c3_pa_pins: i2c3-pa-pins { ++ pins = "PA10", "PA11"; ++ function = "i2c3"; ++ }; ++ + i2c3_ph_pins: i2c3-ph-pins { + pins = "PH4", "PH5"; + function = "i2c3"; +@@ -468,6 +473,47 @@ rmii_pins: rmii-pins { + drive-strength = <40>; + }; + ++ /omit-if-no-ref/ ++ pwm0_pd_pin: pwm0-pd-pin { ++ pins = "PD28"; ++ function = "pwm0"; ++ }; ++ ++ /omit-if-no-ref/ ++ pwm1_pg_pin: pwm1-pg-pin { ++ pins = "PG19"; ++ function = "pwm1"; ++ }; ++ ++ /omit-if-no-ref/ ++ pwm1_ph_pin: pwm1-ph-pin { ++ pins = "PH3"; ++ }; ++ ++ /omit-if-no-ref/ ++ pwm2_ph_pin: pwm2-ph-pin { ++ pins = "PH2"; ++ function = "pwm2"; ++ }; ++ ++ /omit-if-no-ref/ ++ pwm3_ph_pin: pwm3-ph-pin { ++ pins = "PH0"; ++ function = "pwm3"; ++ }; ++ ++ /omit-if-no-ref/ ++ pwm4_ph_pin: pwm4-ph-pin { ++ pins = "PH1"; ++ function = "pwm4"; ++ }; ++ ++ /omit-if-no-ref/ ++ pwm5_pin: pwm5-pin { ++ pins = "PA12"; ++ function = "pwm5"; ++ }; ++ + /omit-if-no-ref/ + spi0_pins: spi0-pins { + pins = "PC0", "PC2", "PC4"; +-- +2.35.3 + diff --git a/patch/kernel/archive/sunxi-6.6/series.armbian b/patch/kernel/archive/sunxi-6.6/series.armbian index e84bf3422ff2..6f7ad597d47d 100644 --- a/patch/kernel/archive/sunxi-6.6/series.armbian +++ b/patch/kernel/archive/sunxi-6.6/series.armbian @@ -204,3 +204,4 @@ patches.armbian/Fix-ghost-touches-on-tsc2007-tft-screen.patch patches.armbian/bigtereetech-cb1-i2c-gpio-and-ws2812.patch patches.armbian/arm64-dts-Add-BananaPi-M4-Berry-support.patch + patches.armbian/arm64-dts-sun50i-h616-add-i2c3_pa-all-pwm-pins.patch diff --git a/patch/kernel/archive/sunxi-6.6/series.conf b/patch/kernel/archive/sunxi-6.6/series.conf index 4d29d3f969c2..7dd3e383e47c 100644 --- a/patch/kernel/archive/sunxi-6.6/series.conf +++ b/patch/kernel/archive/sunxi-6.6/series.conf @@ -453,3 +453,4 @@ patches.armbian/Fix-ghost-touches-on-tsc2007-tft-screen.patch patches.armbian/bigtereetech-cb1-i2c-gpio-and-ws2812.patch patches.armbian/arm64-dts-Add-BananaPi-M4-Berry-support.patch + patches.armbian/arm64-dts-sun50i-h616-add-i2c3_pa-all-pwm-pins.patch