From patchwork Wed Nov 21 03:36:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151626 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1418206ljp; Tue, 20 Nov 2018 19:37:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/XD5joFTUFQh8NvR3poPXae2QPjkmiHjE07UIzCh+7CvfoN/kqFgly7p56Y9Nl2IPo2W4GX X-Received: by 2002:a63:9a09:: with SMTP id o9mr4269904pge.94.1542771445998; Tue, 20 Nov 2018 19:37:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771445; cv=none; d=google.com; s=arc-20160816; b=bFay7bi/zi/BxSBACFIOZiymo2lRZSK2dvP2pJ33TcmQEkZlYFKl98pPrE3qDUf5TL jhfPrMD6aGpq74K3SwLr0GPxlfVRvGT4wq86duGYBLe1UgQcFpfNjoxd25qDTz1hWB5+ w5lJkA2OQx+CP+wmJcmmj8vxzjmg2flgHOLfWc54SoGhLH9/J4MGcsDF7mKECWYcbxK0 LTlPtuzNvUNu81Ba0kDMsaC5vdOWKHLmzWX5BxiE7k8M3wbOgHViPtF3XxlzcuiRABJm 43mDjJVNWi7R+5MhD7gvo0zcdovmeAZ2PpU+DaHT/nZ9112eEYQIkIKNRqfP84xca+t7 j5Dg== 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=e8Lbn+76YG2fKXAD/HPwpqXf74NU6wV67oW/8QgA2DA=; b=fcMWFOFQy0aB49EaRsDe3Vcwa/jVQC42tXLK0XIFe6AXsIguiH4ut2wU1MR6NpxZIe HTwyfvqJ/kbFTsG36gchAVd90402afibrKXBDD29IAWeUKAO9et6cTlI1kPhJB832WVs jWGTEXW3nMMGyFIXxyslHrJT5JJKlW0Ljqnz5RswRWUoHwlsQBnkoEyMQ4OndvOCHxd7 qqojiTSl5O8FJyxrokHdm1RnIRybIqgr0K81/g9ig/FdnJcq3/6f6PLXpQgZwVy+Hes7 fJsiNBZNSqxnNp7m13ILx/cOIGE0XFEyx7TDrXiZMrQk9umVuDHaRKeak9ahv1r4ArB3 uIkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KATvnALx; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 d2-v6si45388549plo.210.2018.11.20.19.37.25; Tue, 20 Nov 2018 19:37:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=KATvnALx; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1727069AbeKUOJ6 (ORCPT + 2 others); Wed, 21 Nov 2018 09:09:58 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37522 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727249AbeKUOJ6 (ORCPT ); Wed, 21 Nov 2018 09:09:58 -0500 Received: by mail-pl1-f193.google.com with SMTP id b5so3383558plr.4 for ; Tue, 20 Nov 2018 19:37:24 -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=e8Lbn+76YG2fKXAD/HPwpqXf74NU6wV67oW/8QgA2DA=; b=KATvnALxYzOCpwbKyZyFt7T8Nh0nsOw7b+kkdGnjrEA6arPVwAQcS7O30UyGzi9aZ6 b3H/FLqhzPipl9EvXVwIcOk6NwIFrNScW6U02GiwztqlrdAMtpXzTxNdb7scZvKvu0Fu mA61Sq/SDD3VD7hgMKplaH32ZoI/4A6IkZR9g= 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=e8Lbn+76YG2fKXAD/HPwpqXf74NU6wV67oW/8QgA2DA=; b=qi3Rx4IIamnOm0FfLzqTjRR+T9i9/yfuPTI6GMJSPrFSr27GbpxJp0c6c4hf9z5iQM G1zSfNjRom3pW0CqAY/xNS4S7Rzpkun2/S/hc7AKeI5GM5AH1Ht0R3J/XYemde985rUj Ysi/NSQbmtw8Q9+qTRkd3RQlqTZGN4aqY+K/G+YBvKPBv5s/NbO7gwdtHdOZETDlRw8K 6kBEHlh46l5AE/wqEkKJ/ublbHE0xvOxobNJPeVli64WvJN8q77rTzOilewKV0FXDjZn Yqo+oWYtZBwZC4F9L3i9nsBJNEj96C4xjZm9E/jIX2XVDrypN1rgfPExo/2rUbGacMO7 Qb0A== X-Gm-Message-State: AGRZ1gK9WN3Ja6r1Xvp4LKpjpMfOfAvXctc5O0F+6FLW9R/X+banGBYa QjKnTq843xyOZE5FofZgB/wK X-Received: by 2002:a62:8c11:: with SMTP id m17mr5068837pfd.224.1542771444535; Tue, 20 Nov 2018 19:37:24 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.37.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:37:23 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 01/15] dt-bindings: Add RDA Micro vendor prefix Date: Wed, 21 Nov 2018 09:06:38 +0530 Message-Id: <20181121033652.12247-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org From: Andreas Färber Add vendor prefix for RDA Micro which now merged into Unisoc Communications Inc. Cc: overseas.sales@unisoc.com Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- 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..37826fac7684 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 Unisoc Communications, Inc. realtek Realtek Semiconductor Corp. renesas Renesas Electronics Corporation richtek Richtek Technology Corporation From patchwork Wed Nov 21 03:36: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: 151627 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1418346ljp; Tue, 20 Nov 2018 19:37:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vd7Njk97B5Ad6zyiRj9FkCW1I7pmg8Hm1GuEDetiqk2lVq4X/mQZTv619Wq9j45OLDHaNd X-Received: by 2002:a63:9b11:: with SMTP id r17mr4465897pgd.416.1542771455617; Tue, 20 Nov 2018 19:37:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771455; cv=none; d=google.com; s=arc-20160816; b=y3JvU23/9wHh8paSZlyawqvbqfSnn7+ZdWaa1XWnxX39413XtJ0R0zM4wmbekcUAuc fPBl9o1k0wGYiuApKNRdsDtk4i0fxZU7uYxdMY+jz1yuAdzG8uHaFy2cKTASGfmYruR5 tBuvGz4lUgHkgGv0EmD345pDfbz+LmPhCGM+7LzJ1oR91eaJCpkQQTFXIth14TeOXoUR /Pux4HJr2HKDg4rBo/e2EAxQTD1qqlB6YvoiAKfz4oVCLuBht/OCRqPemDVFxxCVBm4s sHxCiCLAJWczb1e6+oXqMrdPqBGnwXkyu/pyjW67KLRf56G8AmsxBrX3FRO2cByApgES kNvA== 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=MpKApkbZh5UuKp02YzW5T5e/e2xGXhow1EV1I9MOaJE=; b=I2jGeI1KDN/nWWccJRZyct/RYGhab+afW9VuuWjnjULlqZ1+aRlwfKPtPtyDKTJfpM AkvPNYs5WKQQn7q4oQ/Uej0LGVWFrU9KflB13NqXLHWO4bBcb+SHbeLb0EYpUj8TEsjs jO5nNjzbLo5WVcijtFl0d7CG7ytj5/BQF7yaNmZhM6E0wG6v6KHc5su7z6o2UyReRRZE KQG6KbmCI7CcUksh1nvL/Mm7NGPdn21hHSzmxZFgo+Y9QFqDMEbB6cM/Nr9D2/3jgXSN I1cHtcKQSotOsewNzZMLOyEQL7XIv907pkFD32nUxbu18PscxUQpW2q993fvlXW9f0J0 BKhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kc7a9LGS; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 c19si29242812pls.242.2018.11.20.19.37.35; Tue, 20 Nov 2018 19:37:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=kc7a9LGS; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1726778AbeKUOKI (ORCPT + 2 others); Wed, 21 Nov 2018 09:10:08 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39287 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbeKUOKI (ORCPT ); Wed, 21 Nov 2018 09:10:08 -0500 Received: by mail-pl1-f195.google.com with SMTP id b5-v6so3376058pla.6 for ; Tue, 20 Nov 2018 19:37: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=MpKApkbZh5UuKp02YzW5T5e/e2xGXhow1EV1I9MOaJE=; b=kc7a9LGSNqYsoKpPIzgZxpIy4w4a8SyzrrFTsjBXScjm8Iz44cdrEDihEXchpcSwn7 QKPrlOiUJtVPEF+JOhBEziOKAupcHA0MeNxLfAqm3b/IiOm6MKRfPjimW6/CyBDNjToN ocTXITWDXU31kTmgB0+Fc7RvtYlRpsbXjDYV0= 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=MpKApkbZh5UuKp02YzW5T5e/e2xGXhow1EV1I9MOaJE=; b=SOLJOOfognAQVlJfWOWBUu2eTo4VvKt6YwClb4MUCCJtD9FCcj+8msTbGpD45ujT1s PYEPwQ7IH55zQ6FaqekWra7BIcdTBDj19EmFtUo6ZnMbfxK1IOgDvcwRe+N9QG7y5Gfw U61cuRC3xIE1eUgLn6vsfcd3pQps8gIjeZZYWOhvxx7jCZUsoYJv4E25KMF4T/1jdSRh n3rY36Pv+GplMzWF8s6Wzwh4EAABb0zYx+4xipj2t2Fg6TOLBq2Y/G4MAecpDYeoZaue LsdNnCukfw90Z6d0jS4Ejtia+D9knVDoXbfOA1HdoOlaxtw/AXDhKJwwgv8jui0OHPsq 21dg== X-Gm-Message-State: AA+aEWY8jGOhTiqbOkSdD2BkZcTAa+ZUbxfDE5rC9EyB1OD9mJsMke19 1/JkgfUJGrK6hKiuxrQJAqBW X-Received: by 2002:a63:5026:: with SMTP id e38mr4438141pgb.123.1542771454229; Tue, 20 Nov 2018 19:37:34 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.37.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:37: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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 02/15] dt-bindings: arm: Document RDA8810PL and reference boards Date: Wed, 21 Nov 2018 09:06:39 +0530 Message-Id: <20181121033652.12247-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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: overseas.sales@unisoc.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 Wed Nov 21 03:36:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151628 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1418459ljp; Tue, 20 Nov 2018 19:37:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xivwlwfluh0cO3H6ZjGrlGswbNpRzxF+kgG8fnbXODH2Jsh7LGHLgScSt+PwopCLBnyMiZ X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr5076885plb.241.1542771464979; Tue, 20 Nov 2018 19:37:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771464; cv=none; d=google.com; s=arc-20160816; b=CsmznxMmheIgbxyDMaQYC1red1BV/fII9WfSV5X/eYa+8rfclbE8GwVygsdAgqiPOY h9VCCZ3pts8ICQpz/xm+KpNt55C7cS8bKN1qdK0vMqQNCUuqoAjVyLwh0sGF7waGzKr+ uLyqkHfmuYWAkU82UDr+5DhbOt/VW+gRfi+tcLAwnrMS78pErAzQKMUb4gF443asSP3D lXSdM8UGhpBALbkygVSUidnPBYgel+KI7I8JD2HroEVkzasV+n9wWDqSnw0S5ZSDioHK Ajt1ek/3UAL1BCjT6ZIE7/tpo+AYRiCxM55/gg0ugrke7M2YkhIy+zcm+2nPw8SEwcTI OI7A== 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=0IThcSFVYPOghIXoUBWbyb45CIStjy5/sm4iN6+eR8m8uMjApICHJ+w2/hiJuXjFnz 9jDB93W5qjMb3p30m3hJ8njO7dUVz3hhv4qQoAkt2KxMiH0+46Rv55t853sKwjPglqad 7P0ttSd2KM8i3OJ6H18ljRW1Gw3yCk+jF3982se54IjYgntSNUjdf4ShW+ZDNKhlXYk9 OPyBiuIQurDaebtvAYkn7BoChm/MNm3m1oN29smF8qer2tWXWWUdHdZM0UhF7qhUivIP Gh6ytdJ921p7Iliq9Zl93MaQmzVH5qnjvV6AK5P/fSUBG7HpIgZkg+RbmO/66KL/JJIb LQOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uq7l61FK; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 4si7262533pff.161.2018.11.20.19.37.44; Tue, 20 Nov 2018 19:37:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=Uq7l61FK; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1725982AbeKUOKR (ORCPT + 2 others); Wed, 21 Nov 2018 09:10:17 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44546 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbeKUOKR (ORCPT ); Wed, 21 Nov 2018 09:10:17 -0500 Received: by mail-pl1-f194.google.com with SMTP id s5-v6so3369451plq.11 for ; Tue, 20 Nov 2018 19:37:44 -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=Uq7l61FK2hkFYDcIF/7AYAttg4dHsxzr8gH/8SQofU3BZFwjSPrc6HaEMMHXJ/0ltw 8gpc76+gMb5EhfJMZFOr/im5nPIZORPQZ0g3jS6e37CYXKaKwm28vuYdQexR3vBQsMa7 hDrnd10MuZywIW8ypa9HTY+z2tvFAC0wphzMA= 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=XSY88wcmCsj/dLl+NG3o1CYhCA1o8xFCzhmsqjno7uCxo82hq45iHsmzsYZ61akJWv hxn3akJZhFRrA94WPihQ8hMmMqvnxtjLkaCIZcK4BCITPdvh6bMzUyhaWnQGCviP2ZNK +zZ9hd7WYxiZAnXvGkyjPQdjNT4PpTE5D5AOo9A7MvLMgkxr8/WQkW/DMYLQ2gp+PrB3 couAaep7OUCCNj/UX8cGljgsukaY1RlCOl3d6M6MIk0DG9LFKWzEmvdbhnnbbUh5oO3d z4VU2Id9DZmr5VsaDgf1P+5aa7kCT85YJkXuv71IsvljYwekPZP2Wd30diAvgi39OcHQ NFvQ== X-Gm-Message-State: AA+aEWZqT74GfKg+RpxFWL6r08npJLvskOsBnTfkXSjNm1nNpyn0CgG1 5mK7ik0EVgKcA44Fg8VM4AKYYG2Dcg== X-Received: by 2002:a17:902:854b:: with SMTP id d11-v6mr5126362plo.205.1542771463658; Tue, 20 Nov 2018 19:37:43 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.37.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:37:43 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 03/15] ARM: Prepare RDA8810PL SoC Date: Wed, 21 Nov 2018 09:06:40 +0530 Message-Id: <20181121033652.12247-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 Wed Nov 21 03:36:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151630 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1418735ljp; Tue, 20 Nov 2018 19:38:04 -0800 (PST) X-Google-Smtp-Source: AJdET5dUY3OkkzrjSa6t5j/6kzWCigd5MOxZBG3c4cgFXSrRy+eITsWWJQuScgdND39Mq0QWGW71 X-Received: by 2002:a62:1f9d:: with SMTP id l29mr5100905pfj.14.1542771484757; Tue, 20 Nov 2018 19:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771484; cv=none; d=google.com; s=arc-20160816; b=DrEEBQyymOuGvhEBY0oRSMZbZE1QHIQpmLU5grSNP5l1t7s3YmwS/a4bYPEXDKTBnZ aYme7ie3WyaOtU8DSF0B28vtIhXeAVWA9EFqREIh3GHkwQI8vLoN7g1xoKr9rIm9uS2L blzKpZ2XfSyDQPHnWZ9NWKCtQxUt7jTei0mChGfSM3lDB6mPlqZl+8PMz4E2JNGqlUWn vh0NZ7Il/h/OKu6eBo02g0exx3YdU8d3XLt2JlRk44aLLQpKo90h+w5WXdUDw6/ysLhi HWi6648upCaH7HeLoR0c8za9QT/1ND3714Zspv8bitAG7VYr1wzd3C0H07fqIZIqkb7P 3l8A== 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=wRzyWtQem/ZudNzb9RZbtf1aGt6UbjSssLp+q/Rsb70=; b=f7gINdmzK1Q3EMpd37YFaGXa+oY/pSGLBjPlpl4IlLfST4sg6jw1Kw+AM4eYuAF7VK f7ZHFsvBrRZKRaTQOSNsJVeka2kJICnwIL2e7G6C9orcIxPIsgNCVnerPrV5Tvj/hom9 fNBRzjkaz9kU3ejs3Jq9E17gY4/6S07vZ4ut5iltDQH3me68KpMu+uyXAqLpE4X3eQTi B7Y5iOtElLCyp6Y17pQ+lVDhNReZMuD9XZ9MTtGIxFZLmRkzv+HWU9QmbIUmt0zMjzwk ogeOm5LNWStNZKOFJhK35w+czW77au4Eckh1ITdbmJzEKdxqPFNVc+36lMsb8ro0TODo LNLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W6Fdv0y4; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 y40-v6si47366756pla.391.2018.11.20.19.38.04; Tue, 20 Nov 2018 19:38:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=W6Fdv0y4; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1726947AbeKUOKh (ORCPT + 2 others); Wed, 21 Nov 2018 09:10:37 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:43995 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbeKUOKh (ORCPT ); Wed, 21 Nov 2018 09:10:37 -0500 Received: by mail-pl1-f195.google.com with SMTP id gn14so3380771plb.10 for ; Tue, 20 Nov 2018 19:38:03 -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=wRzyWtQem/ZudNzb9RZbtf1aGt6UbjSssLp+q/Rsb70=; b=W6Fdv0y4dpDrEI7W3bcMcFFwDrafrf8k0lK+uOJ+jLA1327RGVnlS1bFbp89uBFLW8 Fn+UjhyF0RfO6E5H8x8xXxa/Mv+eKKgWOL9IpMRNNGdv44C2P3n/I8mlTXdHKqK50CRw Ap+pgLHhm4+jM9lSDXGqdj0R+QjC5xtwGVvAw= 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=wRzyWtQem/ZudNzb9RZbtf1aGt6UbjSssLp+q/Rsb70=; b=Dr+0pMsQM+xqjtq3nYrHrxLBfItNWe4mi6SeLjJEkKH1vvzT6/oEb7RuhLY6BX0ol7 JAlg8V1tTBW5yIHLeIQpp0MZKClH6AK3+F7DiRyOZvFk6SJVWVl+ME+HRsHwoPcJecLJ dqrdOFV4i7u0s0n/b33VGS1r8x8+/Ee5rQChA0IOPPwkoW926ymodiCytHVv40pjsfB4 0eyTzEwndX2DZgByoORtN9FWNtxjopwzTQB1PmtzwHgno1g2oqZQm2Q3+pJG0BC8iN16 2PIZ9B0icUlOplR4H3h8ie5EbBpab4FZ2ToS97YI9D1QDi5K2NzwiKuWgJLD+3MV+9/E Fknw== X-Gm-Message-State: AA+aEWbVwRo8GS1Jcy7sYdAaw9uPRVv59mkg1gvWn7KWzodjvn5ex84u /DRPPsbMDucljq2CDPTGWW6w X-Received: by 2002:a63:1444:: with SMTP id 4mr4447921pgu.430.1542771483254; Tue, 20 Nov 2018 19:38:03 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.37.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:38:02 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 05/15] arm: dts: Add devicetree for RDA8810PL SoC Date: Wed, 21 Nov 2018 09:06:42 +0530 Message-Id: <20181121033652.12247-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add initial device tree for RDA8810PL SoC from RDA Microelectronics. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/rda8810pl.dtsi | 86 ++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 arch/arm/boot/dts/rda8810pl.dtsi -- 2.17.1 diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi new file mode 100644 index 000000000000..ab85ee06d84f --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl.dtsi @@ -0,0 +1,86 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * RDA8810PL SoC + * + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + */ + +/ { + compatible = "rda,8810pl"; + interrupt-parent = <&intc>; + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a5"; + reg = <0x0>; + }; + }; + + sram@100000 { + compatible = "mmio-sram"; + reg = <0x100000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + }; + + apb@20800000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x20800000 0x100000>; + + intc: interrupt-controller@0 { + compatible = "rda,8810pl-intc"; + reg = <0x0 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + apb@20900000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x20900000 0x100000>; + }; + + apb@20a00000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x20a00000 0x100000>; + + uart0: serial@0 { + compatible = "rda,8810pl-uart"; + reg = <0x0 0x1000>; + status = "disabled"; + }; + + uart1: serial@10000 { + compatible = "rda,8810pl-uart"; + reg = <0x10000 0x1000>; + status = "disabled"; + }; + + uart2: serial@90000 { + compatible = "rda,8810pl-uart"; + reg = <0x90000 0x1000>; + status = "disabled"; + }; + }; + + l2: cache-controller@21100000 { + compatible = "arm,pl310-cache"; + reg = <0x21100000 0x1000>; + cache-unified; + cache-level = <2>; + }; +}; From patchwork Wed Nov 21 03:36:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151631 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1418868ljp; Tue, 20 Nov 2018 19:38:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/WRPgdI8xtgRqSzQ+bySAP8vWBGOSvxEyrFB2NROIIWbo3vE1XOi1wpXd3F8Q0SLMAmk7fR X-Received: by 2002:a17:902:20c6:: with SMTP id v6mr4505225plg.156.1542771494501; Tue, 20 Nov 2018 19:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771494; cv=none; d=google.com; s=arc-20160816; b=0mkniEAzHv4Ql6mdCsEzdB+Wd4j4sPRxriWOu1mJToJ/ClUD9UcCPipHjCFF8Zadsz CJUbrwX7MjRGpF1yb0TadgXi7pnpjkjAgPI0bH87OPhzPnuaAc2tM/oT6lP6H9nPQTBC MjvZgN3p2IeiQD/u5wFv0jIuRRr8HwJCjzk4DdDiwrp4ld0RdMBcKoMPpoPNsgz8LtSI 9uYAlkPo1IHwGhemdqMgRpwwU8bXbDqI38HH5+iXLPUkMvQau4YaKPuhXDZXArcwxjbU 9LR7aZ4a9e56xK5br/Gl5TUc0wnHroikNRSPKjmwPaLU7xHWZh4TU6T+1YH327jO5TCh SFjQ== 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=rkb6Vur4U4SNVlmfWr82lctyg9peW1saJEvXYDmJZJg=; b=hr0m1sYzdvjBXaBgF0eug8IiZn0cMJQxLHRgbT0hLSZ6k+/AzjJOZ4dvvDZ+7EGUe3 XH517a12O6Y755zBSS2khhNvg5pJTEV5F4bWKdf4uVrc5AytKmKmlpw/As2M3YDIpzdX jMY1CNJh455u/Y5DWMKsZkZgdIkWvEvGJTPUyjCpUl6bo2rytysOBEcoJmzls+I+sDbA Xxx3b39d6Ch+s+lWxuw/Ookd2BZ6hBIic4vm7luDgD4Qh/K/fY8qsYz9FBbRxtg+5oYj xVzG/wnrzanT7Iu2hKFnx7HLs0hhfI5YmVtjTusjOT6VBy4HD6ShZ37Ou1kiMw/cKWVm E16A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=isXAzGUM; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 g7si25533389plq.336.2018.11.20.19.38.14; Tue, 20 Nov 2018 19:38:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=isXAzGUM; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1726671AbeKUOKr (ORCPT + 2 others); Wed, 21 Nov 2018 09:10:47 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37690 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbeKUOKr (ORCPT ); Wed, 21 Nov 2018 09:10:47 -0500 Received: by mail-pl1-f193.google.com with SMTP id b5so3386136plr.4 for ; Tue, 20 Nov 2018 19:38:13 -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=rkb6Vur4U4SNVlmfWr82lctyg9peW1saJEvXYDmJZJg=; b=isXAzGUMPrGvEmLT/EVW63npjfGPeZ3GX9Vh/DkvxH6TV5vkydusq1kUe1ddyIg/3D X2r8ZVgYUJww6By5Dt9uP25FpuGOKKELX5W8Isg/nK/9lItVzelhyPEs1JdJ+2mIlgsZ BHgUf3Wx0xQZlpFUajTu0WwwSPC2TUASAvkfw= 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=rkb6Vur4U4SNVlmfWr82lctyg9peW1saJEvXYDmJZJg=; b=nWnm689PRWhb1ln8GiifYGObwGsJurGnJkcrRtyhOwELguBcz6+i1RI+toagB155tj A7YOlAimkMtEFrUTUTn2+bS6N+PzFI4ywgnnnRYS5FOTT7sy0VFFY0jU+E+pb7unBAcn LPG0Cs54myM0YecfOHlRl97b1WjvajHVX/hNjVtIWS3ZhEaBzCy1kv9PuLyR6EfxHXfw EO5Gr/QgWSkvAo3KRnksy+RMLqWf5JCHuu9JLmGQ2ppfSgVaw7eFuDTG4uA8XbziyAMV 8xGKwITCmBMNS8iAIdxjJ4MGENm7JEV2MFbIegOFGCz9vC2xq053/AO0DqLRtDygf/iz vtdA== X-Gm-Message-State: AA+aEWYxLKhJtfwl9dlDINMZxKLNq3jfcZnv/+kr5Y/K3fues0lmryRL STqwFpoBe3M/DgvyRvcepVPd X-Received: by 2002:a63:ed15:: with SMTP id d21mr4388449pgi.305.1542771493024; Tue, 20 Nov 2018 19:38:13 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.38.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:38:12 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 06/15] arm: dts: Add devicetree for OrangePi 2G IoT board Date: Wed, 21 Nov 2018 09:06:43 +0530 Message-Id: <20181121033652.12247-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 | 40 +++++++++++++++++++ 2 files changed, 42 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..5e5bd0542e0c --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + */ + +/dts-v1/; + +#include "rda8810pl.dtsi" + +/ { + compatible = "xunlong,orangepi-2g-iot", "rda,8810pl"; + model = "Orange Pi 2G-IoT"; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + }; + + 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 Wed Nov 21 03:36:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151632 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1419009ljp; Tue, 20 Nov 2018 19:38:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJhgbSbKt8nrjJhOfrckyyJu7JeuGbzhff/J4ilHgFsT2TlRipjTzOgZQYIFnKPd+d0s8V X-Received: by 2002:a63:dc54:: with SMTP id f20mr4499981pgj.410.1542771503586; Tue, 20 Nov 2018 19:38:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771503; cv=none; d=google.com; s=arc-20160816; b=j5x0296FWw05iDwmmMoWjUIgP7n/SQ4yifnBnsVbYUegBcqoZzZmRvDvSnu6jYq+0+ Qh70MwO1tmj+lzUy1TWDIvBMXLt3nGO2ap4y+kkPu5wTJW+WStYj5Gu+YnyS4S92e7xX q14HhGZ3tJ7YY+yu9xonM0nRPx4St4KKknTyto1rvbTJ+gpp4V8wBUNPBh79pzSBBA9L 7tPB8TmqNsIJ8A4bCJ2JS8lei2YpIOi1p3JnnbYrd0wnb1iMow2te3OKqPHzB3kXhViL U3fz8oANEFK82rYCLErOzyg4ffK7qmKn9CBmsgfcsmj06/dXe1W/GKZ7OCCj/5jAf+Y2 OfPw== 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=GSF6N+Et36E4LkapTnnKe/iKqIqrR7BwC+DWwaMvFgU=; b=oBkmHFHwZB99updgEa5JpKipllYNFytv9YXWhY1CnL0sP+RdDuWAKshAY07pAgQrUS tLL0BwwKkDkrmJe/93ZH5wn16L3JUveNskXiO4Qm7XSgx4ZQJMRYQiGQinvk73eRldxK Ka5EmjlYtMt5pGQ0w+YTd+DLNEiRT/NhoIPENGjklTaHRcQDBIKWYV8emr7LrvNDNNRo noa4g+pif4H2/EYD1sOXDfYf940y3mCrs3PBWo8xHVt9ju1B0q6YLo/n/2mV6Loq+nhq Cl3UDhG7AhGDOiCkgQUfszVGUx+KdePS57IE6PaHtbQ9zF9czm+DLFaVSc6m/JGJppiD M/hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bZpiYzrh; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 g8-v6si38886570pli.79.2018.11.20.19.38.23; Tue, 20 Nov 2018 19:38:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=bZpiYzrh; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1727355AbeKUOK4 (ORCPT + 2 others); Wed, 21 Nov 2018 09:10:56 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:37721 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726993AbeKUOK4 (ORCPT ); Wed, 21 Nov 2018 09:10:56 -0500 Received: by mail-pl1-f194.google.com with SMTP id b5so3386647plr.4 for ; Tue, 20 Nov 2018 19:38:22 -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=GSF6N+Et36E4LkapTnnKe/iKqIqrR7BwC+DWwaMvFgU=; b=bZpiYzrhYRajQl9DjGCUQpHSedh7HGoHdMYhwXrA6yX+0cQwkjoPQwIJXQAT+F/kfj lnCGdM0ahEQ434qZMBWBvARnpbcis8OZtEm5Ko3wzGcy2oAigawtpQWff6RxHD8ODald 7QrR9kynvPBhXjR/znS1DWfHNInegGtTbnclc= 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=GSF6N+Et36E4LkapTnnKe/iKqIqrR7BwC+DWwaMvFgU=; b=iIIePN/e7tzPQ9jcNL1xNwWNWnRxQB29kxR3G9Asc2JfF1uRSPxYPayhb5DA3ngPZn dpcoFGmE8FIjG2D+tWQwQZ+SDc8AfWtIvd+qm4mv3AykLlag2J3nJ49hwt1qiYpp73sy tD5K7cz970MgPa+Q9oSWIahQjcn1zlMzOKt8GQfneW6wIWnQ90MsAIO0QO0akzPCIIFO kML/O85M+XCOPR+VJyH5G0sBxHyuF4etlRrE9WeV+zI6Z9u5RpxiFZst8EQRZaMmdR8x 2P6n/ztkGLFqmOsRX0Rqe3TZ1mbF+9xPr+roPZEVgQ6qjxWtSyyrChnZrepp5yzu2Bqm 1FRQ== X-Gm-Message-State: AA+aEWZFMXs8nmMS0Wy+9FtYJZfe5aDUNORu6scu1/zqq/m23rgGsCvf j80sQ25lpRgdVFC1ajOIET1X X-Received: by 2002:a17:902:7686:: with SMTP id m6mr5136940pll.179.1542771502100; Tue, 20 Nov 2018 19:38:22 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.38.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:38:21 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 07/15] arm: dts: Add devicetree for OrangePi i96 board Date: Wed, 21 Nov 2018 09:06:44 +0530 Message-Id: <20181121033652.12247-8-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 | 40 ++++++++++++++++++++ 2 files changed, 42 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..11b586e3966b --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl-orangepi-i96.dts @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + */ + +/dts-v1/; + +#include "rda8810pl.dtsi" + +/ { + compatible = "xunlong,orangepi-i96", "rda,8810pl"; + model = "Orange Pi i96"; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + }; + + 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 Wed Nov 21 03:36:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151633 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1419106ljp; Tue, 20 Nov 2018 19:38:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/WjW0jRztIK3JbQ5uVQzVhwMd2gYOP432ouMLVduFUKSSG7Qy4Us1XOMxwQUvmEBW10UhwM X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr5047565plp.110.1542771513335; Tue, 20 Nov 2018 19:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771513; cv=none; d=google.com; s=arc-20160816; b=Dq7NGW45h+8ZaRDrwDVrwserlsb9fd70s7KvOYKBAOkg96qeYsDkyrPuAPDQXlNJXt mAJRO9QzV9sLegHfmvZ4njPKNna2YeFOuqdHyvtoiDpDSmClCJI3xWzzUTjIZeHFFetg x03yL/+20M3PB1TpNadn4igswWzxUMGULKbTgzLV+GsonwmPIXToIPtPSYeDdpZ4/hIC +XJOeA/g6Wtr/3STvCNUp2rzNQ3iIZU9HbQpNkKxMStQs9+0R134u7DqzoaTP6MMvZ47 sv6iM/2v2iEEPm79QwuAw79Xpt7yFaSsKZE2yTQzrmk/Y21Vksjp679VlJDowJH5AFgL taNg== 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=3Z5MAsdKFcai4UXx4/yK6UISTrk8OVTQoys01PtcxnI=; b=SATEqbBAlwW+3dsVVYbuvjIMWOtahnIgbLBo33Wf7BzWOtdffDdaYL/ElPtMf4i7Lw 2Q8Et0HhyXlZ0G198pco00nTN4Zyr4WqlmrEsy/0C9olgd0Q0KqP17aprKJKVnWeSIhL anMZuS1T/FaXNhWpTSzW+we7/phXPx7tPh2dSIGVEzG4nd7cY2aHaK0CcZb3pNlE4glB 4O6ZkJQuBGBvod7AIwW+hXrvLOEs9zziNX1UdKpfBTa6z83sKxri4gzzUzuKjNm6+t22 tX0GPSFmtRj5VPnMpqUA5qJfjpHtjCGT20wR9Jz0q8fb5Xcn10n7L2Cq3gqmAiqp/c3M HP4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ldy/r4Cy"; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 v5si3188806plg.318.2018.11.20.19.38.33; Tue, 20 Nov 2018 19:38:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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="Ldy/r4Cy"; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1725995AbeKUOLG (ORCPT + 2 others); Wed, 21 Nov 2018 09:11:06 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43071 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727175AbeKUOLG (ORCPT ); Wed, 21 Nov 2018 09:11:06 -0500 Received: by mail-pl1-f194.google.com with SMTP id gn14so3382340plb.10 for ; Tue, 20 Nov 2018 19:38:32 -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=3Z5MAsdKFcai4UXx4/yK6UISTrk8OVTQoys01PtcxnI=; b=Ldy/r4CyLlqWiQEOQe40jvqOZsrTRgEo5fCiXYU6f1kvPoRcFFBCfkjeXAHf52ENq2 J+uw/WoUCDJUaqr60w5UpLkN6dMqCqSmPpygRSU+nAhMHOJqH78WyMlWBaAYIUD3p0K6 qvuMYsNRFCdbkd52Q6RA8Am5qgy+j8+SccCps= 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=3Z5MAsdKFcai4UXx4/yK6UISTrk8OVTQoys01PtcxnI=; b=WL26UAr+99rtEEGaia1lyWID7mcfhMbMouUhrzacCdyN6EQhyTvTiG+3sJy+ffg4bO H2AB8PdjqV1XfAwf/4xKBst/NIHlvdZIXNOI2UgHqL0TV04bfO61yVnfEUZULvOhMhUO CAEZPtEEgHpa8Ryhxm234TVclD0+nck95jRBOKeUCFatUXTtkTM81Xmk9t/7f1glQj56 oxQ2bHK/G7CRnXk1pQf0lYLeeK/WHa/WcSDRrrVm8v49JhPeJpg39SkaeYKvap9CBMTg +uy59xMfkk/YePElorolpd8VnVwxSc+oDbPJgJ/zHaZlf4SrnqZOdgyHcgZLq9dairc9 QIkA== X-Gm-Message-State: AA+aEWY7e7oJpzEwbAWtuO7hIUVg2Y/OHa898Owlz1KBZ55vdLRAHXfX Z97nOh9E2m6W5fyJgMuU84Wk X-Received: by 2002:a17:902:3341:: with SMTP id a59-v6mr4986711plc.220.1542771511789; Tue, 20 Nov 2018 19:38:31 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.38.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:38:31 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 08/15] irqchip: Add RDA8810PL interrupt driver Date: Wed, 21 Nov 2018 09:06:45 +0530 Message-Id: <20181121033652.12247-9-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 | 113 +++++++++++++++++++++++++++++++++ 4 files changed, 119 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..1b372bdb23bc --- /dev/null +++ b/drivers/irqchip/irq-rda-intc.c @@ -0,0 +1,113 @@ +// 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 + +static void __iomem *base; + +static void rda_intc_mask_irq(struct irq_data *d) +{ + writel_relaxed(BIT(d->hwirq), base + RDA_INTC_MASK_CLR); +} + +static void rda_intc_unmask_irq(struct irq_data *d) +{ + writel_relaxed(BIT(d->hwirq), base + RDA_INTC_MASK_SET); +} + +static int rda_intc_set_type(struct irq_data *data, unsigned int flow_type) +{ + /* Hardware supports only level triggered interrupts */ + if (flow_type & (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW)) + irq_set_handler(data->irq, handle_level_irq); + else + return -EINVAL; + + return 0; +} + +static struct irq_domain *rda_irq_domain; + +static void __exception_irq_entry rda_handle_irq(struct pt_regs *regs) +{ + u32 stat = readl_relaxed(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_mask = rda_intc_mask_irq, + .irq_unmask = rda_intc_unmask_irq, + .irq_set_type = rda_intc_set_type, +}; + +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 invalidate all interrupt sources */ + writel_relaxed(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); + if (WARN_ON(!rda_irq_domain)) { + iounmap(base); + return -ENODEV; + } + + set_handle_irq(rda_handle_irq); + + return 0; +} + +IRQCHIP_DECLARE(rda_intc, "rda,8810pl-intc", rda8810_intc_init); From patchwork Wed Nov 21 03:36:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151634 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1419231ljp; Tue, 20 Nov 2018 19:38:45 -0800 (PST) X-Google-Smtp-Source: AJdET5c6P3s7UwnEnuJDAt5n65yB9WiXsbD6U7/kXekkX6Jui5+baW5/mQvG4rtEFsKj0QcFUdY7 X-Received: by 2002:a62:7687:: with SMTP id r129mr4998102pfc.17.1542771524979; Tue, 20 Nov 2018 19:38:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771524; cv=none; d=google.com; s=arc-20160816; b=NclKsS9WMDb77CHQoW+TPUqZuqUVExxk5tkabLlYSwlPu48/G4gHsoqgyu0ac3VHgt h4pjdO89ASuxVi/oLTsI0ofXMr9iMEwaLTJbljAbRBTwdiPRG29ES6fWXE0TM+TMIuRw AthhOZJ7QZRdDWuLudDZfBYsLDwz2XCmnPYTDkeJiUGRFB7HQIRY93tQkvrvvI8qcHUt jGOdL1jksr16OqEoO53pm9UyUBhnwwUk1GcylguzXlMBvMc0jLJC9xTsIroi3bR2S01q ir4kg0NRdHEGL/R1CWGV0+tSe0kU28mYhF0jQ1bmQRRNzd55ER7F3XssB9AE/XvWSczq evSA== 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=FWUJXENoB/tEVvZ71NSjLeB+3bNW2A5jMEOEhO/w7a/YNnmGsZRYWB98FTermTLAD0 26YYnfwXG/NmnxWlCom/MS9/bqcuUtFIRPDQTeg2uAUuCfijqhfIXfU0ZfWIrIHozMQv 5aAbyZYm4MUTdnyBHlrEy43s5IL96RR8M25hCVSSykh2y8f59CorLBhA46Xl0np0Bo2N eZEdksWQBHuEvtDGIYrhhgl3BIzS+N3doaSrjSUBv6URnh+9OsQxOrvz8Vxg7cc+j//q 4NwyWLitAgwQkSIec3PG0W9W6yI3dowTOUR+fBWqpr0rzUp+SPz8wEcBfbUH0J1O54/m 5LxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AzInBpv6; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 f4-v6si38880380plo.111.2018.11.20.19.38.44; Tue, 20 Nov 2018 19:38:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=AzInBpv6; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1727689AbeKUOLS (ORCPT + 2 others); Wed, 21 Nov 2018 09:11:18 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:43115 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbeKUOLR (ORCPT ); Wed, 21 Nov 2018 09:11:17 -0500 Received: by mail-pl1-f195.google.com with SMTP id gn14so3383005plb.10 for ; Tue, 20 Nov 2018 19:38:43 -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=AzInBpv6w0Elaea+1eLs6wwFKhrsXEy+zh+4jUzH9KIQ5LKONHUBFW4HlVTJW0fvSj D7C4/cV2VYgBNDLmpghMoXtdWqh9gjEEKsV65RFvvY/J/LtyLQTxnYMSmCxWGH1KpoxJ JBThphmhfRFMgFufKURSAmO8OXegTIyUHUkTc= 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=OspOkfMAjN0k1Z3GPDHVja1yFim9R8BDsQlKYwtt/3PShfWh0LZj9CvXuvR+bHwsJj ym0vtVNjwtZDV93aLLO0n5fyBLFnvWhQSMdqMBocg3wO9A2MfpaTy7RMyldCPivpV3f6 qyFvWa354Zdf+0sxAWm+9pM2M2ckQQS6rVWKG/8gg8H9icmoXJ9CHSZck+Fdz8dVjT64 HvyertVaQDFQVsvzT8iBLqbaQKRDREGTh3hTxZYhw4ieubzqNPLrADMbpzXggyDBYAGf KCwQvZQpKWYQpcHYSsVURnHEhIwot0VchiNZJBuJv76Iky0FyPLj4lHnExl+EWr/E5vd 5rCQ== X-Gm-Message-State: AA+aEWbK49iaTKAZZ4gQaqVd8AcVnt/5a4qcaXJHnhQWFgNSFZ4Xizsw deR1Wf5d+0BHQs30ANRki64s X-Received: by 2002:a62:2c81:: with SMTP id s123mr1582230pfs.174.1542771523461; Tue, 20 Nov 2018 19:38:43 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.38.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:38:42 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 09/15] dt-bindings: timer: Document RDA8810PL SoC timer Date: Wed, 21 Nov 2018 09:06:46 +0530 Message-Id: <20181121033652.12247-10-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 Wed Nov 21 03:36:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151636 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1419460ljp; Tue, 20 Nov 2018 19:39:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/XVdC+krYj7M6ZqC/PXi7EdrU/pojG0keu+QQWEG8cJpURI6MbXVx/3lohmdJ+Ev6qEi3Od X-Received: by 2002:a17:902:5ac2:: with SMTP id g2mr5004682plm.313.1542771546401; Tue, 20 Nov 2018 19:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771546; cv=none; d=google.com; s=arc-20160816; b=fRXMPELcectVtZPXVwPvS8d4vndcjsAt8zrcAoy2jat5iUyF+Lu8pk/lZfeA6y40oD mb/mHNPldyD/GKgzoH6mm0ON9R/iIH66U7RwxWGeSNFjhDSzxa47Gf3urdlMjIH8Sniw GTjCen4qbfYjiv0oqKVB3Uv9OQCprA0xijMH01QFLS7n5y6GF97e519wFMxk96xb92ii MWOoZFFXMLfU3qS8hb68ONepnRU7T7lpr2udypJ61/hG2iFQ52NejNriiM53+g4zbb/e i5nZ9kDqnrHWgdgvTYSgYiEor8WfTNNcTI9uAXgJgKKynCu8DUANNSNcsZS4YUF8HJDm 1Gvw== 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=Efya42UCb3BE2KNWrnRhdK5xhCoBC05T+KCgnOfUqgk=; b=qFjdRW397buabHDl53I5WyBpERy9KCV4lyhmygFrcxWC6Zdtn58VmAvU/56Jc0C9T7 fXy5ZN1fbZeNvYQrXbU+fJVLklA+LgZpfx98Y1qpEMLLGFDBbaD8KYpnpB7oZitXO+iu lDzgADI8M5gIHv37ACjipzg/PXeUpb3uV5AouAj27vjsuunw23+9oz7b3JY1bKKktKCA OID/UMY+FsTr0vkD3tJgMefT5cEbWr/3F3L+dIwH0bXig9QILC2DqELHicehfrkOoL79 VtcM6XFbgNUmI3lcAlOtMZLbtaWwk/alUEm7v6Ii15j66dJnQuYaOskmsdaHDhLt1ddT 2B7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DBjWOn2V; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 bj11si25733436plb.21.2018.11.20.19.39.06; Tue, 20 Nov 2018 19:39:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=DBjWOn2V; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1727842AbeKUOLj (ORCPT + 2 others); Wed, 21 Nov 2018 09:11:39 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34888 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727839AbeKUOLj (ORCPT ); Wed, 21 Nov 2018 09:11:39 -0500 Received: by mail-pl1-f196.google.com with SMTP id v1-v6so3391540plo.2 for ; Tue, 20 Nov 2018 19:39:05 -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=Efya42UCb3BE2KNWrnRhdK5xhCoBC05T+KCgnOfUqgk=; b=DBjWOn2VoMfoIN9pF3xPMNPtOWvhXofwx127pFmwjYJKNebwgLp4nRjDZ3EQN/LxsJ InYuRgfVReM/jM/vsa3XPMPP32FoaW2okD1hd5G9s4GyJ3E6X/+seo+/mAFAlv5tJYWW 6iQKBwJZeciqzZhW6fA24RTH68lef40c7O434= 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=Efya42UCb3BE2KNWrnRhdK5xhCoBC05T+KCgnOfUqgk=; b=n9DkxyyLFe3mIpY/w9201qNMybSc8S1nTWB4o3GpKXqsK0SvCluxcktXUXxhRatv0R 5wawZme9rKCWiQJUq4NJP5goqkayW2DQkFztsvuQrksHJKKh2qD8glGjSmEcgq2R+RmR VRuYW7pIlDG08Xd3WRUs7TaxkoaP/d7HpF8KL0cMNILmA06DSXdO+5FWVNeL/MqjcuXV lKXtNeEIJL0AwwElYYSZjx6De3d6aNjW0HlNPVXtE3G2BEBZPWAKArjk/FUC5HVyrMre xkawq3DVLA949HSn2BdbvVrS4T93+O2SzUcftdrc/DrkqDcUffTZ2dLakgcwEzQOWqUi /pDw== X-Gm-Message-State: AA+aEWaIfseQ1cykIZ0m+s8IR3yK2ROxvZQTYIwRmpPbTGPOsOLZDrB/ RIi3jVKrUTvZaruM2BZWaFtT X-Received: by 2002:a63:20e:: with SMTP id 14mr4397233pgc.161.1542771544621; Tue, 20 Nov 2018 19:39:04 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.38.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:39:03 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 11/15] clocksource: Add clock driver for RDA8810PL SoC Date: Wed, 21 Nov 2018 09:06:48 +0530 Message-Id: <20181121033652.12247-12-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add clock driver for RDA Micro RDA8810PL SoC supporting OSTIMER and HWTIMER. RDA8810PL has two independent timers: OSTIMER (56 bit) and HWTIMER (64 bit). Each timer provides optional interrupt support. In this driver, OSTIMER is used for clockevents and HWTIMER is used for clocksource. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/mach-rda/Kconfig | 1 + drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-rda.c | 195 ++++++++++++++++++++++++++++++++ 4 files changed, 205 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..598b592e03d7 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -105,6 +105,14 @@ 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 + select TIMER_OF + 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..fd1199c189bf --- /dev/null +++ b/drivers/clocksource/timer-rda.c @@ -0,0 +1,195 @@ +// 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 + * + * RDA8810PL has two independent timers: OSTIMER (56 bit) and HWTIMER (64 bit). + * Each timer provides optional interrupt support. In this driver, OSTIMER is + * used for clockevents and HWTIMER is used for clocksource. + */ + +#include +#include + +#include "timer-of.h" + +#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_MASK_CLR 0x030 +#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_OSTIMER BIT(0) + +#define RDA_TIMER_IRQ_CLR_OSTIMER BIT(0) + +static int rda_ostimer_start(void __iomem *base, 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_relaxed(RDA_TIMER_IRQ_MASK_OSTIMER, + base + RDA_TIMER_IRQ_MASK_SET); + + /* Write low 32 bits first, high 24 bits are with ctrl */ + writel_relaxed(load_l, base + RDA_OSTIMER_LOADVAL_L); + writel_relaxed(ctrl, base + RDA_OSTIMER_CTRL); + + return 0; +} + +static int rda_ostimer_stop(void __iomem *base) +{ + /* Disable ostimer interrupt first */ + writel_relaxed(RDA_TIMER_IRQ_MASK_OSTIMER, + base + RDA_TIMER_IRQ_MASK_CLR); + + writel_relaxed(0, base + RDA_OSTIMER_CTRL); + + return 0; +} + +static int rda_ostimer_set_state_shutdown(struct clock_event_device *evt) +{ + struct timer_of *to = to_timer_of(evt); + + rda_ostimer_stop(timer_of_base(to)); + + return 0; +} + +static int rda_ostimer_set_state_oneshot(struct clock_event_device *evt) +{ + struct timer_of *to = to_timer_of(evt); + + rda_ostimer_stop(timer_of_base(to)); + + return 0; +} + +static int rda_ostimer_set_state_periodic(struct clock_event_device *evt) +{ + struct timer_of *to = to_timer_of(evt); + unsigned long cycles_per_jiffy; + + rda_ostimer_stop(timer_of_base(to)); + + cycles_per_jiffy = ((unsigned long long)NSEC_PER_SEC / HZ * + evt->mult) >> evt->shift; + rda_ostimer_start(timer_of_base(to), 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) +{ + struct timer_of *to = to_timer_of(ev); + + rda_ostimer_start(timer_of_base(to), false, evt); + + return 0; +} + +static irqreturn_t rda_ostimer_interrupt(int irq, void *dev_id) +{ + struct clock_event_device *evt = dev_id; + struct timer_of *to = to_timer_of(evt); + + /* clear timer int */ + writel_relaxed(RDA_TIMER_IRQ_CLR_OSTIMER, + timer_of_base(to) + RDA_TIMER_IRQ_CLR); + + if (evt->event_handler) + evt->event_handler(evt); + + return IRQ_HANDLED; +} + +static struct timer_of rda_ostimer_of = { + .flags = TIMER_OF_IRQ | TIMER_OF_BASE, + + .clkevt = { + .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, + }, + + .of_base = { + .name = "rda-timer", + .index = 0, + }, + + .of_irq = { + .name = "ostimer", + .handler = rda_ostimer_interrupt, + .flags = IRQF_TIMER, + }, +}; + +static u64 rda_hwtimer_read(struct clocksource *cs) +{ + void __iomem *base = timer_of_base(&rda_ostimer_of); + u32 lo, hi; + + /* Always read low 32 bits first */ + do { + lo = readl_relaxed(base + RDA_HWTIMER_LOCKVAL_L); + hi = readl_relaxed(base + RDA_HWTIMER_LOCKVAL_H); + } while (hi != readl_relaxed(base + RDA_HWTIMER_LOCKVAL_H)); + + return ((u64)hi << 32) | lo; +} + +static struct clocksource rda_hwtimer_clocksource = { + .name = "rda-timer", + .rating = 400, + .read = rda_hwtimer_read, + .mask = CLOCKSOURCE_MASK(64), + .flags = CLOCK_SOURCE_IS_CONTINUOUS, +}; + +static int __init rda_timer_init(struct device_node *np) +{ + unsigned long rate = 2000000; + int ret; + + ret = timer_of_init(np, &rda_ostimer_of); + if (ret) + return ret; + + clocksource_register_hz(&rda_hwtimer_clocksource, rate); + + clockevents_config_and_register(&rda_ostimer_of.clkevt, rate, + 0x2, UINT_MAX); + + return 0; +} + +TIMER_OF_DECLARE(rda8810pl, "rda,8810pl-timer", rda_timer_init); From patchwork Wed Nov 21 03:36:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151637 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1419593ljp; Tue, 20 Nov 2018 19:39:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uosk0FYHM3K1OTGJduDPQCjG4JEjpyTcEY+4wERonVLtIVT/WZWL5WQwoyvk1YzXb+XK0A X-Received: by 2002:a63:e101:: with SMTP id z1mr4448651pgh.310.1542771556439; Tue, 20 Nov 2018 19:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771556; cv=none; d=google.com; s=arc-20160816; b=YYaaPNhUO/EG5QkuF/a7D8KvQ9oDqgqXIQKh48S3GmS/rF3B4EWN11ISZak43cEcqr ZU6U+YfkqYwaHf8vVkkZB2vWORVeAUVpMd2J5321LWXb257V+Zycn3CxDTDbFSJ0fXaK Ci0hVSucIxgkJLPNf7QgbZgA3pkPCG5Qgxf4Jfz3XqieJGneY06Ps2LN9vpKuNbSH8x4 DWWDe8F+La+gxIk03iGhFGyVR42KPhZZgfKZwPqxAjWAsB6kzhZVJTCKCq8y7/rM8iKZ Yv1QcBlJuVuFClxPyC33Px1iwQH73FmAaDWL8IjXzgReKYVrr+liKD9Ni9cscPHID6xd Z8tw== 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=UY2Gs4Ws2ReYQaoPclDWWm/KvICry84QrP/4HU2g8aRpq4cOA3m5FTqY4SNRKzTLH3 zi1Jt/HodzSg+gy8rUGwrN75khUFOwVtV3pQL45laNyv4gYzAPt2nm5fKDn5jOqrbuoS jP4mJTznE+k+TKysmX2gr2XU2nZBZBlF6ljCpTcSUuvl34kRBvx5sNcguUVLy+cN0/xA ijEECLezx1mC8nBQxYrVtyAaww3tD2RgXGf3OO0Lbwv38oiKYUjeI8ipSQfrKxZF+RGh Lrk4kzpVIGNut7Yb5gqPzbxANiWG0SulbcvXhwHCHVjiHcVY56h4G2yGYNd5jZ9cis14 HT+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LEjFpsOg; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 n33si42564542pgl.336.2018.11.20.19.39.16; Tue, 20 Nov 2018 19:39:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=LEjFpsOg; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1727314AbeKUOLt (ORCPT + 2 others); Wed, 21 Nov 2018 09:11:49 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34084 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726705AbeKUOLt (ORCPT ); Wed, 21 Nov 2018 09:11:49 -0500 Received: by mail-pl1-f193.google.com with SMTP id f12-v6so3397152plo.1 for ; Tue, 20 Nov 2018 19:39:15 -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=LEjFpsOgz+0OPLB1VA0nGOoMSkQ2hGJNouKoLv6S26+cax3TGZRUiLYaGoN4ywnhAN jKg9HPE03PIwZIH+E5+gZf5s/QIEbmK+mOu+zRyI/KIr7uFxrUejXy8ou9pYNEyVCNb+ 5VRCWtCO/PSvyipvFwXZoxGZ2Q0VwBGSP8eFI= 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=olNiKacy8vh7QnLopBmGos51/7ktlL+UzSSLelXVR6O2+7QIaXr8sBLlYlWEp9e2pE 0NJ4YDkRn5mI/54Am0jB0lvQ54QuXhKD6kvjeBmQrBYHytrCz7sDj4hmvhHefka00OYg xw8xeoQIfuyKvBcN1vd/BGO/faCo4U+GlZVs/EsTlFqsLuKaC8wD+FslQX6Ewj/L3LH7 0x2PWA6PsQ5+j7nJwGCY5HM4g4he3ffJcS9cI3+O6W6h8I6US+yMfrfgkq/QZoTozK+K 1Kg9xweD78JBOJmbYQAm5rHUo78JEHnMHVDdIFOSlgkyqDn5EshvPYVJuub9AyTJkKxr AZdw== X-Gm-Message-State: AA+aEWZjQygNfM8cnSvtWdlbeYtSA8MiCYDFBO8sfvgxWN3IjOtEfsmi 6UNQLX/XoZQwxzDVFcgykqoc X-Received: by 2002:a63:5026:: with SMTP id e38mr4441685pgb.123.1542771554867; Tue, 20 Nov 2018 19:39:14 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.39.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:39:14 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 12/15] dt-bindings: serial: Document RDA Micro UART Date: Wed, 21 Nov 2018 09:06:49 +0530 Message-Id: <20181121033652.12247-13-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 Wed Nov 21 03:36:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151638 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1419693ljp; Tue, 20 Nov 2018 19:39:26 -0800 (PST) X-Google-Smtp-Source: AJdET5e8YCgViHXHMrvi8x4YJf2i0KjU816oEQd5wN6XiSrM7jt23QQBki6hE0vKo7LqryuEoja6 X-Received: by 2002:a62:db41:: with SMTP id f62mr5125183pfg.123.1542771566049; Tue, 20 Nov 2018 19:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771566; cv=none; d=google.com; s=arc-20160816; b=KQuzn8b0Aeg6El5WYAO2gLz/9Hcm/wvTqGvvXa1LveHvn2Bf7DbL+Dmx0rlmvtvIG0 CoPim6thZ3frJT3AiAdm80Embnt+Me0OlIIOK9449qM5sUuGhBOb+xJc1ZxjNS6975oJ cosy2yKdqTjoVVdlieIFT97Cf4II3eGLe3eysTkzO1HdQFiswXkBYaC8fVkUc9AylB86 4rIJSqkZG7cFDNbZpKbv1vo+WUFQpixiCJmgI8cJ9TCrlu9S6LKnlplaJTPf0qWiJzyX PMUro9nW2JsozfxeUdZstxv+8VyH7t6UNaxASvNyFCFNqR8RAxTczV5K2AdVBwGZYTgQ mEMA== 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=2J9GuMrRuN9jrVYEvL+pORK4zBer4omKoAIBCCYCOE4=; b=o5RJvxqvF1lgig1kKn2Rge8I6rnM6BQeTJJBD1wOXftnwkwILpsKZtxcQk3INNk7oF 0o4NEbvebUlb7yR2DJqz5qoxHM70OefOKDPEyCdB+h0Y56C4UqXz8pVi4xpCcnONJpR0 7aAWSG7rRQuVC8B5V39Po518g4GfrmgX6Kn9WEBBQSFH16FKBKjNgidWVgmDvZwgnAiM YTyD2gY6DsmhD7iCzfPcCpwjzL6idzNywGuAhKMPjrhBp32w/jXmoBV/sv9aN4Jlu2lx v4aUSfbMMyPZ3b+qHLG1ZAUmKY+yRRFHEZq0pafNG/kZYjG8zxD3YYKsvj811IE1wSsA fYsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AAs4YApw; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 p16si10990338plr.31.2018.11.20.19.39.25; Tue, 20 Nov 2018 19:39:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=AAs4YApw; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1726343AbeKUOL7 (ORCPT + 2 others); Wed, 21 Nov 2018 09:11:59 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33556 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbeKUOL7 (ORCPT ); Wed, 21 Nov 2018 09:11:59 -0500 Received: by mail-pl1-f196.google.com with SMTP id z23so3396093plo.0 for ; Tue, 20 Nov 2018 19:39:25 -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=2J9GuMrRuN9jrVYEvL+pORK4zBer4omKoAIBCCYCOE4=; b=AAs4YApwX9+ZPH6P3/s9x5/DBqtabP3DyOtp+gU7sGHSnXH533BPNSeExFPqGcMD4m GpQT5mLpQF9zFwrPJElBmJ1rT/IpoxHqaklAWPWt6wNR2UIy5CIA1ZhHy7EV1NwiO6Yj F/erEqEhuU5gvob2HkPwxAjKRszvNn6U0LgV8= 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=2J9GuMrRuN9jrVYEvL+pORK4zBer4omKoAIBCCYCOE4=; b=s17PSmFvNavs9vPdFSV5MP0nvA0oCKx5Y4/W7MVFZdN0IOK91qYUc5Rm65YHhmY2xN zBH6ukmY3DTMrFgUUP18Dy+fK87QpQ8F8NvQlbTeaSXiyczeR/GoC/lP9qQ5OnN+vIf5 x4YZ83o39yyL1NxIojGB2OeS5+KNrU/Lx2/T3226rhQOLRPZlspDqq0FwzGJLYUUfb/3 Q3spYgvLX+OWyHn9DTsVWm7pfpFa1M2DmPzBX9qVGm8Y7WneHLdz3pZDqqmxKiQUTITH 6fMV4LlzQx7DGtAT1x/Pd49BuPVGg7gXpPwhvDPRnHsUaCzAu/uOIU+9p6g8QoPSEFUm Xksw== X-Gm-Message-State: AGRZ1gJI3onGCx58tvnbABmfEAQKzwnkonPtcHCJ49KaxsVSti/DWANj EUIDIRJ/HztPWHnBJlM0qh3F X-Received: by 2002:a62:db41:: with SMTP id f62mr5125126pfg.123.1542771564579; Tue, 20 Nov 2018 19:39:24 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.39.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:39:24 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 13/15] arm: dts: rda8810pl: Add interrupt support for UART Date: Wed, 21 Nov 2018 09:06:50 +0530 Message-Id: <20181121033652.12247-14-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add interrupt support for UART in RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/rda8810pl.dtsi | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi index 17ae93410769..d5df53ba9109 100644 --- a/arch/arm/boot/dts/rda8810pl.dtsi +++ b/arch/arm/boot/dts/rda8810pl.dtsi @@ -71,18 +71,21 @@ uart0: serial@0 { compatible = "rda,8810pl-uart"; reg = <0x0 0x1000>; + interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; uart1: serial@10000 { compatible = "rda,8810pl-uart"; reg = <0x10000 0x1000>; + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; uart2: serial@90000 { compatible = "rda,8810pl-uart"; reg = <0x90000 0x1000>; + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; }; From patchwork Wed Nov 21 03:36:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151640 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1419927ljp; Tue, 20 Nov 2018 19:39:48 -0800 (PST) X-Google-Smtp-Source: AJdET5er7PVSwDiU54Ww1DYrI+hgNOK88zX8T+KCXzWl0yTkWn2QjXMUPO1Sjyzd+lYFnsGKxvJi X-Received: by 2002:a62:f5da:: with SMTP id b87mr5135680pfm.253.1542771588270; Tue, 20 Nov 2018 19:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771588; cv=none; d=google.com; s=arc-20160816; b=jzeyHDixHqCWJZhnfDwe/0+VnDxRdBhNAQjWcO76nPds6G5+lyHu5wcU7sQH6nRjVI e4c5w5SfVs5hDZn08jL9/nF5/AfYmYA2Sh+gtg8IC6v/ESBV70fFWSFK2n3njyP5gt0b fd1LnE1Nalrn0R/OGX7f3VobWjTsxWU50qeVNrV6OTrEWR25QXcTo599JKFMPQP/KZN/ XTRTEmWPymId4q8S4eaKeT00rv7iltGoqfn7njDG+SSI6Ih4VXDZTNbyA1eCn0GMMBe1 y6N5phenX4fW1+6Ntc6N32wsLLL6it7ZZVk0GYNTjgLbyVkIOHQsCHuI+F4C2RYBC5M6 RHDg== 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=q6lCCJ7cB9vezAVKvnCjGdE4l3Flkguc/3cm+RnjJ70HrR6WSb5iPs1RyXvSOxOv7n FN6a95fNTZV5tjPZphU+JRtwXTX6bM8t+DUnBzeTIspKrMi1+VRaICnoKtBCEV3P7lYy AltfplLJJ4qxl/VcLMzI5GG/pyyTgkS5xGlqmCljU4QMX5dZ0KPiSakhEwIzO/1+l0/q iOdDYyRn1ILcSFPjQJe49AZMINmMe3x/P+dZffXiLT1oFYrycY9fEOyH74/fIFoV6Q4h 6vLtIo/qxUqC/VbAi3Iq2LOWQSl9JG4R/BYs2KfGLGPuFc4k1VEDbBF1lgfx8j7bq0cg DPfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hJDr6Sfw; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 63-v6si45103833plf.18.2018.11.20.19.39.48; Tue, 20 Nov 2018 19:39:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=hJDr6Sfw; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1727438AbeKUOMV (ORCPT + 2 others); Wed, 21 Nov 2018 09:12:21 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42743 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727211AbeKUOMV (ORCPT ); Wed, 21 Nov 2018 09:12:21 -0500 Received: by mail-pl1-f193.google.com with SMTP id x21-v6so3373769pln.9 for ; Tue, 20 Nov 2018 19:39:47 -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=hJDr6SfwqwXmLpxBMawMo3t9tZdCNcz5Ibwy3+xGs+3yYtQbI+D5FqveSwbrlfGXsh IxHYL7J6SeyAtBp7SF5pM4YD66IyibTQ6eT/yeOzJLA7sJA8ldKz1i2YbOCtzP9d3QpX jyv+JrtAes/a3WJZMHLe0k9IsilRWCU6mxI2M= 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=ZRErrhPBfviETw7rywhyiRv/+Q38eUfMPiZUg5RhcU9Sm4j45Y0Clssjmsr2fHDMvw quEzQqvaKgUAP2mJ0NZgOjGMylqvwKSrAfrDXhU4a2ySbWsGqlJV51P4VHJhJgirZ4FH IW7jCqSeRKmAStJ6eghRMWbyTrbco9FbfJSVyHeAhRq6Y2XbE44z6tMBUJP+qcHkN5lm nSAoqEaiy4moI3XGsxYhYDYY6K9Ysf6ZKOK/P/PvR4JdBBT/50wWCtNDeEgG1ogduU6k l4O+uGVI7H33pluuv0MbiW0gpZqrk5BjipLcpBiUgnSbeQ8Ju/nJ1sUmL0Pf5L1v0Fc1 XGDQ== X-Gm-Message-State: AA+aEWYKEpVkEvG8VLQx7boe3Z3K2LotS+HCURQXZUlTKa2UXuSQanI/ qunqoDie2Wr0C7yLA3PlFPEI X-Received: by 2002:a17:902:6b03:: with SMTP id o3-v6mr5039743plk.208.1542771586612; Tue, 20 Nov 2018 19:39:46 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.39.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:39:46 -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, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 15/15] MAINTAINERS: Add entry for RDA Micro SoC architecture Date: Wed, 21 Nov 2018 09:06:52 +0530 Message-Id: <20181121033652.12247-16-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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)