From patchwork Mon Feb 19 22:34:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammed Efe Cetin X-Patchwork-Id: 203300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp73874dyc; Mon, 19 Feb 2024 14:37:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW09ag36ipPq93GgQGXgoaQEtZcboQwzbL9Y6P9koLKtu3EHxVfEDsn727O63ckIUTk4ikEOtRLc4q+ehB8bQYTyCe5fA== X-Google-Smtp-Source: AGHT+IGRMwXSiUAHhgKH2hTAyx7SJ7GDULkt9IR0J8bBF1Sgx2y82NCC0ggcteYktVXgqWdfA3es X-Received: by 2002:a05:6a20:f388:b0:19e:a25e:744a with SMTP id qr8-20020a056a20f38800b0019ea25e744amr13758593pzb.34.1708382242325; Mon, 19 Feb 2024 14:37:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708382242; cv=pass; d=google.com; s=arc-20160816; b=gmpIxC1ySMT1PAUQeWHRQdp5HkEjILzp/X65KTVVUT89wRFhct1JrO0TZfSTTi+TuW 7h1ubmddxxMQexG3uKUQvyJ8Eex8rSlNSOcE1y9vbnDD9G+2gEjXEqTrWpyQe+s0Omaw MZiXvl+4wC9isHYgs+P5VJKSKfDM7H2CYkZwnfjMc7BHHgW+OlHjeWEUuHMhlvPAgtDR SC/pkc7TGANpryLMM7gky8yK6oahk1176ne0NsMWP9TZnYzl+MADIoNYrs0hh0kZ+GUA C5NLoW2OnNsM4AA6whc1rMaZdx9D908/t/UCDreL0YUIp2dhXPmluGsSFIw6LkWlT9E/ vA5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tjOeEAQ/Gd5EHzC20z6YlhmTnhYEtnY97/66ZuEpgP0=; fh=V8Ef4H2uJkQZDuPIgc3s0n5U+QDYdOIQgtOD60pTxX4=; b=YQmXPTH79geCXx50eup7/uNIR985zg8s+dMRPJVPSclNqwZDRjeZu5X3TizJNYyW97 IuaTGz5Eb5AYdGSv4KCgaGk5IHFc6cqHvLQk2Sv5vpWH/T4eTkh2G/HY7P1ALqab7EmU HXxtOICaRJCbtlpFr/MxDVGp2JFiI9mfP8UBhQrthzItWXWzKQngidrLdr7Ajqwi8qhF nOFSQlCpQRs/nk1Jap4vJeGCncgbX2MKsY9sMU67zzNjNdOEsgVB3RedzxTUFuIiMKuR WbhBUBSP49miUbDlS9lhTnpm8ufmfx2EDC7edNvBmbPAb3BjCUWF/fQXJdqPJ4hN+32X fjYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@6tel.net header.s=mail header.b=COeQMxXC; arc=pass (i=1 spf=pass spfdomain=6tel.net dkim=pass dkdomain=6tel.net); spf=pass (google.com: domain of linux-kernel+bounces-72072-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72072-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s16-20020a056a00179000b006e032e63f61si3496628pfg.251.2024.02.19.14.37.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 14:37:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72072-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@6tel.net header.s=mail header.b=COeQMxXC; arc=pass (i=1 spf=pass spfdomain=6tel.net dkim=pass dkdomain=6tel.net); spf=pass (google.com: domain of linux-kernel+bounces-72072-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72072-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0DC3028332A for ; Mon, 19 Feb 2024 22:37:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43AB25A0FC; Mon, 19 Feb 2024 22:35:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=6tel.net header.i=@6tel.net header.b="COeQMxXC" Received: from forward502c.mail.yandex.net (forward502c.mail.yandex.net [178.154.239.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01FB856B87; Mon, 19 Feb 2024 22:35:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.210 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708382131; cv=none; b=lZiN5c1BKAK875eo1iYg+TvWuxiNrkmwy03HvRwK8O1WbsGxZY2LOQG8XzkRxODjcxKxYXJy3TYD78zIc6u06rglzzl9QKs3mJ3YVYo0e0v1qTD6KWC2xtu0p4pQLribNp0WqE6HUiBcT29Q94QhIJFm7syhFqK4VJ9U6zoMF1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708382131; c=relaxed/simple; bh=9kzD+xHSBMYRQ3AfdceDMPo82fl/t6sSn/swEFrNv3k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lem93MFd6ILQGo3lofRYUXS5oLn8XbS6ZHNOJrwpHSZVr0HHZBfbCTUgXukrDvGLwogfK51DrzwddE+8zQlFZw6bt1k7BwJU9PiDBLdlfIt3QsNGEWMD4SkHvviClGPXh9IrbGc8z9DcVr+3n0DbvCpza/wvoT5q4ico41uUd0Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=6tel.net; spf=pass smtp.mailfrom=6tel.net; dkim=pass (1024-bit key) header.d=6tel.net header.i=@6tel.net header.b=COeQMxXC; arc=none smtp.client-ip=178.154.239.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=6tel.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=6tel.net Received: from mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:3285:0:640:fd1e:0]) by forward502c.mail.yandex.net (Yandex) with ESMTPS id 0E82660F86; Tue, 20 Feb 2024 01:35:28 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id bYZIDNh7RSw0-8uC7ISLC; Tue, 20 Feb 2024 01:35:27 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6tel.net; s=mail; t=1708382127; bh=tjOeEAQ/Gd5EHzC20z6YlhmTnhYEtnY97/66ZuEpgP0=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=COeQMxXCKQ43K+rRMKwHrtY+skG2ILaQO0qPV65mVLYCvNWCpvJ2KctR6Fg3nqya1 2WF56xkoG1yyKDsK9axNl8ds2BXOAefaR9L5aAcEYXXcsLr12rAWoV0gKIwlri6Uq7 9Pw+J/oLSXKV9OphJ9Bzk93sak6LmJ6+OXbx1ywY= Authentication-Results: mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net; dkim=pass header.i=@6tel.net From: efectn@6tel.net To: linux-rockchip@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, heiko@sntech.de, sebastian.reichel@collabora.com, Muhammed Efe Cetin Subject: [PATCH 9/9] arm64: dts: rockchip: Add RTC to Khadas Edge 2 Date: Tue, 20 Feb 2024 01:34:25 +0300 Message-ID: <4c4c9140ff36f290ba64ecc8b3e218df6a5ab273.1708381247.git.efectn@protonmail.com> X-Mailer: git-send-email 2.43.1 In-Reply-To: <5a7bd2cd8703e51382abfc11242de59d45286477.1708381247.git.efectn@protonmail.com> References: <5a7bd2cd8703e51382abfc11242de59d45286477.1708381247.git.efectn@protonmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791368618444041343 X-GMAIL-MSGID: 1791368618444041343 From: Muhammed Efe Cetin Khadas Edge 2 has PT7C4363 RTC that compatible with HYM8563. The RTC pinctrl is also connected to MCU. Signed-off-by: Muhammed Efe Cetin --- .../arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index 767e21b2dc34..2022a174594c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -216,6 +216,18 @@ regulator-state-mem { }; }; +&i2c2 { + status = "okay"; + + hym8563: rtc@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + #clock-cells = <0>; + clock-output-names = "hym8563"; + wakeup-source; + }; +}; + &pinctrl { vdd_sd { vdd_sd_en: vdd-sd-en {