From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=216.150.161.27 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796124414; b=ZkqA1dqwSFHM5ghueHLI7AlvBE8Y0drgP4Z366FY8rZu105kYU9Z39uHpRL8SXpUjZED Rt71k/OuE71/1vnFMt4QVsq0DGZUQg2mLKS3l1FaHzMxdM9UmVlGz43uX4HFoF90a9CUM 9qtj3E+fJ/50TurqGvWcnbcTKCDn5BEV32vcwKYGSrM0ILQM7OxpWfrZNcuWqsdRlZsjA gtl9OoLX1kI7LzAyHOA5Yu9ncaoXIg67ZVfi843DSx4IgUcf8DXna27MByKElDhct05RU jKnsfxS2yiH4+3A4KKT3Y2FIJB32JCEbaD29S01To9ZvG54uTyIaTIx5kK0qaUZkxlw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796124414; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:Received:Received:From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-OriginalArrivalTime; bh=MYLv2KNNEGvdW73twnv18jAwm3V0MjlYz21I8ePf4sA=; b=41lJFQ+VcDkbTO4VkjJMrXB7WFBLVxrGvXmafqdZXUxwkHiVxLIjk9H39+AnTXPuStHA qmMBxN5PpuX4SjzpnCG5Md4gKtg/VhOm4iwZIAkvpeEtWlDF0ux3UX6ubR0A7H2QCuMT+ ugd0TVu/3PgcNDEk8uRe9T4i+F7a19hFh/QARQ1UYEauO5trbVqdFc+4nztY5hlmbsgBV H7olOP9Xa4gauf4mZgugsG3QG4es081I1/BWuRxACSGIZOLIGF3cBZGDbKsA3UJAZU45n 3JJmVWjGnqElkvyBv4uvk0Bvu5Li9Gf8wgsca/NuAB4MyyxwGKZ1AUSp4frY/82kQGw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=einfochips.com; spf=pass smtp.mailfrom=einfochips.com; dkim=pass header.d=einfochips.com header.i=@einfochips.com header.a=rsa-sha256 header.s=NAESA-Selector1 header.b=NkGhfKo2; arc=none smtp.remote-ip=216.150.161.27 Received: from naesa06.arrow.com (naesa06.arrow.com [216.150.161.27]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADE23606A6A5; Tue, 1 Dec 2026 11:26:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ADE23606A6A5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=einfochips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=einfochips.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=einfochips.com header.i=@einfochips.com header.a=rsa-sha256 header.s=NAESA-Selector1 header.b=NkGhfKo2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=7462; q=dns/txt; s=NAESA-Selector1; t=1796124414; x=1827660414; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MYLv2KNNEGvdW73twnv18jAwm3V0MjlYz21I8ePf4sA=; b=NkGhfKo2hBzIaekrpoG7/WuFusi4YFZzOoiVBgaaEZ1xcibclp14KLk3 4jjKQFF/2fRig0PrcRAzqThBMjcX77dt3J4VRgybl5fX9pv7aW7j3EQ+S P4VXTN5jQ3OjCvAl+9fUq3Bgk8Pk6IIZQoKI28i24aDQU9+xEPIyNRoLb /9WRuWWJQA5YYriXpgZXu9Q4gBWDhpJHt3pOKvCLq0/8XNt9rajLJjwQS 2cy79ZP5/oewiKJWvdbHDltGU6voMdp/en1MumXKjJ2i5itrx9ww89765 sqo/tupoOXhK1VlNJuX4GkowxId4kVIpVMJwZaMRHgQZLtlEZVZMiemfq A==; X-CSE-ConnectionGUID: qSfu2o7UTbC4BAPmtt4khA== X-CSE-MsgGUID: 0QTKhXgIQKG8og95D7eh8A== X-IronPort-AV: E=Sophos;i="6.27,244,1787032800"; d="scan'208";a="70283513" Received: from unknown (HELO eicahmirelay01.einfochips.com) ([10.100.49.50]) by naesa06out.arrow.com with ESMTP; 01 Dec 2026 04:26:53 -0700 Received: from AHMCPU1888.localdomain ([172.25.5.100]) by eicahmirelay01.einfochips.com with Microsoft SMTPSVC(10.0.20348.1); Tue, 1 Dec 2026 16:56:41 +0530 From: Pinkesh Vaghela To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Andi Shyti , Mika Westerberg , Mervyn Pretorius , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Min Lin Cc: Yulin Lu , Samuel Holland , Darshan Prajapati , Pinkesh Vaghela , Pritesh Patel Subject: [PATCH v6 6/7] riscv: dts: eswin: add I2C controller support Date: Tue, 1 Dec 2026 16:56:40 +0530 Message-Id: <20261201112641.493136-7-pinkesh.vaghela@einfochips.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20261201112641.493136-1-pinkesh.vaghela@einfochips.com> References: <20261201112641.493136-1-pinkesh.vaghela@einfochips.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 01 Dec 2026 11:26:41.0735 (UTC) FILETIME=[D69F5570:01DD8186] From: Pritesh Patel Add I2C nodes for EIC7700 SoC. Also add nodes for corresponding slave devices in dts file and enable them for HiFive Premier P550 board Signed-off-by: Pritesh Patel Signed-off-by: Pinkesh Vaghela --- .../dts/eswin/eic7700-hifive-premier-p550.dts | 52 +++++ arch/riscv/boot/dts/eswin/eic7700.dtsi | 180 ++++++++++++++++++ 2 files changed, 232 insertions(+) diff --git a/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts b/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts index fd005b6b5e09..037802281393 100644 --- a/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts +++ b/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts @@ -40,6 +40,58 @@ vcc_1v8: regulator-vcc1v8 { }; }; +&aon_i2c0 { + status = "okay"; + + eeprom@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + }; +}; + +&aon_i2c1 { + status = "okay"; + + adc@10 { + compatible = "microchip,pac1934"; + reg = <0x10>; + #address-cells = <1>; + #size-cells = <0>; + + channel@1 { + reg = <0x1>; + shunt-resistor-micro-ohms = <1000>; + label = "VDD_SOM"; + }; + + channel@2 { + reg = <0x2>; + shunt-resistor-micro-ohms = <1000>; + label = "VDD_SOC"; + }; + + channel@3 { + reg = <0x3>; + shunt-resistor-micro-ohms = <1000>; + label = "VDD_CPU"; + }; + + channel@4 { + reg = <0x4>; + shunt-resistor-micro-ohms = <1000>; + label = "VDD_LPDDR"; + }; + }; + + power-sensor@44 { + compatible = "ti,ina226"; + reg = <0x44>; + #io-channel-cells = <1>; + label = "sys_power"; + shunt-resistor = <1000>; + }; +}; + &gpio84_pins { bias-disable; input-disable; diff --git a/arch/riscv/boot/dts/eswin/eic7700.dtsi b/arch/riscv/boot/dts/eswin/eic7700.dtsi index 4ebffe52a34f..a1575d1ef226 100644 --- a/arch/riscv/boot/dts/eswin/eic7700.dtsi +++ b/arch/riscv/boot/dts/eswin/eic7700.dtsi @@ -315,6 +315,156 @@ uart4: serial@50940000 { status = "disabled"; }; + i2c0: i2c@50950000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x50950000 0x0 0x8000>; + interrupts = <105>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C0_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + resets = <&reset EIC7700_RESET_I2C0>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c1: i2c@50960000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x50960000 0x0 0x8000>; + interrupts = <106>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C1_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + resets = <&reset EIC7700_RESET_I2C1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c2: i2c@50970000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x50970000 0x0 0x8000>; + interrupts = <107>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C2_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + resets = <&reset EIC7700_RESET_I2C2>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c3: i2c@50980000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x50980000 0x0 0x8000>; + interrupts = <108>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C3_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pins>; + resets = <&reset EIC7700_RESET_I2C3>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c4: i2c@50990000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x50990000 0x0 0x8000>; + interrupts = <109>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C4_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c4_pins>; + resets = <&reset EIC7700_RESET_I2C4>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c5: i2c@509a0000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x509a0000 0x0 0x8000>; + interrupts = <110>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C5_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c5_pins>; + resets = <&reset EIC7700_RESET_I2C5>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c6: i2c@509b0000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x509b0000 0x0 0x8000>; + interrupts = <111>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C6_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c6_pins>; + resets = <&reset EIC7700_RESET_I2C6>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c7: i2c@509c0000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x509c0000 0x0 0x8000>; + interrupts = <112>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C7_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c7_pins>; + resets = <&reset EIC7700_RESET_I2C7>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c8: i2c@509d0000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x509d0000 0x0 0x8000>; + interrupts = <113>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C8_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c8_pins>; + resets = <&reset EIC7700_RESET_I2C8>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c9: i2c@509e0000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x509e0000 0x0 0x8000>; + interrupts = <114>; + clocks = <&clk EIC7700_CLK_GATE_LSP_I2C9_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c9_pins>; + resets = <&reset EIC7700_RESET_I2C9>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + gpio@51600000 { compatible = "snps,dw-apb-gpio"; reg = <0x0 0x51600000 0x0 0x80>; @@ -379,6 +529,36 @@ reset: reset-controller@51828300 { reg = <0x0 0x51828300 0x0 0x200>; #reset-cells = <1>; }; + + aon_i2c0: i2c@51830000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x51830000 0x0 0x8000>; + interrupts = <290>; + clocks = <&clk EIC7700_CLK_GATE_AON_I2C0_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c10_pins>; + resets = <&reset EIC7700_RESET_ANO0>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + aon_i2c1: i2c@51838000 { + compatible = "eswin,eic7700-i2c", "snps,designware-i2c"; + reg = <0x0 0x51838000 0x0 0x8000>; + interrupts = <291>; + clocks = <&clk EIC7700_CLK_GATE_AON_I2C1_PCLK>; + clock-names = "ref"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c11_pins>; + resets = <&reset EIC7700_RESET_ANO1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; }; -- 2.34.1