From 20dc0b0f3da7895d50f2824b4608c5e44729f892 Mon Sep 17 00:00:00 2001
From: JohnTheCoolingFan <ivan8215145640@gmail.com>
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 <ivan8215145640@gmail.com>
---
 .../boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-emmc.dts   | 4 ++--
 .../boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-sd.dts     | 4 ++--
 .../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 f878c23f1d90..b059ea08fec0 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
@@ -21,8 +21,8 @@ &ws2812 {
 };
 
 &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 {
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 e18dd854d74b..cc10be714676 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
@@ -12,8 +12,8 @@ &ws2812 {
 };
 
 &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 {
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 3b3a196eaa93..d18695148ef5 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi
@@ -108,7 +108,7 @@ ws2812: ws2812 {
 		compatible = "rgb-ws2812";
 		pinctrl-names = "default";
 		rgb_cnt = <2>;
-		rgb_value = <0x010000 0x010000>;
+		rgb_value = <0x000001 0x010000>;
 		status = "disabled";
 	};
 
-- 
2.35.3

