From patchwork Tue Apr 4 11:58:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreeya Patel X-Patchwork-Id: 79043 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2981226vqo; Tue, 4 Apr 2023 05:19:56 -0700 (PDT) X-Google-Smtp-Source: AKy350ZERsbfPaL3t87U4LNO6x4cluNmJGMngI3fySPwU0sSIQ7fUyYmYb8J1gkQkHERq9Qq9NeQ X-Received: by 2002:a17:90b:1c0c:b0:23f:5a17:ac74 with SMTP id oc12-20020a17090b1c0c00b0023f5a17ac74mr2412572pjb.0.1680610795873; Tue, 04 Apr 2023 05:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680610795; cv=none; d=google.com; s=arc-20160816; b=TV6WZhQkoERas2wknbhfwdk+pnm9JhrJ0gMF+ZdZDyV1skPWIqg4w51MKWyslbjnsH B745K3xqonVfwVEqQeJHFZ0qrnk2lU7gF1Hu0+N8b8QnVaVYRnra47CA75knBlL8di7l 7/6GL/PwcEKqD9gEWYk2S7ZZ+6TopuXZb+e0DzbRuX4Jbs73hF8AWp1Tj1aRmbjQjnQJ vjsFzlfcDqDoKEO/ycpB6zhZr0RLag6O/Ak69+ED8ee5JN7B5FyCClZsvLLou6ws3l0Y XyRY6cthnkMFO+N/ry6Pu6SeGV1iTMTP7bDu2S+/a4Dqn1d5l9Ap9rBiJmbFVQGhIqxD Gc5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9b75PXcLgZo2ui+p6rXTIvtgSnofcOMbdAu36nBgJQE=; b=f7mY/oFG4Niq0TjRfzNpuSOIKi2F03X3HEnXcpP6EIRsaeLhEKkafxafEbvJSCqoYQ E97ipHm/BEtRNuM1Fc66vQp5JQuWTEDX7hoJI/dz9YHUciE7urSHBuPcRb5fVOM8+un2 bPg/EWdNih5qouwMfUl/IiZHwQGkMmDCmuOPjm763ARMyCCN0GDVP22pr3x6sKY45iCp MWHdgyoXDNiker+UMua+VH10pjN4zXD6VJpg7YahsXE6MGMhshJgrjE60laj6gNDexg2 V9KUIzQv/fMGeJdIsUdTKNrcGZc+mwSFOKcUBS3TGIK5SKcnRLfv2i6PuDKzEuRnkEfO 0KBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TesMwdzR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a170902f54d00b001a199eaf57csi4065778plf.404.2023.04.04.05.19.41; Tue, 04 Apr 2023 05:19:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TesMwdzR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233431AbjDDL6o (ORCPT + 99 others); Tue, 4 Apr 2023 07:58:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234404AbjDDL6n (ORCPT ); Tue, 4 Apr 2023 07:58:43 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF6B2D43; Tue, 4 Apr 2023 04:58:35 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2405:201:0:21ea:73f6:2283:f432:3936]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: shreeya) by madras.collabora.co.uk (Postfix) with ESMTPSA id 93EA46603158; Tue, 4 Apr 2023 12:58:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680609513; bh=CsUF6Di6DyBAFY8sgAr6L6XZ0o8G3dhq5m+UPRstjME=; h=From:To:Cc:Subject:Date:From; b=TesMwdzRzzf6fcpSAa3Sg9YYsy8wAVY5ezwOZ4oIoymyT4MuN9+RrouxJIB689zmC +wuXJtesapsTSQFz8xAVDwoiOJs20KmjTThjGNCLXg2T3Hcs5XEqvMUT0WNwyNnzZF llAw+wOxEeztJf18pHnFE4XMa+zzsoELTQEBzqL5KeXb0ZZvlDBIF/enS2LCgQpfX/ EGFnUER2J/Cl9bn75UMTJHjyN8iyJGAOE7Pb1XNtJ82Gb/+RHqFkXnh1ciCu0jlW+N O/FGqKF7GQAcDrs5YeDeelHZWfmm0Ixa/nQ8FZP2VMTZSab2XeFPTmERVsjy0N5cD7 VkWP2lpUMzkZg== From: Shreeya Patel To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, heiko@sntech.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Shreeya Patel Subject: [PATCH] arm64: dts: rockchip: Add RTC support for RK3588 Date: Tue, 4 Apr 2023 17:28:02 +0530 Message-Id: <20230404115802.33693-1-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762248143336600086?= X-GMAIL-MSGID: =?utf-8?q?1762248145802220277?= Add DT node to enable RTC support on RK3588 board. Signed-off-by: Shreeya Patel --- .../boot/dts/rockchip/rk3588-rock-5b.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 95805cb0adfa..a32bfa8d914a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -27,6 +27,31 @@ vcc5v0_sys: vcc5v0-sys-regulator { }; }; +&i2c6 { + status = "okay"; + + hym8563: hym8563@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "hym8563"; + pinctrl-names = "default"; + pinctrl-0 = <&hym8563_int>; + interrupt-parent = <&gpio0>; + interrupts = ; + wakeup-source; + }; +}; + +&pinctrl { + hym8563 { + hym8563_int: hym8563-int { + rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + &sdhci { bus-width = <8>; no-sdio; @@ -42,3 +67,5 @@ &uart2 { pinctrl-0 = <&uart2m0_xfer>; status = "okay"; }; + +