Skip to content

Commit fe97e50

Browse files
committed
devicetree: enable v2.5's i2c0 and new RTC
1 parent 75bab22 commit fe97e50

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tp2bmc/board/tp2bmc/linux_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ CONFIG_NEW_LEDS=y
179179
CONFIG_LEDS_CLASS=y
180180
CONFIG_LEDS_GPIO=y
181181
CONFIG_RTC_CLASS=y
182+
CONFIG_RTC_HCTOSYS_DEVICE="rtc1"
183+
CONFIG_RTC_DRV_PCF8563=y
182184
CONFIG_DMADEVICES=y
183185
CONFIG_DMA_SUN6I=y
184186
# CONFIG_VIRTIO_MENU is not set

tp2bmc/board/tp2bmc/sun8i-t113s-turing-pi2-v2.5.dts

+20
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,27 @@
156156
#endif
157157
};
158158

159+
&i2c0 {
160+
status = "okay";
161+
162+
pinctrl-names = "default";
163+
pinctrl-0 = <&i2c0_pg_pins>;
164+
165+
clock-frequency = <400000>;
166+
167+
rtc@51 {
168+
compatible = "nxp,pcf8563";
169+
reg = <0x51>;
170+
#clock-cells = <0>;
171+
};
172+
};
173+
159174
&pio {
175+
i2c0_pg_pins: i2c0-pg-pins {
176+
pins = "PG12", "PG13";
177+
function = "i2c0";
178+
};
179+
160180
/omit-if-no-ref/
161181
pwm5_pd_pin: pwm5-pd-pin {
162182
pins = "PD21";

0 commit comments

Comments
 (0)