dts: i2c: kb1200 i2c device nodes

Add i2c device nodes and pinctrl nodes for ENE KB1200

Signed-off-by: Steven Chang <steven@ene.com.tw>
This commit is contained in:
Steven Chang 2024-03-15 10:46:34 +08:00 committed by Fabio Baltieri
parent 9cf861d6b5
commit b27fac08de
2 changed files with 170 additions and 0 deletions

View file

@ -113,4 +113,84 @@
/omit-if-no-ref/ tach3_gpio43: tach3_gpio43 {
pinmux = <ENE_KB1200_PINMUX(0x43, PINMUX_FUNC_A)>;
};
/omit-if-no-ref/ i2c0_clk_gpio2c: i2c0_clk_gpio2c {
pinmux = <ENE_KB1200_PINMUX(0x2C, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c0_dat_gpio2d: i2c0_dat_gpio2d {
pinmux = <ENE_KB1200_PINMUX(0x2D, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c1_clk_gpio2e: i2c1_clk_gpio2e {
pinmux = <ENE_KB1200_PINMUX(0x2E, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c1_dat_gpio2f: i2c1_dat_gpio2f {
pinmux = <ENE_KB1200_PINMUX(0x2F, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c2_clk_gpio32: i2c2_clk_gpio32 {
pinmux = <ENE_KB1200_PINMUX(0x32, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c2_dat_gpio33: i2c2_dat_gpio33 {
pinmux = <ENE_KB1200_PINMUX(0x33, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c3_clk_gpio34: i2c3_clk_gpio34 {
pinmux = <ENE_KB1200_PINMUX(0x34, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c3_dat_gpio35: i2c3_dat_gpio35 {
pinmux = <ENE_KB1200_PINMUX(0x35, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c4_clk_gpio38: i2c4_clk_gpio38 {
pinmux = <ENE_KB1200_PINMUX(0x38, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c4_dat_gpio39: i2c4_dat_gpio39 {
pinmux = <ENE_KB1200_PINMUX(0x39, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c5_clk_gpio4a: i2c5_clk_gpio4a {
pinmux = <ENE_KB1200_PINMUX(0x4A, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c5_dat_gpio4b: i2c5_dat_gpio4b {
pinmux = <ENE_KB1200_PINMUX(0x4B, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c6_clk_gpio4c: i2c6_clk_gpio4c {
pinmux = <ENE_KB1200_PINMUX(0x4C, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c6_dat_gpio4d: i2c6_dat_gpio4d {
pinmux = <ENE_KB1200_PINMUX(0x4D, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c7_clk_gpio50: i2c7_clk_gpio50 {
pinmux = <ENE_KB1200_PINMUX(0x50, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c7_dat_gpio51: i2c7_dat_gpio51 {
pinmux = <ENE_KB1200_PINMUX(0x51, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c8_clk_gpio70: i2c8_clk_gpio70 {
pinmux = <ENE_KB1200_PINMUX(0x70, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c8_dat_gpio71: i2c8_dat_gpio71 {
pinmux = <ENE_KB1200_PINMUX(0x71, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c9_clk_gpio72: i2c9_clk_gpio72 {
pinmux = <ENE_KB1200_PINMUX(0x72, PINMUX_FUNC_B)>;
bias-pull-up;
};
/omit-if-no-ref/ i2c9_dat_gpio73: i2c9_dat_gpio73 {
pinmux = <ENE_KB1200_PINMUX(0x73, PINMUX_FUNC_B)>;
bias-pull-up;
};
};

View file

@ -245,6 +245,96 @@
interrupts = <0 0>;
status = "disabled";
};
i2c0: i2c@40340000 {
compatible = "ene,kb1200-i2c";
reg = <0x40340000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c1: i2c@40341000 {
compatible = "ene,kb1200-i2c";
reg = <0x40341000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c2: i2c@40342000 {
compatible = "ene,kb1200-i2c";
reg = <0x40342000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c3: i2c@40343000 {
compatible = "ene,kb1200-i2c";
reg = <0x40343000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c4: i2c@40344000 {
compatible = "ene,kb1200-i2c";
reg = <0x40344000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c5: i2c@40345000 {
compatible = "ene,kb1200-i2c";
reg = <0x40345000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c6: i2c@40346000 {
compatible = "ene,kb1200-i2c";
reg = <0x40346000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c7: i2c@40347000 {
compatible = "ene,kb1200-i2c";
reg = <0x40347000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c8: i2c@40348000 {
compatible = "ene,kb1200-i2c";
reg = <0x40348000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c9: i2c@40349000 {
compatible = "ene,kb1200-i2c";
reg = <0x40349000 0x1000>;
interrupts = <17 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
};
};