From patchwork Mon Nov 19 17:09:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151502 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2917750ljp; Mon, 19 Nov 2018 09:10:58 -0800 (PST) X-Google-Smtp-Source: AJdET5c/+Q1GdhkLvVk/SgoN1cNbOmUMAsSgEDPaqt/ZDFMxClAZp9C2/Sxo5fizFriNaGfgHzEy X-Received: by 2002:a63:bc02:: with SMTP id q2mr21058030pge.116.1542647458011; Mon, 19 Nov 2018 09:10:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647458; cv=none; d=google.com; s=arc-20160816; b=QF2WoLUD850rB6efYjpTCyKu/NbHstJlPmn8KpJe9+d3QRxptWMkndkM0wTXq999Yr PdSWzQDUM/yMPQAgQEAV1D5UrbFAhEZhJWLdZ1cOE1kG2q6+sj+Lvv5ujE/YPGCtBiho cqKt8GORf8DQeOCuhCsftd0u3ZP1xh5VrWUNtavFfvg26kZvueakJZszPA+YbNLloJya kYmrmV+KUbrfA6IVExJgfURaDpkj+ph56dGX6+sW7bBVH+0mlDnipAPZ6An8eEYMabbW jRQLZ9WwDkjUELdzcOCDJ13G2ZwGIC9NhtW5aKjYIgnqNIDyAf99ng199x8n2V+iO+d0 JjjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F3x7gsmCQrdY193L+8o0XyGrRzSyIGog/xrqDtj4aF8=; b=Mt/KSWoOekOv6Q9LSDZvV3Hyq1pZCnY1I/e+Bps8wPGWJ2g3YlNxVuCPUG3U/wkDT0 mdUQ4mU2o/IzOmtZHmKP9tZ15srSgE77t0d96n8+btIXH2+Ub3VkCdaG1mfXjWuMPeh8 yBoZs2qnqmb5Sge1VJvWmslIcozt1fGJI6BCn9hbI3p/Tq4Obx6Vokxzfw0llUR7meeF PjN6KiD49a2qs9xXK7TQTDNZhZga7WN1ZzU3O7xprW+SMa0H6JlokbebgBofPz5feyvW pM37HPx6teHVYJgIQtu9ErljRMQe8tb4Iz14xCBZtmm74pUlRao+2jYmodo+duvcu5/q 1m+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MRFronLr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a59-v6si38442822plc.48.2018.11.19.09.10.57; Mon, 19 Nov 2018 09:10:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MRFronLr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407148AbeKTDfO (ORCPT + 32 others); Mon, 19 Nov 2018 22:35:14 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33983 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406694AbeKTDfN (ORCPT ); Mon, 19 Nov 2018 22:35:13 -0500 Received: by mail-pf1-f194.google.com with SMTP id h3so8607500pfg.1 for ; Mon, 19 Nov 2018 09:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=F3x7gsmCQrdY193L+8o0XyGrRzSyIGog/xrqDtj4aF8=; b=MRFronLrFkF3mxUqWASXSlEhrFeGKBOC+ePCWSzY2fiLyjgMiy19jck50Hb20ulxsf jPUPlYE3Gg4ZXGBiVvmn0LzpUW2XvqAbZiOZG0g58WRNFMJavrIeUMLdI8welCynR8Cc 8Ytf2vsNY3llgh62aTbCdek4LVWpqQ7fW9Rlw= 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=F3x7gsmCQrdY193L+8o0XyGrRzSyIGog/xrqDtj4aF8=; b=oRnSiZyndjtzMYFIMFqKsyt9o0S8QJXa/3M6YFTj2yYZzhmYXHSSN6y7mM4NScd19t g8TrecKOG48k06m/rX5szUO5MiESA/RD5/8KZp+gcFILPC30xNpz+v0d/qshQm2ub2tt gCv0R8XiGJDqwIg4yOZu2VNt7UHhAi2jpH98P6UcPkG1RUyxk/JfN97gm3flcNRZljOG /XY52qasIebcisAFrGA6svMAw65NBDrk0Jq0rQi+an6c0n4d4QjGSJG9VqF5jMhMw4pw RBiSCl2x9wg0XoYAILlVIRwj1a5C+djfhAKugFQUyhwr8hC8dsotgzqQg65/n4Nl7CoF EbuQ== X-Gm-Message-State: AGRZ1gLarpFi8kGC9YKSgOPkbE+6Vb5cP5nw02yeYleDVtSBsV4jzMw8 l/8ccEycrC3c66nMKMhLrOQH X-Received: by 2002:a62:c583:: with SMTP id j125mr14579462pfg.37.1542647453747; Mon, 19 Nov 2018 09:10:53 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.10.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:10:52 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH 01/16] dt-bindings: Add RDA Micro vendor prefix Date: Mon, 19 Nov 2018 22:39:24 +0530 Message-Id: <20181119170939.19153-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andreas Färber RDA Microelectronics is a Chinese SoC manufacturer. Cc: service@rdamicro.com Signed-off-by: Andreas Färber --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 4b1a2a8fcc16..b15012454d01 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -320,6 +320,7 @@ ralink Mediatek/Ralink Technology Corp. ramtron Ramtron International raspberrypi Raspberry Pi Foundation raydium Raydium Semiconductor Corp. +rda RDA Microelectronics, Inc. realtek Realtek Semiconductor Corp. renesas Renesas Electronics Corporation richtek Richtek Technology Corporation From patchwork Mon Nov 19 17:09:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151503 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2917913ljp; Mon, 19 Nov 2018 09:11:06 -0800 (PST) X-Google-Smtp-Source: AJdET5eSY3NiDST7AvWICVxj9yK9mR3x7zNoW7dJgGjskNlcMYhoz/ytR2jR15G0qA+PVtdPyi+4 X-Received: by 2002:a65:6684:: with SMTP id b4mr20890285pgw.55.1542647466540; Mon, 19 Nov 2018 09:11:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647466; cv=none; d=google.com; s=arc-20160816; b=d+p8O2vrUx5b3TQi5ouFsxK+hPH2hhxBb0PqN1Efk3V+rUz9qjFg/ULh+VEjHgJIcl Xe3I74ctiVQg116w92jhWQnX2wLJD+soITVWkox+gq+gZQUFKgYEEQ4oOCvy8VRrZ/k+ 7tk0RMxTSCJbuCNdclaHHAMK49wob1jLXG3yIEP98WSVobY+zsvK9lTLDsqhW6yIxNYN 7IrQCnCcEM8Z/HpcAnWgXKTN/cxfKUhBzImHPQQJFMU4NLWxr9J8ysZJzV6rdzgpxRZ4 4peHakugTZiO1lkKlWB3KhgxzRVLQL4xCSJydxx1cCRS1xHUMV4tuHKvjr3g2SiXWTqR Syxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=msmZrhf/K74+1kXoDRizhaHRITIpaWGm8eve2ycximo=; b=z/g6u+Zuncui+w7z3ohuF+l/kOhsg1EfHohatPWz0Fq7dF+6618zQROGjyYj54JQw5 XPqxnlKaX9VZrJ3YIyySQSDgMlbEmY4MZjIdTPKNr3MQZFpjyH+ilNGZOoj2RzLnGGvp A8fYfc7x7+HKtHXzeQ0gCQwHFHFr0PKnHQJXzu8GDkr/cYFahjeBl3gF8eRKVjwMYyLT bFfC9bawC/tMNeBacwnC+swle3nhzc4LCgCsQKAIoBOfjX4B0uUWRX67UiPpXNA3iQnH y8pzOSeaZQFum4BSyqkfLTYNG4XEgEBH775etBX/2OnZgJvs74lcp170XWNOPz3Oz1SN r0fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvUVWR5i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a62-v6si43360845pfb.266.2018.11.19.09.11.05; Mon, 19 Nov 2018 09:11:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvUVWR5i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407164AbeKTDfW (ORCPT + 32 others); Mon, 19 Nov 2018 22:35:22 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:36697 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406330AbeKTDfV (ORCPT ); Mon, 19 Nov 2018 22:35:21 -0500 Received: by mail-pl1-f194.google.com with SMTP id y6-v6so7309413plt.3 for ; Mon, 19 Nov 2018 09:11:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=msmZrhf/K74+1kXoDRizhaHRITIpaWGm8eve2ycximo=; b=XvUVWR5iJoGfyBur4pQiYVPfTmbYbcN53UkzDURDhXtvGbaweiHhrR9lj45xD7PHiU r6u7p1DL9PX6wjBkQyIr1I9MYr4HEWWyLk2WljFbTJ0cv7XRsnFNfB1YMLeJcozCem9k YMyrv2XuTS5bBJLbSBnYsH2Pnd6dMQj8KmjbY= 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=msmZrhf/K74+1kXoDRizhaHRITIpaWGm8eve2ycximo=; b=GiV3Twv3gulXyMBwo21dqWGfWi9glRO1jUIYGH5S1eBKoj+FF48caRmFjhfGKpgauK jfRBz4f96pY4Yw7rFdanhRoi5QVdAcV6Hpyk+9uaQcOnguvY8n2IuNV/V3ECZn9oNtjn fuTmAPEH2m/dkXdFG9n3Wq6lAW+tCRXyX9RA2ZLWkSji97QmLCtRVVPZxluRi4ato9mt 4LD2HZeDvJzdC3C3r9SQ2PYoCJ1fg0bRVd/T2lHhPCmxybMVytKhJzjL6HxmfYQX+QCU 95mgjju47q4c2Wm+FpFnMf2x7GGIVgxwTg6yYYez9CAWJ1fpcaZTWyHtItCuIFVH7N9g FXww== X-Gm-Message-State: AA+aEWb9KRsccOalomSWxfrJYoRS/Kk8d+lpK9iNnsLx50srR1W9st9g BTYht93fB+/DjhZvb7L1YMPK X-Received: by 2002:a17:902:3281:: with SMTP id z1mr331964plb.296.1542647461970; Mon, 19 Nov 2018 09:11:01 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.10.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:11:01 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam Subject: [PATCH 02/16] dt-bindings: arm: Document RDA8810PL and reference boards Date: Mon, 19 Nov 2018 22:39:25 +0530 Message-Id: <20181119170939.19153-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andreas Färber Add bindings for RDA Micro RDA8810PL SoC and below reference boards: 1. Orange Pi 2G-IoT - http://www.orangepi.org/OrangePi2GIOT/ 2. Orange Pi i96 - https://www.96boards.org/product/orangepi-i96/ Cc: service@rdamicro.com Cc: zhao_steven@263.net Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/arm/rda.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/rda.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/rda.txt b/Documentation/devicetree/bindings/arm/rda.txt new file mode 100644 index 000000000000..43c80762c428 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/rda.txt @@ -0,0 +1,17 @@ +RDA Micro platforms device tree bindings +---------------------------------------- + +RDA8810PL SoC +============= + +Required root node properties: + + - compatible : must contain "rda,8810pl" + + +Boards: + +Root node property compatible must contain, depending on board: + + - Orange Pi 2G-IoT: "xunlong,orangepi-2g-iot" + - Orange Pi i96: "xunlong,orangepi-i96" From patchwork Mon Nov 19 17:09:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151504 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2918118ljp; Mon, 19 Nov 2018 09:11:15 -0800 (PST) X-Google-Smtp-Source: AJdET5c3KXYIYbUHzFNwNtD/hptsSl37ZHAGa2p/2JwPJYhFoIEX+vyqs26mX0x8ttaB3OuB/nB4 X-Received: by 2002:a63:4187:: with SMTP id o129mr19413124pga.370.1542647475628; Mon, 19 Nov 2018 09:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647475; cv=none; d=google.com; s=arc-20160816; b=YSga5VvnrZjokXO9cmj/nwVHf++1Hhl3LY4ULrNeHn9MUoLDSM4cZB6TZtKGifZmq7 SnEAIbfAVPaMPjLjQlTRePlpIOHtJH4m+yYzEcVn/iYlBJ61v6b66864JzEi+dHk4cQo RtUtI4mTwtdVlGCdW00q+f0hHDknlYKfUdXGmZCPruLjPdWaFwwMXsYyRdAJNS4Ssst+ 35Q2Hyyt8xexZIYpvf7L/4buUr76HZoS27eZOgcDrjgsAvUOWJRMXXNuMq05rzO3UDHR 4c5msIFzsKTo0hQRXaR0plDR0QJQkV57nOfupurAIQzZFMYgmVTgHDXA7LWvcQuedccW NJ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L1KWePsWaBzwLQi7BjylxNbKfiBht2SJGcZ6HLjFNIc=; b=SBNQo4YHyweH/OTPyv8BIBsCEqeA9iRWmL6Sn9yq4Nj3TApPWb+JfWZ/es+ZQD3rl2 cB6ZdiSh+EwC/MJAVIyI0Q1oimjVc+lv+0TZvvQFhRJuw72gFfUD6GteS7cCrJZK67ji wML6BIRdq9hOkfyD9pTcLc4myhw9NyY+nTbM2nsKbAqsHCETYW6WQP0VuvMsvAZ01AQB PGKq0JB876t27lClVJoYeQzqundavOn50z3Kk5O6Te3V0W/GQVkH3lGtuR5y/xkBC3wy /6TTp8Ks9n0QFVRRA+pSiMJvg0MSvG0ZkmQdTxgHdIRCatuMRbtisyGOK2tGs1LJVI9D yuAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d24qfNM3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m30si5221542pff.158.2018.11.19.09.11.13; Mon, 19 Nov 2018 09:11:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d24qfNM3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407121AbeKTDfa (ORCPT + 32 others); Mon, 19 Nov 2018 22:35:30 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34008 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406330AbeKTDfa (ORCPT ); Mon, 19 Nov 2018 22:35:30 -0500 Received: by mail-pf1-f193.google.com with SMTP id h3so8607908pfg.1 for ; Mon, 19 Nov 2018 09:11:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=L1KWePsWaBzwLQi7BjylxNbKfiBht2SJGcZ6HLjFNIc=; b=d24qfNM3w7d2QRX6C04Cu6q/VwspSEc1FmQcjRCQVGlTDj1USfkkmvezaUfmR35/FH /V/RDkToeDKlFqDTt/l3HivzKj2QkkJ14R8T/5nvVysMkF4shNVCKTsrUZPIlT+DE5th 8u5kLKwmNo4g2GbTKUR8zIoVqmCAnvSCxGBbA= 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=L1KWePsWaBzwLQi7BjylxNbKfiBht2SJGcZ6HLjFNIc=; b=Y5fl4g5rKKPagN3zpeecz25T1bXnu6kyIl3KxrR7Xy6B7kC9oTjzk6gk3vJI1RSxm3 erAEXhZDw7i0sSaHjMJjOtCB/WDw4nCfc/I9VaV5hDOVzBay+H4H5ynd5xpqc4X61ZAf 9RX3VtmCMEs0X7TJwe9E8vRATMwSp86md4TtobFfMawVWG7iCCXOV2fRPVusjT95rL21 F58TzHWLhU4jpXwY97n2dMTgDjC7sTAicuUlaaOnSIOCOHiO/VIn72ykamSPPBCbjvoc X7yFOkOxYDFRh0PpSqRBHeGpkW4+oQJeCvOEqdQJdYB1JwV9PpsLVu7z75NLffnooZL1 9BHw== X-Gm-Message-State: AGRZ1gIDibsxKhwWBF0AAMrKP3tIVbHCaPDbEumWvfvTU2rpVqkdhK6I xawOpDY+qgN+6zYz/maV9/K/ X-Received: by 2002:a62:9683:: with SMTP id s3mr16517823pfk.60.1542647470478; Mon, 19 Nov 2018 09:11:10 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.11.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:11:09 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam Subject: [PATCH 03/16] ARM: Prepare RDA8810PL SoC Date: Mon, 19 Nov 2018 22:39:26 +0530 Message-Id: <20181119170939.19153-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andreas Färber Introduce ARCH_RDA and mach-rda for RDA Micro SoCs. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/Kconfig | 2 ++ arch/arm/Makefile | 1 + arch/arm/mach-rda/Kconfig | 7 +++++++ arch/arm/mach-rda/Makefile | 1 + 4 files changed, 11 insertions(+) create mode 100644 arch/arm/mach-rda/Kconfig create mode 100644 arch/arm/mach-rda/Makefile -- 2.17.1 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 91be74d8df65..084f0983e6b2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -804,6 +804,8 @@ source "arch/arm/plat-pxa/Kconfig" source "arch/arm/mach-qcom/Kconfig" +source "arch/arm/mach-rda/Kconfig" + source "arch/arm/mach-realview/Kconfig" source "arch/arm/mach-rockchip/Kconfig" diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 05a91d8b89f3..10056ccdb8be 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -202,6 +202,7 @@ machine-$(CONFIG_ARCH_ORION5X) += orion5x machine-$(CONFIG_ARCH_PICOXCELL) += picoxcell machine-$(CONFIG_ARCH_PXA) += pxa machine-$(CONFIG_ARCH_QCOM) += qcom +machine-$(CONFIG_ARCH_RDA) += rda machine-$(CONFIG_ARCH_REALVIEW) += realview machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip machine-$(CONFIG_ARCH_RPC) += rpc diff --git a/arch/arm/mach-rda/Kconfig b/arch/arm/mach-rda/Kconfig new file mode 100644 index 000000000000..dafab78d7aab --- /dev/null +++ b/arch/arm/mach-rda/Kconfig @@ -0,0 +1,7 @@ +menuconfig ARCH_RDA + bool "RDA Micro SoCs" + depends on ARCH_MULTI_V7 + select COMMON_CLK + select GENERIC_IRQ_CHIP + help + This enables support for the RDA Micro 8810PL SoC family. diff --git a/arch/arm/mach-rda/Makefile b/arch/arm/mach-rda/Makefile new file mode 100644 index 000000000000..6bea3d3a2dd7 --- /dev/null +++ b/arch/arm/mach-rda/Makefile @@ -0,0 +1 @@ +obj- += dummy.o From patchwork Mon Nov 19 17:09:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151506 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2918621ljp; Mon, 19 Nov 2018 09:11:38 -0800 (PST) X-Google-Smtp-Source: AJdET5e3bjAITbHifQ/NyXvaWqxY8+8MCN4lYXJiYBPqbuQFbAPzjBBZAOW5EFoLYivCN9FA1lqN X-Received: by 2002:a17:902:bc4c:: with SMTP id t12mr22641562plz.45.1542647498003; Mon, 19 Nov 2018 09:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647497; cv=none; d=google.com; s=arc-20160816; b=a5EBCW2UvYwLIdpIeh32lVWfLpA5OMFtgXrbeJB4cxkqZb58FQwrhATomRe3iaWRxC /5WsKS9VU5ysESjRuSspjdul8nt6M4cKxMQslEOfbUvHNwEbkbUWJejw4DXYwq40RehB TbeWkm0A2hPgtnnDNktyLqUdnSmEbjP4mSUH3RZ3atUz24efc3xRRX40VHJhiTfS0g7F U8kDTv/fHLksVVc5rypIk/rIA/ToywgwNEou8l0Gdemqr7H4jfFexot+U6WgkGBanmI3 z/qFVWUdN3br0HOb7+kQJ/eGqI8LEKfxX9gfUNFOv5Jf3OMp8J3ZW64DFv7GIJf7YcA4 5gCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lovS/nwfxXz2YQe0/HUnsKL9fcLTGfnOgEY8rFfiAyU=; b=zRyJ2O/NLa1yoacnXTKOvg8QSRIIDp+NRTAdbpaa7MmTc51B1+IIK3sN1POaNWHMzT XNgzFwcrcD9rIB2M32BjSnIdbmwB2oqqEosacRovZkzRG5Ce2+zqGInqMSAfO4gdBdYX jvDyjiLK/XbMzx+cXreWO/AAzkTh1onCdnxMYyxwWS/+IK4P1hnxGWLZ6PiehAG9dUDh HZLXs0icfnqqzHLHCWKVKDBpOkjFLrzbO56q1WClY0bJs/j3YzpOHMIq7Pl47SoEDw+r 0tSiYiCI/RPydpjPgNtr8p6V7h28BQ8MVFKg8Ghrco9VCXLSuh/YLAkU8xQuk1u6nRP3 F8KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CddQCmjc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si22067367pls.380.2018.11.19.09.11.32; Mon, 19 Nov 2018 09:11:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CddQCmjc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407167AbeKTDft (ORCPT + 32 others); Mon, 19 Nov 2018 22:35:49 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45352 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405982AbeKTDfs (ORCPT ); Mon, 19 Nov 2018 22:35:48 -0500 Received: by mail-pg1-f193.google.com with SMTP id y4so14099129pgc.12 for ; Mon, 19 Nov 2018 09:11:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lovS/nwfxXz2YQe0/HUnsKL9fcLTGfnOgEY8rFfiAyU=; b=CddQCmjcYAEaTSt498fRfW4QuqE5SMdherwu6BY/7EDDv0VSDQ9/LFXfnRby/YcqFs VLUMEtKHQv3+nbARCSpN68eXQKRN/O0Fsd2QXHuPAHbmmYesAnCKmNWr4+Wzc7bdYtVs FMWYNp7GKqEF+caL+ZtcQF407J3d9ntN+K9ac= 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=lovS/nwfxXz2YQe0/HUnsKL9fcLTGfnOgEY8rFfiAyU=; b=Go28RQEsL85AbMYWK3C4vqaVcr9QCNWHghFoGMeYcT4LfSeRrHdfIkV7vafGIhVq3j YCd9OH0mE6E7YckCLcwD9d05H4gI+h5xQUMEPl/e5+qqKWDekj6nkyaQV3Uv0N7JkEen opBjG9443pSt3tPgcP+4gVMFLuKkxi1wwD623pPpVKzw1ZFvF0jAohgQ0wqRJdDQcX7s xhBubh67C86aFQF/Tb3lYsha793RifUDKpYwXx9qxiC6XqqBBvDxIBXKniagqZpoOsuE zVWrfbUd+qhpyGT8pv0YhiC9Hi4meqyclXfxbSKKvPG2K30MKUQZ/EiRuiSZU/gXEsAN wM8g== X-Gm-Message-State: AGRZ1gKrq43XN6KVYJl4HFVSu5MlwoGqPyshHRmrstAVWNww5BXsglSg zfuf2d6qQAs8omjm1aa44DrG X-Received: by 2002:a62:e30d:: with SMTP id g13mr12105001pfh.151.1542647489171; Mon, 19 Nov 2018 09:11:29 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.11.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:11:28 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, Manivannan Sadhasivam , =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH 05/16] arm: dts: Add devicetree for OrangePi 2G IoT board Date: Mon, 19 Nov 2018 22:39:28 +0530 Message-Id: <20181119170939.19153-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add initial devicetree support for OrangePi 2G IoT board from Xunlong. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/Makefile | 2 ++ .../boot/dts/rda8810pl-orangepi-2g-iot.dts | 35 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts -- 2.17.1 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index b0e966d625b9..a0fdad8f10dd 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -806,6 +806,8 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8974-sony-xperia-castor.dtb \ qcom-msm8974-sony-xperia-honami.dtb \ qcom-mdm9615-wp8548-mangoh-green.dtb +dtb-$(CONFIG_ARCH_RDA) += \ + rda8810pl-orangepi-2g-iot.dtb dtb-$(CONFIG_ARCH_REALVIEW) += \ arm-realview-pb1176.dtb \ arm-realview-pb11mp.dtb \ diff --git a/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts b/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts new file mode 100644 index 000000000000..4b49a7424b6a --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ + +/dts-v1/; + +#include "rda8810pl.dtsi" + +/ { + compatible = "xunlong,orangepi-2g-iot", "rda,8810pl"; + model = "Orange Pi 2G-IoT"; + + chosen { + stdout-path = "serial2:921600n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x10000000>; + }; + + uart2_clk: uart2-clk { + compatible = "fixed-clock"; + clock-frequency = <921600>; + #clock-cells = <0>; + }; +}; + +&uart2 { + status = "okay"; + clocks = <&uart2_clk>; +}; From patchwork Mon Nov 19 17:09:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151507 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2918838ljp; Mon, 19 Nov 2018 09:11:47 -0800 (PST) X-Google-Smtp-Source: AJdET5fJDSYsAZfLeq+C/o6KDkzqCi5vpeGMKegb/IDtEO9/UCBQubs9MMHeZfsEW7pzlURhPCRD X-Received: by 2002:a17:902:bc83:: with SMTP id bb3-v6mr22687188plb.223.1542647506901; Mon, 19 Nov 2018 09:11:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647506; cv=none; d=google.com; s=arc-20160816; b=j9k0ACHpS1RPzEG1z131xKERtjcrEVA1ApjbHNKyFddvrEyIcHaEzpfxeCTWY4/I3G haQvWs9pSnYTeK53TaXRgxbIxROQNcXX/MC4mqcGd9cUguLutKxmBMFO9tBGhoDSXyxa UP1s8GZsVZZ+jBU2+8KFGklwENpL16U/ZGZG04I2pNcJnPSHXChzh0Foyrkcg7ffwWEb H0dPOA3N0v0cMbZbk9RBG9pw2DPtqylyRWRr//RlokyTAXmzF0ZLVZ9si1IrHw0vp+yb Gl4Eqotq/TMJR+Lx+IdFrPXtus4kfWfqkSe6/I911zXw5lWQHOw/k+7u2jt/N+N+9tdO TuAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=f8EdN9IfUC+HQpAsL0jSDLomOfXBY5TdAIOND6Bm3Pg=; b=cG0g6++TA6VtrukRBJ+dp5K7pkest0FAPhASShG6DR7Ebm45VxfydRM+4qV7GRuoyF TNXsJiriQm8PU/KQkWLqYiBVX2h2pAP+sYEs0xlG3vlkcDmWqN+niPNm76l411ddyKBb EDAnK1gRiOulc8l0TpClouU9/32oLb/9lrjsrQ30+LkVUcYJXfhOKw0ufqw1jB3KmOGu 0YpLPaBph0cGCt6sFyxh79oyKVV44TyRMpeZibB+Kq4QlyA147JgSyaDra/l3fC7w99+ MHPN96mraKXh6sq/QdJ1k4uVZ+ysne4iSlRbxFPKVUz+K6go5OezXcedXC2uFMS1SbfF kB7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DcQi4j/u"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si22067367pls.380.2018.11.19.09.11.43; Mon, 19 Nov 2018 09:11:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DcQi4j/u"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436456AbeKTDf5 (ORCPT + 32 others); Mon, 19 Nov 2018 22:35:57 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38168 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406258AbeKTDf4 (ORCPT ); Mon, 19 Nov 2018 22:35:56 -0500 Received: by mail-pf1-f193.google.com with SMTP id q1so7153562pfi.5 for ; Mon, 19 Nov 2018 09:11:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f8EdN9IfUC+HQpAsL0jSDLomOfXBY5TdAIOND6Bm3Pg=; b=DcQi4j/uit2V/jjRVTqlhidAKQmOlNp6R3xG9FsvTzENvySz0QN8wwDgEa+NxDZR1y pMxnrzcMAGlWp4qptU3Xhc7jKLq3Ws2l82u2et/KBPI9aViVUalcOjSzCLecsi3YW9k2 e0OHpNninSSTutQfVyh9xDRiQ7lYKxjHV1k2c= 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=f8EdN9IfUC+HQpAsL0jSDLomOfXBY5TdAIOND6Bm3Pg=; b=XfJJ7WjuUYhUJQXtmXNh7WxY0YbkqSHbALlHJdJtYF3UeUUyOjn01k0C9kHBJgmU+k 22pIWBFlcRzxfiu9flAo92Ymv+sxic/9qhs9+g5G8Ib3uceSpeSqsxz2CMditwqvbDpR up2KRZgjSypLs9RYckdI7O59b4aIA25OPIWl8tsx+XPvhIZbqBVTU68aGgZfO6huGCVb gR9oggCufS4RsGBGV358SomBvZ/XdzGbhe/zuQT9WPHJbYlEvf7wLpLgGw5MsZ4HWUBV phM4QiG74uJkG3iupQRIrcu3/bRYTohvNZZTlBeXS145qBApzXNHEXriu0Ad75zsp9cS QvmQ== X-Gm-Message-State: AGRZ1gKQLmosconvICi0Ld6vZmxwS49USCRJDVq7sYNo+rpsmFrl5bh5 s2qqIwwGq5CZFFE2IIyBkfMX X-Received: by 2002:a63:6f0d:: with SMTP id k13mr20651272pgc.42.1542647496980; Mon, 19 Nov 2018 09:11:36 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.11.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:11:36 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, Manivannan Sadhasivam , =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH 06/16] arm: dts: Add devicetree for OrangePi i96 board Date: Mon, 19 Nov 2018 22:39:29 +0530 Message-Id: <20181119170939.19153-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add initial devicetree for Orange Pi i96 board from Xunlong. It is one of the 96Boards IoT Edition board. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/rda8810pl-orangepi-i96.dts | 35 ++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/rda8810pl-orangepi-i96.dts -- 2.17.1 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index a0fdad8f10dd..cfb08ea33872 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -807,7 +807,8 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8974-sony-xperia-honami.dtb \ qcom-mdm9615-wp8548-mangoh-green.dtb dtb-$(CONFIG_ARCH_RDA) += \ - rda8810pl-orangepi-2g-iot.dtb + rda8810pl-orangepi-2g-iot.dtb \ + rda8810pl-orangepi-i96.dtb dtb-$(CONFIG_ARCH_REALVIEW) += \ arm-realview-pb1176.dtb \ arm-realview-pb11mp.dtb \ diff --git a/arch/arm/boot/dts/rda8810pl-orangepi-i96.dts b/arch/arm/boot/dts/rda8810pl-orangepi-i96.dts new file mode 100644 index 000000000000..3e3b8c4575cd --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl-orangepi-i96.dts @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ + +/dts-v1/; + +#include "rda8810pl.dtsi" + +/ { + compatible = "xunlong,orangepi-i96", "rda,8810pl"; + model = "Orange Pi i96"; + + chosen { + stdout-path = "serial2:921600n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x10000000>; + }; + + uart2_clk: uart2-clk { + compatible = "fixed-clock"; + clock-frequency = <921600>; + #clock-cells = <0>; + }; +}; + +&uart2 { + status = "okay"; + clocks = <&uart2_clk>; +}; From patchwork Mon Nov 19 17:09:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151508 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2919035ljp; Mon, 19 Nov 2018 09:11:55 -0800 (PST) X-Google-Smtp-Source: AJdET5e8q0pSlsWetzHTl5iEOL6lPr61SljIT0gMAj797LX0b7xDJtuCBgWBtRJSEpI8qCBPTHhA X-Received: by 2002:a65:57cb:: with SMTP id q11mr20876693pgr.60.1542647514934; Mon, 19 Nov 2018 09:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647514; cv=none; d=google.com; s=arc-20160816; b=OXGIIDL3y2M8wKvuZFAvTcfWr3TsHh9GhU8RHAImm+pS4K0LHyxiK4CTFtJ4/VzCG8 nA5NK4q1NjS86s1MEcsxLqrg053YHLEic64EPmY/gmr1nSyj6Iyj1lnAtLdbd1mJY3uy 5W7csa0RdN3QytepW0vtiib49DZu2/8Ypvj+t9FfUt+zQND2tYPa66qmFVKyUvhGHxB7 8a2+5o/pzp+tHx8kHjmTT6Z92vy+viQabNHort/I/2nU3H5dXb6P4IFZYpT6HD0yDZ42 ot9wyWze6zZOtfV7KwjTGJfXvGUdjZXGxCnGfwwe8IjQOONstsDbpAJil/4NAiDVrLg5 fVyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=jR8jqkNYSDl0WkyGt3f6ZbMvtSjkCAlWkbZwvvthT4Q=; b=kJrMAmxHAdA7l+WzcZlhYEBQSmDn03Uq3rK1Nnn9mAMqQPUF26DN+sCpRF+e0xs4MD lekkhYYNFrwvJE6syVkvxfQAQsHLMjVxf238WyZTVU7ej3buI7oahP8yISZx/nUWG+my bL8jRAvCQJwL48MqMFYQZZiSUX1c4KpK873SlUw6HMoukjPsvIYShf43Kw4bvMDVRX4+ 92G0Uzl486ywS5us/Q/Gi1KkYZv0DVCLpKUj1au6zn9g7YIg4uWcd3q4tLZygTqy/IrN H0WC3aviB/Lgh7LIUCklr8IU7SCH6ZLybGsDRJZAvbpjqt/qYoMeFokUf2P6JyvRV0rI 81xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AtQCuulE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si22067367pls.380.2018.11.19.09.11.51; Mon, 19 Nov 2018 09:11:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AtQCuulE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407204AbeKTDgG (ORCPT + 32 others); Mon, 19 Nov 2018 22:36:06 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34008 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406987AbeKTDgE (ORCPT ); Mon, 19 Nov 2018 22:36:04 -0500 Received: by mail-pl1-f193.google.com with SMTP id f12-v6so14897486plo.1 for ; Mon, 19 Nov 2018 09:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jR8jqkNYSDl0WkyGt3f6ZbMvtSjkCAlWkbZwvvthT4Q=; b=AtQCuulEmbyxqFCrr8YT3Yj0qbNwCan7xmvvis0aYZjuuPPiFVnXdf28v8y0y2yfLD J/EmXrfxunY2ERgp6QqjW87tNaShRqY8hdLWanK8A5gkr4mHMenKPjGrHMmWDSk9mMGc qf0+bP3tSQ8F65kcyDXcObanpXL0Zz4FP+8o8= 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=jR8jqkNYSDl0WkyGt3f6ZbMvtSjkCAlWkbZwvvthT4Q=; b=WdR8OaNsJdhiBTWor7go0wfGwtxZ0q7JAyg/HxIKtpnxOOl83I4DkFYdx0M/Szp1pn FXJKnAO5wXby9UhJhFDvtpVhkshy0wKCJwpvigZd6z1M6/AyxwIgM9+6Kj6nCh5ERA+o mI7R0M06BeKzBhXO5uTP2Pxk8z4NVyjtnuI4pEzEmCfDzLV94DUxbi4MONfjqLz0TE0Y U836DP4VF5ZpjfZzxt94xDidPS3bQvs0R4rpipF7O2cdkSYz3xOgQbLi2P0fNRJeKaIm U2RP09UTSszrlLPtkDvuEEiBDl1qQBjZRoRelicP+GTy5/3bLKho3FQ6cJYyrNTYtByw 9HEQ== X-Gm-Message-State: AGRZ1gI+ZbBY27ihtrcaE2R57Ypx1X/ddoCnfv1Y8p1z6ukGcdWSbbaX L6uqesQUGoMTxeY3sj1hRRZs X-Received: by 2002:a17:902:5a4d:: with SMTP id f13mr23896113plm.49.1542647505288; Mon, 19 Nov 2018 09:11:45 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.11.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:11:44 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, Manivannan Sadhasivam Subject: [PATCH 07/16] dt-bindings: interrupt-controller: Document RDA8810PL intc Date: Mon, 19 Nov 2018 22:39:30 +0530 Message-Id: <20181119170939.19153-8-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document interrupt controller in RDA Micro RDA8810PL SoC. Signed-off-by: Manivannan Sadhasivam --- .../interrupt-controller/rda,8810pl-intc.txt | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt new file mode 100644 index 000000000000..ed53ad0574a7 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt @@ -0,0 +1,61 @@ +RDA Micro RDA8810PL Interrupt Controller + +The interrupt controller in RDA8810PL SoC is a custom interrupt controller +which supports up to 32 interrupts. + +Required properties: + +- compatible: Should be "rda,8810pl-intc". +- reg: Specifies base physical address of the registers set. +- interrupt-controller: Identifies the node as an interrupt controller. +- #interrupt-cells: Specifies the number of cells needed to encode an + interrupt source. The value shall be 2. + +The interrupt sources are as follows: + +ID Name +------------ +0: PULSE_DUMMY +1: I2C +2: NAND_NFSC +3: SDMMC1 +4: SDMMC2 +5: SDMMC3 +6: SPI1 +7: SPI2 +8: SPI3 +9: UART1 +10: UART2 +11: UART3 +12: GPIO1 +13: GPIO2 +14: GPIO3 +15: KEYPAD +16: TIMER +17: TIMEROS +18: COMREG0 +19: COMREG1 +20: USB +21: DMC +22: DMA +23: CAMERA +24: GOUDA +25: GPU +26: VPU_JPG +27: VPU_HOST +28: VOC +29: AUIFC0 +30: AUIFC1 +31: L2CC + +Example: + apb@20800000 { + compatible = "simple-bus"; + ... + intc: interrupt-controller { + compatible = "rda,8810pl-intc"; + reg = <0x0 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; From patchwork Mon Nov 19 17:09:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151509 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2919159ljp; Mon, 19 Nov 2018 09:12:00 -0800 (PST) X-Google-Smtp-Source: AJdET5c7ZQWb7osQnr69kHh6UwOW70sRXResU8YiQLEBOQluqQejkAylX5xu5EWmn4/xyT+/eUQn X-Received: by 2002:a17:902:2dc3:: with SMTP id p61mr21210645plb.166.1542647520631; Mon, 19 Nov 2018 09:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647520; cv=none; d=google.com; s=arc-20160816; b=Ryk+2NdpJftQT28kNkX3frA6kYgrIr1m/9/quB+Ba5dnLa6YakdBpENFVb3C9kQXwL G2isH3MiccXVuq1zrIX7NtrnYxO/4EzxBwj3RGBJ8Iqm8E8RYBOIMoJSEQevKvwPWHuB t0I4vOL1bIsFYV+yR0lswgaZgtpIS5JEw8swq8Xr3wKr8kA08qkNBmQFtjG+pnPo6xIq HjxGzF8DjHERhqIzVN7ojxEZomDUaLuljbogxggEcR3IFxX7IOlqW2wbTIR6Xulbol08 NGbcNWd+OSY0fDxSlxwYzn4L7m7ZyH/hzyx1K6Zo2Oed5f3OgU+O2nP/aVFdhcT/Vywz y88A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bGZyJjOaTxTFzcNQ/EVwhaHRgLJ1bzedaBRxPCPwLjo=; b=YeilUk56aYRBODN318KS5EarE7L1DzMTr+DylRfPUJXpCWfVqguWv+1HoF7mcyAw2g apaQYB1yVhyOX5UAyD6aSdC6VZUNEwewzkgajzUtP8eeCorBFLhXfik4Zv5QvKa7KcBV io/VirMuno0TXowffRpPXp79h9n2lowaDndx/bW1aqFzz4kun0wPfaFHNnZPhWU3S+Q6 0B1P/SJz+2tBVo6AUmB3L/q4G5WxVLQ8js86j/cIPwHNErdk7+vWsbTpEIb9B7LNLuBS vKs55SvWYKMv4WKNaYDEnk6mHHVK1JScpdiNOTfMEz4hrYbSBjZTjQjDymi8muGhnyVp xvOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FLGisDnb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k25si14928024pfe.10.2018.11.19.09.11.56; Mon, 19 Nov 2018 09:12:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FLGisDnb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407207AbeKTDgO (ORCPT + 32 others); Mon, 19 Nov 2018 22:36:14 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36408 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406379AbeKTDgN (ORCPT ); Mon, 19 Nov 2018 22:36:13 -0500 Received: by mail-pf1-f193.google.com with SMTP id b85so8324630pfc.3 for ; Mon, 19 Nov 2018 09:11:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bGZyJjOaTxTFzcNQ/EVwhaHRgLJ1bzedaBRxPCPwLjo=; b=FLGisDnbl+TVkfwvcgO+pgufMr42SkK10LtW1XejdpN09vbT9L2xCOSBjZN1sOGJS3 MujKlI1XuDRvd7uqhPQelsSXGG0lDhsEaMYOME/zIWO70/wDmXUjZ9TvNmHg5c7TwZub AhFS4vpiwpJWz98pDZiY8jiy2CpcVVI8Lqbf4= 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=bGZyJjOaTxTFzcNQ/EVwhaHRgLJ1bzedaBRxPCPwLjo=; b=TFfXuYwnWxn7+pXtckRfBvi5HLt647rbrCVPWTL+7d4cjYxwnA6sfeSzUGV4fHlPaX n1eO1lPA4InaVbDAWUp8E5LDL0hJpgCrn8F15d3hHngAfaLU2XpFIea2RKw/XGE+SfTJ uWxdxyPEb/xL0r3B3xDPyqXZAoV5yN4RBMkCCRrrJ3bCM+p8vv60/jOaJkN0JkMiu95z cH7xDYi2hMA80wHTUjkaYOPmJevWaDTiPR/0G9vJg7oeL56pfeU2eiUyqcbwILI7X9hN y4QnHjUhBVFA8iyBra2WJxWbttzeFzSCP6gioPd8GO1e+daJ2cqfwrHddx6dn79UA0QB es3g== X-Gm-Message-State: AGRZ1gLY5wwD8YcDz6ydlSB+k8abiZGP0u6kDWBxDpz3eK9vy+K7vRTi FQxHwKZWud4T/WuUimbuyO5c X-Received: by 2002:a63:eb52:: with SMTP id b18mr20316120pgk.213.1542647513201; Mon, 19 Nov 2018 09:11:53 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.11.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:11:52 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, Manivannan Sadhasivam , =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH 08/16] arm: dts: rda8810pl: Add interrupt controller support Date: Mon, 19 Nov 2018 22:39:31 +0530 Message-Id: <20181119170939.19153-9-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add interrupt controller support for RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/rda8810pl.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi index 7f1ff2021eff..093d6980bfbd 100644 --- a/arch/arm/boot/dts/rda8810pl.dtsi +++ b/arch/arm/boot/dts/rda8810pl.dtsi @@ -9,6 +9,7 @@ / { compatible = "rda,8810pl"; + interrupt-parent = <&intc>; #address-cells = <1>; #size-cells = <1>; @@ -49,6 +50,13 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x20800000 0x100000>; + + intc: interrupt-controller { + compatible = "rda,8810pl-intc"; + reg = <0x0 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; apb@20900000 { From patchwork Mon Nov 19 17:09:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151510 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2919329ljp; Mon, 19 Nov 2018 09:12:08 -0800 (PST) X-Google-Smtp-Source: AJdET5dau3QnkmTlrZpYLuV+/qHdsmK4ne52nqjAgFe6YkhxgtWDBRMQqYmN3KtPFN0Pyfd/MxNX X-Received: by 2002:a17:902:50ec:: with SMTP id c41-v6mr22576934plj.176.1542647528337; Mon, 19 Nov 2018 09:12:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647528; cv=none; d=google.com; s=arc-20160816; b=qfwMoDlbhEJYBFits33SIMjevP36nyXqN403jtwSUcVa7MnQMJ4HzSMMoGTyA6kb5R JBBOhBoc3wBK9Jw9Mnr48mDX4Fe1F9kWtwFsYxDEcqfpZTj7elYrpjt0jeURH6tkfW9m FIcVIAC0CSPqyHS2YD8vhTtQOjp2U4mzzgAgw+bCV4c2OoIYsdbJbQoBkXU+cGMr84sf AXKTGdLXdLGq1JTpfmlDDl+iIC4xxqb4WRskiUCcdsHArAzDcHlKQxdAXmSsA797RZzP UY/5J0QTjER8ojyHnYDguu+DKojtpTGheKK5ZAPOhRiN35w0g25BaPik9vA/g3+Yc6mD bioQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gjfTWF5ho9hOW+H8fAwrXTF7zQ1PXYNRyB/MMyM6ljs=; b=xanoCzpCquWlxDk3NE7FBfykNNTN2gpY0DCs1MrAnd1dg51PHy1Yslp+0synEP02Qd HG/9FW7iohr/Q3qcxhm4EwXx4elAv0J9nrRVp0HfdNahc/ffHbZ/mDBXquwoniYWlODT YyY2uYtQJR991kom2KMgBFjnUplW+5svPhoPVu3bORPUmemV6j0x+R81Eq0V2AjuwswL 0lIrSaM3Q10m1C+M9TNWC3YIdehJnGB8Aa9bxXRY6EJKvay33BZ4kN3+d2qGgR9jsKUJ mbB05wXku3DyMm04c3HE2wC5CuX1RNHjvvuQ18T/dEHRjkqLUgbqhcZWjxH4kp5Ii17C /9PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OYpBMdyV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si22692847pgb.489.2018.11.19.09.12.05; Mon, 19 Nov 2018 09:12:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OYpBMdyV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436471AbeKTDgW (ORCPT + 32 others); Mon, 19 Nov 2018 22:36:22 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:32984 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406379AbeKTDgW (ORCPT ); Mon, 19 Nov 2018 22:36:22 -0500 Received: by mail-pf1-f195.google.com with SMTP id v68-v6so15162615pfk.0 for ; Mon, 19 Nov 2018 09:12:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gjfTWF5ho9hOW+H8fAwrXTF7zQ1PXYNRyB/MMyM6ljs=; b=OYpBMdyVWA9L6I8iK6wWAg/eUV9b3ccDfStZOExLX6Yf4wTxEfBgo1SIPZvXvhB+EK fbmAE0HS6LGSPYTMZ5Bm3p8xmVSyLOZOnLocF8hdytD5WsJksc2duLLBieXV0wat77nb wHoLfNISF8izqGmH3kseBJYJwsFZFDYtJR+h4= 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=gjfTWF5ho9hOW+H8fAwrXTF7zQ1PXYNRyB/MMyM6ljs=; b=jfqEVXcQOABIVk6eygzCzWvPj1HKHR+7qddWznU+2pU/Xn6Rd8AGT7O37mfyQld8nD dWoQo+2LUvSSAyD8nJseCl50VDJH3zfiXq7la98T1+NHRyKwgrVmPpzaWiDV3Rbizmcs oijYypEzJNmqkG+gxmxlM0d0HpReiGbK6c30anhMkoda7TdsrsK11vynRtriGKjmK9t/ HoxqA4FmNFa2H4B+1m8GUXO8iZ3AhQji9jP9mQgfgYUg0UO9PoIiawki6dPQBxfw4JGX FVJUEhmP4aMCp3yn2+A6BTUUq3MPCKbi1Ic19G2VB/bJ1poM28T6nHbd08q/DS806Uf/ NVBA== X-Gm-Message-State: AGRZ1gLuvW3Jl9PEUBIvCq5jiIqlXyxuisSujai/KvKclY805RziJFlQ sM/tyj8rI1EiigQvCxov3Pay X-Received: by 2002:a62:9683:: with SMTP id s3mr16521558pfk.60.1542647522027; Mon, 19 Nov 2018 09:12:02 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.11.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:12:01 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, Manivannan Sadhasivam , =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH 09/16] irqchip: Add RDA8810PL interrupt driver Date: Mon, 19 Nov 2018 22:39:32 +0530 Message-Id: <20181119170939.19153-10-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add interrupt driver for RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/mach-rda/Kconfig | 1 + drivers/irqchip/Kconfig | 4 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-rda-intc.c | 116 +++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 drivers/irqchip/irq-rda-intc.c -- 2.17.1 diff --git a/arch/arm/mach-rda/Kconfig b/arch/arm/mach-rda/Kconfig index dafab78d7aab..29012bc68ca4 100644 --- a/arch/arm/mach-rda/Kconfig +++ b/arch/arm/mach-rda/Kconfig @@ -3,5 +3,6 @@ menuconfig ARCH_RDA depends on ARCH_MULTI_V7 select COMMON_CLK select GENERIC_IRQ_CHIP + select RDA_INTC help This enables support for the RDA Micro 8810PL SoC family. diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 51a5ef0e96ed..9d54645870ad 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -195,6 +195,10 @@ config JCORE_AIC help Support for the J-Core integrated AIC. +config RDA_INTC + bool + select IRQ_DOMAIN + config RENESAS_INTC_IRQPIN bool select IRQ_DOMAIN diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile index 794c13d3ac3d..417108027e40 100644 --- a/drivers/irqchip/Makefile +++ b/drivers/irqchip/Makefile @@ -43,6 +43,7 @@ obj-$(CONFIG_IMGPDC_IRQ) += irq-imgpdc.o obj-$(CONFIG_IRQ_MIPS_CPU) += irq-mips-cpu.o obj-$(CONFIG_SIRF_IRQ) += irq-sirfsoc.o obj-$(CONFIG_JCORE_AIC) += irq-jcore-aic.o +obj-$(CONFIG_RDA_INTC) += irq-rda-intc.o obj-$(CONFIG_RENESAS_INTC_IRQPIN) += irq-renesas-intc-irqpin.o obj-$(CONFIG_RENESAS_IRQC) += irq-renesas-irqc.o obj-$(CONFIG_VERSATILE_FPGA_IRQ) += irq-versatile-fpga.o diff --git a/drivers/irqchip/irq-rda-intc.c b/drivers/irqchip/irq-rda-intc.c new file mode 100644 index 000000000000..89be55a11823 --- /dev/null +++ b/drivers/irqchip/irq-rda-intc.c @@ -0,0 +1,116 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * RDA8810PL SoC irqchip driver + * + * Copyright RDA Microelectronics Company Limited + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + */ + +#include +#include +#include +#include +#include +#include + +#include +#include + +#define RDA_INTC_FINALSTATUS 0x00 +#define RDA_INTC_STATUS 0x04 +#define RDA_INTC_MASK_SET 0x08 +#define RDA_INTC_MASK_CLR 0x0c +#define RDA_INTC_WAKEUP_MASK 0x18 +#define RDA_INTC_CPU_SLEEP 0x1c + +#define RDA_IRQ_MASK_ALL 0xFFFFFFFF + +#define RDA_NR_IRQS 32 + +void __iomem *base; + +static void rda_intc_mask_irq(struct irq_data *d) +{ + void __iomem *base = (void __iomem *)irq_data_get_irq_chip_data(d); + + writel(BIT(d->hwirq), base + RDA_INTC_MASK_CLR); +} + +static void rda_intc_unmask_irq(struct irq_data *d) +{ + void __iomem *base = (void __iomem *)irq_data_get_irq_chip_data(d); + + writel(BIT(d->hwirq), base + RDA_INTC_MASK_SET); +} + +static int rda_intc_set_type(struct irq_data *data, unsigned int flow_type) +{ + if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) + irq_set_handler(data->irq, handle_edge_irq); + if (flow_type & (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW)) + irq_set_handler(data->irq, handle_level_irq); + + return 0; +} + +struct irq_domain *rda_irq_domain; + +static void __exception_irq_entry rda_handle_irq(struct pt_regs *regs) +{ + u32 stat = readl(base + RDA_INTC_FINALSTATUS); + u32 hwirq; + + while (stat) { + hwirq = __fls(stat); + handle_domain_irq(rda_irq_domain, hwirq, regs); + stat &= ~(1 << hwirq); + } +} + +static struct irq_chip rda_irq_chip = { + .name = "rda-intc", + .irq_ack = rda_intc_mask_irq, + .irq_mask = rda_intc_mask_irq, + .irq_unmask = rda_intc_unmask_irq, + .irq_set_type = rda_intc_set_type, + .irq_disable = rda_intc_mask_irq, +}; + +static int rda_irq_map(struct irq_domain *d, + unsigned int virq, irq_hw_number_t hw) +{ + irq_set_status_flags(virq, IRQ_LEVEL); + irq_set_chip_and_handler(virq, &rda_irq_chip, handle_level_irq); + irq_set_chip_data(virq, d->host_data); + irq_set_probe(virq); + + return 0; +} + +static const struct irq_domain_ops rda_irq_domain_ops = { + .map = rda_irq_map, + .xlate = irq_domain_xlate_onecell, +}; + +static int __init rda8810_intc_init(struct device_node *node, + struct device_node *parent) +{ + base = of_io_request_and_map(node, 0, "rda-intc"); + if (!base) + return -ENXIO; + /* + * Mask, and invalid all interrupt sources + */ + writel(RDA_IRQ_MASK_ALL, base + RDA_INTC_MASK_CLR); + + rda_irq_domain = irq_domain_create_linear(&node->fwnode, RDA_NR_IRQS, + &rda_irq_domain_ops, base); + WARN_ON(!rda_irq_domain); + + set_handle_irq(rda_handle_irq); + + return 0; +} + +IRQCHIP_DECLARE(rda_intc, "rda,8810pl-intc", rda8810_intc_init); From patchwork Mon Nov 19 17:09:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151511 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2919520ljp; Mon, 19 Nov 2018 09:12:16 -0800 (PST) X-Google-Smtp-Source: AJdET5cgMjrIoZg30KJd/yMFBdSk+6S2hFsnV+n/LSBSaSDunll2JuW1fUWzhirBcrvQTYz9+0ZB X-Received: by 2002:a17:902:b611:: with SMTP id b17-v6mr23430629pls.31.1542647536057; Mon, 19 Nov 2018 09:12:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647536; cv=none; d=google.com; s=arc-20160816; b=o959yWfEtF9YCxe/V4XN0GgDQtz9LLe/YxV/rynu53BmA92AaBVn60hYxf02+C0KMt i9dGrwLD0hGCK7Rj0am3FB3BPaKos6ZREwTwpH0l+R5hq+Xx0obWaATCWlNOoPG1Xk/t qsH9MRkzNkNlvAYYmJ55ZfsVzrMHfJe4POwKSzGboaa2p0juKA5vHR9GjYT+ZJUljLZ6 bVer7Aw8JC6BEZvFzepNPOBcxvZRmA5YrVNnAJl/FxKEyjYhSztRiQaPdH/bLKDGCvWa Um4imimA950PQb5vmToWmsE8kItVCGdoEnFGJ6pJhbdw5YOgaT3VxWJ4T2KajO0bbu20 2sxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Qgs9dW8J2ciuq8Fdw9KElZ0yIlhVVHPqlEym1CikztU=; b=F1nwMe/dfBcQAyl9rFoAr81bRzOCNo+uLge2CAoUSumaRGW/vaz3Jw0DK9qh4koYmV iI7fiWxWlJJsInKEkntSRpLVeRQy8ONzla2sAeo1zJmbQos83n/wy4zjH3G+IyMW948o ny9NRPpB9n6sSGyukbSZ1SRn+UG8sRFIhvphPFvSpPgOMGhnJEOHi05fDqonc9adTatq cBe087NkYxWaJ/h/OQqHg29hbKUHQlKT7CrW9aQRdPl9KetwkBjmoTPiUaD4pwUqbBk+ HZa5rnKm12Lor9V/pyjI0eqH3KEuvrvD/FwWpFneRoT0FUaAm2gdjcUb7J0YfqFcw/v4 eYog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=awNuinpB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t13si37804055pgm.175.2018.11.19.09.12.14; Mon, 19 Nov 2018 09:12:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=awNuinpB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407217AbeKTDgb (ORCPT + 32 others); Mon, 19 Nov 2018 22:36:31 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38219 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406861AbeKTDga (ORCPT ); Mon, 19 Nov 2018 22:36:30 -0500 Received: by mail-pl1-f195.google.com with SMTP id e5so4850734plb.5 for ; Mon, 19 Nov 2018 09:12:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qgs9dW8J2ciuq8Fdw9KElZ0yIlhVVHPqlEym1CikztU=; b=awNuinpBOz2Uxa0Trxuic49+/zGEiKNHKPOv/28kQK972Q4uVKDnZa+OLia8Y+YqIV 2NNCIsCC4dZHfkER7x+dvqE2nJpLrSvcWl1aK+Z/AxEIZz/MYsHZSJi2qd/ywssPAGzV iZqe8Ui8k8G5UPu6YnaWcHUzN/h57mTqWUdz8= 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=Qgs9dW8J2ciuq8Fdw9KElZ0yIlhVVHPqlEym1CikztU=; b=ppFOnfYO1kI2hD2HhwQ1kgbd3hKuLKqb9Fvc9G1IUUbS2V51xglGdg5jwgCElNVdv3 Dr5od7Y5VO8jgjtuwKmHGOdYGkwvuXVhDeGseH2A4upBXHSmiT2z6cBe2pShun57AQWL bq3YvH2IFA02yerkk4ercYqeFGmvwCz1yquhjeCR6FpdYBbuAL/xALA/g1QielmnoAuJ Y7pKOM+8abRt2t4GxLS8HpD+np6qLafOj1X3Gr1kMFguYTMjR6p78B+4+j/cceZUr2ZS li0yANjpiiGNZPZkYt8vUQiGm3+MEsbFZUfBowYUnBCShIerBQDMqPzm5bvEn9xVGI70 M7UA== X-Gm-Message-State: AGRZ1gLaI4h40Ec/BlsAA88V7eCTuLlwnNU0U2ezOb50kJ/aHDA3Go0p OSoJvgAuMHdUrcIXZNpXaWvP X-Received: by 2002:a17:902:622:: with SMTP id 31-v6mr23344807plg.310.1542647530665; Mon, 19 Nov 2018 09:12:10 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.12.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:12:09 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, Manivannan Sadhasivam Subject: [PATCH 10/16] dt-bindings: timer: Document RDA8810PL SoC timer Date: Mon, 19 Nov 2018 22:39:33 +0530 Message-Id: <20181119170939.19153-11-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document RDA Micro RDA8810PL SoC timer. Signed-off-by: Manivannan Sadhasivam --- .../bindings/timer/rda,8810pl-timer.txt | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt b/Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt new file mode 100644 index 000000000000..06cc2b00be12 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt @@ -0,0 +1,21 @@ +RDA Micro RDA8810PL Timer + +Required properties: +- compatible : "rda,8810pl-timer" +- reg : Offset and length of the register set for the device. +- interrupts : Should contain the interrupts. +- interrupt-names : Valid names are: "hwtimer", "ostimer". + See ../resource-names.txt + +Example: + + apb@20900000 { + compatible = "simple-bus"; + ... + timer@10000 { + compatible = "rda,8810pl-timer"; + reg = <0x10000 0x1000>; + interrupts = <16 IRQ_TYPE_LEVEL_HIGH>, + <17 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hwtimer", "ostimer"; + }; From patchwork Mon Nov 19 17:09:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151512 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2919696ljp; Mon, 19 Nov 2018 09:12:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/W2H925W1WPag8EeGGQmoKyNLX5iVclQ/gINX3rfdl3j74g1c9mLdfB+g7o0ht/7igNfjls X-Received: by 2002:a17:902:bb98:: with SMTP id m24mr3914118pls.71.1542647543216; Mon, 19 Nov 2018 09:12:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647543; cv=none; d=google.com; s=arc-20160816; b=RLBhmYqg83mM22qwk25dz2WfO+QJQOxEvTHH5EbjTaBr99xJXE8r/b+pPsVONpIfnh E5KN5cy4jRCmTrepq795/MZmiqsfWdMVpmKV0rqLzUoYt4EzLEzj5HiL5c/abgtHa9fu o6iJDkVZaTYxd1R5nfO5azny8K2H+VvK9sBbOsPgJToG93pnQwQLHUKoWBg+wKezCZQL Zdke5tJaevJI96Jt+MSgJGRru+R4foF+syK0i3DSGWZnNAuz456CNf3N/6F79gYNtGdS 9w9OHbXt8/RFAszth6NzkX0TwR+JR7/LSIuJ3SAPZvuwcnLpU9XzbnUg87gSlNwvxNhC iJBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jBqjbleOR1XYLcLHKcw7C9MGOuQDlogmmYBwF0l/45o=; b=YLjuek1sQrX0FCK5DyAAnGViRKmbrO1EEXVSFd6gd+SoxFdZppSfiQ5GQxgxRVcMxW k/PeqSEhuiyBlypp+hu7OQYC+eVfpNcHc6Qwy8Kzt8gCwZtP8D+k4Mp+F2AJU/TkEnc5 6H4kXbUDDepJvgk5+yqz2AduA/L9+sUTYYro6F1zt7fV9eE5+MshMQpXPt+0XQeQdeec 9k7mQg+Kaci3/137y/xOJhsjNfd8vKAjsJXvZSMYo6gobMIgwOY7kCrtz8W0H45csYR8 SCgZrivpX/qJsvj/ZLLdy4zw7qCB3QQLzMgSOYp2KsbeJIOUdTtFn1rM/mLON3YJl5Wo FTbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HmcUeCnP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si23285707pll.384.2018.11.19.09.12.20; Mon, 19 Nov 2018 09:12:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HmcUeCnP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407221AbeKTDgi (ORCPT + 32 others); Mon, 19 Nov 2018 22:36:38 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:43666 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406861AbeKTDgi (ORCPT ); Mon, 19 Nov 2018 22:36:38 -0500 Received: by mail-pl1-f195.google.com with SMTP id gn14so111500plb.10 for ; Mon, 19 Nov 2018 09:12:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jBqjbleOR1XYLcLHKcw7C9MGOuQDlogmmYBwF0l/45o=; b=HmcUeCnPjGv3rKO0oslKqohVVIOwHxX54dueSObI1priLH+c1AhIdViI0RuN8Lc/2Q cAo596iXqK2aFT51VnSMoOIOEXefF4+TVz5HJ+o1ux1J4Vt+T/0iQ65XlD0PnigiwYir nk5XiqFCSV0ArSqbwK0MPIKG9dWtTVTINXQM8= 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=jBqjbleOR1XYLcLHKcw7C9MGOuQDlogmmYBwF0l/45o=; b=Cy7roorp+bAjzPyY26MlbRn3ZbHO64SPkVavYvtX9WUWFuvSVEhaQurJWY/ppJ2sun CNQI1mqa9ynVuPi7TmuVJZ/fIKbs+WJfaKZQl5uadgk0DDHu2h0ygxYhui7Yk5EAVXxJ Ddgqk5zXGbPpZQ2eXq9oglGzP+9Y+8WibjAIgJ7hX/dWMuUHLYHfU5cbVGdzKtMBdZMZ 7jGL/b9ODw2k0B2kg7dopWRO3CUGBufULVu/vD5chbEQYwl/IDuKtBBbgS8l5FpOwqEQ /Gv2t2Q2wOma7SQrq7EwcFVc5gzobMtEitsqankYO3tAqfBd580hAJHLVblMKR2He6m0 MODA== X-Gm-Message-State: AGRZ1gL09zmY2NVxqpgNN8iXJaNufY7d3Gs2XGOlTuEZ9L9ecnYDlgD+ wyc3+S9+otrWnk17ta7v2prQ X-Received: by 2002:a17:902:6801:: with SMTP id h1-v6mr23061128plk.177.1542647538329; Mon, 19 Nov 2018 09:12:18 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.12.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:12:17 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, Manivannan Sadhasivam , =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH 11/16] arm: dts: rda8810pl: Add timer support Date: Mon, 19 Nov 2018 22:39:34 +0530 Message-Id: <20181119170939.19153-12-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add timer support for RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/rda8810pl.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi index 093d6980bfbd..470a18585deb 100644 --- a/arch/arm/boot/dts/rda8810pl.dtsi +++ b/arch/arm/boot/dts/rda8810pl.dtsi @@ -7,6 +7,8 @@ * SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ +#include + / { compatible = "rda,8810pl"; interrupt-parent = <&intc>; @@ -65,6 +67,14 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x20900000 0x100000>; + + timer@10000 { + compatible = "rda,8810pl-timer"; + reg = <0x10000 0x1000>; + interrupts = <16 IRQ_TYPE_LEVEL_HIGH>, + <17 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hwtimer", "ostimer"; + }; }; apb@20a00000 { From patchwork Mon Nov 19 17:09:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151513 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2919906ljp; Mon, 19 Nov 2018 09:12:34 -0800 (PST) X-Google-Smtp-Source: AJdET5fi6544A6tavd48mtW9139kNOXPCtZtyv+GQMtCDOXwTCfttHsPGuz9LXL7k+exDhGM+R1/ X-Received: by 2002:a63:4a4d:: with SMTP id j13mr21193143pgl.127.1542647553907; Mon, 19 Nov 2018 09:12:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647553; cv=none; d=google.com; s=arc-20160816; b=y4BxX2cPpjdNN72w8Qc/0S25AySIxca30E24Y0OGVFLsIGZyEPfQmwtVeojMfHJ1/I NsZ6bqqRNREyT0PRuXN47lc9GIVtJ0VPJCox1ZUJlm5IjvIVE+udNhALGlguxWOc3ypl 9wzdii5lPjba1VpXqH6SgA4cGUDC7d80c6xOXuW+3TuZiHXF5+ZFNQOLhAOhMxORLdi6 61gpqG8ytzRbCzkB7Qk4nOAOJvvFQMIxb0qJ25mGNYgAdQbvnyrxPHcqnjQyRgV+sV+0 qmW0PSGRIRra5d0AoFR9b2XbglqZ3+ma+TDcqsHbK84b/tjGJmVCGkekVJkISzSaztAG BLCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JLrla1sylzw8LCOsFt1CrI+2VOlTOfZdNLUHwh/WN8I=; b=ebymqx7FWMPt1RezxP6DwJPfX8G4U+FKjICTSA03WvDEB12RJQkod1T5BcYHuENLsU KmzJ5kcsY5UoIbz56leC3/PKB3xEfRsP9cron0HP3/3WdhPhm+0eBSP4LWaKh/wxdXio 1Rymy0qQgU77RTO+9OuYga47tI3B+WClFFcatiu7cQbLzUpRo8m0vnUldeYW4G/ZaLdK BEJy6ZG6nX9yTNRtkEk4VNMh8zzLxrjOkK9+7sH41OtAYynvAJWgb9TBr3fGzLSaj/OR fLrEAP6tMm/B60EPHLgkoGfBQQ3cLx4KBkvKBIzKZRoJetaqiCLoc2rM5t0WPWYL9UB4 G7Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ay5NXzLI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si14680237plz.250.2018.11.19.09.12.31; Mon, 19 Nov 2018 09:12:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ay5NXzLI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406974AbeKTDgr (ORCPT + 32 others); Mon, 19 Nov 2018 22:36:47 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:39109 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406280AbeKTDgq (ORCPT ); Mon, 19 Nov 2018 22:36:46 -0500 Received: by mail-pg1-f194.google.com with SMTP id w6so1846986pgl.6 for ; Mon, 19 Nov 2018 09:12:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JLrla1sylzw8LCOsFt1CrI+2VOlTOfZdNLUHwh/WN8I=; b=ay5NXzLI6iKzNK/liQu7rXLcPQhUO7jEaKsc0lOKOxVa4hvmwr7/aTBQsNHLq1tbH1 GqJWXv65jtPrqYKF51cR0VAWehWohZzCe1G06tyYrMWy6a9gLEuhQyRwrY5m0D2A3COa mULbOVIo/k4EvVFj7hG4wEao9jvEiXQuvl5cs= 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=JLrla1sylzw8LCOsFt1CrI+2VOlTOfZdNLUHwh/WN8I=; b=neHHRSN04/mBahoAoQb/fk9qRxKPutVu7U3ZT6lCWq2loo3XCFJ9YVVmtPEFtGnxFw w7eYOb7//xeP17EvEzy1WMl3lp8u+NZKp6wZj8ehD8vkMLWFfxB2edIgnx1tSVOtdBAr gK3J0smIphlgh6U7U2UDRHv9j1AbASDSRAOHgyXl1gfwp0O+6XRVF9oruwEZgoAiHfcL V5jKg/Gq6lKlMj4C96ldLSrvZE1+nAYicU7nNojZgMMFurjLhAvD0PAAfgBupSVsN/ZU HPVdeAgh1ZQxDER3WJAxkJQeS7KF1HVtodVgl91/WRE/8niJE5+0Q3rTlet3FdlyVNAf S9MQ== X-Gm-Message-State: AGRZ1gKpmUCU+IdWh/KB5aKvZibHxZrySD/jtKBLdoutbtNzNB73SeSW sywfTIzOM41op28f27n4Bzm5 X-Received: by 2002:a63:eb0e:: with SMTP id t14mr21050602pgh.445.1542647546849; Mon, 19 Nov 2018 09:12:26 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.12.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:12:25 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, Manivannan Sadhasivam , =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH 12/16] clocksource: Add clock driver for RDA8810PL SoC Date: Mon, 19 Nov 2018 22:39:35 +0530 Message-Id: <20181119170939.19153-13-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add clock driver for RDA Micro RDA8810PL SoC supporting OSTIMER and HWTIMER. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/mach-rda/Kconfig | 1 + drivers/clocksource/Kconfig | 7 ++ drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-rda.c | 187 ++++++++++++++++++++++++++++++++ 4 files changed, 196 insertions(+) create mode 100644 drivers/clocksource/timer-rda.c -- 2.17.1 diff --git a/arch/arm/mach-rda/Kconfig b/arch/arm/mach-rda/Kconfig index 29012bc68ca4..1ea753f57b2d 100644 --- a/arch/arm/mach-rda/Kconfig +++ b/arch/arm/mach-rda/Kconfig @@ -4,5 +4,6 @@ menuconfig ARCH_RDA select COMMON_CLK select GENERIC_IRQ_CHIP select RDA_INTC + select RDA_TIMER help This enables support for the RDA Micro 8810PL SoC family. diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 55c77e44bb2d..f51eee3a72ea 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -105,6 +105,13 @@ config OWL_TIMER help Enables the support for the Actions Semi Owl timer driver. +config RDA_TIMER + bool "RDA timer driver" if COMPILE_TEST + depends on GENERIC_CLOCKEVENTS + select CLKSRC_MMIO + help + Enables the support for the RDA Micro timer driver. + config SUN4I_TIMER bool "Sun4i timer driver" if COMPILE_TEST depends on HAS_IOMEM diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index dd9138104568..150020a90707 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -57,6 +57,7 @@ obj-$(CONFIG_OXNAS_RPS_TIMER) += timer-oxnas-rps.o obj-$(CONFIG_OWL_TIMER) += timer-owl.o obj-$(CONFIG_SPRD_TIMER) += timer-sprd.o obj-$(CONFIG_NPCM7XX_TIMER) += timer-npcm7xx.o +obj-$(CONFIG_RDA_TIMER) += timer-rda.o obj-$(CONFIG_ARC_TIMERS) += arc_timer.o obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o diff --git a/drivers/clocksource/timer-rda.c b/drivers/clocksource/timer-rda.c new file mode 100644 index 000000000000..3aa684d92c5d --- /dev/null +++ b/drivers/clocksource/timer-rda.c @@ -0,0 +1,187 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * RDA8810PL SoC timer driver + * + * Copyright RDA Microelectronics Company Limited + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + */ + +#include +#include +#include +#include +#include +#include +#include + +#define RDA_OSTIMER_LOADVAL_L 0x000 +#define RDA_OSTIMER_CTRL 0x004 +#define RDA_HWTIMER_LOCKVAL_L 0x024 +#define RDA_HWTIMER_LOCKVAL_H 0x028 +#define RDA_TIMER_IRQ_MASK_SET 0x02c +#define RDA_TIMER_IRQ_CLR 0x034 + +#define RDA_OSTIMER_CTRL_ENABLE BIT(24) +#define RDA_OSTIMER_CTRL_REPEAT BIT(28) +#define RDA_OSTIMER_CTRL_LOAD BIT(30) + +#define RDA_TIMER_IRQ_MASK_SET_OSTIMER BIT(0) + +#define RDA_TIMER_IRQ_CLR_OSTIMER BIT(0) + +static void __iomem *rda_timer_base; + +static u64 rda_hwtimer_read(struct clocksource *cs) +{ + u32 lo, hi; + + /* Always read low 32 bits first */ + lo = readl(rda_timer_base + RDA_HWTIMER_LOCKVAL_L); + hi = readl(rda_timer_base + RDA_HWTIMER_LOCKVAL_H); + + return ((u64)hi << 32) | lo; +} + +static struct clocksource rda_clocksource = { + .name = "rda-timer", + .rating = 400, + .read = rda_hwtimer_read, + .mask = CLOCKSOURCE_MASK(64), + .flags = CLOCK_SOURCE_IS_CONTINUOUS, +}; + +static int rda_ostimer_start(bool periodic, u64 cycles) +{ + u32 ctrl, load_l; + + load_l = (u32)cycles; + ctrl = ((cycles >> 32) & 0xffffff); + ctrl |= RDA_OSTIMER_CTRL_LOAD | RDA_OSTIMER_CTRL_ENABLE; + if (periodic) + ctrl |= RDA_OSTIMER_CTRL_REPEAT; + + /* Enable ostimer interrupt first */ + writel(RDA_TIMER_IRQ_MASK_SET_OSTIMER, + rda_timer_base + RDA_TIMER_IRQ_MASK_SET); + + /* Write low 32 bits first, high 24 bits are with ctrl */ + writel(load_l, rda_timer_base + RDA_OSTIMER_LOADVAL_L); + writel(ctrl, rda_timer_base + RDA_OSTIMER_CTRL); + + return 0; +} + +static int rda_ostimer_stop(void) +{ + /* Disable ostimer interrupt first */ + writel(0, rda_timer_base + RDA_TIMER_IRQ_MASK_SET); + + writel(0, rda_timer_base + RDA_OSTIMER_CTRL); + + return 0; +} + +static int rda_ostimer_set_state_shutdown(struct clock_event_device *evt) +{ + rda_ostimer_stop(); + + return 0; +} + +static int rda_ostimer_set_state_oneshot(struct clock_event_device *evt) +{ + rda_ostimer_stop(); + + return 0; +} + +static int rda_ostimer_set_state_periodic(struct clock_event_device *evt) +{ + unsigned long cycles_per_jiffy; + + rda_ostimer_stop(); + + cycles_per_jiffy = ((unsigned long long)NSEC_PER_SEC / HZ * + evt->mult) >> evt->shift; + rda_ostimer_start(true, cycles_per_jiffy); + + return 0; +} + +static int rda_ostimer_tick_resume(struct clock_event_device *evt) +{ + return 0; +} + +static int rda_ostimer_set_next_event(unsigned long evt, + struct clock_event_device *ev) +{ + rda_ostimer_start(false, evt); + + return 0; +} + +static struct clock_event_device rda_clockevent = { + .name = "rda-ostimer", + .rating = 250, + .features = CLOCK_EVT_FEAT_PERIODIC | + CLOCK_EVT_FEAT_ONESHOT | + CLOCK_EVT_FEAT_DYNIRQ, + .set_state_shutdown = rda_ostimer_set_state_shutdown, + .set_state_oneshot = rda_ostimer_set_state_oneshot, + .set_state_periodic = rda_ostimer_set_state_periodic, + .tick_resume = rda_ostimer_tick_resume, + .set_next_event = rda_ostimer_set_next_event, +}; + +static irqreturn_t rda_ostimer_interrupt(int irq, void *dev_id) +{ + struct clock_event_device *evt = dev_id; + + /* clear timer int */ + writel(RDA_TIMER_IRQ_CLR_OSTIMER, rda_timer_base + RDA_TIMER_IRQ_CLR); + + if (evt->event_handler) + evt->event_handler(evt); + + return IRQ_HANDLED; +} + +static int __init rda_timer_init(struct device_node *node) +{ + unsigned long rate = 2000000; + int ostimer_irq, ret; + + rda_timer_base = of_io_request_and_map(node, 0, "rda-timer"); + if (IS_ERR(rda_timer_base)) { + pr_err("Can't map timer registers"); + return PTR_ERR(rda_timer_base); + } + + ostimer_irq = of_irq_get_byname(node, "ostimer"); + if (ostimer_irq <= 0) { + pr_err("Can't parse ostimer IRQ"); + return -EINVAL; + } + + clocksource_register_hz(&rda_clocksource, rate); + + ret = request_irq(ostimer_irq, rda_ostimer_interrupt, IRQF_TIMER, + "rda-ostimer", &rda_clockevent); + if (ret) { + pr_err("failed to request irq %d\n", ostimer_irq); + return ret; + } + + irq_force_affinity(ostimer_irq, cpumask_of(0)); + + rda_clockevent.cpumask = cpumask_of(0); + rda_clockevent.irq = ostimer_irq; + clockevents_config_and_register(&rda_clockevent, rate, + 0x2, 0xffffffff); + + return 0; +} + +TIMER_OF_DECLARE(rda8810pl, "rda,8810pl-timer", rda_timer_init); From patchwork Mon Nov 19 17:09:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151514 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2920002ljp; Mon, 19 Nov 2018 09:12:39 -0800 (PST) X-Google-Smtp-Source: AJdET5dxsGIulCUO4hQLxxB2U07gmrCxZBg8DQQA7TI1f8h7MOlUH6kZtpMb+rAQkLGOLqbCEJIP X-Received: by 2002:a63:1157:: with SMTP id 23mr21018332pgr.245.1542647558902; Mon, 19 Nov 2018 09:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647558; cv=none; d=google.com; s=arc-20160816; b=ZyybHJ/iG3BpPJV1889f0SEc79gTUU+zGs9Laas+B9IuANUL/fV6kFgtk2o2Bwwf5n EzuuuL6r3NvNb3p93UEQOl7ChKs4xQevvC6jZf834TF13ffQgfhxhBn6yLULjGDQKUhj 6vv17w5QQjv0Rmk77tWvt5vTimE4D+dO3ikBPUSFE6FIViQfH9oeQ6ESvaBDBMNK6eFF HLQ8NSqAzyphMjsjzOmVyluJIuCpfq0ktPzW4ROoXlvqQlhaFwfqesXdtHBU/c2UkTZ+ S8Jecq3oY6v+wSbHc59f3fOuTUnPrJTIaKVlyqKy4ghIxsQexHSaoxWX7mwoP5nOS2Nw iFYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XKV6tkSPqX0yNGtFVz2wCvLN8kVE5+HDG9FY2wblCzs=; b=nG5txP2iWhhTTZD3PFw7n6dickpri5RKX5odcMTeH50ngy5QiqPdXsG3CkkKzL9k1r vllpaAgGa0vPDqdeSZpUodL3Qb6BDnyGL+Z+NfhnI1mcmFEgb0NFG5nWdvE3HImsYyxe 2E+tI9yb/cANIWbFUKCR44JA2M5lU/eSkE5ddHyeoIwWVBdP3rtsn6ghvPeonnzOOQcX RtcOAH59t1fOshxM0brCq8oQV/0CV02PkyXMDduYLRsX/xQJajQVqMqY7SJvWoz+t8DE 2zmySU1nT/VommExYnhAa+ZQESgUrjQHFJhJNJE2/fgFjSMcAvL1NCILNL/9Jl6vnt69 SJ6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XmBpqSNh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si14333918pfb.81.2018.11.19.09.12.37; Mon, 19 Nov 2018 09:12:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XmBpqSNh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407096AbeKTDgz (ORCPT + 32 others); Mon, 19 Nov 2018 22:36:55 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:44317 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406280AbeKTDgy (ORCPT ); Mon, 19 Nov 2018 22:36:54 -0500 Received: by mail-pl1-f195.google.com with SMTP id s5-v6so14864196plq.11 for ; Mon, 19 Nov 2018 09:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XKV6tkSPqX0yNGtFVz2wCvLN8kVE5+HDG9FY2wblCzs=; b=XmBpqSNhX67XnZAI8V4YG6QRxsnY98Qz1gMvD249R+PDOr0/Ol3LjekRawkgO4hjSY G6/f5L5cO6PoTf9kmMDd91uqAGGDfF/pqm9/hbeupQAEOsI1ne2A2oI28F22hm4T+Ay/ r471d7yvsUdijDAvjryUrznpm2tYtLeAR7vxY= 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=XKV6tkSPqX0yNGtFVz2wCvLN8kVE5+HDG9FY2wblCzs=; b=Oatfdw10ci1W/LQHQ3EHwuwN67aW/i6MKTUYFUETNpZesaI/1T0IiOFu2usZ04FsDj LmNZ/sVC4F0snMXDmOQA3ggqjQ1uN72G86L86SMFZd1zF/dkBYFBXJ27TYdPrUudwYIy nBRspQnbIqSrsLCn4/6tnzWC19bAysG3yxRUEbEdIY3DG7Y7VCvWjeO3I+RSoUFhpy3Z C5p7HS2dRzQDb6kGQghuUMl9qaFGUCYFLV7Pf3eGA9kdSlWVl7vSqfIIr/KvvVWUS1i4 nAl//xA87bhD86UXfvMV9/sCnXmHkomIl9aO9JJrdP0BQ+a8Sz4jB+RpKvvuEEpI4CWY I5DA== X-Gm-Message-State: AGRZ1gLmjskTEr0wtdiS6ZbyI3e+2exRKYBoNaRTTyqMKkIBegHjugXU mSqn+gdgCXfUl63DJTjlHiHl X-Received: by 2002:a17:902:8648:: with SMTP id y8-v6mr23239933plt.159.1542647554488; Mon, 19 Nov 2018 09:12:34 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.12.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:12:33 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam Subject: [PATCH 13/16] dt-bindings: serial: Document RDA Micro UART Date: Mon, 19 Nov 2018 22:39:36 +0530 Message-Id: <20181119170939.19153-14-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andreas Färber Add an initial binding for the UART in RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- .../bindings/serial/rda,8810pl-uart.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt b/Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt new file mode 100644 index 000000000000..ee03116d7415 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt @@ -0,0 +1,15 @@ +RDA Micro UART + +Required properties: +- compatible : "rda,8810pl-uart" for RDA8810PL SoCs. +- reg : Offset and length of the register set for the device. +- interrupts : Should contain UART interrupt. + + +Example: + + uart2: serial@20a90000 { + compatible = "rda,8810pl-uart"; + reg = <0x20a90000 0x1000>; + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; + }; From patchwork Mon Nov 19 17:09:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151517 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2920530ljp; Mon, 19 Nov 2018 09:13:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/WrL2VC5RhtLKROcN3jNTOuBlCjZDBw+o2EAzotpaIqzukr0AQOfsyzwJ1nkB8S+nU4x7Fp X-Received: by 2002:a17:902:a411:: with SMTP id p17mr5172345plq.292.1542647581826; Mon, 19 Nov 2018 09:13:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542647581; cv=none; d=google.com; s=arc-20160816; b=KKB/6rkrm/UQsEX1kT7JXr+dzf9vFRdYDHi3JMCoVxn1BaoIce0uHaNcRoo33WM20i QFyO6OSLs949e85KeBbonb5Ta9zCy4aoob/U/FaKCCdSxCurp1w1geRsLngX4XKJrUto fOXJAaalZ7oqqnKjbn6+xas1EqmtFROy0fzRj+lvjclOaEMQx8D9QHO/Awkn9HfgTDiv S/9mLuVI9o6aGJZzagU5pzQRgHm7Pjbqa1p/4BUijIZ7hJFx2hBe6uzi4uXERpCNnV9J cHibsRUoM+xFT2iUCM6BhhSD2HfjyrhGKqdd8Wcy/+RGSduuZgGvVAKI2u5D0JZaJrJz 0IIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZTOWvfrx0BsJZxmGzOshOzTkCx1AKkW+EAS4P/Cqekc=; b=Y7H635LJ+mZGWB2DYdrtMBX8bf6S1PTe755ScC/b0u+FwOdY7h4/mNL16oE/IFEb+0 gKEj7z4a8DmgKST2Ym3wurdIZOEqk6F3Fh/stmVCxdfNZ6pO+jzcPYK3ryml85RVR9KG PU5evoZfR9QRUe4ykT+erLOus4W8SZXdVMpHD61NuFI+Ye2gIcUSsjfgqG3bV7In+xgH EwFfPUzyofwzuUQCqRm1pV4kWdSx+oqkY1Uv5etTe73PTVghLfkoKhrt0SYKVPZwdCor ABnK42ArrxtJ7sSIfr3FSdVaAxY/QhcikJ2IPGYcc71zLm1D1kY4eeKr99/Swja6iOBJ LaXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G2Cooy09; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n24si4332823pgv.119.2018.11.19.09.13.00; Mon, 19 Nov 2018 09:13:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G2Cooy09; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406950AbeKTDhS (ORCPT + 32 others); Mon, 19 Nov 2018 22:37:18 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33042 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406598AbeKTDhR (ORCPT ); Mon, 19 Nov 2018 22:37:17 -0500 Received: by mail-pl1-f195.google.com with SMTP id z23so3645107plo.0 for ; Mon, 19 Nov 2018 09:12:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZTOWvfrx0BsJZxmGzOshOzTkCx1AKkW+EAS4P/Cqekc=; b=G2Cooy09CPKls/oHLpjM8t7ruKTNmVmObqf/PwgQXaCyGsDhs3ehjnR0jekIjmbXOE wwqoQyNhFqTTeZWPZU4javuQf84nfLNvJpWI+1ZaZe5M4uiaKMJHx17jZm5hWJiWCCYU tfnpAqCG7+GmSciJLQ01vwCmEyKPoHg33jyYc= 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=ZTOWvfrx0BsJZxmGzOshOzTkCx1AKkW+EAS4P/Cqekc=; b=HW/4i0dZQam8Y+Me3yqMxUAdSfjkPeV0eBwyowyENJian0VIvfaIAPzlgoqWXQEqYw +xRjs1Ebs8BpcsRuXm4TFxAEk4IN/oASm76rkwXY1f0zp1uNkJ216InshjznLaAM5yGU S2uNVU2M7/mrsIaxiqxwmJHgSykjzZSo8oecgR9PC2ewvxOpRSJqGtC6byIHkMJSO/xc HGx/dWF1vOouVbeGzjCp8k5WtwDdkotPlAPXpG94+m609i0eZa1HLS8LgrsH1bLLJSzN yjRpFF24K9GJgWQjTNslpX21VOUJoLLsffH3aU+/WakOsmoHiHIe+sdo0irD9kHHh7pd 95PA== X-Gm-Message-State: AA+aEWbnI/WZK0Y9dZw8yU28qG3I4LV6VhtbOo+bpDvF9YS+6UzEpnfF SJFYeMBj4IWVmh+NyiBcjf1J X-Received: by 2002:a17:902:7617:: with SMTP id k23mr5814335pll.83.1542647577752; Mon, 19 Nov 2018 09:12:57 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.12.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:12:57 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, service@rdamicro.com, Manivannan Sadhasivam Subject: [PATCH 16/16] MAINTAINERS: Add entry for RDA Micro SoC architecture Date: Mon, 19 Nov 2018 22:39:39 +0530 Message-Id: <20181119170939.19153-17-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add MAINTAINERS entry for RDA Micro SoC architecture with myself and Andreas Färber as the maintainers. Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.17.1 diff --git a/MAINTAINERS b/MAINTAINERS index 6c3fbbb361f8..7a5ae685a638 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1945,6 +1945,20 @@ M: Lennert Buytenhek L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained +ARM/RDA MICRO ARCHITECTURE +M: Andreas Färber +M: Manivannan Sadhasivam +L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) +S: Maintained +F: arch/arm/boot/dts/rda8810pl-* +F: drivers/clocksource/timer-rda.c +F: drivers/irqchip/irq-rda-intc.c +F: drivers/tty/serial/rda-uart.c +F: Documentation/devicetree/bindings/arm/rda.txt +F: Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt +F: Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt +F: Documentation/devicetree/bindings/timer/rda,8810pl-timer.txt + ARM/REALTEK ARCHITECTURE M: Andreas Färber L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)