Skip to content

Commit 8528108

Browse files
committed
arm64: try to add rtc and eeprom to r4
1 parent cc2f94d commit 8528108

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts

+16-16
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,22 @@
235235
pinctrl-0 = <&i2c2_1_pins>;
236236
status = "okay";
237237

238+
pcf8563: rtc@50 {
239+
compatible = "nxp,pcf8563";
240+
reg = <0x50>;
241+
interrupts = <&pio 6 IRQ_TYPE_LEVEL_LOW>;
242+
#clock-cells = <0>;
243+
//status = "disabled";
244+
};
245+
246+
eeprom@57 {
247+
compatible = "atmel,24c02";
248+
reg = <0x57>;
249+
address-bits = <8>;
250+
page-size = <8>;
251+
size = <256>;
252+
};
253+
238254
pca9545: i2c-switch@70 {
239255
reg = <0x70>;
240256
compatible = "nxp,pca9545";
@@ -246,22 +262,6 @@
246262
#address-cells = <1>;
247263
#size-cells = <0>;
248264
reg = <0>;
249-
250-
eeprom@57 {
251-
compatible = "atmel,24c02";
252-
reg = <0x57>;
253-
address-bits = <8>;
254-
page-size = <8>;
255-
size = <256>;
256-
};
257-
258-
pcf8563: rtc@50 {
259-
compatible = "nxp,pcf8563";
260-
reg = <0x50>;
261-
interrupts = <&pio 6 IRQ_TYPE_LEVEL_LOW>;
262-
#clock-cells = <0>;
263-
status = "disabled";
264-
};
265265
};
266266

267267
i2c_sfp1: i2c@1 {

arch/arm64/configs/mt7988a_bpi-r4_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1270,3 +1270,5 @@ CONFIG_PCS_MTK_USXGMII=y
12701270
CONFIG_MT7915E=m
12711271
CONFIG_MT798X_WMAC=y
12721272
CONFIG_PHY_MTK_XFI_TPHY=y
1273+
CONFIG_RTC_DRV_PCF8563=y
1274+
CONFIG_EEPROM_AT24=y

0 commit comments

Comments
 (0)