build/patch/kernel/archive/odroidxu4-5.12/0108-ODROID-N2-arm64-dts-make-I2C0-I2C1-disabled-by-defau.patch

93 lines
2.6 KiB
Diff

From ca0eb3265d8b08cedca91d7c247fd0f561df864c Mon Sep 17 00:00:00 2001
From: Lee Seungcheol <john.lee@hardkernel.com>
Date: Thu, 6 May 2021 15:10:25 +0900
Subject: [PATCH 108/109] ODROID-N2: arm64/dts: make I2C0, I2C1 disabled by
default and add DTBOs of them
Change-Id: I040ac27ebe99e3e077c5229cf372380c0204d444
---
.../arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts | 4 ++--
.../boot/dts/amlogic/overlays/odroidn2/Makefile | 2 ++
.../boot/dts/amlogic/overlays/odroidn2/i2c0.dts | 13 +++++++++++++
.../boot/dts/amlogic/overlays/odroidn2/i2c1.dts | 13 +++++++++++++
4 files changed, 30 insertions(+), 2 deletions(-)
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c0.dts
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c1.dts
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
index 09f8ce342edd..92cffba48f18 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
@@ -525,7 +525,7 @@ hdmi_tx_tmds_out: endpoint {
};
&i2c2 {
- status = "okay";
+ status = "disabled";
/*
* 40 Pin Header : SDA(GPIOX.17->3 Pin)
@@ -540,7 +540,7 @@ &i2c2 {
&i2c3 {
/* default i2c clock-frequency is 100Khz */
- status = "okay";
+ status = "disabled";
/*
* 40 Pin Header : SDA(GPIOA.14->27 Pin)
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile
index 7b84252ec076..502116414cb3 100644
--- a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile
@@ -1,6 +1,8 @@
dtbo-y += \
hktft35.dtbo \
spi0.dtbo \
+ i2c0.dtbo \
+ i2c1.dtbo \
uart0.dtbo \
uart1.dtbo \
pwm_cd.dtbo \
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c0.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c0.dts
new file mode 100644
index 000000000000..a225d47fcd46
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c0.dts
@@ -0,0 +1,13 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ fragment@0 {
+ target = <&i2c2>;
+
+ __overlay__ {
+ status = "okay";
+ clock-frequency = <100000>;
+ };
+ };
+};
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c1.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c1.dts
new file mode 100644
index 000000000000..880e19952d5b
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c1.dts
@@ -0,0 +1,13 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ fragment@0 {
+ target = <&i2c3>;
+
+ __overlay__ {
+ status = "okay";
+ clock-frequency = <100000>;
+ };
+ };
+};
--
2.25.1