From patchwork Mon Feb 11 09:21:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10805315 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED73F1515 for ; Mon, 11 Feb 2019 09:22:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA75A29AF1 for ; Mon, 11 Feb 2019 09:22:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD77129AF4; Mon, 11 Feb 2019 09:22:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6E23529AF1 for ; Mon, 11 Feb 2019 09:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=cxZiwJ80YJZipHh/ggt/J8L5IrMcgH49J7DOdvRCHvk=; b=gV3vGTL0BVB+QnUO4I83pmnfRE QS+uUw0aM3SBGKiuhnN23DDpMGZTUri+fMGT1teu8w43ZWTxJthYN7a98MET2cORRTBHhoBcJ1VCw +uyjKSdbs5R1OYt3oOLxKk7M91HsTELp6Ka24TbyQuel1l8JE/bLaSjmVwvvU9rfA0BxJrkm0MlQ4 da6YyoXGDo6lw2AtwBbYibXvKwvG16Yr3hlf0qvovT0WDmrozSr7xHNBVPCqiZKAodbGL3RrYlIjD VYGZMXX0cM0b1s/KR9/1jJ+mCTXQj6TOt0NNhCU5gaub3BA2BUz7LFLLuY+RCEEFjEXYp4QL/82Jt e3EFvUZA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7ms-0007lb-FU; Mon, 11 Feb 2019 09:22:02 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7me-0007YL-Fg for linux-arm-kernel@lists.infradead.org; Mon, 11 Feb 2019 09:21:49 +0000 Received: by mail-wm1-x343.google.com with SMTP id b11so16216819wmj.1 for ; Mon, 11 Feb 2019 01:21:47 -0800 (PST) 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; bh=JOM18/2JI/XRqmtoCiSEfwWrBMkMvuRt2TRd7mJVRjI=; b=d/QhhZrYnhRw+rD/kN8Q0NSqsLHYO8JFZqmcqCz+MvyTEk5ClAjLS2Bjm9gU999leo TEky8slQIZbooNvaAti2WY+VvjNmcPmyqkNYwMkaqrkCn82uzjbawATJBWBarIX42bk4 OIbnjGzy6tf6A3KacgEAlv3ZvJb0tsEc65exBXUHBzRf/bAO/aAGw1awltrOGX+ENudR 5aIh3OFMeTRDugdblEwdpMF7xwryeKlT2wP50q5O1AlINQAco1aEFzVDV0Xv1DmME8Pv tT04sXUeIwkR0UqYhbCuZxpeuW0RN1syyg9/dvZcdN1l6b+qaE+P8HJoryqTFTGSIQ1H l5oA== 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; bh=JOM18/2JI/XRqmtoCiSEfwWrBMkMvuRt2TRd7mJVRjI=; b=jRuLxwHSZ/SZ/prVPdMaCc6x1wknMkWBQagrVBOCRuQQ5f3xna/WDJjxK5cTjxK2hI EoUbjPXE5iTbDuDvSdgozLLuX8cUu+pkkMbSSzDvJenxldfHO3MxG1ddHVFfgYOheRWb Vr+zYKI+o0YGeCJZa/2sqW9ckkCQCBTZNwgBJhWKAUZiK0jx40Mjc8n2VDtITMYjsDWD Zv01/VSRuPIZOTJyzRS21kIU3Hz1OzBOYFOJuoRKCKFLBBYfWfBa3mZ9atLxDBMYThIp Ovps1FgHKf4Z+RLm9iDK5xs7LDi9o/tPP/i3QG6rxkMLHxpNHmQsFHltdfTCEntnQgX/ 5t0g== X-Gm-Message-State: AHQUAuYX/6L4NfPbLLt9CnAPjADBsEkm5WWfDxa+qQk73Z1LxztdaSDw nJ7x74GGW/IqJObDTi8yYOo= X-Google-Smtp-Source: AHgI3IYw/k+kQXFFJH0VPzoQMV+1Wj7RkmesoDxp//a3KMm1MSI9pUhSfkOM+eFFGG0+ZK3p4tlkUA== X-Received: by 2002:adf:efc2:: with SMTP id i2mr8358239wrp.44.1549876906593; Mon, 11 Feb 2019 01:21:46 -0800 (PST) Received: from ThinkPad.gtu.edu.tr ([193.140.134.118]) by smtp.gmail.com with ESMTPSA id o7sm11388979wmc.44.2019.02.11.01.21.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Feb 2019 01:21:46 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 1/7] dt-bindings: timer: Add Allwinner suniv timer Date: Mon, 11 Feb 2019 12:21:07 +0300 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190211_012148_525583_08636C6F X-CRM114-Status: GOOD ( 12.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mesih Kilinc , Linus Walleij , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add compatible string for Allwinner suniv timer which is similar to sun4i timer. Signed-off-by: Mesih Kilinc Acked-by: Maxime Ripard Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/timer/allwinner,sun4i-timer.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/allwinner,sun4i-timer.txt b/Documentation/devicetree/bindings/timer/allwinner,sun4i-timer.txt index 5c2e235..3da9d51 100644 --- a/Documentation/devicetree/bindings/timer/allwinner,sun4i-timer.txt +++ b/Documentation/devicetree/bindings/timer/allwinner,sun4i-timer.txt @@ -2,7 +2,9 @@ Allwinner A1X SoCs Timer Controller Required properties: -- compatible : should be "allwinner,sun4i-a10-timer" +- compatible : should be one of the following: + "allwinner,sun4i-a10-timer" + "allwinner,suniv-f1c100s-timer" - reg : Specifies base physical address and size of the registers. - interrupts : The interrupt of the first timer - clocks: phandle to the source clock (usually a 24 MHz fixed clock) From patchwork Mon Feb 11 09:21:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10805333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E2149746 for ; Mon, 11 Feb 2019 09:22:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0C1B29AF1 for ; Mon, 11 Feb 2019 09:22:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C509F29AF4; Mon, 11 Feb 2019 09:22:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6FD3329AF1 for ; Mon, 11 Feb 2019 09:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=/GZ6xjgCbKDuhCHe+NuZZiy+LgD5AK6HjCpcL6RTenI=; b=MQTGUE7ZjhCmbcz5C3pFYOV2Zx ymfV2vA6xbroj91SrpN0TsMgWK9MpP70XmJMaNrdT67+3+1NRHdJSZQoJr8MMas8Zb+yZnYMTc4Fg EMeiKxlo6vQSaOGTj+ayxshvoacfRR1l16JgMvePsY3eNsx0dnWJh3BSoDe0/PLhgXob+QAUl9W3X WypRypDmn07hpEcBXFl53ucgzuUx07t8VJUD8S/VsAtkVndbtk543i26NlgVAj9lPOP3i7/2FQHsK OCQTUx8YjnpQ0bgotyugUYISceXJMU9QPTrxE6MHmbo+tjWZgWLfz/3ZiMIp7OmsbQGThlyRHXMXS fn3eqJkA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7nH-00088a-1r; Mon, 11 Feb 2019 09:22:27 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7mf-0007Yl-Os for linux-arm-kernel@lists.infradead.org; Mon, 11 Feb 2019 09:21:52 +0000 Received: by mail-wm1-x344.google.com with SMTP id v26so15695203wmh.3 for ; Mon, 11 Feb 2019 01:21:49 -0800 (PST) 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; bh=KC/AZsTOApyaTqdtOdp5tkyz0s01W2GX9aJLAHDbvJE=; b=oQMjz2Ti6vIJSwIPb1JjTvnEkDvE4WmacA/olAy5EXdv1BJcFqSUV3fYWQ8Nm0gv+q 2G7CvPwo1POSa/E/7vStj6zIC1YTnBhYvkJYh3CYbwoySIM/WvmLUfy9Wl031rQ+TBfJ GBZNAufAnUy0Sw9CJNjHfkbZeneUqwFBYP1IdTkGHYeJftcgGe6dzsJE02hHa27u/ZYE /EST1NN6r63Dmw72dWuC9GX5W2e3+F5eylGhlwx7wJ9TSu3OrD19ZHg3PQMeysV8w41J MLT4bDNGjEOkWMl2qzYfOgaHOh0rxd03lvBXjLyiV2BYDbsABkNHZ35BajRjC4ciQNeT 8nUg== 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; bh=KC/AZsTOApyaTqdtOdp5tkyz0s01W2GX9aJLAHDbvJE=; b=hgtwxeFI4Fc1mvbF3Kq+stg5/1fwBjS9Ho6OQMRTaDTULIYYFVEnSoAapZCMJ3Dubm Q1wSWnK+zMfT1GRB5xUudjAwylvzqpy2wtwlU2JYiMndUrTk/7c5EY0FJrCMTb4SQBXr 4yyY8COqZSnleH1ljKKFqXbi3q/msZDXejTGVcRCvlDmt2e8huqTf01ijvJyFYxQNz2r Vd0f5OTErfJiapy4ZoSELoVzC7AtvE1YN2E/7UHwv12KhgyIOIXnsb14V3jrc0Ohxq25 Udwhkj5Dt4BJ+00syMX3eWX1oB2z0Cx8lUL0VhCEjqcIICyDSzhMwllkx1Wl394DBBqE BCjQ== X-Gm-Message-State: AHQUAuazz2RsUTlp+Ml5kn/Ntb3O9lBuG0UykueXtBar/Ic+GjjmH/l0 tfCFWjZZ7FaqpNfl9bhCi3g2wMqdWRs= X-Google-Smtp-Source: AHgI3Iav4KUl6LXM67xdIp/EY3zzphMUhHg7AMKdPC5yWa7zgAoIgZMlhZkrFCBd4/uhYjyzZHPGcA== X-Received: by 2002:a1c:f613:: with SMTP id w19mr8322318wmc.0.1549876908205; Mon, 11 Feb 2019 01:21:48 -0800 (PST) Received: from ThinkPad.gtu.edu.tr ([193.140.134.118]) by smtp.gmail.com with ESMTPSA id o7sm11388979wmc.44.2019.02.11.01.21.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Feb 2019 01:21:47 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 2/7] clocksource: sun4i: add a compatible for suniv Date: Mon, 11 Feb 2019 12:21:08 +0300 Message-Id: <3de720ad1d2b47bf987fa56076d570de8043ed35.1549875778.git.mesihkilinc@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190211_012150_047748_002FA5EB X-CRM114-Status: GOOD ( 13.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mesih Kilinc , Linus Walleij , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The suniv (new F-series) chip has a timer with less functionality than the A10 timer, e.g. it has only 3 channels. Add a new compatible for it. As we didn't use the extra channels on A10 either now, the code needn't to be changed. The suniv chip is based on ARM926EJ-S CPU, thus it has no architecture timer. Register sun4i_timer as sched_clock on it. Signed-off-by: Mesih Kilinc Acked-by: Maxime Ripard Acked-by: Daniel Lezcano --- drivers/clocksource/timer-sun4i.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-sun4i.c b/drivers/clocksource/timer-sun4i.c index 6e0180a..65f38f6 100644 --- a/drivers/clocksource/timer-sun4i.c +++ b/drivers/clocksource/timer-sun4i.c @@ -186,7 +186,8 @@ static int __init sun4i_timer_init(struct device_node *node) */ if (of_machine_is_compatible("allwinner,sun4i-a10") || of_machine_is_compatible("allwinner,sun5i-a13") || - of_machine_is_compatible("allwinner,sun5i-a10s")) + of_machine_is_compatible("allwinner,sun5i-a10s") || + of_machine_is_compatible("allwinner,suniv-f1c100s")) sched_clock_register(sun4i_timer_sched_read, 32, timer_of_rate(&to)); @@ -218,3 +219,5 @@ static int __init sun4i_timer_init(struct device_node *node) } TIMER_OF_DECLARE(sun4i, "allwinner,sun4i-a10-timer", sun4i_timer_init); +TIMER_OF_DECLARE(suniv, "allwinner,suniv-f1c100s-timer", + sun4i_timer_init); From patchwork Mon Feb 11 09:21:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10805335 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1789A1515 for ; Mon, 11 Feb 2019 09:22:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04EE529AF4 for ; Mon, 11 Feb 2019 09:22:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA96529AF6; Mon, 11 Feb 2019 09:22:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9C92F29AF4 for ; Mon, 11 Feb 2019 09:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=BW0y8RzWXL5Xia0IQ3vzXg3WZt5t41UooHRHPWN5cZg=; b=pII2YhRvQlfWr3vU+iZBFD+Rjz aX077LyhK72wK5KaYpOOHVpPvxYHF47Qv1vX8ptMCFkXup7f4y/OO0M9Z/qa5Lmp5LzyErwxYHWaW Z5KNKw9T2gYPEzpVjdjYPk45DxM/sZieex4uKYTleh4mzn5/Z9udqw2frGKvXjOXsyXnGvNkJxpmm wx0z+vfnvhwsUafUJerWbw0gC6EPpri5XE7Aw3mTFyYlwmEFi+Iw0Y5R/jHUT7HWwYFEHAebNvSjK iwG7RZEE3PRm7ZA9A4/msxuDnZ8t2tJJTikd3BLyxWUJ9Mq1evACO/LBkjzJuVr7JBao7oI4FsoiL MTFsFIBw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7nb-0008Rb-2U; Mon, 11 Feb 2019 09:22:47 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7mh-0007Zg-97 for linux-arm-kernel@lists.infradead.org; Mon, 11 Feb 2019 09:21:54 +0000 Received: by mail-wm1-x344.google.com with SMTP id y185so13928448wmd.1 for ; Mon, 11 Feb 2019 01:21:51 -0800 (PST) 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; bh=kouOcgNi61HTRl9hVkQr6BVwZ6zXz4ll84P22bRURRY=; b=nxZ3E1TEGoQjfdA8uEkVGBINdi30O9EuQ/4tMIcDcZHxYSh5WvSlsOvgCud3kcuSzg 5rXlmZ1z0I1FV0VhYkz4uezpr2SlxjE0/claa4nMeSU2MigRU56yXDepa/EVFTO6UXgE usw+y79CTHwNlYwmLmm2yOLyTUBPa84Ija/Zd1NvuFTuHrjMiQLVSD0ZbSH4pb9QdbHm jVwH2Mw1KSIPEZ6v69uVzsyqh/nJj0AczX0AAe40ioZS7QwQ1fM7FcTz8D8Oyblhx5ut izMBDzvlc3MetW20GxidHULJGVzT+EyHmZKg+RUyvqFtmMToouev9/tCfwUooQjCycm7 M2Hg== 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; bh=kouOcgNi61HTRl9hVkQr6BVwZ6zXz4ll84P22bRURRY=; b=m7IDNRkUnbaeFEXtv32lyhnvLsINycwbkJYzne0WCKVzWbQSrqWb/2ju67hQaixW6/ umwU7ujiawbuao5pAHlVFGM/a95WyU1FdnfRidsWA/45oUU6JdTJesUg8i8kk9id8Ic1 zQKe4hYMJCpOZrJI060ksFtLo01+KNzQaeGZIVZfl0c8qxigDtkHK2TkxZ4Wtri75l53 O2XXuoE09MYWy2zXpjIVPCyVUJMSrt+vsNLeKf0O42StHmL8efVQKqKYyq/LTJeal1DI r6uogoe5DjLEsw4Ur8ux/uksW7fkpWXnnMuONfX1TcKU4WO3iigWhSXYUePBCPgZS7Fl t6fQ== X-Gm-Message-State: AHQUAuZVXmd3Rj2Ap3vKAxOGJMU8dgkAKlshJWl/sEYh2bnNhVTSwLP2 NOWTYuXF6pHXOnVkDkvrloY= X-Google-Smtp-Source: AHgI3IaJ8EMjjtLQ9xm5fWXo4hyjggK8WDV+q7h2jv4C0j66gduhBvULOd222vN7DxTLt0qMvzJ7nA== X-Received: by 2002:a5d:6850:: with SMTP id o16mr27397974wrw.123.1549876909938; Mon, 11 Feb 2019 01:21:49 -0800 (PST) Received: from ThinkPad.gtu.edu.tr ([193.140.134.118]) by smtp.gmail.com with ESMTPSA id o7sm11388979wmc.44.2019.02.11.01.21.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Feb 2019 01:21:49 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 3/7] ARM: dts: suniv: Add dt-binding headers for F1C100s Date: Mon, 11 Feb 2019 12:21:09 +0300 Message-Id: <7ad73fd5c2664a50722cf0771512433483a629ca.1549875778.git.mesihkilinc@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190211_012151_715354_DD926731 X-CRM114-Status: GOOD ( 12.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mesih Kilinc , Linus Walleij , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP dt-binding headers for F1C100s merged now. So add them back to dtsi. Signed-off-by: Mesih Kilinc --- arch/arm/boot/dts/suniv-f1c100s.dtsi | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/suniv-f1c100s.dtsi b/arch/arm/boot/dts/suniv-f1c100s.dtsi index 6100d3b..953228c 100644 --- a/arch/arm/boot/dts/suniv-f1c100s.dtsi +++ b/arch/arm/boot/dts/suniv-f1c100s.dtsi @@ -4,6 +4,9 @@ * Copyright 2018 Mesih Kilinc */ +#include +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -82,7 +85,7 @@ compatible = "allwinner,suniv-f1c100s-pinctrl"; reg = <0x01c20800 0x400>; interrupts = <38>, <39>, <40>; - clocks = <&ccu 37>, <&osc24M>, <&osc32k>; + clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>; clock-names = "apb", "hosc", "losc"; gpio-controller; interrupt-controller; @@ -114,8 +117,8 @@ interrupts = <1>; reg-shift = <2>; reg-io-width = <4>; - clocks = <&ccu 38>; - resets = <&ccu 24>; + clocks = <&ccu CLK_BUS_UART0>; + resets = <&ccu RST_BUS_UART0>; status = "disabled"; }; @@ -125,8 +128,8 @@ interrupts = <2>; reg-shift = <2>; reg-io-width = <4>; - clocks = <&ccu 39>; - resets = <&ccu 25>; + clocks = <&ccu CLK_BUS_UART1>; + resets = <&ccu RST_BUS_UART1>; status = "disabled"; }; @@ -136,8 +139,8 @@ interrupts = <3>; reg-shift = <2>; reg-io-width = <4>; - clocks = <&ccu 40>; - resets = <&ccu 26>; + clocks = <&ccu CLK_BUS_UART2>; + resets = <&ccu RST_BUS_UART2>; status = "disabled"; }; }; From patchwork Mon Feb 11 09:21:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10805337 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F32B746 for ; Mon, 11 Feb 2019 09:23:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BD8629AF4 for ; Mon, 11 Feb 2019 09:23:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B89A29AF6; Mon, 11 Feb 2019 09:23:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1FDBC29AF4 for ; Mon, 11 Feb 2019 09:23:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=gq+8Xa3H3hQpEsUYzXtUigcgQH2yRNyHHNcCRk61JTE=; b=gUnGeZcoeGH+6DFU2wEatanj+I fMjWoZIlfSIHzOqc+JKAyg+v/UNY43Em6TsfvDzNqNy/UsqSAzEgjrMi4ft6WA8gwFmZB3cOfCIAp Z6EvvWzlXxebv3/nOtLYmG6Jea31thC35zUdB75oaPfFBrqDlNCnL10qYHRF+G6SeBI4uVIp6BvV+ GofcUxTii4bCBhJd2EBszoMAkyti8nATmCfSSF4+tGaqGA8iTHKdqpqIePvo80I+LuM+hg7+qKgCe He9iBBXJug5OQ0YB59FZPBzBc+HVj+wQ4Q21o0jJ9bjvjpTkLbutO19qxQGlQjQ+IWN3A4cdDOdhq wClavkyw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7oI-0000GO-AM; Mon, 11 Feb 2019 09:23:30 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7mj-0007bf-GA for linux-arm-kernel@lists.infradead.org; Mon, 11 Feb 2019 09:21:57 +0000 Received: by mail-wm1-x342.google.com with SMTP id a62so16190901wmh.4 for ; Mon, 11 Feb 2019 01:21:53 -0800 (PST) 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; bh=KFyf8oJ/P80QFng2XmVNIgk4v2NDqyqmu8lE59dkrPM=; b=k52QZAOHo7AbT5OyQPKCHfV3CiKawusbTn4/wKaOfZJrXI3Ta77pz5eH+uuEFgkORE X7ksDFubriatb9JMEif6Id9Ru3m8M1EIlg6QZete8g/VM05dWeFOSK94AwpBBukwDQtS LWQLa1ja/9mZF+Xwg/Zxt3vJbnuIMS3fKgnuNsuGTZqYtc9oDZN2R7Fj2Kzc05hPfWTe L/cs4p0gMH5asDos/5j76egCzuhDBT5dZASqybnEHGlqfAwKEZT2OIBvETVDNxU5wwDI Tm71jdw9/lynt52h5NwWBtuIu/YxmgiViJYIKH9Aq+qkFYpp3wGiQ7whpSMjc8Ps41VU 2j7w== 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; bh=KFyf8oJ/P80QFng2XmVNIgk4v2NDqyqmu8lE59dkrPM=; b=jXE5efBka16qwz6GjuPU/LZVO+pnEqurZPcprZCyvhxXSm7Y/dE1zmbjPVTkS9lfbS bDAk8PZPnKEi2iP9VNU2vDkAp+bU64rFDhr1Qkpn73BL5UEVfqwDd1KNpwnOplmnbsNO XE6k6hcBAt99hlhpqDxM6kfBOv0uAi5gVGBRIxoPSV0D7EXjErfDTzKZLHQJOVLCKFEt q8YxHXaFqmUl/wtphVPb0QKMc895mCiKcyXc8zRKA18QOrFly1kr7XEmhRjHNBlerXHK 4T6imU8D4+bOcjtSyj7qHPFYaZ3QoD0zCAzQN84yJAwjclI6LvNEFM0h5ujiEbnuURBd 6+BQ== X-Gm-Message-State: AHQUAubON5qiNNx0yZpGBbPo+KCLkWZVeB/8URYMdDzACkS8bK7nJZXH L+jFONnOSHzCKN0WKw/4ahg= X-Google-Smtp-Source: AHgI3IYrFXglD95oZuKDOSWkev6zVqyCzSWSTFLDga+C4+miAZoaSPPco6eV4UrLhAi8JUApIHEOjw== X-Received: by 2002:a7b:c1d7:: with SMTP id a23mr8032175wmj.48.1549876911576; Mon, 11 Feb 2019 01:21:51 -0800 (PST) Received: from ThinkPad.gtu.edu.tr ([193.140.134.118]) by smtp.gmail.com with ESMTPSA id o7sm11388979wmc.44.2019.02.11.01.21.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Feb 2019 01:21:51 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 4/7] dt-bindings: spi: Add Support for Allwinner F1C100s Date: Mon, 11 Feb 2019 12:21:10 +0300 Message-Id: <8d62291fa2f98d07e08d81fe4f54e4c49744c24e.1549875778.git.mesihkilinc@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190211_012153_851526_CED0C516 X-CRM114-Status: GOOD ( 12.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mesih Kilinc , Linus Walleij , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Allwinner suniv F1C100s has similar SPI controllers as sun8i H3. Add compatible string for it. Signed-off-by: Mesih Kilinc Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/spi/spi-sun6i.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/spi-sun6i.txt b/Documentation/devicetree/bindings/spi/spi-sun6i.txt index 435a8e0..33f490f 100644 --- a/Documentation/devicetree/bindings/spi/spi-sun6i.txt +++ b/Documentation/devicetree/bindings/spi/spi-sun6i.txt @@ -1,7 +1,10 @@ Allwinner A31/H3 SPI controller Required properties: -- compatible: Should be "allwinner,sun6i-a31-spi" or "allwinner,sun8i-h3-spi". +- compatible: should be: + - "allwinner,sun6i-a31-spi" + - "allwinner,sun8i-h3-spi" + - "allwinner,suniv-f1c100s-spi", "allwinner,sun8i-h3-spi" - reg: Should contain register location and length. - interrupts: Should contain interrupt. - clocks: phandle to the clocks feeding the SPI controller. Two are From patchwork Mon Feb 11 09:21:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10805341 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C06AC746 for ; Mon, 11 Feb 2019 09:24:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF0D32640A for ; Mon, 11 Feb 2019 09:24:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A06DB2841F; Mon, 11 Feb 2019 09:24:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 871482640A for ; Mon, 11 Feb 2019 09:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=ypcjKBuT2w48wzEoOtDVcvj6duqIAcSD2dL+PbAqhx4=; b=s/e4wltMtnjrAGh6iZ01ci8ROI 8BJYbXuonkf/VWTpskYNagKvFYzUMIU9LZNL5BTYx+MB1At8uP4nVyKSKzGRC4a23P796IE/iyFsi Xr1fFiPNKn/BUWwTF8J+pR+08sKm2a4ze+4K2tPfvuJRDxgM8RMIOBrWplGgu+kMU2gNa7AZDjPOa /f0VJwxqNEXmrrbOFEGhN3VidR4UWNwPkJsonwTFSsDmjoGX/bHysAaXrFuTodpzImrAfWECb3aIh cB9B4njeG7eD0wuocCGwOBNfcIJqO406li80lXu8PL2r8mwe3VTOClrpzTgUTls3DlYYYTP+oB4bz 64SgHPCA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7op-0000qU-J2; Mon, 11 Feb 2019 09:24:03 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7mk-0007dp-Ss for linux-arm-kernel@lists.infradead.org; Mon, 11 Feb 2019 09:21:59 +0000 Received: by mail-wm1-x344.google.com with SMTP id x10so10325924wmg.2 for ; Mon, 11 Feb 2019 01:21:54 -0800 (PST) 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; bh=fwD0w9cY6pAqgprkGqKHjvaIM0lWzxAak4iqngIDanE=; b=QyTJPG/Bx/k2DgyeqFolci5TCnumOLVhB6okYdjDW2ie1kneDcXMMhJEOneqSRvWwP DldyUsX+E0iI5swA+sWqYeikX8sAeCbzFUjALZBe8i1S8Ihj9J2Ai8v8eI6q7Be4HNmO vHoZtXAUI+90kaxejbRrKJcZMLF7Tj7GyruKxNPN7otIlmWRV5BSwelqHhWUVmEeM4zK 47LS+vurw1O4EHF2GLuFPhWxxj3inkzkxLLeicprL7sDXknvKJxbXHMyPub1VWM6Ddwj I1zRR/LchiJ7EqGZC0dtdYSjTNXme1B+ProKtjbWTYZnew08nXjt/NldLTTZO8NB+bRc W1Tw== 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; bh=fwD0w9cY6pAqgprkGqKHjvaIM0lWzxAak4iqngIDanE=; b=jhPy2nlA37rvIc6QBnj6c6ffM0+ETz9fMuESWZP3E73gdPfFqYjxuoSaEVixHMbQDo Z/n+fjv1HWekQtBphCNo3eZjTqoXOj30DvRxyF7cg2xcyiLW6MZgCS9UczakdG9w5Ioy UCQtpzvZm9Eh4b3z7cDUMP2Hz4RpoyGVvXIo4VW4M7zZgV40Dp2MY3qkfJTEWIz/4D0/ 0xbiqUqEbY3YeJW4HshJMCwEBO8FPIGC1Tsl6xhIY1NJQrsXhNIc55scb8dHFChpFUO6 YIt3egFjU/sJ2SYCoPce+zc0/qIovxX0KJPfLEfgXCwoUmNhnhRd9keOMSDo6Ssi7oUR xTpg== X-Gm-Message-State: AHQUAuaeNVap1oT9sLmXjkZNfTZ+gOw4oc9oIcrH2maaaYkCDF00BQj5 RsCnWDMDtOCaWzVXysjNXPQ= X-Google-Smtp-Source: AHgI3IbI8Pp3O5chVjMuKPKEycPJpQtScjVPz5GgOvT4cXuGkW8JSB+BgetdDfEqZniD2hysWJ0lXQ== X-Received: by 2002:a05:6000:8a:: with SMTP id m10mr25834299wrx.79.1549876913504; Mon, 11 Feb 2019 01:21:53 -0800 (PST) Received: from ThinkPad.gtu.edu.tr ([193.140.134.118]) by smtp.gmail.com with ESMTPSA id o7sm11388979wmc.44.2019.02.11.01.21.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Feb 2019 01:21:53 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 5/7] ARM: dts: suniv: Add SPI device-tree nodes Date: Mon, 11 Feb 2019 12:21:11 +0300 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190211_012155_802738_FF7E2C97 X-CRM114-Status: GOOD ( 12.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mesih Kilinc , Linus Walleij , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Allwinner suniv F1C100s has similar SPI controller as sun8i H3. F1C100s has no dedicated mod clock, instead it uses AHB bus clock. Add support for both SPI0 and SPI1. Signed-off-by: Mesih Kilinc --- arch/arm/boot/dts/suniv-f1c100s.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/suniv-f1c100s.dtsi b/arch/arm/boot/dts/suniv-f1c100s.dtsi index 953228c..1b332d9 100644 --- a/arch/arm/boot/dts/suniv-f1c100s.dtsi +++ b/arch/arm/boot/dts/suniv-f1c100s.dtsi @@ -143,5 +143,31 @@ resets = <&ccu RST_BUS_UART2>; status = "disabled"; }; + + spi0: spi@1c05000 { + compatible = "allwinner,suniv-f1c100s-spi", + "allwinner,sun8i-h3-spi"; + reg = <0x01c05000 0x1000>; + interrupts = <10>; + clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_BUS_SPI0>; + clock-names = "ahb", "mod"; + resets = <&ccu RST_BUS_SPI0>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + spi1: spi@1c06000 { + compatible = "allwinner,suniv-f1c100s-spi", + "allwinner,sun8i-h3-spi"; + reg = <0x01c06000 0x1000>; + interrupts = <11>; + clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_BUS_SPI1>; + clock-names = "ahb", "mod"; + resets = <&ccu RST_BUS_SPI1>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; }; }; From patchwork Mon Feb 11 09:21:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10805339 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EBA2A746 for ; Mon, 11 Feb 2019 09:23:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAC2A29AF4 for ; Mon, 11 Feb 2019 09:23:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE88A29AF6; Mon, 11 Feb 2019 09:23:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C61329AF4 for ; Mon, 11 Feb 2019 09:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=ZhGRBHKkop4Cb1uwP9oX5R0fO6Oj/Dj0k4eypo0u1B0=; b=FEIH7qQxPLcWSzdBE0QfbPSWi0 BpHj1R9V52ELnku/Q8BxICb4JWmfBbAeaT4mvUN2AYxiiufGggyYG57r00olggfTqBAVzb1HHxA/o ZqZZAcqtrQaklPcs7yZJ7pD0xFtIaIW/Hodx4Djt1zlluctQ45PdJA3AZQ/rkNvLsZu8LnNumMt3/ nXqkHyE219UExBd2aPRc2FvQ798qv+AYzT587tUCeyk1c+y6L/Rc4LXIv/2KTC7RQDR+wpsvQIa0/ AKN59531hSJL0/LyM+hFU5/ZUtkQ/bQoeqPTLh5Vx5mQq6AR9F30Re0BDWd9RyR9An1UOH7AdpUIK mG7i7BKw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7oY-0000aq-Px; Mon, 11 Feb 2019 09:23:46 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7mm-0007fA-E2 for linux-arm-kernel@lists.infradead.org; Mon, 11 Feb 2019 09:22:01 +0000 Received: by mail-wm1-x343.google.com with SMTP id d15so16213562wmb.3 for ; Mon, 11 Feb 2019 01:21:56 -0800 (PST) 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; bh=GeJh1mZ8HNX8SodOIqWEKIstu7HfmSuWt0fhpAm7b20=; b=kgfAnrGQirpPWUUooWkQC+SnSWB04mo7Pqhkcs1A89WQY0iT8EcwHDsUyO8K3yirgy 2pB+6Z8vluIXPQ6ErQNkP8JHO7RWvw5cJzYCOV6sGmopeAoq+bbiXgKqipxhr+8tc3j/ DG1gTk3cUqlrnljMGtUzPTk3RU8Uu6FGJfci90YZIDv7JVx+NcC6gZjg901n9v8Wzn/g A+HpYtkswMGWnUyLzntd7OTr6XfshPlsllakCRG3icYwZ3XS+jX6FT9gGFzYnPWY3X8T Uj430tYf/rhduqpocHdAVw6gZ/CnJo/vdYXxg0dtXEfhjE9dfAmiEoxpQavG2Sp0D6pu RI4g== 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; bh=GeJh1mZ8HNX8SodOIqWEKIstu7HfmSuWt0fhpAm7b20=; b=qotwyKeKXpkch25fd+oUl4M0Ft4cpyuMmMsB6UdtKaGYDqyqOvmVcArz5hkWaKyjUQ qcRysYeDdIrO7zN92TDpEzKwZrH1oEs7eGVOhK5zp5hBEtntnhnNRYUK9phs3HwKBd1d T0boi8RC2OWdCqkwSirYL6HtwK1CELDf7ZuzDWRUesSQk9ykuEFFQTBHD1plRTglK7g+ bqgI5rgTZ2ImmNcZHJ/sFHtEaI/UQCpr7mtYbNDfcShcyylqsPKQN8nOoYtTw9gfB8L7 dktanUussp7WV49Lxd+1CM7Tho57qeqRbqYFmlIVcJGskqFn4Dvp5hcaETqFM/7YzDxc lo9A== X-Gm-Message-State: AHQUAuZKcjrAAGAV4xL4RTcXU5JYaQcLLB0MP7xdGjfSh1mL5G/sGf0s i+xbCXlS8Gs9b2sAqBZF1gE= X-Google-Smtp-Source: AHgI3IYjSM1FfR7S2WwI6NLUi2OnKURL/gGbASgo2peTVXcVSWpFZO/Rkr81Uw+beLruJ1xXJDssjQ== X-Received: by 2002:a1c:f919:: with SMTP id x25mr8461804wmh.61.1549876915112; Mon, 11 Feb 2019 01:21:55 -0800 (PST) Received: from ThinkPad.gtu.edu.tr ([193.140.134.118]) by smtp.gmail.com with ESMTPSA id o7sm11388979wmc.44.2019.02.11.01.21.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Feb 2019 01:21:54 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 6/7] ARM: dts: suniv: Add pinmux for SPI0 and SPI1 of F1C100s Date: Mon, 11 Feb 2019 12:21:12 +0300 Message-Id: <37f573797e18fc22f8f78d0a62550b6d5e460a8d.1549875778.git.mesihkilinc@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190211_012156_789655_C2EA6EF5 X-CRM114-Status: GOOD ( 13.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mesih Kilinc , Linus Walleij , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP PC0~PC4 is pin group for SPI0. PA0~PA4 is pin group for SPI1. Add device tree nodes for this groups. Signed-off-by: Mesih Kilinc --- arch/arm/boot/dts/suniv-f1c100s.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/suniv-f1c100s.dtsi b/arch/arm/boot/dts/suniv-f1c100s.dtsi index 1b332d9..a92a411 100644 --- a/arch/arm/boot/dts/suniv-f1c100s.dtsi +++ b/arch/arm/boot/dts/suniv-f1c100s.dtsi @@ -96,6 +96,16 @@ pins = "PE0", "PE1"; function = "uart0"; }; + + spi0_pc_pins: spi0-pc-pins { + pins = "PC0", "PC1", "PC2", "PC3"; + function = "spi0"; + }; + + spi1_pa_pins: spi1-pa-pins { + pins = "PA0", "PA1", "PA2", "PA3"; + function = "spi1"; + }; }; timer@1c20c00 { From patchwork Mon Feb 11 09:21:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10805343 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0B14F746 for ; Mon, 11 Feb 2019 09:24:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9FCA2976A for ; Mon, 11 Feb 2019 09:24:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE1B02640A; Mon, 11 Feb 2019 09:24:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8E7F32640A for ; Mon, 11 Feb 2019 09:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=fjM9HCBqZW27BJI/ZlUmHuzYEaJ5upimOYuLYedthzA=; b=m2mix+Jyq5pxxrswnHGTHZjpww 23To47eHI2X8IOLqF3JPUPAd9BkkNtnt6AAJUYO+8DW8Crc5JirwU3AuSYlYkjN+MwGDDGXeoG8og Qf218RzEA9LvLTWzFl76rtneZ9pWXqwNrQhkxdX6Yyiv6wkCpLlG97/C3bXzVsKH+sNCoQkmf3/Ub 0XMyqUYU/fbfVLJw87IpA2WPRvNuQbZsKBDRWCRdBDjWBb1jiKBsae4g2QfxUIKLgDi6sTNMm6ZKN 0mrwcOJAi3szVhMfdx8xdTAeZxvn+Y3hcYJh2BcncmynxrFSvsQLBXMojHhTsM10BotD7EpVSCSkR WnuF7fSQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7p5-00015T-FG; Mon, 11 Feb 2019 09:24:19 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7mp-0007ha-Dk for linux-arm-kernel@lists.infradead.org; Mon, 11 Feb 2019 09:22:05 +0000 Received: by mail-wm1-x341.google.com with SMTP id x7so296361wmj.0 for ; Mon, 11 Feb 2019 01:21:58 -0800 (PST) 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; bh=lIYeZisgInqCOZpWT0d/hZqmxdLdiRL0RmR52VTtRjA=; b=CkX4vG0Cf9MIFPB0r0biBCJp7uoat+QwA097brWM6ScCKl4BT3GVi8GEuUEaW19elo ndLUpJZ+7IZDWLr1mx4AmIU1LzoEcxn/+b+NUs2tydpQoOc4MTLFyqWJ9QdUn9MVdCgk RXUeW5B3O7Um5IrnlJt9so2xIFHljU72hhUvrW2r5WseWu5+wIDqNsT0nFUv+CkJrqU4 jHnq7gugqCTYnyBIdrOwZvYApZsUWqDKaCuuq2huAXgVS3yGuP3r20yAINq4+8B2WZEX K3FFAjYEub/jDQo7UEZ2c1iKdET8pDPxGfw6ZpJKRCTk09Wh8kPHsLSR2q0rBqM6IH7G Vf3Q== 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; bh=lIYeZisgInqCOZpWT0d/hZqmxdLdiRL0RmR52VTtRjA=; b=CeZLBwfyIMB4NiztwdlDlwWiNH8On0krb+eLh2jlwWeK4xjZwWok4V06o4xcFYdDYS 4xzGWAPGEQRNHa/oymyFpOC5OpbCiO/DDh9KIU2Cf1GrcxwLTRUYsDArTAY1yLOD5WVn +RIcAD73J8Welr7CX91ix/GZ98YNktZkq3CMsCL/wp5EdW2twnHksxBL/bC+jX4l+3gQ B85V0brxYwlXkJ4M7Bh9vFVMjtl0tS91cNJSaiTmDHImpRdr8cn3e2GjC/AdaJ0CqnVh ciNaqSj67nlr1+hdOeBaYBD4fsseC94RXBoJDtudeJn7lDi1dFpjtz1vtjfQg88a0nVd bDdw== X-Gm-Message-State: AHQUAubzHiAaLbKD4ZregxhUfBK/IyEpjChWLMpI0+F7T6rOFlAZ5S97 iRKjUedBb/4kWlqAdWSAaxU= X-Google-Smtp-Source: AHgI3IZ3YDqNq/2AQaMYe1kJv8UXjv+MSl9KMteeI+5/4URxr44WhcfQlK15lXqYlYzWYBQFLK1FQQ== X-Received: by 2002:adf:de83:: with SMTP id w3mr5951635wrl.56.1549876916755; Mon, 11 Feb 2019 01:21:56 -0800 (PST) Received: from ThinkPad.gtu.edu.tr ([193.140.134.118]) by smtp.gmail.com with ESMTPSA id o7sm11388979wmc.44.2019.02.11.01.21.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Feb 2019 01:21:56 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 7/7] ARM: dts: f1c100s: Activate SPI flash on Lichee Pi Nano Date: Mon, 11 Feb 2019 12:21:13 +0300 Message-Id: <02be41b6187d4d1fe09bff24cb93c2400a166803.1549875778.git.mesihkilinc@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190211_012200_491398_42273217 X-CRM114-Status: GOOD ( 12.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mesih Kilinc , Linus Walleij , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Lichee Pi Nano board has a Winbond W25Q128FVSIQ 128Mbit SPI NOR flash connected to the SPI0 controller of F1C100s SoC, via the pinmux group at PC bank; so it's bootable. Enable this SPI flash. Signed-off-by: Mesih Kilinc --- arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts b/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts index a1154e6..52a29be 100644 --- a/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts +++ b/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts @@ -24,3 +24,16 @@ pinctrl-0 = <&uart0_pe_pins>; status = "okay"; }; + +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pc_pins>; + status = "okay"; + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "winbond,w25q128", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + }; +};