From patchwork Tue Dec 18 15:02:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735843 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C98CA924 for ; Tue, 18 Dec 2018 15:03:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B857D2A3A1 for ; Tue, 18 Dec 2018 15:03:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACA252A3C2; Tue, 18 Dec 2018 15:03:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 40F962A3A1 for ; Tue, 18 Dec 2018 15:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wHyMGuiKNwftAPC8IyWMDSZRfpY6bJ0J5L4ddE2vCBk=; b=f8uuNb0ICexZ5h OIqUJj0y8BndhMyQQ5gJOx67FZobSAtMWx+QGVFeORaiHTjdSkBV27QPqGi1SLw4O/LzgkSda0NdJ 3g8BAlsaf6khf7lDeJ1/SNbNypaeomR3FeQ/TRCNfIynuvKtfsNi/TTCUaJo4irpq1lgeIIVXyy5X WtcUr3iDeu+KFHbPtbiRNO3cRY+WjhVfhE621aonwz5jUwbp/b4a5pLjO8xyx/6/FuqXvTdI4XwO/ lpzCIr9qrg6EpKX3qlNmDxfafYJygvw2k3BkJiQKI6Z4VkNUyj1WQnyTB/T7jzR6Z+FjBH9FD1bD5 w48eQbqvwTGHFyp/CX9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGu3-0000Il-Uy; Tue, 18 Dec 2018 15:03:23 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGtq-0008Se-NB for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:03:18 +0000 Received: by mail-pf1-x444.google.com with SMTP id z9so8267478pfi.2 for ; Tue, 18 Dec 2018 07:03:00 -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=g+PXOceOUR7U/rQANrR+vw2A964XlQSf8XMtPCKMYHI=; b=VS/yiuREOc8OeuaqUfIW05DBA0mGj+sRt5yGJNaUKLAnV+1tASE31acji8rxx5iu/g WPPL1nyUBjv6bhpKgvJ8q6ObDIf3fuH5zgTvFFmdWODYtwfYKHnv8xPyLgD/6nB82jcB uvzC8SlEW+sEJZiNiLqOiR64K2+bHTLkag894= 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=g+PXOceOUR7U/rQANrR+vw2A964XlQSf8XMtPCKMYHI=; b=npdozEQ9nWZqrieQ8yxM+GclX/pnzTzHembIjFF/MCZIv6oKouAQgdXbrNNQ6XYpiJ pZT7RYEG72YXjEgz2bOb+O8v1LSmnvIAkbDeBcu1GeCm3W0rksFY0lFb4Jmu50pWX0t+ H1mfOCMcLPJ57UQG2QGCvNAUUdTRDDpsNQ2bnzaB9GDUU1zOlV1GAZOl53CRu9otnszS v+clHqJcmuRSHlK1O+BDv0lPaGIhEemShK+IiKBMDNH4y2CcJZAe1CzHa0C6+kk+FM+k LJX6w3ATSy5o+OYWJ38NLosg5hQqthnqQ6N25+efAz3nmPPSXsbD5P/tCmE8vHxe+hUG jT0A== X-Gm-Message-State: AA+aEWZMatTUrSmmU1Kle2/75QIhVkOsBU9O0iIrG37OHyacn379HPe6 Ew55sC1fSmsYQknH6IC23yo9 X-Google-Smtp-Source: AFSGD/UlRNA2nubwSWRzd8OyLINe5DM0EYTgNrrYuRaVzUV1RGPfDkzhU+T2dvJYCXYhuMbjxJm5Mg== X-Received: by 2002:a62:61c3:: with SMTP id v186mr17101796pfb.55.1545145380020; Tue, 18 Dec 2018 07:03:00 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.02.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:02:59 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 01/11] dt-bindings: Add RDA Micro vendor prefix Date: Tue, 18 Dec 2018 20:32:28 +0530 Message-Id: <20181218150238.23010-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070311_330559_BC37A419 X-CRM114-Status: GOOD ( 11.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andreas Färber Add vendor prefix for RDA Micro which now merged into Unisoc Communications Inc. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring Acked-by: Arnd Bergmann --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) 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 Tue Dec 18 15:02:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1477A1399 for ; Tue, 18 Dec 2018 15:03:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0283429973 for ; Tue, 18 Dec 2018 15:03:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E82DB29B3C; Tue, 18 Dec 2018 15:03:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7464329973 for ; Tue, 18 Dec 2018 15:03:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KGcPSb1Ge4nazesozr4CRi/M6vQd56UbzhgO/Ktdsto=; b=NGJ16sAl1UhNYj 7uz9LNwyneXrjlSzEnsEWTHxs5yBj+ebQcLeHTsT3SeuMfOAEx84DS/fgjIehv1FDygyM7e1kdjcr ckgIwYa+T60Kf8FNStrrjTgB+hiuZDbDw1YqfVdDPs6CzBD1HAFrl/nb9d89haqrQDjlbMA1O1i51 bjOAVM8YxxDy1knQN8h07YD8dF0mL0w2qJfR9BN2qmeoyfEwxhPzhNHtaZgnxdoFhHWwcDU558THj 51k2Uiy3yNMkIt2VU9qvF/QnKOLwmPhgvWpzr5JUYvCtOB5gXDZkM5y48vAcA1rg6xumryzNJ2EVL +/GeiyhOgjaJzy5ADetQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGuH-0000XW-6L; Tue, 18 Dec 2018 15:03:37 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGtq-0008VL-P1 for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:03:19 +0000 Received: by mail-pg1-x542.google.com with SMTP id z10so7933900pgp.7 for ; Tue, 18 Dec 2018 07:03:08 -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=FesXI/CntZT7O17A7JC22Pf8CkQ9Of1LoOQsFlXVEvc=; b=RzXsMT5XP3gcdCACg6PIl6rRkWuwpdgeN/6/qhaN2JKZLuDSJC7hsGYxXeyaocea2f /XNEuMiwUi7p9xlnh+OUjwkqV67DSvdZllbieXmS1zJAB00jxE8Izmqjh5OSSTdZCtu5 Ltq6pt81IUkWwCoUelEzq80A3NKL8bZQcBIWk= 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=FesXI/CntZT7O17A7JC22Pf8CkQ9Of1LoOQsFlXVEvc=; b=c6v12uBkUQny7UzTNNOWXLDpZlfVfmKUOlfCVspjZDK4lFeEobEh7+vcd2lHkK7zp5 oj7yqz8ZupKuI0y/oD9kxFB1EajV3osk47650ZrnY3yRD2iiedRPSqBZh1br87C/+94y YZb7uMbkwda1l50H0SWZKQMVyauM4bzoXVnIMXygDDXSd7ojKRBfKnghQpmd7IEREcgB YiXwHGp3KYL7GMKoyL4b2J8kovVA7/IW/GTsHYn4JurzFVXrDoxPtLsbI7aCQQVhmtLm fWoVvF1ZHJ1YUfgco4+wOYqvsbEjAwye0TEfGQoDzMNffsAhXmaaUJ4hKyAaSGyHvHo8 R04Q== X-Gm-Message-State: AA+aEWY589ezgJg09sVwzLnIOCC+dgF3/RXcd6aI8FScv3AhqRVD1gt7 mh6c65UwgJNaWAz2DacvSKToBap5og== X-Google-Smtp-Source: AFSGD/Uk4HJ/aqLuiL5P7IxWeSMH7ytf82p/PHE7W47Ya8n2IeAjHsvZ1VnD8K6dipIN6ixf9HRD8g== X-Received: by 2002:a63:7c13:: with SMTP id x19mr15069040pgc.336.1545145388131; Tue, 18 Dec 2018 07:03:08 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.03.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:03:07 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 02/11] dt-bindings: arm: Document RDA8810PL and reference boards Date: Tue, 18 Dec 2018 20:32:29 +0530 Message-Id: <20181218150238.23010-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070311_507813_1DADE34B X-CRM114-Status: GOOD ( 11.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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: zhao_steven@263.net Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring Acked-by: Arnd Bergmann --- Documentation/devicetree/bindings/arm/rda.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/rda.txt 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 Tue Dec 18 15:02:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735847 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A9103924 for ; Tue, 18 Dec 2018 15:04:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96A302A3D3 for ; Tue, 18 Dec 2018 15:04:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A42F2A3DF; Tue, 18 Dec 2018 15:04:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1089C2A3D3 for ; Tue, 18 Dec 2018 15:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YSGyVcSyHJvegu9w1TpeMMLKh/OhbR8hc6vgQj0nbJg=; b=Ce8ThsUshdXVSw Jx+puYMEN7Cbh0cXEgd0ME62xHuWBWqr1ktLfQdwgPtcBhafwjb3imA7mFc39F0sHd0ne3cfVyUD1 3jEEbAGNsUARkzt6cRrA58QevyYGlvH/DlnWNm7XuxraW1strf6tIjO7/ch1Lxyo7MWKTyDMDsBSL vpSMnb/rN0uZi0RVDMAB5KVKRscYk7cSzaN4raIM5Pnd/vHXbem+ABpjX6CuxVRs/p1fe+ytekHBp O00JA6SjD4n126+peQAvhQP82i2DmKj5EvYk5lr/WEeqnJB9dPJDjUFltDndRlc5lGu6IeTYgNyOy YetYHKtqEszO9MTOqJhQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGul-0000uE-I7; Tue, 18 Dec 2018 15:04:07 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGu8-0000EE-4X for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:03:38 +0000 Received: by mail-pg1-x543.google.com with SMTP id v28so7926270pgk.10 for ; Tue, 18 Dec 2018 07:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SNPmZXdeiPat27OKf7lQvtx2gmSw3oL4RvR/cVfcbOo=; b=RQISw3iYiD2dHa8oqpEBLZzzHay/RB2beToYv6DQ7GzX95iLHGvbinz53De+M9r/9g +K4LuKo2mw/vY/D3QsXubkHyRWAq3pnUQiEy+OfoRan7L2r5FzZVb5z5cB7VrxlyX0dk 88fHW0WLKwMgOZ7vJArJ1h4Sqej5Oqute2HzU= 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=SNPmZXdeiPat27OKf7lQvtx2gmSw3oL4RvR/cVfcbOo=; b=qhBr4zpLXpEarpVfEJHUnK2+qbKuNUjbbJZ9StHvcBshMU6hlDitFXLAgGB7Jbhcm5 WK35vob/rBVKlCooW4z+HwiDvkUVFamP5Bj57b1v3YlTX1IT/iNqbz4APc7WiLTrpV+U UveM4ODsd9nhPU3P047xKJbtF/ySXTWiyBqDqPmt8DlSARzw3vGDYI/ZRRyZIxg1fKSD MiBOxiedVcQeCziTT1vU2fbjnyEVJKaFXVUm+nEskj5LiPzubTlNHwzklYWD9uD424Bc ByTpORsN4Ar6GHfl9XtJGHfd1GQjpMvWBHdDV/azoUJIxJ4gqI6vf3ejnjYYY7afKnJS x2+g== X-Gm-Message-State: AA+aEWZ2QHqY6j/92ed33/pAgFTjZNZXJPWXPWNhmEX8eiZi8nSUHbOg oPQcLhwLRBTzczK2qnFFqc+h X-Google-Smtp-Source: AFSGD/VhZgtTPfsawvWHIIxym/rI4Zq09WgbYG5jZW5UJB7TWWqOiK/7LkjOgfWctAgqwHhHOVakig== X-Received: by 2002:a63:c904:: with SMTP id o4mr3147216pgg.331.1545145397568; Tue, 18 Dec 2018 07:03:17 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.03.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:03:16 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 03/11] ARM: Prepare RDA8810PL SoC Date: Tue, 18 Dec 2018 20:32:30 +0530 Message-Id: <20181218150238.23010-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070328_400587_4982B201 X-CRM114-Status: GOOD ( 14.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Arnd Bergmann --- 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 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..4df8b8ee1a9d --- /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 RDA_INTC + select RDA_TIMER + 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 Tue Dec 18 15:02:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735849 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E30B13AD for ; Tue, 18 Dec 2018 15:04:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B8042A3D3 for ; Tue, 18 Dec 2018 15:04:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D4432A3DF; Tue, 18 Dec 2018 15:04:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CE4C42A3D3 for ; Tue, 18 Dec 2018 15:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1WdNz0dzaHatWqQgCxKBw3RZbEmaZv6MV9PdpDl4r6s=; b=Oyc6NX7pSwIjfa F7lL1TagVmG3AXgev5XzBdizlWEXIoMktjx4haY+ick3UTWoVMfBF++pPvLztcF78DwX4WxQZ7ap0 b4kL/QtwY3W6jGL+6v/UiWn0v8MpBQT2IcQMa8/fIdJSMZeM5cAKhneYbA1GinzxC9SuS/0QGedYM r6ENOwA0FlnJQ5mL8qm4TByz4E2mgDlyuM0UtSWCcSNnxdAKHkrefLH47zj14sTpZT9JBEC0l7a1D hG0IVk1lJVh4CDUdyXmyjYdT2gbdbVfMyU8eKa6cUqYAy0HVlq30Vo3Z2/k3ySBc5oLDpT/b/DNzz aW8SV8ey+GB3nteJG/8A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGux-00013Q-CO; Tue, 18 Dec 2018 15:04:19 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGuI-0000NF-0R for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:03:52 +0000 Received: by mail-pg1-x544.google.com with SMTP id m1so6302873pgq.8 for ; Tue, 18 Dec 2018 07:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v4xtujsTt51xjeBlCqtpiwVFI+MMIJI2gQm9S+Vb5IU=; b=HxFWH4zm9VyHcUeDTZblNdLNCFIFYBvQP8phho0YEoV5uUBZEwyn5+5UpHrA4BGx3v HIJ7xsbJfRAJCjM3EBpkpVyiAe9jvDGR93r709LHS3Vz94eC8Gcyd7HDu4dpiaUFHlc6 C50+uBYf8TfYjB+jOhBR45/RZmhBtTF17wpqk= 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=v4xtujsTt51xjeBlCqtpiwVFI+MMIJI2gQm9S+Vb5IU=; b=eLFNw6RTzwta1lpk+G1hoCWJGxcnXch5OUtQykHKsShNCrjWJUtTfRWcQKdyc6dXf+ 3pYDB1UQr5T3hfKEPHA+EOBTcVAK0jnv5oYUJx0nGZh0K9jXOHCjkFTKPli3Nc2oCEHv 94tBl/ghZCuQ1+mT09EbwDZ2I89nwa+7GgTWHd7qcPYKsMyAZa/UDfsO/7A0pDc1pULP iNQsBK1dvl6GVwlaXd9ogevcFVA4/b1XE3r6ERJhA4L1eU4CgOl3VvDme4ZtwICnfowh JbLDTJyrIJJLH3hcMv4WqbjMlcrbWVLOBTjEcz/j63B7oFK8B4ExhJDHui+/BflPDkoC Xa4g== X-Gm-Message-State: AA+aEWYYTwEFnYHWVZwCsaTOKD1arfVmO5OS90ZYCLQFP/8MCcz3x/dy wWLjaQn9Nipie1qdBG2Gj0ly X-Google-Smtp-Source: AFSGD/UAt/kBd75XrEij9wrxXhvukgdaTY0LbjlzDw7TVjbsxIgsotbZ65cNJ7Q/G55S+0PxajBOzQ== X-Received: by 2002:a63:7c41:: with SMTP id l1mr15797012pgn.45.1545145407166; Tue, 18 Dec 2018 07:03:27 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.03.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:03:26 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 04/11] ARM: dts: Add devicetree for RDA8810PL SoC Date: Tue, 18 Dec 2018 20:32:31 +0530 Message-Id: <20181218150238.23010-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070338_411941_B51FAF31 X-CRM114-Status: GOOD ( 13.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add initial device tree for RDA8810PL SoC from RDA Microelectronics. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam Acked-by: Arnd Bergmann --- arch/arm/boot/dts/rda8810pl.dtsi | 86 ++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 arch/arm/boot/dts/rda8810pl.dtsi diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi new file mode 100644 index 000000000000..15547b138977 --- /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>; + + uart1: serial@0 { + compatible = "rda,8810pl-uart"; + reg = <0x0 0x1000>; + status = "disabled"; + }; + + uart2: serial@10000 { + compatible = "rda,8810pl-uart"; + reg = <0x10000 0x1000>; + status = "disabled"; + }; + + uart3: 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 Tue Dec 18 15:02:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735853 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C9BF1924 for ; Tue, 18 Dec 2018 15:04:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5E3D2A3D3 for ; Tue, 18 Dec 2018 15:04:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9C842A3E1; Tue, 18 Dec 2018 15:04:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9E9182A3D3 for ; Tue, 18 Dec 2018 15:04:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UFtcWgEyXRz/H4MRDHuaX/vF2r09RQLpIIvs1as11eo=; b=pyu3tjVarvCvAr thtblfzlDfDeIYVJqetNRxVQzdwxTmeITLeycoRRRRjQoaT0D8+UZbutH//M8GBay0eayEm91Be07 NJk4QaHqTAzq82KExte8e7OE+KFevWE+6924XI4ZeJt5TX0PynD+Dsh/Bejf5k/uzHwH0pNjMEQ72 zZRpoKadVK9j/4bmO9BD8FpJdIvcDQ23f/XdIqFIfaW9L/2CYoiF75B/J8CN78PH8qHxglY6rcqFv S2m6hZNmDbwqiEMUreBW/Nfdcbn+In0LkGmPVAvI5PJEamKb/pICRvmmocBpqAUnmkWl2hFSH0/Fd xNaSgSvIx+hupmk7MQ4A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGvS-0001Vk-RW; Tue, 18 Dec 2018 15:04:50 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGuS-0000Yf-3m for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:04:06 +0000 Received: by mail-pg1-x543.google.com with SMTP id v28so7926679pgk.10 for ; Tue, 18 Dec 2018 07:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Auk2XhMMEToip2KKbDHncAZfukq8/UgpgNfIt0Pzr7k=; b=eD+V7KxZyfplaiikOGHEny17DLB002K4PPJd22DBzjlyRGHLiWc4KzF61xHvSji3zM lkEbs2K4r464GiJx9nkp8lydkKTl8UzKwdcXjHPu/+xKzPxYo1ORcdt7QgDbWvQqnCin 2h7ZgxhFlv336oNVWV+FKF5sEuXTmlykTV/EQ= 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=Auk2XhMMEToip2KKbDHncAZfukq8/UgpgNfIt0Pzr7k=; b=B/Zbb3QTO3wuU7bly3vek4GZsXxrxd6hfjV2TnX2nZ5+srVe5U6o0t7Z/KosR+F1Z5 gagB9rkt640zOoHDOS/gMF9fDHBMldiTtX0lN8a/rRyxYBpa0BE5uMrLxU9tzFslVdci 7zTv5zaXki4ikhsUYCaH6QVHNn6ksXVibyN6Wkxd7mRs9hQUcvG1m3oDdLVgLR7c8YKS fiVmlCpCicJtHNNWHKFUW7Nn0WdfSKYyBKixwr2x6oPmBohoukkoWAVpQdEqlULY0s4V 7MTMEZ4gV8z8yz0HQeeBIdXABszAhuMRubU99WQm+6XhMkAseOOlvSoUA7KXwoTlbjNM 0krA== X-Gm-Message-State: AA+aEWb5o4BVChB+CvKXBoTN1M8ns1N+XkNWEY6xlCzmdOuTYQVQW8IW 63zZ91FrI4dnEKiGxskFCkL5 X-Google-Smtp-Source: AFSGD/V6ZNPnQdNlACM329WNhwzrBru0FdVcxU85XT+R7LEKj0do9AljsFCWmgbIyvPT96vBVl2h0g== X-Received: by 2002:a62:cd1:: with SMTP id 78mr1804653pfm.219.1545145416963; Tue, 18 Dec 2018 07:03:36 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.03.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:03:36 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 05/11] ARM: dts: Add devicetree for OrangePi 2G IoT board Date: Tue, 18 Dec 2018 20:32:32 +0530 Message-Id: <20181218150238.23010-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070348_724767_1A61891B X-CRM114-Status: GOOD ( 14.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add initial devicetree support for OrangePi 2G IoT board from Xunlong. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam Acked-by: Arnd Bergmann --- arch/arm/boot/dts/Makefile | 2 + .../boot/dts/rda8810pl-orangepi-2g-iot.dts | 50 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts 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..98e34248ae80 --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts @@ -0,0 +1,50 @@ +// 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 = &uart1; + serial1 = &uart2; + serial2 = &uart3; + }; + + chosen { + stdout-path = "serial2:921600n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x10000000>; + }; + + uart_clk: uart-clk { + compatible = "fixed-clock"; + clock-frequency = <921600>; + #clock-cells = <0>; + }; +}; + +&uart1 { + status = "okay"; + clocks = <&uart_clk>; +}; + +&uart2 { + status = "okay"; + clocks = <&uart_clk>; +}; + +&uart3 { + status = "okay"; + clocks = <&uart_clk>; +}; From patchwork Tue Dec 18 15:02:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735867 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B286613B5 for ; Tue, 18 Dec 2018 15:20:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3A2E2A89A for ; Tue, 18 Dec 2018 15:20:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1B8D2A848; Tue, 18 Dec 2018 15:20:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3AF462A8A5 for ; Tue, 18 Dec 2018 15:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dXNN7cEOr/D6QEFQJ+5ROF0onBF0PB6AcN/us8lC6kQ=; b=pD+jl4EEUCMkNz S3UWFBNFONWjAx6Mxgl6vlJrJ6rPZKSqlfVHZIJBGIzunkToH1ZzRCBYf/fC0sRqRuD/ekamKoCK9 b0P9pRc6ZJ2m/rrvEZ6NBKdQ7sIS8+HiT4Uf2KGTRSCCq/NwRPJfXYmj+WG8wKyxpyQAd0ndVtcGs PgT5Gs9OKxOOH0b78b2iF29nVV3iQOVEhjDpLECHhFfsNEUopgW/qwESMoiIYt/2MeltrDkoVL3Rm o1N2lGZRVr6+9cC3ws08vuJA5bRF7s6nH8S28tOCHDkbDSvznUxVE06G7VSd95KLWkFn96e+24fif x2RFK+JOHTnAPxgo3WSA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZHAa-0002hT-PO; Tue, 18 Dec 2018 15:20:28 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZHAC-0000ux-N4 for linux-arm-kernel@bombadil.infradead.org; Tue, 18 Dec 2018 15:20:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HM6vGHLEYTQ34K9d+Cku5qQedHbZ76UdlqZjiEC2yYI=; b=HvIXUpIDS+wayiyGsaXSTxDjd0 pBIXmg0/zDYpDqYuXsGupccq6erkQuOLguDLsceFW4s81xM1TxaOgnau+TEvGEF6cs/Q0mKMfXaJg BvZGC/bK5kQRi3yT5bUK5AryAQ4Btskx3k4IaYqHuYVHgzo8Jg7CcfwEb60GdWKVtz3ScixXJPSNm c5prsn2f/H2cExfViuWoRTpAcdNIXvbEFOAiV+KJjIxzIhs4eDPOPKmZ2oFJ9ptq+MncDLHi+bKTO xk1/3cjyvpCep7/uqpTLXUzYPDiNSC391huoF0eQMoLgzGAi3ZbjClYShg7Ihs7Lnrf5aT+ZOJvVj KX+E3YIw==; Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGub-00058T-EA for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:03:59 +0000 Received: by mail-pl1-x643.google.com with SMTP id e5so7952580plb.5 for ; Tue, 18 Dec 2018 07:03: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=HM6vGHLEYTQ34K9d+Cku5qQedHbZ76UdlqZjiEC2yYI=; b=DFFe5goNJ8sL3mG1QL4BIapBIANcH2+8O3WOryVR7vnKWC/Ldpfg6UnIfIa7MBhDrL KNASmNqDLUPuxi/0dVrx4rvAqJ+ZLhtTQIcbpy8ekVH7jfP/YzbyhRibR4iAOwAh+kAY 3MMucGr6nYYJzyr19GhReRznyqp4qrU6vM988= 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=HM6vGHLEYTQ34K9d+Cku5qQedHbZ76UdlqZjiEC2yYI=; b=ZgwBsPOxBjPceGCKZ2mnXec+9uiNW3PlDWmbjH49Wtyv6PktdeFushFkKB7aF2PlGQ KoUmOiG3Ty/ztoby4T+OQ/dQ4TDL02vLKsW7GsOGz6YkrM5NbGCC+d8DK/imKZIq2R0+ E5WYtYjlxSwjqVz9UHbWH86PhD12l40xlcvvEbA0/ebnafoPyeFfwot4MNQQCYd+xTCv OtfJnOMR6Narl1V0kaGFdZXGwjIAqUsPDc5COXSb5j4dpmOJaZbfHNJvwui2JDATBGdA Xv7k1gUw0z+AzAmUwLtZh2NqwWfWDmuHiLRZbSvT4/+dg/psfd1l7sRepMlxCWuDJZ2w Do5g== X-Gm-Message-State: AA+aEWYwxvWaZ52M8S7FdZFEXm2KFz89i4/D0z35qVjtVR9LTxELyDuq aQIPj4SJLdvrClQlnFB+VuOA X-Google-Smtp-Source: AFSGD/W3FUXjOO3QZhHB/6lIBHHQPo9D7ENM/Sq4ljq3u2v/P6Oh1BEhCBqtGVfbZn6QaRpO9utmDw== X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr16783365plj.116.1545145425629; Tue, 18 Dec 2018 07:03:45 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.03.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:03:44 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 06/11] ARM: dts: Add devicetree for OrangePi i96 board Date: Tue, 18 Dec 2018 20:32:33 +0530 Message-Id: <20181218150238.23010-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_150357_484100_904C1D41 X-CRM114-Status: GOOD ( 15.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add 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 Acked-by: Arnd Bergmann --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/rda8810pl-orangepi-i96.dts | 50 ++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/rda8810pl-orangepi-i96.dts 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..728f76931b99 --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl-orangepi-i96.dts @@ -0,0 +1,50 @@ +// 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 = &uart2; + serial1 = &uart1; + serial2 = &uart3; + }; + + chosen { + stdout-path = "serial2:921600n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x10000000>; + }; + + uart_clk: uart-clk { + compatible = "fixed-clock"; + clock-frequency = <921600>; + #clock-cells = <0>; + }; +}; + +&uart1 { + status = "okay"; + clocks = <&uart_clk>; +}; + +&uart2 { + status = "okay"; + clocks = <&uart_clk>; +}; + +&uart3 { + status = "okay"; + clocks = <&uart_clk>; +}; From patchwork Tue Dec 18 15:02:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735855 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7713924 for ; Tue, 18 Dec 2018 15:05:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C68262A3D5 for ; Tue, 18 Dec 2018 15:05:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BACEB2A3E6; Tue, 18 Dec 2018 15:05:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 70A022A3D5 for ; Tue, 18 Dec 2018 15:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cPuos1iimq4A1/IGNODBZeEYvxZ2bYOMpzcjPQuG0yg=; b=aLu5kfzMYQLpgC 2fI4PMysDKm8Ch+zaD7zkqzVf9lQTr15J3DXfKQsFXD6ahut5Pojcnfg4iGKHcycuq3shk+/NO40C 5nE65FnUtuwZZAxejgAfWxotXx4//KE4O6fmDfv3ILhyHtuJEHMEe1w8dv8KoLVxocSjPoEIVy1eN HkPiCx8ji1OCU4iRMA1S3Ew2a77TcNvWE14Q1RLf0oeQV3Tht0LoUMCeKlGw5C8mdDWjDO7vBWFCU ouKjJircU0dpT/KwraOWXkrI81QtAR1ma8qCOZltSOMYYHBla7tL5GEyPkuqP5CKSsd/8bvBEDUhJ Nn2FG1YbUCr01k2709EA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGw0-00038L-KN; Tue, 18 Dec 2018 15:05:24 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGuh-0000n5-QT for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:04:19 +0000 Received: by mail-pf1-x441.google.com with SMTP id z9so8268613pfi.2 for ; Tue, 18 Dec 2018 07:03:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zcGwIisGD3xe1Hi10sfTFo4sWeyzLGuK/X6UgTn9Mq8=; b=f6ivAqyq0w5nlhZ64fTOLvUYLzZCviL2IHcDV94FRjYkb0hO0NBSAsTuGvvRQfhbLM IwTNxva5mndlup6iOhak/AtnTwbiJ1iKCa+CaAWCe4OaMy3a6ma33tcuxN8K8z8vFRvc DqKEee/E1gR9OIsfDHQ49/vXQfOAA3695ETos= 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=zcGwIisGD3xe1Hi10sfTFo4sWeyzLGuK/X6UgTn9Mq8=; b=GjPm1UyQJrqvPBcD0UEXhX1+1u0y8oS9wj8LK4306uDw58+aMEaxUbYj+RzPtJiCgK kU/6hK28CIyYffhXQplPv2y36hASv0vKsvbtEjyMaXCCWymkS60n5SqDhEW6sCjN9G8c yzhNDxhPHxB3Q06RZtc1C3mfkxhJ2y6UNcWyUmfeZxwAyT6DjfTOeOqmKOwLzVvAHjaM xHM7m5VBu/g7mFUw8yL40IvzwTRjft5LznTrziB4xL7z1k5NTUbGqpOOfIJA5T1N3mU5 4sQuaDkOUt3nYZl4O9t01mMZzRFq1wTn/a2cdRV15Nyvibt988st+v4OomtYOF7+peNl +mtg== X-Gm-Message-State: AA+aEWaR6NH0aX81azLeVhb1ZgieB/Px6VkqJTOa8WaEwVroqh/mk9Nz 0cBtitqOZdLzOzcBpPk4Cz8P X-Google-Smtp-Source: AFSGD/UPjymwPQoXl7pFQFBvNtOwB9L8rNCGFVk4qL2jb46eilT7lTlW0tBBQGWkPvdR9FeaISMxzA== X-Received: by 2002:a63:8742:: with SMTP id i63mr3163859pge.298.1545145433135; Tue, 18 Dec 2018 07:03:53 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.03.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:03:52 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 07/11] ARM: dts: rda8810pl: Add timer support Date: Tue, 18 Dec 2018 20:32:34 +0530 Message-Id: <20181218150238.23010-8-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070403_984881_E39D918B X-CRM114-Status: GOOD ( 12.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add timer support for RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam Acked-by: Arnd Bergmann --- arch/arm/boot/dts/rda8810pl.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi index 15547b138977..84baa4c0a14c 100644 --- a/arch/arm/boot/dts/rda8810pl.dtsi +++ b/arch/arm/boot/dts/rda8810pl.dtsi @@ -6,6 +6,8 @@ * Copyright (c) 2018 Manivannan Sadhasivam */ +#include + / { compatible = "rda,8810pl"; interrupt-parent = <&intc>; @@ -50,6 +52,14 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x20900000 0x100000>; + + timer@10000 { + compatible = "rda,8810pl-timer"; + reg = <0x10000 0x1000>; + interrupts = <16 IRQ_TYPE_LEVEL_HIGH>, + <17 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hwtimer", "ostimer"; + }; }; apb@20a00000 { From patchwork Tue Dec 18 15:02:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735865 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2365F13B5 for ; Tue, 18 Dec 2018 15:19:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1298E2A841 for ; Tue, 18 Dec 2018 15:19:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 071D32A84E; Tue, 18 Dec 2018 15:19:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 03EAE2A841 for ; Tue, 18 Dec 2018 15:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1eIHPcwo7Ok0RImRLbG0fiVU3Pipd7Q5XirZtBOngQY=; b=LUkxBq65V3dqrj bfK9zqVtbt4aDiwIE630d8eLZQWD6mas7vlAPFVKbcEEHZVdCKsgmJKPUch6PsV8dzhSLO8Z3LLMb tc2YOsEcc57dlnIjXaBmQX8LZYPFYsQNcXL7Auno2cGJuZffyC8smlKSoq/4G8/w1K1xv50eZ5Yt3 C+nVBXo+3yelxpWhtgPHRHcMLk8lPFEhGZ0H5csYMXweQGAXfLkONsnM1c3jZuSGND8CWJ+4Yb9bd MPL83zn1IHkQnnr2GJYzmX2pb0KLDR9/J0zCTwAWtiMV4jjH8biaAXvWOYgB6RazXQfAopm/pFHOI 5RploYqSeUO5nkneJEBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZH9m-0000h3-Fr; Tue, 18 Dec 2018 15:19:38 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGuh-0000sP-QX for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:04:18 +0000 Received: by mail-pf1-x441.google.com with SMTP id c123so8275429pfb.0 for ; Tue, 18 Dec 2018 07:04:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZyE2u/x6knKCVFcTEeQSNyr8fOyOJ4nkYkMjo3bMh2M=; b=Vr0ulnX35CEGh2MCG+DB8I5x2nAWwFenlVCA4OL7ruMkJP+7SNlJ6N1qvYHMRwNQrf cgpYWp7aPElCv4rkpvtcTQovERPPk9i3gOWXOB0jX9pK9hmEwljrVP+IF/XExrxK9e4P l3C2icU6all4dweckFJVtVo7hXrQFwLcIzlj0= 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=ZyE2u/x6knKCVFcTEeQSNyr8fOyOJ4nkYkMjo3bMh2M=; b=JffJMj3MCZJmElx8b+XHUROpWBwWwLymtZhusiAp04lucw02EXKrNM0OX69FROW00E w4emmhp95vRRx71Misfrkt7BjlOBIGAkgSMes314DQI2SPa6gMeedFNYW14oF1JsXPwG yvsmOuGl2M+WRMiY5Fm4kvliskgI4xo51qrbmNBxOvRqliF5s+6FeNJMpVeNIB3cUNj3 v723ld5LlMRYb/c/yWYk61XzYvxTvIq5Bkz5ZA0n14ZftVP9D+9qyBIMzWEmrBPgjIou 4p5NSRVmXyOiBpET5wUm9yCvnf2l3iqGVBL3gsVi1G0o69f8IW2Dfz3B+vHcNfkuC59R A4zA== X-Gm-Message-State: AA+aEWb46HxhVbXPoexDH2X0kKz+bIlbO51iNn/yiHv3UVjin6D7z6G0 J5/JuL32l8iKm/AQbKhXTEvW X-Google-Smtp-Source: AFSGD/Xk6jxsVPBjTImvDMuUNVfX9dobCUceaV1lugNfBzC4qh4ZQNOfLOE0hOFgmO5S+rc5dUYqnA== X-Received: by 2002:a62:34c6:: with SMTP id b189mr17393861pfa.229.1545145441586; Tue, 18 Dec 2018 07:04:01 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.03.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:04:00 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 08/11] dt-bindings: serial: Document RDA Micro UART Date: Tue, 18 Dec 2018 20:32:35 +0530 Message-Id: <20181218150238.23010-9-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070403_973683_EB0C8CB2 X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Rob Herring Acked-by: Arnd Bergmann --- .../bindings/serial/rda,8810pl-uart.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt 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..a08df97a69e6 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/rda,8810pl-uart.txt @@ -0,0 +1,17 @@ +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. +- clocks : Phandle to the input clock. + + +Example: + + uart2: serial@20a90000 { + compatible = "rda,8810pl-uart"; + reg = <0x20a90000 0x1000>; + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&uart_clk>; + }; From patchwork Tue Dec 18 15:02:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735857 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EB60A13AD for ; Tue, 18 Dec 2018 15:06:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6A0029887 for ; Tue, 18 Dec 2018 15:06:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C76B72A3DF; Tue, 18 Dec 2018 15:06:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 746BB29887 for ; Tue, 18 Dec 2018 15:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SAG8Nv/iOOzHPx17mnna8eXezagtTeECpXDpCuG86jw=; b=UF3fd0S9gfoXkt 78BLe1gVLO+eyY0WzhoiVBy3O2PjnEhz2Xba1/LoAlVbjQwoszuPKXLcSJD3i3ZUL5ODVRskRSL/7 f1ec1O0mIU+tWZEpHnxgtqt4xtRiXwd3LVVvUy2zWLidvu8Fzc7NQe/VpyjVIuctLALT5nVt8Aylh dGjsQZ0Zi2JZkDhndfiZecZbjgnAMB7LjOLi6cGflbgdtw8ULgzZBRMPaHIGDPsL32obviEPYCXvc msfylYx969pRkq+9tl+4wA54Hz21kEktCpx9G2GcYA6oA/NlJN1V+NtZMTXsFoOizgRdVkBfIB1tT 2hZXfGhAXufkMAmtjyaA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGwy-0003n9-I0; Tue, 18 Dec 2018 15:06:24 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGuy-0000wb-J9 for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:04:30 +0000 Received: by mail-pg1-x543.google.com with SMTP id d72so7929842pga.9 for ; Tue, 18 Dec 2018 07:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/+Wot32dCYbFyz82umg0TGbI9UaJBZsDc3LGBl9ZFTY=; b=iIf9pnXABmhVxHctX913lu7LzINrROLekvfBds+7aNxZPg1xaIxxDiFFGd12jsoJ0T 9DtMJlX+x9E9VOaeEOtxjeHU5q4+8y+5bAYh+a3tlRgYVfNaZ63c2iKqtQycTq4oPkwB 3ROCT5y+WReR4f54VG00G9aS38STj2V2Ks/Rk= 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=/+Wot32dCYbFyz82umg0TGbI9UaJBZsDc3LGBl9ZFTY=; b=XEpTdlEZX5KTOWHWbUc2mqM4D1p/xaJD5fHlKOmwS7RhVe0YRdm6Se24dK82SN15o/ 1IVK7pBgT9Z4vz+9fgGNbN1hKn0Qmus9WV5nk0Na4x1vY+sa4Xyw74GzlyGKhn2S/3mY 2IuhY2Qj67vuSILiS2M3xRU6rQdEvtf8kpjDojMSBJcP1/t44OD+r3rSCG1gtzYjj4cX BsjPx2q85NPYc1m85BucLGjICEank0KlJ4ZZUQ3dgzQ8D+gdnaCfBWbh1Odn1rBH1Vtb 3VPuurc0QCQkzGM7GHALep6vg2ZleUrVL9R1b0c63F3NV20Ze8UQYi0ndkY6Lq/mVEz+ R2jw== X-Gm-Message-State: AA+aEWYRwCwcAmMmtLIyrydFlJpqlL75MwdYaYjjlw8APCx1YxZ4QCkt G5NqNM4WFy1ndKIiBIvwzHUD X-Google-Smtp-Source: AFSGD/W/175emCViIzzUGynsJ1OVpxVqOZ3euiM2JR3hBfSKptrbkxWFnjNyDXCGC2qLaLFI6QLEdA== X-Received: by 2002:a65:6491:: with SMTP id e17mr15868402pgv.418.1545145449913; Tue, 18 Dec 2018 07:04:09 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.04.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:04:09 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 09/11] ARM: dts: rda8810pl: Add interrupt support for UART Date: Tue, 18 Dec 2018 20:32:36 +0530 Message-Id: <20181218150238.23010-10-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070421_582704_8BB9F764 X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add interrupt support for UART in RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam Acked-by: Arnd Bergmann --- arch/arm/boot/dts/rda8810pl.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi index 84baa4c0a14c..19cde895bf65 100644 --- a/arch/arm/boot/dts/rda8810pl.dtsi +++ b/arch/arm/boot/dts/rda8810pl.dtsi @@ -71,18 +71,21 @@ uart1: serial@0 { compatible = "rda,8810pl-uart"; reg = <0x0 0x1000>; + interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; uart2: serial@10000 { compatible = "rda,8810pl-uart"; reg = <0x10000 0x1000>; + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; uart3: serial@90000 { compatible = "rda,8810pl-uart"; reg = <0x90000 0x1000>; + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; }; From patchwork Tue Dec 18 15:02:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10735859 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D65A1924 for ; Tue, 18 Dec 2018 15:06:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C319129887 for ; Tue, 18 Dec 2018 15:06:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B52D32A3DF; Tue, 18 Dec 2018 15:06:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3B69829887 for ; Tue, 18 Dec 2018 15:06:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ULmU4nAy8oZmxiS4d5mtv/5mHSb3P+bYSIA6CW2BU8g=; b=dtI+TrLRDVBB3K CqV7Jh85Qwkkk2GoabD+ufIyXyVhGgTqwQo6n19Cs6lsD1T5x7AZ6E4+O0dE/+zZzytAduudhPpBj UthhOwo3j8DptMG0VsZJ7XevzXE80oBeTJ65PmmuvQt6PT+J+QSufDyAtI5Pj+gUuMv1/F0Lo6RRM xbaUNmid29oiJZS98esDc7lje1pgbKnTU7soQX6EeRsfb5XpdUO3Zz8zwT5XW05T83UjKjyWwOH+A SE2ysIIjBIxSm2FRN/bBD+MtQGO/+lVxjLcKuELg38ilIjs+QwtYg7NM9ryfg+mxeN2HQ4AFA3yFX l60tcW5m2UWi8QdGLM0g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGx8-0003wC-6x; Tue, 18 Dec 2018 15:06:34 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGv0-000171-Ts for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:04:44 +0000 Received: by mail-pf1-x441.google.com with SMTP id c123so8275842pfb.0 for ; Tue, 18 Dec 2018 07:04:21 -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=VBsuuxvCakRUGquldLAcUG+VYHY7bpUH1gbnfPFNuxU=; b=QD6tXaP6LHQwKjPqCcH4T2f1MdPVRWU44zoygUrnPhInE2lSonifezeW2MUP8Xv9Gy T1SsD5lC69gveam4Vc5oLFVWyRIF94ow5OnRkpan711YHw1lxdHXxqzJfuIPShsZVzbK QPhCQvtVj3ciPpM/tOtLXoAwjt5fm3sdHXLJA= 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=VBsuuxvCakRUGquldLAcUG+VYHY7bpUH1gbnfPFNuxU=; b=kpAJY06Nhqt7z+nQ1c9UGnFTzEn6QPxaWSCbsFBQl+Sa8eri52oDdhjn+SK7W5txLW yAsEMMKyFmEq8iBRr9kpl8xsHTB1DsTGA6MjX5+8t98QTCIkwBDOj7iDjJwu1r4K6Pjv oOmzy0/7kqpVJgh6/3NcBIcfXmsI3dNMs10+Kk53pVPQHgUgQV2y5RglGSuntnv1jFpP 7JaOHc4cwiwHNVuxYAE3YaJlU1g1kLZwi6sUu+emoTir9fdDQMEDCOS0UhiWW3V3eT+C A186smm9ml4rmLI+e0hNNDr4csj4AM8oFNMg4B7Pm/Z8htk3ttJiEJSSYS5beARNhnlv A07g== X-Gm-Message-State: AA+aEWZMwItnZVX8xsJMiLZfgVcrOHD1rvPZ1HnTey+VWVXcFv1n2V01 VYyqYXmqWbflbv6UrQoQzMQT X-Google-Smtp-Source: AFSGD/X/VdD0q6st+yqlxpsjkV6nT3oNXYHEsqbOF3KaBBLk478s9RZG4UX1adrkM9fcg5cl8a59Tw== X-Received: by 2002:a63:a611:: with SMTP id t17mr15799287pge.338.1545145460540; Tue, 18 Dec 2018 07:04:20 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.04.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:04:19 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 10/11] tty: serial: Add RDA8810PL UART driver Date: Tue, 18 Dec 2018 20:32:37 +0530 Message-Id: <20181218150238.23010-11-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070423_496315_F7294071 X-CRM114-Status: GOOD ( 20.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add UART driver for RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam Reviewed-by: Greg Kroah-Hartman Acked-by: Arnd Bergmann --- .../admin-guide/kernel-parameters.txt | 6 + drivers/tty/serial/Kconfig | 19 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/rda-uart.c | 831 ++++++++++++++++++ include/uapi/linux/serial_core.h | 3 + 5 files changed, 860 insertions(+) create mode 100644 drivers/tty/serial/rda-uart.c diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index aefd358a5ca3..98ee9eaa52be 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -1021,6 +1021,12 @@ specified address. The serial port must already be setup and configured. Options are not yet supported. + rda, + Start an early, polled-mode console on a serial port + of an RDA Micro SoC, such as RDA8810PL, at the + specified address. The serial port must already be + setup and configured. Options are not yet supported. + smh Use ARM semihosting calls for early console. s3c2410, diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 32886c304641..67b9bf3b500e 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -1529,6 +1529,25 @@ config SERIAL_OWL_CONSOLE Say 'Y' here if you wish to use Actions Semiconductor S500/S900 UART as the system console. +config SERIAL_RDA + bool "RDA Micro serial port support" + depends on ARCH_RDA || COMPILE_TEST + select SERIAL_CORE + help + This driver is for RDA8810PL SoC's UART. + Say 'Y' here if you wish to use the on-board serial port. + Otherwise, say 'N'. + +config SERIAL_RDA_CONSOLE + bool "Console on RDA Micro serial port" + depends on SERIAL_RDA=y + select SERIAL_CORE_CONSOLE + select SERIAL_EARLYCON + default y + help + Say 'Y' here if you wish to use the RDA8810PL UART as the system + console. Only earlycon is implemented currently. + endmenu config SERIAL_MCTRL_GPIO diff --git a/drivers/tty/serial/Makefile b/drivers/tty/serial/Makefile index daac675612df..8c303736b7e8 100644 --- a/drivers/tty/serial/Makefile +++ b/drivers/tty/serial/Makefile @@ -89,6 +89,7 @@ obj-$(CONFIG_SERIAL_MVEBU_UART) += mvebu-uart.o obj-$(CONFIG_SERIAL_PIC32) += pic32_uart.o obj-$(CONFIG_SERIAL_MPS2_UART) += mps2-uart.o obj-$(CONFIG_SERIAL_OWL) += owl-uart.o +obj-$(CONFIG_SERIAL_RDA) += rda-uart.o # GPIOLIB helpers for modem control lines obj-$(CONFIG_SERIAL_MCTRL_GPIO) += serial_mctrl_gpio.o diff --git a/drivers/tty/serial/rda-uart.c b/drivers/tty/serial/rda-uart.c new file mode 100644 index 000000000000..284623eefaeb --- /dev/null +++ b/drivers/tty/serial/rda-uart.c @@ -0,0 +1,831 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * RDA8810PL serial device 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 +#include +#include +#include + +#define RDA_UART_PORT_NUM 3 +#define RDA_UART_DEV_NAME "ttyRDA" + +#define RDA_UART_CTRL 0x00 +#define RDA_UART_STATUS 0x04 +#define RDA_UART_RXTX_BUFFER 0x08 +#define RDA_UART_IRQ_MASK 0x0c +#define RDA_UART_IRQ_CAUSE 0x10 +#define RDA_UART_IRQ_TRIGGERS 0x14 +#define RDA_UART_CMD_SET 0x18 +#define RDA_UART_CMD_CLR 0x1c + +/* UART_CTRL Bits */ +#define RDA_UART_ENABLE BIT(0) +#define RDA_UART_DBITS_8 BIT(1) +#define RDA_UART_TX_SBITS_2 BIT(2) +#define RDA_UART_PARITY_EN BIT(3) +#define RDA_UART_PARITY(x) (((x) & 0x3) << 4) +#define RDA_UART_PARITY_ODD RDA_UART_PARITY(0) +#define RDA_UART_PARITY_EVEN RDA_UART_PARITY(1) +#define RDA_UART_PARITY_SPACE RDA_UART_PARITY(2) +#define RDA_UART_PARITY_MARK RDA_UART_PARITY(3) +#define RDA_UART_DIV_MODE BIT(20) +#define RDA_UART_IRDA_EN BIT(21) +#define RDA_UART_DMA_EN BIT(22) +#define RDA_UART_FLOW_CNT_EN BIT(23) +#define RDA_UART_LOOP_BACK_EN BIT(24) +#define RDA_UART_RX_LOCK_ERR BIT(25) +#define RDA_UART_RX_BREAK_LEN(x) (((x) & 0xf) << 28) + +/* UART_STATUS Bits */ +#define RDA_UART_RX_FIFO(x) (((x) & 0x7f) << 0) +#define RDA_UART_RX_FIFO_MASK (0x7f << 0) +#define RDA_UART_TX_FIFO(x) (((x) & 0x1f) << 8) +#define RDA_UART_TX_FIFO_MASK (0x1f << 8) +#define RDA_UART_TX_ACTIVE BIT(14) +#define RDA_UART_RX_ACTIVE BIT(15) +#define RDA_UART_RX_OVERFLOW_ERR BIT(16) +#define RDA_UART_TX_OVERFLOW_ERR BIT(17) +#define RDA_UART_RX_PARITY_ERR BIT(18) +#define RDA_UART_RX_FRAMING_ERR BIT(19) +#define RDA_UART_RX_BREAK_INT BIT(20) +#define RDA_UART_DCTS BIT(24) +#define RDA_UART_CTS BIT(25) +#define RDA_UART_DTR BIT(28) +#define RDA_UART_CLK_ENABLED BIT(31) + +/* UART_RXTX_BUFFER Bits */ +#define RDA_UART_RX_DATA(x) (((x) & 0xff) << 0) +#define RDA_UART_TX_DATA(x) (((x) & 0xff) << 0) + +/* UART_IRQ_MASK Bits */ +#define RDA_UART_TX_MODEM_STATUS BIT(0) +#define RDA_UART_RX_DATA_AVAILABLE BIT(1) +#define RDA_UART_TX_DATA_NEEDED BIT(2) +#define RDA_UART_RX_TIMEOUT BIT(3) +#define RDA_UART_RX_LINE_ERR BIT(4) +#define RDA_UART_TX_DMA_DONE BIT(5) +#define RDA_UART_RX_DMA_DONE BIT(6) +#define RDA_UART_RX_DMA_TIMEOUT BIT(7) +#define RDA_UART_DTR_RISE BIT(8) +#define RDA_UART_DTR_FALL BIT(9) + +/* UART_IRQ_CAUSE Bits */ +#define RDA_UART_TX_MODEM_STATUS_U BIT(16) +#define RDA_UART_RX_DATA_AVAILABLE_U BIT(17) +#define RDA_UART_TX_DATA_NEEDED_U BIT(18) +#define RDA_UART_RX_TIMEOUT_U BIT(19) +#define RDA_UART_RX_LINE_ERR_U BIT(20) +#define RDA_UART_TX_DMA_DONE_U BIT(21) +#define RDA_UART_RX_DMA_DONE_U BIT(22) +#define RDA_UART_RX_DMA_TIMEOUT_U BIT(23) +#define RDA_UART_DTR_RISE_U BIT(24) +#define RDA_UART_DTR_FALL_U BIT(25) + +/* UART_TRIGGERS Bits */ +#define RDA_UART_RX_TRIGGER(x) (((x) & 0x1f) << 0) +#define RDA_UART_TX_TRIGGER(x) (((x) & 0xf) << 8) +#define RDA_UART_AFC_LEVEL(x) (((x) & 0x1f) << 16) + +/* UART_CMD_SET Bits */ +#define RDA_UART_RI BIT(0) +#define RDA_UART_DCD BIT(1) +#define RDA_UART_DSR BIT(2) +#define RDA_UART_TX_BREAK_CONTROL BIT(3) +#define RDA_UART_TX_FINISH_N_WAIT BIT(4) +#define RDA_UART_RTS BIT(5) +#define RDA_UART_RX_FIFO_RESET BIT(6) +#define RDA_UART_TX_FIFO_RESET BIT(7) + +#define RDA_UART_TX_FIFO_SIZE 16 + +static struct uart_driver rda_uart_driver; + +struct rda_uart_port { + struct uart_port port; + struct clk *clk; +}; + +#define to_rda_uart_port(port) container_of(port, struct rda_uart_port, port) + +static struct rda_uart_port *rda_uart_ports[RDA_UART_PORT_NUM]; + +static inline void rda_uart_write(struct uart_port *port, u32 val, + unsigned int off) +{ + writel(val, port->membase + off); +} + +static inline u32 rda_uart_read(struct uart_port *port, unsigned int off) +{ + return readl(port->membase + off); +} + +static unsigned int rda_uart_tx_empty(struct uart_port *port) +{ + unsigned long flags; + unsigned int ret; + u32 val; + + spin_lock_irqsave(&port->lock, flags); + + val = rda_uart_read(port, RDA_UART_STATUS); + ret = (val & RDA_UART_TX_FIFO_MASK) ? TIOCSER_TEMT : 0; + + spin_unlock_irqrestore(&port->lock, flags); + + return ret; +} + +static unsigned int rda_uart_get_mctrl(struct uart_port *port) +{ + unsigned int mctrl = 0; + u32 cmd_set, status; + + cmd_set = rda_uart_read(port, RDA_UART_CMD_SET); + status = rda_uart_read(port, RDA_UART_STATUS); + if (cmd_set & RDA_UART_RTS) + mctrl |= TIOCM_RTS; + if (!(status & RDA_UART_CTS)) + mctrl |= TIOCM_CTS; + + return mctrl; +} + +static void rda_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) +{ + u32 val; + + if (mctrl & TIOCM_RTS) { + val = rda_uart_read(port, RDA_UART_CMD_SET); + rda_uart_write(port, (val | RDA_UART_RTS), RDA_UART_CMD_SET); + } else { + /* Clear RTS to stop to receive. */ + val = rda_uart_read(port, RDA_UART_CMD_CLR); + rda_uart_write(port, (val | RDA_UART_RTS), RDA_UART_CMD_CLR); + } + + val = rda_uart_read(port, RDA_UART_CTRL); + + if (mctrl & TIOCM_LOOP) + val |= RDA_UART_LOOP_BACK_EN; + else + val &= ~RDA_UART_LOOP_BACK_EN; + + rda_uart_write(port, val, RDA_UART_CTRL); +} + +static void rda_uart_stop_tx(struct uart_port *port) +{ + u32 val; + + val = rda_uart_read(port, RDA_UART_IRQ_MASK); + val &= ~RDA_UART_TX_DATA_NEEDED; + rda_uart_write(port, val, RDA_UART_IRQ_MASK); + + val = rda_uart_read(port, RDA_UART_CMD_SET); + val |= RDA_UART_TX_FIFO_RESET; + rda_uart_write(port, val, RDA_UART_CMD_SET); +} + +static void rda_uart_stop_rx(struct uart_port *port) +{ + u32 val; + + val = rda_uart_read(port, RDA_UART_IRQ_MASK); + val &= ~(RDA_UART_RX_DATA_AVAILABLE | RDA_UART_RX_TIMEOUT); + rda_uart_write(port, val, RDA_UART_IRQ_MASK); + + /* Read Rx buffer before reset to avoid Rx timeout interrupt */ + val = rda_uart_read(port, RDA_UART_RXTX_BUFFER); + + val = rda_uart_read(port, RDA_UART_CMD_SET); + val |= RDA_UART_RX_FIFO_RESET; + rda_uart_write(port, val, RDA_UART_CMD_SET); +} + +static void rda_uart_start_tx(struct uart_port *port) +{ + u32 val; + + if (uart_tx_stopped(port)) { + rda_uart_stop_tx(port); + return; + } + + val = rda_uart_read(port, RDA_UART_IRQ_MASK); + val |= RDA_UART_TX_DATA_NEEDED; + rda_uart_write(port, val, RDA_UART_IRQ_MASK); +} + +static void rda_uart_change_baudrate(struct rda_uart_port *rda_port, + unsigned long baud) +{ + clk_set_rate(rda_port->clk, baud * 8); +} + +static void rda_uart_set_termios(struct uart_port *port, + struct ktermios *termios, + struct ktermios *old) +{ + struct rda_uart_port *rda_port = to_rda_uart_port(port); + unsigned long flags; + unsigned int ctrl, cmd_set, cmd_clr, triggers; + unsigned int baud; + u32 irq_mask; + + spin_lock_irqsave(&port->lock, flags); + + baud = uart_get_baud_rate(port, termios, old, 9600, port->uartclk / 4); + rda_uart_change_baudrate(rda_port, baud); + + ctrl = rda_uart_read(port, RDA_UART_CTRL); + cmd_set = rda_uart_read(port, RDA_UART_CMD_SET); + cmd_clr = rda_uart_read(port, RDA_UART_CMD_CLR); + + switch (termios->c_cflag & CSIZE) { + case CS5: + case CS6: + dev_warn(port->dev, "bit size not supported, using 7 bits\n"); + /* Fall through */ + case CS7: + ctrl &= ~RDA_UART_DBITS_8; + break; + default: + ctrl |= RDA_UART_DBITS_8; + break; + } + + /* stop bits */ + if (termios->c_cflag & CSTOPB) + ctrl |= RDA_UART_TX_SBITS_2; + else + ctrl &= ~RDA_UART_TX_SBITS_2; + + /* parity check */ + if (termios->c_cflag & PARENB) { + ctrl |= RDA_UART_PARITY_EN; + + /* Mark or Space parity */ + if (termios->c_cflag & CMSPAR) { + if (termios->c_cflag & PARODD) + ctrl |= RDA_UART_PARITY_MARK; + else + ctrl |= RDA_UART_PARITY_SPACE; + } else if (termios->c_cflag & PARODD) { + ctrl |= RDA_UART_PARITY_ODD; + } else { + ctrl |= RDA_UART_PARITY_EVEN; + } + } else { + ctrl &= ~RDA_UART_PARITY_EN; + } + + /* Hardware handshake (RTS/CTS) */ + if (termios->c_cflag & CRTSCTS) { + ctrl |= RDA_UART_FLOW_CNT_EN; + cmd_set |= RDA_UART_RTS; + } else { + ctrl &= ~RDA_UART_FLOW_CNT_EN; + cmd_clr |= RDA_UART_RTS; + } + + ctrl |= RDA_UART_ENABLE; + ctrl &= ~RDA_UART_DMA_EN; + + triggers = (RDA_UART_AFC_LEVEL(20) | RDA_UART_RX_TRIGGER(16)); + irq_mask = rda_uart_read(port, RDA_UART_IRQ_MASK); + rda_uart_write(port, 0, RDA_UART_IRQ_MASK); + + rda_uart_write(port, triggers, RDA_UART_IRQ_TRIGGERS); + rda_uart_write(port, ctrl, RDA_UART_CTRL); + rda_uart_write(port, cmd_set, RDA_UART_CMD_SET); + rda_uart_write(port, cmd_clr, RDA_UART_CMD_CLR); + + rda_uart_write(port, irq_mask, RDA_UART_IRQ_MASK); + + /* Don't rewrite B0 */ + if (tty_termios_baud_rate(termios)) + tty_termios_encode_baud_rate(termios, baud, baud); + + /* update the per-port timeout */ + uart_update_timeout(port, termios->c_cflag, baud); + + spin_unlock_irqrestore(&port->lock, flags); +} + +static void rda_uart_send_chars(struct uart_port *port) +{ + struct circ_buf *xmit = &port->state->xmit; + unsigned int ch; + u32 val; + + if (uart_tx_stopped(port)) + return; + + if (port->x_char) { + while (!(rda_uart_read(port, RDA_UART_STATUS) & + RDA_UART_TX_FIFO_MASK)) + cpu_relax(); + + rda_uart_write(port, port->x_char, RDA_UART_RXTX_BUFFER); + port->icount.tx++; + port->x_char = 0; + } + + while (rda_uart_read(port, RDA_UART_STATUS) & RDA_UART_TX_FIFO_MASK) { + if (uart_circ_empty(xmit)) + break; + + ch = xmit->buf[xmit->tail]; + rda_uart_write(port, ch, RDA_UART_RXTX_BUFFER); + xmit->tail = (xmit->tail + 1) & (SERIAL_XMIT_SIZE - 1); + port->icount.tx++; + } + + if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) + uart_write_wakeup(port); + + if (!uart_circ_empty(xmit)) { + /* Re-enable Tx FIFO interrupt */ + val = rda_uart_read(port, RDA_UART_IRQ_MASK); + val |= RDA_UART_TX_DATA_NEEDED; + rda_uart_write(port, val, RDA_UART_IRQ_MASK); + } +} + +static void rda_uart_receive_chars(struct uart_port *port) +{ + u32 status, val; + + status = rda_uart_read(port, RDA_UART_STATUS); + while ((status & RDA_UART_RX_FIFO_MASK)) { + char flag = TTY_NORMAL; + + if (status & RDA_UART_RX_PARITY_ERR) { + port->icount.parity++; + flag = TTY_PARITY; + } + + if (status & RDA_UART_RX_FRAMING_ERR) { + port->icount.frame++; + flag = TTY_FRAME; + } + + if (status & RDA_UART_RX_OVERFLOW_ERR) { + port->icount.overrun++; + flag = TTY_OVERRUN; + } + + val = rda_uart_read(port, RDA_UART_RXTX_BUFFER); + val &= 0xff; + + port->icount.rx++; + tty_insert_flip_char(&port->state->port, val, flag); + + status = rda_uart_read(port, RDA_UART_STATUS); + } + + spin_unlock(&port->lock); + tty_flip_buffer_push(&port->state->port); + spin_lock(&port->lock); +} + +static irqreturn_t rda_interrupt(int irq, void *dev_id) +{ + struct uart_port *port = dev_id; + unsigned long flags; + u32 val, irq_mask; + + spin_lock_irqsave(&port->lock, flags); + + /* Clear IRQ cause */ + val = rda_uart_read(port, RDA_UART_IRQ_CAUSE); + rda_uart_write(port, val, RDA_UART_IRQ_CAUSE); + + if (val & (RDA_UART_RX_DATA_AVAILABLE | RDA_UART_RX_TIMEOUT)) + rda_uart_receive_chars(port); + + if (val & (RDA_UART_TX_DATA_NEEDED)) { + irq_mask = rda_uart_read(port, RDA_UART_IRQ_MASK); + irq_mask &= ~RDA_UART_TX_DATA_NEEDED; + rda_uart_write(port, irq_mask, RDA_UART_IRQ_MASK); + + rda_uart_send_chars(port); + } + + spin_unlock_irqrestore(&port->lock, flags); + + return IRQ_HANDLED; +} + +static int rda_uart_startup(struct uart_port *port) +{ + unsigned long flags; + int ret; + u32 val; + + spin_lock_irqsave(&port->lock, flags); + rda_uart_write(port, 0, RDA_UART_IRQ_MASK); + spin_unlock_irqrestore(&port->lock, flags); + + ret = request_irq(port->irq, rda_interrupt, IRQF_NO_SUSPEND, + "rda-uart", port); + if (ret) + return ret; + + spin_lock_irqsave(&port->lock, flags); + + val = rda_uart_read(port, RDA_UART_CTRL); + val |= RDA_UART_ENABLE; + rda_uart_write(port, val, RDA_UART_CTRL); + + /* enable rx interrupt */ + val = rda_uart_read(port, RDA_UART_IRQ_MASK); + val |= (RDA_UART_RX_DATA_AVAILABLE | RDA_UART_RX_TIMEOUT); + rda_uart_write(port, val, RDA_UART_IRQ_MASK); + + spin_unlock_irqrestore(&port->lock, flags); + + return 0; +} + +static void rda_uart_shutdown(struct uart_port *port) +{ + unsigned long flags; + u32 val; + + spin_lock_irqsave(&port->lock, flags); + + rda_uart_stop_tx(port); + rda_uart_stop_rx(port); + + val = rda_uart_read(port, RDA_UART_CTRL); + val &= ~RDA_UART_ENABLE; + rda_uart_write(port, val, RDA_UART_CTRL); + + spin_unlock_irqrestore(&port->lock, flags); +} + +static const char *rda_uart_type(struct uart_port *port) +{ + return (port->type == PORT_RDA) ? "rda-uart" : NULL; +} + +static int rda_uart_request_port(struct uart_port *port) +{ + struct platform_device *pdev = to_platform_device(port->dev); + struct resource *res; + + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + if (!res) + return -ENXIO; + + if (!devm_request_mem_region(port->dev, port->mapbase, + resource_size(res), dev_name(port->dev))) + return -EBUSY; + + if (port->flags & UPF_IOREMAP) { + port->membase = devm_ioremap_nocache(port->dev, port->mapbase, + resource_size(res)); + if (!port->membase) + return -EBUSY; + } + + return 0; +} + +static void rda_uart_config_port(struct uart_port *port, int flags) +{ + unsigned long irq_flags; + + if (flags & UART_CONFIG_TYPE) { + port->type = PORT_RDA; + rda_uart_request_port(port); + } + + spin_lock_irqsave(&port->lock, irq_flags); + + /* Clear mask, so no surprise interrupts. */ + rda_uart_write(port, 0, RDA_UART_IRQ_MASK); + + /* Clear status register */ + rda_uart_write(port, 0, RDA_UART_STATUS); + + spin_unlock_irqrestore(&port->lock, irq_flags); +} + +static void rda_uart_release_port(struct uart_port *port) +{ + struct platform_device *pdev = to_platform_device(port->dev); + struct resource *res; + + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + if (!res) + return; + + if (port->flags & UPF_IOREMAP) { + devm_release_mem_region(port->dev, port->mapbase, + resource_size(res)); + devm_iounmap(port->dev, port->membase); + port->membase = NULL; + } +} + +static int rda_uart_verify_port(struct uart_port *port, + struct serial_struct *ser) +{ + if (port->type != PORT_RDA) + return -EINVAL; + + if (port->irq != ser->irq) + return -EINVAL; + + return 0; +} + +static const struct uart_ops rda_uart_ops = { + .tx_empty = rda_uart_tx_empty, + .get_mctrl = rda_uart_get_mctrl, + .set_mctrl = rda_uart_set_mctrl, + .start_tx = rda_uart_start_tx, + .stop_tx = rda_uart_stop_tx, + .stop_rx = rda_uart_stop_rx, + .startup = rda_uart_startup, + .shutdown = rda_uart_shutdown, + .set_termios = rda_uart_set_termios, + .type = rda_uart_type, + .request_port = rda_uart_request_port, + .release_port = rda_uart_release_port, + .config_port = rda_uart_config_port, + .verify_port = rda_uart_verify_port, +}; + +#ifdef CONFIG_SERIAL_RDA_CONSOLE + +static void rda_console_putchar(struct uart_port *port, int ch) +{ + if (!port->membase) + return; + + while (!(rda_uart_read(port, RDA_UART_STATUS) & RDA_UART_TX_FIFO_MASK)) + cpu_relax(); + + rda_uart_write(port, ch, RDA_UART_RXTX_BUFFER); +} + +static void rda_uart_port_write(struct uart_port *port, const char *s, + u_int count) +{ + u32 old_irq_mask; + unsigned long flags; + int locked; + + local_irq_save(flags); + + if (port->sysrq) { + locked = 0; + } else if (oops_in_progress) { + locked = spin_trylock(&port->lock); + } else { + spin_lock(&port->lock); + locked = 1; + } + + old_irq_mask = rda_uart_read(port, RDA_UART_IRQ_MASK); + rda_uart_write(port, 0, RDA_UART_IRQ_MASK); + + uart_console_write(port, s, count, rda_console_putchar); + + /* wait until all contents have been sent out */ + while (!(rda_uart_read(port, RDA_UART_STATUS) & RDA_UART_TX_FIFO_MASK)) + cpu_relax(); + + rda_uart_write(port, old_irq_mask, RDA_UART_IRQ_MASK); + + if (locked) + spin_unlock(&port->lock); + + local_irq_restore(flags); +} + +static void rda_uart_console_write(struct console *co, const char *s, + u_int count) +{ + struct rda_uart_port *rda_port; + + rda_port = rda_uart_ports[co->index]; + if (!rda_port) + return; + + rda_uart_port_write(&rda_port->port, s, count); +} + +static int rda_uart_console_setup(struct console *co, char *options) +{ + struct rda_uart_port *rda_port; + int baud = 921600; + int bits = 8; + int parity = 'n'; + int flow = 'n'; + + if (co->index < 0 || co->index >= RDA_UART_PORT_NUM) + return -EINVAL; + + rda_port = rda_uart_ports[co->index]; + if (!rda_port || !rda_port->port.membase) + return -ENODEV; + + if (options) + uart_parse_options(options, &baud, &parity, &bits, &flow); + + return uart_set_options(&rda_port->port, co, baud, parity, bits, flow); +} + +static struct console rda_uart_console = { + .name = RDA_UART_DEV_NAME, + .write = rda_uart_console_write, + .device = uart_console_device, + .setup = rda_uart_console_setup, + .flags = CON_PRINTBUFFER, + .index = -1, + .data = &rda_uart_driver, +}; + +static int __init rda_uart_console_init(void) +{ + register_console(&rda_uart_console); + + return 0; +} +console_initcall(rda_uart_console_init); + +static void rda_uart_early_console_write(struct console *co, + const char *s, + u_int count) +{ + struct earlycon_device *dev = co->data; + + rda_uart_port_write(&dev->port, s, count); +} + +static int __init +rda_uart_early_console_setup(struct earlycon_device *device, const char *opt) +{ + if (!device->port.membase) + return -ENODEV; + + device->con->write = rda_uart_early_console_write; + + return 0; +} + +OF_EARLYCON_DECLARE(rda, "rda,8810pl-uart", + rda_uart_early_console_setup); + +#define RDA_UART_CONSOLE (&rda_uart_console) +#else +#define RDA_UART_CONSOLE NULL +#endif /* CONFIG_SERIAL_RDA_CONSOLE */ + +static struct uart_driver rda_uart_driver = { + .owner = THIS_MODULE, + .driver_name = "rda-uart", + .dev_name = RDA_UART_DEV_NAME, + .nr = RDA_UART_PORT_NUM, + .cons = RDA_UART_CONSOLE, +}; + +static const struct of_device_id rda_uart_dt_matches[] = { + { .compatible = "rda,8810pl-uart" }, + { } +}; +MODULE_DEVICE_TABLE(of, rda_uart_dt_matches); + +static int rda_uart_probe(struct platform_device *pdev) +{ + struct resource *res_mem; + struct rda_uart_port *rda_port; + int ret, irq; + + if (pdev->dev.of_node) + pdev->id = of_alias_get_id(pdev->dev.of_node, "serial"); + + if (pdev->id < 0 || pdev->id >= RDA_UART_PORT_NUM) { + dev_err(&pdev->dev, "id %d out of range\n", pdev->id); + return -EINVAL; + } + + res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); + if (!res_mem) { + dev_err(&pdev->dev, "could not get mem\n"); + return -ENODEV; + } + + irq = platform_get_irq(pdev, 0); + if (irq < 0) { + dev_err(&pdev->dev, "could not get irq\n"); + return irq; + } + + if (rda_uart_ports[pdev->id]) { + dev_err(&pdev->dev, "port %d already allocated\n", pdev->id); + return -EBUSY; + } + + rda_port = devm_kzalloc(&pdev->dev, sizeof(*rda_port), GFP_KERNEL); + if (!rda_port) + return -ENOMEM; + + rda_port->clk = devm_clk_get(&pdev->dev, NULL); + if (IS_ERR(rda_port->clk)) { + dev_err(&pdev->dev, "could not get clk\n"); + return PTR_ERR(rda_port->clk); + } + + rda_port->port.dev = &pdev->dev; + rda_port->port.regshift = 0; + rda_port->port.line = pdev->id; + rda_port->port.type = PORT_RDA; + rda_port->port.iotype = UPIO_MEM; + rda_port->port.mapbase = res_mem->start; + rda_port->port.irq = irq; + rda_port->port.uartclk = clk_get_rate(rda_port->clk); + if (rda_port->port.uartclk == 0) { + dev_err(&pdev->dev, "clock rate is zero\n"); + return -EINVAL; + } + rda_port->port.flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP | + UPF_LOW_LATENCY; + rda_port->port.x_char = 0; + rda_port->port.fifosize = RDA_UART_TX_FIFO_SIZE; + rda_port->port.ops = &rda_uart_ops; + + rda_uart_ports[pdev->id] = rda_port; + platform_set_drvdata(pdev, rda_port); + + ret = uart_add_one_port(&rda_uart_driver, &rda_port->port); + if (ret) + rda_uart_ports[pdev->id] = NULL; + + return ret; +} + +static int rda_uart_remove(struct platform_device *pdev) +{ + struct rda_uart_port *rda_port = platform_get_drvdata(pdev); + + uart_remove_one_port(&rda_uart_driver, &rda_port->port); + rda_uart_ports[pdev->id] = NULL; + + return 0; +} + +static struct platform_driver rda_uart_platform_driver = { + .probe = rda_uart_probe, + .remove = rda_uart_remove, + .driver = { + .name = "rda-uart", + .of_match_table = rda_uart_dt_matches, + }, +}; + +static int __init rda_uart_init(void) +{ + int ret; + + ret = uart_register_driver(&rda_uart_driver); + if (ret) + return ret; + + ret = platform_driver_register(&rda_uart_platform_driver); + if (ret) + uart_unregister_driver(&rda_uart_driver); + + return ret; +} + +static void __init rda_uart_exit(void) +{ + platform_driver_unregister(&rda_uart_platform_driver); + uart_unregister_driver(&rda_uart_driver); +} + +module_init(rda_uart_init); +module_exit(rda_uart_exit); + +MODULE_AUTHOR("Manivannan Sadhasivam "); +MODULE_DESCRIPTION("RDA8810PL serial device driver"); +MODULE_LICENSE("GPL"); diff --git a/include/uapi/linux/serial_core.h b/include/uapi/linux/serial_core.h index dce5f9dae121..df4a7534e239 100644 --- a/include/uapi/linux/serial_core.h +++ b/include/uapi/linux/serial_core.h @@ -281,4 +281,7 @@ /* MediaTek BTIF */ #define PORT_MTK_BTIF 117 +/* RDA UART */ +#define PORT_RDA 118 + #endif /* _UAPILINUX_SERIAL_CORE_H */ From patchwork Tue Dec 18 15:02: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: 10735861 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A7847924 for ; Tue, 18 Dec 2018 15:06:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 937FD29887 for ; Tue, 18 Dec 2018 15:06:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 832A92A3D5; Tue, 18 Dec 2018 15:06:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 07A4A29887 for ; Tue, 18 Dec 2018 15:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+0GRK//h3WL2Vd738Qr+u6hcI7EZ4HITEVbdp+Ynpjs=; b=hieCetQR12vCQh 6O+XdIswrpYUO77BoG9xebdpJDfOEvErx1R71XnT8olbl51xSaMU7bxklxYAS0OEGljxilP5JEazw dvbgv3pNpx/B05cmVDbAL4ypeulme03c1O4ZkHrFpq7koSkd2rMmf+PO98zO1wQ8cdKSF1y7Zpyew giu9lHmManbOAy8xwSkTVDlNhGRYcwtE0f8xs9k6tV5c9rxuwvcD8NLV4Z8eW4f9q+YR8GMVPlVuf 5REt5Bd+/5oaQwf+X3q/MJNnG86mMMvxPXtQkxknEjzNPFjuKiPN3DQR08RNO5d4imNKQuiOshOVH mgbbb8W6WbYNrTMsRW9A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGxO-0004CM-2L; Tue, 18 Dec 2018 15:06:50 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZGvH-0001GU-Vs for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 15:04:51 +0000 Received: by mail-pl1-x644.google.com with SMTP id g9so7935906plo.3 for ; Tue, 18 Dec 2018 07:04:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0jyh8TbRs+ubBftXUDu/ZeKR3wTzPoQdZ/y0YGX+yt4=; b=D5Oa3zfVcAufguxSRzGRil09A8Zh04Xom2E0ByjblKOSRs6lYPjhNGtxmLEbRO8oJ3 QavOgFqqqDHwTEuq3nNEwKyW9JQwbh/mVkv9xc4dp5uEqrjF+gIKN+eagAdqmqQwU4E8 uLU/B9pKY5la5s/4V0EZATDJRZ05fEcF7qk8U= 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=0jyh8TbRs+ubBftXUDu/ZeKR3wTzPoQdZ/y0YGX+yt4=; b=QLnct/d7eOc+TDDdiYFqfXGBsWr0n084u0lmEq3LVPS1JjqCRqraHs6gLmXjv8sjG3 9o50SH+AmDHjTRbqjSEv2reC4bKR1HW/9MIF+sTnlEeMYWLfP10bvInsDGyizX8KJncY NLQp0axfqIM1cKtqSGijZOrtmvtnTXFt7Ni2aT+fILbyzM9jkYAZ4iNPb3dnrekqTc05 7PQLmuLl9N8dX6YT/h0dImGg1LVhAUSOc7ixZkiQ8+7EWXJtZZdwgvcU2Tsky7bDI2Wm bDOotm7U1bFAv0kWfogYY3JGh2TaiJ6DoOcl6YNar8E9I0wyDPVKvt+7k3CRMKPTAo/9 ALSg== X-Gm-Message-State: AA+aEWaTGl8fgrc854eN/l/7WWD8VPnUmvSeaEdsseLB0yO/9NHKgXLp U5JFPpleHGxVR8zkc2VTe+8c X-Google-Smtp-Source: AFSGD/VyU784cM7cGnfB1aooBbjFAv1aJg6D7/Z6N2CMXMr5r5RAkWIl3cWKMw7FgKAckum2B5UzOA== X-Received: by 2002:a17:902:ba89:: with SMTP id k9mr16974772pls.189.1545145469147; Tue, 18 Dec 2018 07:04:29 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.04.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:04:28 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 11/11] MAINTAINERS: Add entry for RDA Micro SoC architecture Date: Tue, 18 Dec 2018 20:32:38 +0530 Message-Id: <20181218150238.23010-12-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_070440_520905_BA67FB67 X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-unisoc@lists.infradead.org, robh+dt@kernel.org, linux-serial@vger.kernel.org, jslaby@suse.com, afaerber@suse.de, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add MAINTAINERS entry for RDA Micro SoC architecture with myself as the maintainer. Signed-off-by: Manivannan Sadhasivam Acked-by: Arnd Bergmann --- MAINTAINERS | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3318f30903b2..da2149949fd7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1950,6 +1950,20 @@ M: Lennert Buytenhek L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained +ARM/RDA MICRO ARCHITECTURE +M: Manivannan Sadhasivam +L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) +L: linux-unisoc@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)