Skip to content

Commit

Permalink
BigTreeTech CB1 dts adjustments (edge 6.12)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTheCoolingFan committed Jan 25, 2025
1 parent 298529b commit b5395a0
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: JohnTheCoolingFan <[email protected]>
Date: Sat, 25 Jan 2025 11:30:04 +0000
Subject: BigTreeTech CB1: dts: i2c gpio mode adjustment and ws2812 rgb_value

Signed-off-by: JohnTheCoolingFan <[email protected]>
---
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-emmc.dts | 4 ++--
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-sd.dts | 4 ++--
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-emmc.dts b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-emmc.dts
index f878c23f1..b059ea08f 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-emmc.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-emmc.dts
@@ -19,12 +19,12 @@ &mmc2 {
&ws2812 {
gpios = <&pio 8 15 GPIO_ACTIVE_LOW>; /* PI15 */
};

&i2c_gpio {
- gpios = <&pio 8 6 GPIO_ACTIVE_HIGH>, /* SDA PI6 */
- <&pio 8 4 GPIO_ACTIVE_HIGH>; /* SCL PI4 */
+ gpios = <&pio 8 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>, /* SDA PI6 */
+ <&pio 8 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* SCL PI4 */
};

&can0_pin_irq {
pins = "PI3";
};
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-sd.dts b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-sd.dts
index e18dd854d..cc10be714 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-sd.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-sd.dts
@@ -10,12 +10,12 @@
&ws2812 {
gpios = <&pio 2 14 GPIO_ACTIVE_LOW>; /* PC14 */
};

&i2c_gpio {
- gpios = <&pio 2 12 GPIO_ACTIVE_HIGH>, /* SDA PC12 */
- <&pio 2 10 GPIO_ACTIVE_HIGH>; /* SCL PC10 */
+ gpios = <&pio 2 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>, /* SDA PC12 */
+ <&pio 2 10 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* SCL PC10 */
};

&can0_pin_irq {
pins = "PC9";
};
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi
index 3b3a196ea..d18695148 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi
@@ -106,11 +106,11 @@ wifi_pwrseq: wifi-pwrseq {

ws2812: ws2812 {
compatible = "rgb-ws2812";
pinctrl-names = "default";
rgb_cnt = <2>;
- rgb_value = <0x010000 0x010000>;
+ rgb_value = <0x000001 0x010000>;
status = "disabled";
};

i2c_gpio: i2c-gpio {
#address-cells = <1>;
--
Created with Armbian build tools https://github.com/armbian/build

1 change: 1 addition & 0 deletions patch/kernel/archive/sunxi-6.12/series.armbian
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,4 @@
patches.armbian/Add-BananaPi-BPI-M4-Zero-overlays.patch
patches.armbian/Fix-ghost-touches-on-tsc2007-tft-screen.patch
patches.armbian/arm-dts-sun8i-h2-plus-orangepi-zero-fix-usb_otg-dr_mode.patch
patches.armbian/bigtereetech-cb1-i2c-gpio-and-ws2812.patch
2 changes: 1 addition & 1 deletion patch/kernel/archive/sunxi-6.12/series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
patches.armbian/Add-BananaPi-BPI-M4-Zero-overlays.patch
patches.armbian/Fix-ghost-touches-on-tsc2007-tft-screen.patch
patches.armbian/arm-dts-sun8i-h2-plus-orangepi-zero-fix-usb_otg-dr_mode.patch

patches.armbian/bigtereetech-cb1-i2c-gpio-and-ws2812.patch
# The patches.addon folder where new patches are added before they get into
# one of the two main series.
#

0 comments on commit b5395a0

Please sign in to comment.