Skip to content

Commit a771e4b

Browse files
tswaehnkartben
authored andcommitted
dts: sy1xx: add gpio support
With this commit we add the gpio functionality to the sensry soc sy1xx. Signed-off-by: Sven Ginka <s.ginka@sensry.de>
1 parent 4dcaa82 commit a771e4b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dts/riscv/sensry/ganymed-sy1xx.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
/dts-v1/;
55

6+
#include <zephyr/dt-bindings/pinctrl/sy1xx-pinctrl.h>
7+
68
/ {
79
#address-cells = <1>;
810
#size-cells = <0>;
@@ -87,6 +89,16 @@
8789
status = "okay";
8890
};
8991

92+
gpio0: gpio@1a101000 {
93+
compatible = "sensry,sy1xx-gpio";
94+
gpio-controller;
95+
#gpio-cells = <2>;
96+
reg = <0x1a101000 0x20>;
97+
pad-cfg = <SY1XX_GPIO0_PAD_CFG0>;
98+
status = "okay";
99+
ngpios = <32>;
100+
};
101+
90102
pinctrl: pinctrl@1a104000 {
91103
compatible = "sensry,sy1xx-pinctrl";
92104
reg = <0x1a104000 0x1000>;

0 commit comments

Comments
 (0)