93 lines
2.6 KiB
Diff
93 lines
2.6 KiB
Diff
From 4d52dde85317d2fe9ce56d6132ba55fc9a1880f4 Mon Sep 17 00:00:00 2001
|
|
From: Lee Seungcheol <john.lee@hardkernel.com>
|
|
Date: Thu, 6 May 2021 15:25:39 +0900
|
|
Subject: [PATCH 109/109] ODROID-C4: arm64/dts: make I2C0, I2C1 disabled by
|
|
default and add DTBOs of them
|
|
|
|
Change-Id: I7ac97c6400bc75b72865593e0ca8cfd2b9fe7ac5
|
|
---
|
|
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts | 4 ++--
|
|
.../boot/dts/amlogic/overlays/odroidc4/Makefile | 2 ++
|
|
.../boot/dts/amlogic/overlays/odroidc4/i2c0.dts | 13 +++++++++++++
|
|
.../boot/dts/amlogic/overlays/odroidc4/i2c1.dts | 13 +++++++++++++
|
|
4 files changed, 30 insertions(+), 2 deletions(-)
|
|
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidc4/i2c0.dts
|
|
create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidc4/i2c1.dts
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
index bab9d01b8f86..195f4a756aa8 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
@@ -125,7 +125,7 @@ &ir {
|
|
};
|
|
|
|
&i2c2 {
|
|
- status = "okay";
|
|
+ status = "disabled";
|
|
|
|
/*
|
|
* 40 Pin Header : SDA(GPIOX.17->3 Pin)
|
|
@@ -140,7 +140,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/odroidc4/Makefile b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile
|
|
index ba98b92bc449..7af1e96f3124 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile
|
|
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile
|
|
@@ -3,6 +3,8 @@ dtbo-y += \
|
|
hktft35.dtbo \
|
|
pcf8563.dtbo \
|
|
spi0.dtbo \
|
|
+ i2c0.dtbo \
|
|
+ i2c1.dtbo \
|
|
uart0.dtbo \
|
|
uart1.dtbo \
|
|
uart2.dtbo \
|
|
diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/i2c0.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/i2c0.dts
|
|
new file mode 100644
|
|
index 000000000000..a225d47fcd46
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/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/odroidc4/i2c1.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/i2c1.dts
|
|
new file mode 100644
|
|
index 000000000000..880e19952d5b
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/i2c1.dts
|
|
@@ -0,0 +1,13 @@
|
|
+/dts-v1/;
|
|
+/plugin/;
|
|
+
|
|
+/ {
|
|
+ fragment@0 {
|
|
+ target = <&i2c3>;
|
|
+
|
|
+ __overlay__ {
|
|
+ status = "okay";
|
|
+ clock-frequency = <100000>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
--
|
|
2.25.1
|
|
|