Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp362674rwl; Wed, 5 Apr 2023 01:34:35 -0700 (PDT) X-Google-Smtp-Source: AKy350Z31pHZncEwy8Trpf77m+CFp4P83ckAQRS+rW5l8Dw+Bz9uc56C3tUsPhKY7SXEOPMUQXPw X-Received: by 2002:a17:90b:d87:b0:234:67ef:304b with SMTP id bg7-20020a17090b0d8700b0023467ef304bmr6001237pjb.37.1680683675119; Wed, 05 Apr 2023 01:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680683675; cv=none; d=google.com; s=arc-20160816; b=a8Qn8OFIwnopdw3ylefb1eqSfAnAs7wy2NtPfVRrpjK19WMzwwzV00TMibbycNimDv YIPOKqZFSTHywk8fkWC8/6XktG64KF/w23CoGdK37nZjgy7sNFy/FVFzBuqvUtctH/zL DHW9JbZJU6dMM7yj//1VCZEkljyeJzY1UpYnERZy+7f6xAtFklT6XIhk8YbgczMTd0NS XcKZwDZmoHFVNBbKG0/v0CfSIu1kBVaoGlHSZF9oYMX4DREbAsC2/Pux8Sr2bs+BiYzH yVvm0ucX8zhCEjbLumR1DnK5lOP+goJV3o1pBfhuPAG2FyyKKJcni5YGDcGbcdTer4t4 byIQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a170902758300b001a25fe2f0e1si11619481pll.95.2023.04.05.01.34.23; Wed, 05 Apr 2023 01:34:35 -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 S237148AbjDEI1n (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 Content-Transfer-Encoding: 8bit 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 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; -- 2.30.2