mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
riscv: sophgo: dts: add gpio controllers for SG2042 SoC
Add support for the GPIO controller of Sophgo SG2042. SG2042 uses IP from Synopsys DesignWare APB GPIO and has three GPIO controllers. Signed-off-by: Chen Wang <unicorn_wang@outlook.com> Link: https://lore.kernel.org/r/20240819080851.1954691-1-unicornxw@gmail.com Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
This commit is contained in:
parent
014b839f79
commit
a508d794f8
1 changed files with 66 additions and 0 deletions
|
@ -99,6 +99,72 @@
|
|||
status = "disabled";
|
||||
};
|
||||
|
||||
gpio0: gpio@7030009000 {
|
||||
compatible = "snps,dw-apb-gpio";
|
||||
reg = <0x70 0x30009000 0x0 0x400>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clocks = <&clkgen GATE_CLK_APB_GPIO>,
|
||||
<&clkgen GATE_CLK_GPIO_DB>;
|
||||
clock-names = "bus", "db";
|
||||
|
||||
port0a: gpio-controller@0 {
|
||||
compatible = "snps,dw-apb-gpio-port";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
snps,nr-gpios = <32>;
|
||||
reg = <0>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <96 IRQ_TYPE_LEVEL_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio1: gpio@703000a000 {
|
||||
compatible = "snps,dw-apb-gpio";
|
||||
reg = <0x70 0x3000a000 0x0 0x400>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clocks = <&clkgen GATE_CLK_APB_GPIO>,
|
||||
<&clkgen GATE_CLK_GPIO_DB>;
|
||||
clock-names = "bus", "db";
|
||||
|
||||
port1a: gpio-controller@0 {
|
||||
compatible = "snps,dw-apb-gpio-port";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
snps,nr-gpios = <32>;
|
||||
reg = <0>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <97 IRQ_TYPE_LEVEL_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio2: gpio@703000b000 {
|
||||
compatible = "snps,dw-apb-gpio";
|
||||
reg = <0x70 0x3000b000 0x0 0x400>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clocks = <&clkgen GATE_CLK_APB_GPIO>,
|
||||
<&clkgen GATE_CLK_GPIO_DB>;
|
||||
clock-names = "bus", "db";
|
||||
|
||||
port2a: gpio-controller@0 {
|
||||
compatible = "snps,dw-apb-gpio-port";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
snps,nr-gpios = <32>;
|
||||
reg = <0>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <98 IRQ_TYPE_LEVEL_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
pllclk: clock-controller@70300100c0 {
|
||||
compatible = "sophgo,sg2042-pll";
|
||||
reg = <0x70 0x300100c0 0x0 0x40>;
|
||||
|
|
Loading…
Add table
Reference in a new issue