mirror of
https://github.com/torvalds/linux.git
synced 2026-09-27 11:02:03 +02:00
riscv: dts: spacemit: enable the i2c8 adapter
Define properties for the I2C adapter that provides access to the SpacemiT P1 PMIC. Enable this adapter on the Banana Pi BPI-F3. Signed-off-by: Alex Elder <elder@riscstar.com> Link: https://lore.kernel.org/r/20250825172057.163883-6-elder@riscstar.com Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
parent
1187f9b3f6
commit
3e8d7309e6
|
|
@ -92,6 +92,18 @@ &pdma {
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c8 {
|
||||
pinctrl-0 = <&i2c8_cfg>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
|
||||
pmic@41 {
|
||||
compatible = "spacemit,p1";
|
||||
reg = <0x41>;
|
||||
interrupts = <64>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart0_2_cfg>;
|
||||
|
|
|
|||
|
|
@ -59,6 +59,13 @@ gmac1-pins {
|
|||
};
|
||||
};
|
||||
|
||||
i2c8_cfg: i2c8-cfg {
|
||||
i2c8-0-pins {
|
||||
pinmux = <K1_PADCONF(93, 0)>, /* PWR_SCL */
|
||||
<K1_PADCONF(94, 0)>; /* PWR_SDA */
|
||||
};
|
||||
};
|
||||
|
||||
/omit-if-no-ref/
|
||||
uart0_0_cfg: uart0-0-cfg {
|
||||
uart0-0-pins {
|
||||
|
|
|
|||
|
|
@ -459,6 +459,19 @@ pwm7: pwm@d401bc00 {
|
|||
status = "disabled";
|
||||
};
|
||||
|
||||
i2c8: i2c@d401d800 {
|
||||
compatible = "spacemit,k1-i2c";
|
||||
reg = <0x0 0xd401d800 0x0 0x38>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clocks = <&syscon_apbc CLK_TWSI8>,
|
||||
<&syscon_apbc CLK_TWSI8_BUS>;
|
||||
clock-names = "func", "bus";
|
||||
clock-frequency = <400000>;
|
||||
interrupts = <19>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
pinctrl: pinctrl@d401e000 {
|
||||
compatible = "spacemit,k1-pinctrl";
|
||||
reg = <0x0 0xd401e000 0x0 0x400>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user