From patchwork Wed Apr 5 08:27:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreeya Patel X-Patchwork-Id: 79502 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp142871vqo; Wed, 5 Apr 2023 01:35:04 -0700 (PDT) X-Google-Smtp-Source: AKy350Yy/iLB+QqzkQAVA9mngOi/9qfIFhRtq1n3CHGsfzJ1s6iajvB8J9s/z5f5m+sV2QMZsnz+ X-Received: by 2002:a17:906:da0b:b0:8aa:be5c:b7c5 with SMTP id fi11-20020a170906da0b00b008aabe5cb7c5mr2350943ejb.41.1680683704104; Wed, 05 Apr 2023 01:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680683704; cv=none; d=google.com; s=arc-20160816; b=vRvSVINmFYXP+2hoanOry8sMCGyAreNKnxK56S8zLA4xPth6MLkm5J6w3+qKHTIuLH 0onc5ZQf57NXv2debDzdB3nsKxsYUDtB4wEi/5ObcXt3+TKDkM6WGaJ4hrFCwzRLofYY KLSAn5cMXKAJ7ApLCHYsEut48LzRQJ4e6uXOX3jKafkF2o9l1Ml5byQ5rZFl5VRoPg08 +fKRXoKLtKU1R+i+g3db5H4Gzq0zh10d/kavyncgAfLjqIB2xY4U69mP8XGw3G93/2IG kYT1MU1PnrmD+3k0mI3pTLGc8vXqHO/yDIw3ZrIO/fibBwAWkk7kzvwMyGuDSkaBHtwJ ohHA== 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=6iOAFKpM4ZDrfnD43lmBXeFo8u1xMW86NASJPW3zlMg=; b=PZtNwkUHwx/U8N1V5LKhVpQtRem5nk/AKlP1B6siWToOQty/crtkn6CeQ+K2ozvPiU n8xbsIAoehs7vyPHQwNcnlXX8WEiKP7XSmi1FupF0g182F8VTUIWLNT2lCdoCU6Qtk20 UykO3QYP15kansC7YGWYLHID8L/d3M9bNdKAi3RPwqkbj+2vCVUChl5Ax5ZeVNn5YHpR axKnbk+lHiw8cDtCv2o+Qw2n2UWY3FPFuesUhU/euND2OmMSFQkRqjTPS4f4BA1dKvX5 d3sF931ePml2PQjYUG4FR6RT4vqBATong/ZDe4qZerciEhCP3bfkgt1HJ3uShy8mx++2 vGaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QcVBuLpv; 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 gy23-20020a170906f25700b009453c587601si2694753ejb.782.2023.04.05.01.34.38; Wed, 05 Apr 2023 01:35:04 -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=QcVBuLpv; 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 S237290AbjDEI1n (ORCPT + 99 others); Wed, 5 Apr 2023 04:27:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236804AbjDEI1m (ORCPT ); Wed, 5 Apr 2023 04:27:42 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC841BEA; Wed, 5 Apr 2023 01:27:41 -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 0B3B26603112; Wed, 5 Apr 2023 09:27:36 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680683259; bh=PZ1ID2Zw3PwezwwvcnYi3Nauvrfa7qCQvMEH4PdczCQ=; h=From:To:Cc:Subject:Date:From; b=QcVBuLpvczD59XicL2WXQBYFR4gr0aeRvE0uqJVBzmC6RUm5JzFq5QGtHUvCgksFA x+dpafbaEOS7Pt8RmuWS1KAXu9OEedmsLUdDwFDg49DyxUX2VMjD2obIqZ1nKx/s2G eTkpAEzrRHP/UWdRPKIZQDu6FhbsyhniKJXBgZN75sbcRjDajA1H+c72ESWZQu1n4p Tq4fewmEqXuiP6dvXZdDcSSYQsXlf/3YD60CoOHgXPGdFeMbX5s+nSKNeZjFgJxNxt fGHC+qTfeLBo3F5m+T+eOAwvgfh0CGxng4/112U1ScVsrjfPuI8dKhUnpdxfPwaoBg pePa7Jd/bQ0qQ== 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 , Christopher Obbard Subject: [PATCH v3] arm64: dts: rockchip: Enable RTC support for Rock 5B Date: Wed, 5 Apr 2023 13:57:11 +0530 Message-Id: <20230405082711.46303-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?1762324595516648335?= X-GMAIL-MSGID: =?utf-8?q?1762324595516648335?= Add DT node to enable RTC support for Rock 5B board. Signed-off-by: Shreeya Patel Reviewed-by: Christopher Obbard --- Changes in v3: - Use a generic node name. Changes in v2: - Make the subject and commit message more descriptive. - Add a Reviewed-by tag. .../boot/dts/rockchip/rk3588-rock-5b.dts | 25 +++++++++++++++++++ 1 file changed, 25 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..e63138eb7e8d 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: rtc@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;