From 946b2e1ad8b4e436091fd3957492be17618459c6 Mon Sep 17 00:00:00 2001 From: "minda.chen" Date: Tue, 1 Nov 2022 16:00:20 +0800 Subject: dts: add i2c5 and attach pmic configuration i2c5 and pmic is used by opensbi power management ops. Signed-off-by: minda.chen --- arch/riscv/dts/jh7110.dtsi | 13 +++++++++++++ arch/riscv/dts/starfive_evb.dts | 7 +++++++ 2 files changed, 20 insertions(+) (limited to 'arch/riscv') diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index 0188f89780..50ea4786db 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b/arch/riscv/dts/jh7110.dtsi @@ -614,6 +614,19 @@ status = "disabled"; }; + i2c5: i2c5@12050000 { + compatible = "snps,designware-i2c"; + reg = <0x0 0x12050000 0x0 0x10000>; + clocks = <&clkgen JH7110_I2C5_CLK_CORE>, + <&clkgen JH7110_I2C5_CLK_APB>; + clock-names = "ref", "pclk"; + resets = <&rstgen RSTN_U5_DW_I2C_APB>; + interrupts = <50>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + /* unremovable emmc as mmcblk0 */ sdio0: sdio0@16010000 { compatible = "snps,dw-mshc"; diff --git a/arch/riscv/dts/starfive_evb.dts b/arch/riscv/dts/starfive_evb.dts index 1a7b48e684..d3663b6973 100644 --- a/arch/riscv/dts/starfive_evb.dts +++ b/arch/riscv/dts/starfive_evb.dts @@ -171,3 +171,10 @@ &pdm { status = "disabled"; }; + +&i2c5 { + pmic_axp15060: axp15060_reg@36 { + compatible = "stf,axp15060-regulator"; + reg = <0x36>; + }; +}; -- cgit v1.2.3