build/patch/kernel/archive/odroidxu4-5.15/0063-ODROID-N2-N2Plus-fix-I2C-bus-hardware-properties.patch

77 lines
1.6 KiB
Diff
Raw Normal View History

From 56d7a8e31e831f885b85b391fde32b3dc48a6868 Mon Sep 17 00:00:00 2001
From: Dongjin Kim <tobetter@gmail.com>
Date: Wed, 7 Jul 2021 02:29:58 +0900
Subject: [PATCH 63/75] ODROID-N2/N2Plus: fix I2C bus hardware properties
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ic68c578232cd080c980fb22d4e7d490997256592
---
.../dts/amlogic/meson-g12b-odroid-n2.dtsi | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
index cfcf70c48515..658f18019c40 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
@@ -14,6 +14,8 @@ aliases {
serial0 = &uart_AO;
serial1 = &uart_A;
ethernet0 = &ethmac;
+ i2c0 = &i2c2;
+ i2c1 = &i2c3;
rtc0 = &rtc;
rtc1 = &vrtc;
};
@@ -526,6 +528,27 @@ &ir {
linux,rc-map-name = "rc-odroid";
};
+&i2c2 {
+ status = "okay";
+ pinctrl-0 = <&i2c2_sda_x_pins>, <&i2c2_sck_x_pins>;
+ pinctrl-names = "default";
+ clock-frequency = <400000>;
+};
+
+&i2c2_sda_x_pins {
+ mux {
+ /delete-property/ bias-disable;
+ bias-pull-up;
+ };
+};
+
+&i2c2_sck_x_pins {
+ mux {
+ /delete-property/ bias-disable;
+ bias-pull-up;
+ };
+};
+
&i2c3 {
status = "okay";
pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
@@ -538,6 +561,20 @@ rtc: rtc@51 {
};
};
+&i2c3_sda_a_pins {
+ mux {
+ /delete-property/ bias-disable;
+ bias-pull-up;
+ };
+};
+
+&i2c3_sck_a_pins {
+ mux {
+ /delete-property/ bias-disable;
+ bias-pull-up;
+ };
+};
+
&pwm_ab {
pinctrl-0 = <&pwm_a_e_pins>;
pinctrl-names = "default";
--
2.25.1