From patchwork Fri Aug 23 15:35:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: karthikeyan X-Patchwork-Id: 13775583 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 53BC3C531DC for ; Fri, 23 Aug 2024 16:46:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x6Ojed5cHLwX/T2FMUeDOTHp4qsQ3TV1EftZkXdd7JQ=; b=hz4EN4yYfLgkbn gkcMwjWYFYeZnozA8BSjI8ok3WUdqIUJu3ogl65PZDLCPH4kCEMR09qrhLQdfGz01Xl7Bfu0Jxml1 5FQzk9RG+LDPtaF7L9b9WonDGlMD9szYXmXOzM2+cyZQMMiZXwnxuWIv3sk2fMK6qBRxGnsedc/rw mKUbEDQO9CxkT8A0NZIACk3rTg4x5IgST3n20t5pkKHaUUvmp8zO/vTh5WLX/Rr+MZnBXRqrQ0aV+ tOvMFfAb4awiF9zWOE5YncyLrmrr6tj3bMCvsdJpixhP1faDNTWLPy37m0Cfy4L1+tQGKO+t/CIDh WHKkNvNZbOX7o/p476Lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shXQR-000000001HV-0ocJ; Fri, 23 Aug 2024 16:46:11 +0000 Received: from omta38.uswest2.a.cloudfilter.net ([35.89.44.37]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shWKg-0000000HKR9-2QzO for linux-rockchip@lists.infradead.org; Fri, 23 Aug 2024 15:36:12 +0000 Received: from eig-obgw-6004a.ext.cloudfilter.net ([10.0.30.197]) by cmsmtp with ESMTPS id hSxbsshcuumtXhWKRs8cUX; Fri, 23 Aug 2024 15:35:55 +0000 Received: from md-in-79.webhostbox.net ([43.225.55.182]) by cmsmtp with ESMTPS id hWKMsloC9ks1PhWKNsyTJ5; Fri, 23 Aug 2024 15:35:52 +0000 X-Authority-Analysis: v=2.4 cv=Ud+aS7SN c=1 sm=1 tr=0 ts=66c8ac58 a=LfuyaZh/8e9VOkaVZk0aRw==:117 a=kofhyyBXuK/oEhdxNjf66Q==:17 a=yoJbH4e0A30A:10 a=vU9dKmh3AAAA:8 a=IUsOfeiScPouXSuZ-WoA:9 a=rsP06fVo5MYu2ilr0aT5:22 a=ZCPYImcxYIQFgLOT52_G:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linumiz.com ; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lGv/wy08x/B7bLYOWqbVbMhnaUihX+YE7qSWjC5RYsw=; b=k70Ai4kVIEJb6oHR6G6An729wJ g26+STN0j9O8wB/eAMURdF7H7FY5idtC20iPFBq9ZSIDNwG64oolqrzElmHuvUklK11ER1bwel0Cu GpKQdW4D+ABvJvHFNUioL4Yx5wmSOwpKKtWL/6OOR89Sromr+M8AuOZryp6L38mtcQrCFR0QuHfwU 5DmsNmFI7oKTnbDpqk5uUVVMCuLWRw+IPIWkQfg+jpj6dOSzKjZfAVtukeZzedKcjhdpWxZsK16yS J4XjrnThYJisgxr8UHfVumBHwZd6HaC1gCWrs4dJVRIPmgJh4671msMX9tPhe8yQPdosQ0vewLeuF xrE4yuvw==; Received: from [122.165.245.213] (port=53684 helo=localhost.localdomain) by md-in-79.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1shWKK-000GB4-1i; Fri, 23 Aug 2024 21:05:48 +0530 From: Karthikeyan Krishnasamy To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, alexandre.belloni@bootlin.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Karthikeyan Krishnasamy Subject: [PATCH 1/8] ARM: dts: rockchip: Add i2c3 node for RV1126 Date: Fri, 23 Aug 2024 21:05:21 +0530 Message-Id: <20240823153528.3863993-2-karthikeyan@linumiz.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240823153528.3863993-1-karthikeyan@linumiz.com> References: <20240823153528.3863993-1-karthikeyan@linumiz.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - md-in-79.webhostbox.net X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - linumiz.com X-BWhitelist: no X-Source-IP: 122.165.245.213 X-Source-L: No X-Exim-ID: 1shWKK-000GB4-1i X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (localhost.localdomain) [122.165.245.213]:53684 X-Source-Auth: karthikeyan@linumiz.com X-Email-Count: 13 X-Org: HG=dishared_whb_net_legacy;ORG=directi; X-Source-Cap: bGludW1jbWM7aG9zdGdhdG9yO21kLWluLTc5LndlYmhvc3Rib3gubmV0 X-Local-Domain: yes X-CMAE-Envelope: MS4xfDIH+XK7AiFozNi5iMioQ11x39DlrFHPJ8vNoT2NTMy4roNWO/mna6P7lFQLK48eokDMK0tr6f+1pvJ6VyreK8vhNYko+b8oJhy7Ow5MtyWuVEPAguYR s7aeqYSkFozjYpa7Ae7n0jPEWX/Lce1eu2ITfOjKALFyDslBaWltERNMhjpTnPlSM3cQArpyZmKEbR7LPXNliBqkWuWOLr9QX+AI/x+gdu9KTwmBkjAyxluy X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240823_083610_693392_509146ED X-CRM114-Status: UNSURE ( 6.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add i2c3 node and possible pinctrl for Rockchip RV1126 Signed-off-by: Karthikeyan Krishnasamy --- .../arm/boot/dts/rockchip/rv1126-pinctrl.dtsi | 26 +++++++++++++++++++ arch/arm/boot/dts/rockchip/rv1126.dtsi | 15 +++++++++++ 2 files changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi b/arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi index 06b1d7f2d858..be666b25b830 100644 --- a/arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi +++ b/arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi @@ -97,6 +97,32 @@ i2c2_xfer: i2c2-xfer { <0 RK_PC3 1 &pcfg_pull_none_drv_level_0_smt>; }; }; + i2c3 { + /omit-if-no-ref/ + i2c3m0_xfer: i2c3m0-xfer { + rockchip,pins = + /* i2c3_scl_m0 */ + <3 RK_PA4 5 &pcfg_pull_none>, + /* i2c3_sda_m0 */ + <3 RK_PA5 5 &pcfg_pull_none>; + }; + /omit-if-no-ref/ + i2c3m1_xfer: i2c3m1-xfer { + rockchip,pins = + /* i2c3_scl_m1 */ + <2 RK_PD4 7 &pcfg_pull_none>, + /* i2c3_sda_m1 */ + <2 RK_PD5 7 &pcfg_pull_none>; + }; + /omit-if-no-ref/ + i2c3m2_xfer: i2c3m2-xfer { + rockchip,pins = + /* i2c3_scl_m2 */ + <1 RK_PD6 3 &pcfg_pull_none>, + /* i2c3_sda_m2 */ + <1 RK_PD7 3 &pcfg_pull_none>; + }; + }; pwm2 { /omit-if-no-ref/ pwm2m0_pins: pwm2m0-pins { diff --git a/arch/arm/boot/dts/rockchip/rv1126.dtsi b/arch/arm/boot/dts/rockchip/rv1126.dtsi index bb603cae13df..59de848c9a83 100644 --- a/arch/arm/boot/dts/rockchip/rv1126.dtsi +++ b/arch/arm/boot/dts/rockchip/rv1126.dtsi @@ -22,6 +22,7 @@ / { aliases { i2c0 = &i2c0; i2c2 = &i2c2; + i2c3 = &i2c3; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; @@ -308,6 +309,20 @@ dmac: dma-controller@ff4e0000 { clock-names = "apb_pclk"; }; + i2c3: i2c@ff520000 { + compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c"; + reg = <0xff520000 0x1000>; + interrupts = ; + clocks = <&cru CLK_I2C3>, <&cru PCLK_I2C3>; + clock-names = "i2c", "pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c3m0_xfer>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + rockchip,grf = <&pmugrf>; + }; + pwm11: pwm@ff550030 { compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm"; reg = <0xff550030 0x10>;