Skip to content

Commit

Permalink
ODROID-N2: arm64/dts: make I2C0, I2C1 disabled by default and add DTB…
Browse files Browse the repository at this point in the history
…Os of them

Change-Id: I040ac27ebe99e3e077c5229cf372380c0204d444
Signed-off-by: Lee Seungcheol <john.lee@hardkernel.com>
  • Loading branch information
Lee Seungcheol authored and paralin committed Mar 29, 2022
1 parent c03c523 commit d8622a1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
12 changes: 12 additions & 0 deletions arch/arm64/boot/dts/amlogic/meson64_odroidn2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,18 @@
};
};

&i2c2 {
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&i2c2_sda_x_pins>, <&i2c2_sck_x_pins>;
};

&i2c3 {
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
};

&sd_emmc_b {
max-frequency = <200000000>;
sd-uhs-sdr12;
Expand Down
6 changes: 4 additions & 2 deletions arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
dtbo-y += \
fanspeed-full.dtbo \
hktft35.dtbo \
spi0.dtbo \
i2c0.dtbo \
i2c1.dtbo \
pwm_cd.dtbo \
pwm_ef.dtbo \
pwmfan-lowtemp.dtbo \
spi0.dtbo \
sx865x-i2c1.dtbo \
uart0.dtbo \
uart1.dtbo \
sx865x-i2c1.dtbo \
w1-gpio_p15.dtbo \
w1-gpio_p22.dtbo

Expand Down
13 changes: 13 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c0.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/dts-v1/;
/plugin/;

/ {
fragment@0 {
target = <&i2c2>;

__overlay__ {
status = "okay";
clock-frequency = <100000>;
};
};
};
13 changes: 13 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/odroidn2/i2c1.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/dts-v1/;
/plugin/;

/ {
fragment@0 {
target = <&i2c3>;

__overlay__ {
status = "okay";
clock-frequency = <100000>;
};
};
};

0 comments on commit d8622a1

Please sign in to comment.