From patchwork Mon Aug 31 07:59:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 11745763 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 60097618 for ; Mon, 31 Aug 2020 07:59:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 390432098B for ; Mon, 31 Aug 2020 07:59:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="uyIEbcvo"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ubMhfIHT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 390432098B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rj2wSVVnm3P/0biS8tr7wr/ovVXniJ81OhxX3B27K38=; b=uyIEbcvofK11XdGn8/I7OhQ28 EGORUb+oQhBQTVn2I1mEbaqnLrXbiBjAbEQLx8GAPbipGXj1i7m8aG7672J6Y5mN7hy2pyxjkPF3I rkZx7j5TTroaiPiZHQlr2MNlAYAi3udgeV6LNMR2qetuDfKXHlyVofyuE2jXcHUnZICUxE+GBZgcX TE8CzgDHsf/TwA6zh+SFoh/EATsq4Pz9zB+lXNkv+yFBDtDFjMy8wYV2MrzcFuv5sTHvtMf4DhFSH lxOVU2mmkp5pmyp4T5E54lgr+n7VhAV/fBh2T6CJSVlvcJC1YPOjFBDeuadTUcg2WPUR8LEU3KMJ2 oBSwBj+2g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCej2-0005Ie-3y; Mon, 31 Aug 2020 07:59:36 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeis-0005FV-Vn; Mon, 31 Aug 2020 07:59:28 +0000 Received: by mail-pl1-x644.google.com with SMTP id z15so2645765plo.7; Mon, 31 Aug 2020 00:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=00MyXJ6K5LmM33RR3H14Ts0vy+UoOPF4hpTglXJoQeQ=; b=ubMhfIHTSQklK0RqOD06+Iu3684jG6lmb3Y59x2clNGVhiqin5O0wtrCB24ubDABiW 5BXt5wrorqYiwiEPQrnEhe9dZnrb6VedJv5DpaUzE4x2yrcG511YO8hVRmn8dHPpkqoM 1Hmz/7kyjI0D3nQRKFzUGZc27BwZnqF4FWrJR0zEaVyQOD8O9rcuI6QNYvGlJMrFeXFm q4sUwco7hVF1I1AXfopJ+i3jpRMIjTX/08FN8SN9S2oXV+l2u0Z0bpqGlQy3Suxj57xR VfVMEpDCFbT+junAnKEkEwwQwiAEQ6UOonqDEP62bKp5PKs7//NFRfDjHP8ZgKNXLMEr yvLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=00MyXJ6K5LmM33RR3H14Ts0vy+UoOPF4hpTglXJoQeQ=; b=ryAt6Zrnrr64Pngwwa/srhI+WO4XR4xCtOgiOX7hy5qedcbbjHKvbJTmWYsHRA20DY P/BsAMPASLJ05BNxrXSfAowdQicA0P8XokLIsevohmfZkzwg9j9I/O/Hewtpt/wlhhRK gpmwqmvspSR7zrfED51aAOg92gmahyuLKaIowY/ZQTJopQ4hQ3qCoYiDvJFq+fGJesuy DZI92hngy7xgMyeu1MwNWW4XeDgoxajdoqC6Gd5kbQap4Qw6DMh1j1uOutm1mNb7XfbT 7b572VMyNl99kGR55JnfP2p9AAjsomm3G7+TzHRrA/RwjyCrH04Vybzxln9SCJrXVilb ipcA== X-Gm-Message-State: AOAM530UHvk3G1Mz3Zz5h0keV1/tHe8G7Fr3r6oXTAY6e/0DRn+2OfKC vBpa906Fv2zAWtj/yw4riK0= X-Google-Smtp-Source: ABdhPJz8TIKyZLdE8Z9zuqnbRadotw69oPm7TqP48nNCS+hlOC5bVhWY0+3P2frjeHOQUr1bPHty3A== X-Received: by 2002:a17:90b:384b:: with SMTP id nl11mr283434pjb.91.1598860764669; Mon, 31 Aug 2020 00:59:24 -0700 (PDT) Received: from localhost.localdomain ([45.114.62.190]) by smtp.gmail.com with ESMTPSA id g19sm6424057pgj.86.2020.08.31.00.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 00:59:24 -0700 (PDT) From: Anand Moon To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Subject: [PATCH v4 1/2] arm64: dts: meson-g12b-odroid-n2: Enable RTC controller node Date: Mon, 31 Aug 2020 13:29:10 +0530 Message-Id: <20200831075911.434-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200831075911.434-1-linux.amoon@gmail.com> References: <20200831075911.434-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200831_035927_128503_A9BA1F03 X-CRM114-Status: GOOD ( 14.76 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:644 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [linux.amoon[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Martin Blumenstingl , Kevin Hilman , Christian Hewitt , Anand Moon , Rob Herring , Jerome Brunet Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Enable RTC PCF8563 node on Odroid-N2 SBC, In order to support the RTC wakealarm feature for suspend and resume. Also assign an alias to the pcf8563 to rtc0 and meson-vrtc to rtc1 timer device to prevent it being assigned to /dev/rtc0 which disto userspace tools assume is a clock device. Cc: Neil Armstrong Cc: Kevin Hilman Suggested-by: Christian Hewitt Signed-off-by: Anand Moon Reviewed-by: Neil Armstrong --- Changes v4 --Add gpio interrupt for GPIOAO.BIT7 as suggested by Neil. Changes v3 --Drop the INI GPIOAO.BIT7 pinctrl. --Added missing RTC alias so that rtc get assigned correcly, as suggested by Chris Hewitt. changes v2 --Fix the missing INT (GPIOAO.BIT7) pinctrl. --Fix the missing rtcwakeup. --Drop the clock not required clock property by the PCF8563 driver. --- .../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts index 34fffa6d859d..3e2aaa6f48e5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts @@ -19,6 +19,8 @@ / { aliases { serial0 = &uart_AO; ethernet0 = ðmac; + rtc0 = &rtc0; + rtc1 = &vrtc; }; dioo2133: audio-amplifier-0 { @@ -477,6 +479,21 @@ hdmi_tx_tmds_out: endpoint { }; }; +&i2c3 { + pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; + pinctrl-names = "default"; + status = "okay"; + + rtc0: rtc@51 { + reg = <0x51>; + compatible = "nxp,pcf8563"; + /* RTC INT */ + interrupts = ; + interrupt-parent = <&gpio_intc>; + wakeup-source; + }; +}; + &ir { status = "okay"; pinctrl-0 = <&remote_input_ao_pins>; From patchwork Mon Aug 31 07:59:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 11745767 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CD11A618 for ; Mon, 31 Aug 2020 07:59:59 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6D142073A for ; Mon, 31 Aug 2020 07:59:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="f6Jpwvqs"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Gw+iV3VC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6D142073A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3o64wtbovZuea2GOuBpQbE8s5AQnR8exhhAgWx07N50=; b=f6JpwvqstGCRqqXEmf6hlFGiq h8YWHHP43t91ottXLIl6fQ/emj/Q4enzjRLyZ30ynX684egK1k4wfJcLLqiAUNNmXWdgE9Ex6WU5N Lt9gdu+Fj6THA/Vtf25CdHBpxLOXoQjsIF28i6DqVJyLJun1UDOGoe3WMlWBC7caQbbP6ipUj4v4y B1PutbqloZSlzxhgBkrHxZUusebnqSAl6RCF9aGvc19q7Gbcx4u52PBDzYZBLGA+Dg1uaF5ffX4Vh jdhc9focowNqOChyMua7k/PR4QHRYk9Vg6/DhCqFumSg6eDtfR5eigLntoNSIVCtlthkSMWcQ6Oei 2q52GROiw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCejC-0005LS-Pc; Mon, 31 Aug 2020 07:59:46 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeiw-0005GJ-19; Mon, 31 Aug 2020 07:59:31 +0000 Received: by mail-pl1-x643.google.com with SMTP id y6so2639437plk.10; Mon, 31 Aug 2020 00:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k+B4CdFk9Gd+ps9B74oSqsmnwlY3UVt8wl1Elm8SmY0=; b=Gw+iV3VCzPbHdseLXtIBeU3Mi7xPaq7mLlHGZet4W5Vg44/+hSefO84DFwQRuR4NXB WnMmQeWlrhuUj644V+h2MjXVjaPCXemYHe4U69QAzPwW3oOK2mHIetBGHyT73gRHvLyt Rm01QODybCqKg+fpieLU/TT9sQtmPdpe1iDOHN+k6oGY+8PRqiEADweuFpfOd26Mp9mA Q5pkTgx4rOzgNhutl0GV0J5T0DuK3lckh/Jcmtg1KSpA3XTCgmuc1Daem+Q8gw7dFg0J T44BvpbZ4jUSMkiEB677FEZMEig+U0+9FocZcu+6JhpCF5OSCP7Eq5+IKiOVYLK/Yikk 3VKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=k+B4CdFk9Gd+ps9B74oSqsmnwlY3UVt8wl1Elm8SmY0=; b=akSJFI0FD+SIvdVEMImOdg853MRJXRUrc/gd6Sdfyqd4u5ljHJgCEaVZ4egqGEho94 sLnhNrz+fy3Be9JDkqivomfvnalh8mbi8LCXucsXpE3uellqaQCl/t0Yrpa0d485aK8S a5o+k55z9aV8ii4vyABuSszfurQT8S2uMRZQNuFUghVS/wOZhgpH+5XiaBt6IPuNYTNR Hf3JoummrJbUmNMMQ/tob8vt9sOwhsR9OLpeUDinOw3s2hxKTpma9wk9w0lRrG2fw9Ou xuBpmqSQ/E+7O4KUWJ2Byr/QDhb4NuzBzRShNrSPJT5jGDbkK1zd0RNIbBy3Mhe/xHj3 egYw== X-Gm-Message-State: AOAM532/Ln8O7kGKhI06MKKQhFdNDNRYn7kuYJotDxSyVBRx1EJXGqu4 3JtlSo0tmGEtqzAFNqUdxjA= X-Google-Smtp-Source: ABdhPJxM1akzJJ5PBiQPJSLV9xRX13Xf2FYVn00D9IOJBlm0VjEUERTaIw4zRZS87qSvtuFemOdjLw== X-Received: by 2002:a17:90a:d18d:: with SMTP id fu13mr290077pjb.137.1598860768201; Mon, 31 Aug 2020 00:59:28 -0700 (PDT) Received: from localhost.localdomain ([45.114.62.190]) by smtp.gmail.com with ESMTPSA id g19sm6424057pgj.86.2020.08.31.00.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 00:59:27 -0700 (PDT) From: Anand Moon To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Subject: [PATCH v4 2/2] arm64: defconfig: Enable RTC devices for Amlogic boards Date: Mon, 31 Aug 2020 13:29:11 +0530 Message-Id: <20200831075911.434-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200831075911.434-1-linux.amoon@gmail.com> References: <20200831075911.434-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200831_035930_155469_99BC8870 X-CRM114-Status: GOOD ( 13.90 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:643 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [linux.amoon[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Martin Blumenstingl , Kevin Hilman , Christian Hewitt , Anand Moon , Rob Herring , Jerome Brunet Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Enables the RTC PCF8563 driver used on Amlogic Libretech-pc and Odroid-N2 boards supported in mainline kernel. Cc: Kevin Hilman Acked-by: Neil Armstrong Signed-off-by: Anand Moon --- Changes v4 --None Changes v3 --None Changes v2 --Added Neil's ACK --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index e0f33826819f..3d9756833e0e 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -773,6 +773,7 @@ CONFIG_RTC_DRV_DS1307=m CONFIG_RTC_DRV_MAX77686=y CONFIG_RTC_DRV_RK808=m CONFIG_RTC_DRV_PCF85363=m +CONFIG_RTC_DRV_PCF8563=m CONFIG_RTC_DRV_RX8581=m CONFIG_RTC_DRV_RV8803=m CONFIG_RTC_DRV_S5M=y