From patchwork Wed Nov 28 13:50:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 152254 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1113332ljp; Wed, 28 Nov 2018 05:51:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/XV1xApPKzwYdbNaVjkSOzvOZn1/fg64+7GAeniWNJB9/Ibp0pSR/mMooPB74E4UN6D9Fqi X-Received: by 2002:a65:514c:: with SMTP id g12mr33033837pgq.169.1543413090807; Wed, 28 Nov 2018 05:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543413090; cv=none; d=google.com; s=arc-20160816; b=Xh7SaWljuMjVNl3Cmabt7whFSoKXy9/y+/Czm237jdD0wV0H4J5vdcWtIGV6eeGPlB 2IKvqKERGBqAIchK49WvxGRdj6KUtyf+Hjhb1NufebjNGL7dKSbfMX1bWAHxiB0sJl1d EcsYCXImF6VWH2BFE8NVMIShuoUhgKduDUGf+iXHS8aGmO0Qfe3BqeU7snhAibuqLiyM c1TmJy/pgrIoSDrlDXp0N9dQ++fw4UGggzutvBXxI0nbkYvXtDvMoXCemmuDnAApExLY N1V4J5W6060UDf9bZzFU3NNdulJ72drCUhT848xQRCX98ehy3rHwblpChNyBA1Jg0PHS lO6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e8Lbn+76YG2fKXAD/HPwpqXf74NU6wV67oW/8QgA2DA=; b=0oygQdVHHNkkxcKk6g8mQVdWfM8Bi3H1/5tWWGHB3ziQAybehiJIRax9JHXK4bPd4/ OMWWbJhRlcdtqWjGxGLqnSenWysFV5flC6njmb/iADKZ3N8r7DuGhEvOWhRj6KCbPH3B Ptm1dMtrYCAoxdcmkKv2HRwrAN2YrOb6Y3kn+FpsHeOn9eh3nZ3GpVNPIBF5ALuiN3b3 8PIRUN7v00j9ihRM3ahqftOMJJr6UuN0rLUEQ8ffxi+1Rh4RpzcTsOYULkBl2W12CHoL /DnjUgQhE+PAyrRbK7HM5PeLv8ac68j3t643fWxFJjDcmPPf5eqSfJVj7z63hFgtHR6w Rc+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fPjsVxwn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si7480752pff.42.2018.11.28.05.51.30; Wed, 28 Nov 2018 05:51:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fPjsVxwn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728504AbeK2AxM (ORCPT + 6 others); Wed, 28 Nov 2018 19:53:12 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41921 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728493AbeK2AxM (ORCPT ); Wed, 28 Nov 2018 19:53:12 -0500 Received: by mail-pl1-f195.google.com with SMTP id u6so17419668plm.8 for ; Wed, 28 Nov 2018 05:51:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e8Lbn+76YG2fKXAD/HPwpqXf74NU6wV67oW/8QgA2DA=; b=fPjsVxwn9WnVWIEfFqDeVfgxw7pY/n148o+kHVAznpN17Qnob/l75D05wS0bMoze4s +mq/Qc03B+AiwiufcguMJXaLYxN55sUpP1nU87oiLmpbWfxWrD9PftclqIPIGphVQaz0 D22iW2I36EUGyzFew4nlMA7ZL9jowFBgjdtYY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e8Lbn+76YG2fKXAD/HPwpqXf74NU6wV67oW/8QgA2DA=; b=S81+bdBqZ6VtNpffGH929Dca991iN3OywpkrcL6pp9+NG6hjint3IUEKAf3khl4JkO dOgV97psd9UPOj5IeX3n0m4rS2Bu3BV5I3B+UiHtxCGmvDKA5UeAFST6iIgFqt0qHtIr b3Z+Hd4zzz2alTKHFZLt+u1NrGpZ3qt+ImNZA3Azc9pvV4pP67U6G7xZ8Dk6AO0IfFkB gkczNXwaHDsawhz9yFIPREWc4yIBsWIBx61UziVomgAr6TYJaRMp6RZLUyx2RAFyd0fk jyclHSpsyjaMeNK2/1iJLV5EeW0r4xSa2NaX9nNLQErLJeDWn+YMtPEhtUwPmLzD0sER 1JKg== X-Gm-Message-State: AA+aEWZY7XLIgavOoX4MG181nrGEBMdXsGVABhVh7tvNi1mbxufDR5Ym B22YjFHDH+BdoY0w6tlS7VKU X-Received: by 2002:a17:902:ac8f:: with SMTP id h15mr35798091plr.245.1543413088519; Wed, 28 Nov 2018 05:51:28 -0800 (PST) Received: from localhost.localdomain ([2409:4072:90a:a93f:b481:6fae:6692:c3ee]) by smtp.gmail.com with ESMTPSA id c4sm22049854pfm.151.2018.11.28.05.51.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 05:51:28 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v3 01/15] dt-bindings: Add RDA Micro vendor prefix Date: Wed, 28 Nov 2018 19:20:52 +0530 Message-Id: <20181128135106.9255-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> References: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Andreas Färber Add vendor prefix for RDA Micro which now merged into Unisoc Communications Inc. Cc: overseas.sales@unisoc.com Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 4b1a2a8fcc16..37826fac7684 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -320,6 +320,7 @@ ralink Mediatek/Ralink Technology Corp. ramtron Ramtron International raspberrypi Raspberry Pi Foundation raydium Raydium Semiconductor Corp. +rda Unisoc Communications, Inc. realtek Realtek Semiconductor Corp. renesas Renesas Electronics Corporation richtek Richtek Technology Corporation From patchwork Wed Nov 28 13:50:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 152256 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1113678ljp; Wed, 28 Nov 2018 05:51:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/VLFW48YUXo5mwskJXK6JR0Rr2qIg/+Gm+qSj+7yvjLBk1A1DsPNnTM7vrQMSTHJ5phua67 X-Received: by 2002:a63:5a57:: with SMTP id k23mr33099662pgm.5.1543413110594; Wed, 28 Nov 2018 05:51:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543413110; cv=none; d=google.com; s=arc-20160816; b=nn4pZT1pTY3QNuEyYYDZKrOYzsm+15OBQTCqLvxlc/DByP0g4PiEQDnYuqjY54mlBR q+nenlsLi9CrV1FPVm7NpbfAoRM0KkPMkqUO3U9CPumQupn3pF26eJmw2fNHXUaLnMZt 2WznfffD+bWLoGaQ45ScBpv1/9W60Lap5+JG4kNXBDpzxTC4JtjreotnF9OXxIFb8/+6 iktf/CY1gQr0/AC+wx4Es+AGUjQDHbzS2rjPCCf/iuXd/VIDx1JRAfrEJVO7TJj2vz/8 HnH3EkdnfmA8hh5UT4TV0n9h/3mKTg5iZIwk5wfdUEi1RoxVpvnxqVZ14DFK2PrL/IbQ IbHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L1KWePsWaBzwLQi7BjylxNbKfiBht2SJGcZ6HLjFNIc=; b=FbV9zHST095ozcHWWYHQsLK4zw2d8pnSfhFR3uSzIOWWNA2zUOaZIEu+Ib6XXH5qrt CYggfhk3sgo5Ej1bDOUMxR2ZOgVoJuUTyKmSTxZxT7tizfrmm+uTiNTagUInUlqn0U55 DbgALNgpS7AQ+G82Q/EfT4qFEWv60Sf1prGuVUmiMzkHPM888oCB1GrefZCto5lTvaYn 21yQNA7bCc2rcg1HTdcERsdqvIEI4Ozc9/n7eEiQMjvPHxFUMCXmRoRNzPuQJB+zeXJ3 GyksOTZSm3GJojTIM9s89MDl7YfKJdElSiLsEa9nLdGJdx0nU7F9U4HHpWHuRVwHugCI a6+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HnkMQlgl; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si6816258pgl.62.2018.11.28.05.51.50; Wed, 28 Nov 2018 05:51:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HnkMQlgl; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728092AbeK2Axd (ORCPT + 6 others); Wed, 28 Nov 2018 19:53:33 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33233 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728223AbeK2Axc (ORCPT ); Wed, 28 Nov 2018 19:53:32 -0500 Received: by mail-pf1-f196.google.com with SMTP id c123so9506016pfb.0 for ; Wed, 28 Nov 2018 05:51:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=L1KWePsWaBzwLQi7BjylxNbKfiBht2SJGcZ6HLjFNIc=; b=HnkMQlgldjOx/dufu89sbP/DckIY+t3WcfI4GBsyp4r/OGAWzg1ceW/4QLxmlYgczL lo2NzHfXyNbk0MPcNmuoHYELceLA466HcZ92V3lXJNuZ/pVngH4N73rnSjde1Egxxnab 576AMBb/fJPenk2d4OahWi6Q8BfghglPI1T+A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=L1KWePsWaBzwLQi7BjylxNbKfiBht2SJGcZ6HLjFNIc=; b=P+JDTFK5mxOMUVBiNVSsT4LXCehREh6gQwSlQXrBpNr1MDt9jeZOdWYQTPTDiHKgmG uyeQ/MdyACkEYAoXTcqyXViU/fT6GqLOJ6LCnfxaGUEN8whVmQlDnWHismpFn1TNlsK8 J3pUNFVWhKdjpvveGyXB4vhU3Unfjz7vhiZZ3Rd8BHTlvD6BAiz3ymEI9evZqf6+MoR6 yt+pyfoLFvfFkgFWQ8hU/V7LGmjhDWECzD6LVL9bFQVJSHtboiGb9YW7ew8HeShIIIbC l1ydhNP6wcrwhv7/4uKOd6henUGzH291s8GZb4L+Kp1d0K5WNnU5ava9p42n97JChhB8 TNHg== X-Gm-Message-State: AGRZ1gIL8Rhg36vooI5Iaay5uiz5MIQ09g0Oun4eO9DfKZvCjDKIWwth avjyHtv3Z6AUBrnymw85gPEa X-Received: by 2002:a62:cf84:: with SMTP id b126mr37250307pfg.98.1543413109069; Wed, 28 Nov 2018 05:51:49 -0800 (PST) Received: from localhost.localdomain ([2409:4072:90a:a93f:b481:6fae:6692:c3ee]) by smtp.gmail.com with ESMTPSA id c4sm22049854pfm.151.2018.11.28.05.51.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 05:51:48 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v3 03/15] ARM: Prepare RDA8810PL SoC Date: Wed, 28 Nov 2018 19:20:54 +0530 Message-Id: <20181128135106.9255-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> References: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Andreas Färber Introduce ARCH_RDA and mach-rda for RDA Micro SoCs. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/Kconfig | 2 ++ arch/arm/Makefile | 1 + arch/arm/mach-rda/Kconfig | 7 +++++++ arch/arm/mach-rda/Makefile | 1 + 4 files changed, 11 insertions(+) create mode 100644 arch/arm/mach-rda/Kconfig create mode 100644 arch/arm/mach-rda/Makefile -- 2.17.1 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 91be74d8df65..084f0983e6b2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -804,6 +804,8 @@ source "arch/arm/plat-pxa/Kconfig" source "arch/arm/mach-qcom/Kconfig" +source "arch/arm/mach-rda/Kconfig" + source "arch/arm/mach-realview/Kconfig" source "arch/arm/mach-rockchip/Kconfig" diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 05a91d8b89f3..10056ccdb8be 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -202,6 +202,7 @@ machine-$(CONFIG_ARCH_ORION5X) += orion5x machine-$(CONFIG_ARCH_PICOXCELL) += picoxcell machine-$(CONFIG_ARCH_PXA) += pxa machine-$(CONFIG_ARCH_QCOM) += qcom +machine-$(CONFIG_ARCH_RDA) += rda machine-$(CONFIG_ARCH_REALVIEW) += realview machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip machine-$(CONFIG_ARCH_RPC) += rpc diff --git a/arch/arm/mach-rda/Kconfig b/arch/arm/mach-rda/Kconfig new file mode 100644 index 000000000000..dafab78d7aab --- /dev/null +++ b/arch/arm/mach-rda/Kconfig @@ -0,0 +1,7 @@ +menuconfig ARCH_RDA + bool "RDA Micro SoCs" + depends on ARCH_MULTI_V7 + select COMMON_CLK + select GENERIC_IRQ_CHIP + help + This enables support for the RDA Micro 8810PL SoC family. diff --git a/arch/arm/mach-rda/Makefile b/arch/arm/mach-rda/Makefile new file mode 100644 index 000000000000..6bea3d3a2dd7 --- /dev/null +++ b/arch/arm/mach-rda/Makefile @@ -0,0 +1 @@ +obj- += dummy.o From patchwork Wed Nov 28 13:50:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 152261 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1114539ljp; Wed, 28 Nov 2018 05:52:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/VHiw0bFKV9/XlbFl+1H4HgtVlU49jLh+ys18av05LYVL7oDjNrp3L5Ph1x+mkXvDkd/BHp X-Received: by 2002:a63:200e:: with SMTP id g14mr33449012pgg.235.1543413161574; Wed, 28 Nov 2018 05:52:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543413161; cv=none; d=google.com; s=arc-20160816; b=p9LXZQPyCjt+dM+x4bd/U8vjV6hQwONoMIv/m9WbRnuIDW520gzkKHHCq3bMJqlUa2 uD2TGRYeVfb4l6D/GJP1yHwqYAT3eFXyDoFgt7wADOHx3iLXkTvGUG7QybTstExbHFKn r1NMDpNx75LYC8NKAvVuYDtQJ7MByLQTRmZGWE8NNeI5nokabS7e49Oemh6CJP/k47Cb 59Wb4VCTg4Wyi0hSmWGZDMVxEGJ9dJBurq14R2O5MHZ0Ah8hd9JYqDfhWtXNlm4bjz4N W62RcG6VENQx1TofSsDm+IYDqR2flvtl2tLgd3sMj6XfFJAusTRPDz1Xl8JPYSRyiZvx mjhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ipl/Aeuyj0hY3JqUyjxodwF3khWSWc9r89gdL6ISlr0=; b=mRLRDV++SDVPr+6W1Dq5pXMndw1AAr6CAPDxoRh1mizHBcY8TTXbhUmZQ3Cu4PLUiR +w2lbzDTCUCOlnf26n/40fJXDCNPodLEldmarqj8d0VoYWaIFk1kQOZ8kbdEBk3CJs31 JSAm93CEohtz4qYWgbDfcxAQNL/qGpJCE4TiGk5HCG8eK0eqpLN3+R9vgD39djZdioT/ fW043XCEV5twTmC9SVxgvx46QIMBhcLz/d5CJpGLLqUhOAQA/dWRaVgxuydPBJPJU7qb ENdabk7f46yd4BCnSY/E4EVQ2EfxMT4KU9rt9HnQ53/RGtqLTzsVfQ/i7ZM8X7eLdXJ1 N71w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A5dqLRB9; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e189si7692380pfc.202.2018.11.28.05.52.41; Wed, 28 Nov 2018 05:52:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A5dqLRB9; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbeK2AyY (ORCPT + 6 others); Wed, 28 Nov 2018 19:54:24 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44852 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728092AbeK2AyX (ORCPT ); Wed, 28 Nov 2018 19:54:23 -0500 Received: by mail-pf1-f196.google.com with SMTP id u6so10196017pfh.11 for ; Wed, 28 Nov 2018 05:52:40 -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=ipl/Aeuyj0hY3JqUyjxodwF3khWSWc9r89gdL6ISlr0=; b=A5dqLRB9vKBRW4eNzqt8FmmIp0y6NJ9NRuDM/4eTO3l3dxi75ijY0PVW2YEMLwe+ut 1pl0IHdBLR5O7+P/e5l0F8tSMuy0IvI40aq+JJNitfs8o0A09o2EvsRjiLWmfj8RpO0U fQbGI9nmuLBRd5383Z6mI/7UTxC59n4coPDEI= 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=ipl/Aeuyj0hY3JqUyjxodwF3khWSWc9r89gdL6ISlr0=; b=rbGg6qylTi1iImOJMVRsmJ2zbLwJ5UL5XQvg//Nuivwv8NqnWbKIDVX8NkbpXCJIo+ pQH82aVZoRSzlF8pg6X4z41GzjRf8GCSLlBX5ZSiRD63Le8qCK9RF2RwrGL9lhU6iYJP kV/i5W4IYDtWGqt/1X0LfJKeaj8J/ArP4XEMVI9VmSNi5FP3dS7KNDnfB0NkDJ8hzVwU V0a2NXMswWtwPJlN8A4FCh6h0J+RmQWUMRimt4HRECnnmQ72Mi62mFsaODC2hEf6ElTD TB3HfcNsvgDUeJaIoidYhKK3IcWI6yK9siteqBb0hkJvEQR3CEYf+hAlA//M22Y2kTZH cQCA== X-Gm-Message-State: AGRZ1gKAX/ICLZ0hhlaL2WHj7lm0n3IvBhWaG2IkMUu1JrPhplubg13g kQ66uUKcPtCwvtjQ9B+jl3TV X-Received: by 2002:a62:1289:: with SMTP id 9mr38039276pfs.102.1543413159692; Wed, 28 Nov 2018 05:52:39 -0800 (PST) Received: from localhost.localdomain ([2409:4072:90a:a93f:b481:6fae:6692:c3ee]) by smtp.gmail.com with ESMTPSA id c4sm22049854pfm.151.2018.11.28.05.52.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 05:52:39 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v3 08/15] irqchip: Add RDA8810PL interrupt driver Date: Wed, 28 Nov 2018 19:20:59 +0530 Message-Id: <20181128135106.9255-9-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> References: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add interrupt driver for RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/mach-rda/Kconfig | 1 + drivers/irqchip/Kconfig | 4 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-rda-intc.c | 107 +++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 drivers/irqchip/irq-rda-intc.c -- 2.17.1 diff --git a/arch/arm/mach-rda/Kconfig b/arch/arm/mach-rda/Kconfig index dafab78d7aab..29012bc68ca4 100644 --- a/arch/arm/mach-rda/Kconfig +++ b/arch/arm/mach-rda/Kconfig @@ -3,5 +3,6 @@ menuconfig ARCH_RDA depends on ARCH_MULTI_V7 select COMMON_CLK select GENERIC_IRQ_CHIP + select RDA_INTC help This enables support for the RDA Micro 8810PL SoC family. diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 51a5ef0e96ed..9d54645870ad 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -195,6 +195,10 @@ config JCORE_AIC help Support for the J-Core integrated AIC. +config RDA_INTC + bool + select IRQ_DOMAIN + config RENESAS_INTC_IRQPIN bool select IRQ_DOMAIN diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile index 794c13d3ac3d..417108027e40 100644 --- a/drivers/irqchip/Makefile +++ b/drivers/irqchip/Makefile @@ -43,6 +43,7 @@ obj-$(CONFIG_IMGPDC_IRQ) += irq-imgpdc.o obj-$(CONFIG_IRQ_MIPS_CPU) += irq-mips-cpu.o obj-$(CONFIG_SIRF_IRQ) += irq-sirfsoc.o obj-$(CONFIG_JCORE_AIC) += irq-jcore-aic.o +obj-$(CONFIG_RDA_INTC) += irq-rda-intc.o obj-$(CONFIG_RENESAS_INTC_IRQPIN) += irq-renesas-intc-irqpin.o obj-$(CONFIG_RENESAS_IRQC) += irq-renesas-irqc.o obj-$(CONFIG_VERSATILE_FPGA_IRQ) += irq-versatile-fpga.o diff --git a/drivers/irqchip/irq-rda-intc.c b/drivers/irqchip/irq-rda-intc.c new file mode 100644 index 000000000000..1176291fdef8 --- /dev/null +++ b/drivers/irqchip/irq-rda-intc.c @@ -0,0 +1,107 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * RDA8810PL SoC irqchip driver + * + * Copyright RDA Microelectronics Company Limited + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + */ + +#include +#include +#include +#include +#include +#include + +#include + +#define RDA_INTC_FINALSTATUS 0x00 +#define RDA_INTC_MASK_SET 0x08 +#define RDA_INTC_MASK_CLR 0x0c + +#define RDA_IRQ_MASK_ALL 0xFFFFFFFF + +#define RDA_NR_IRQS 32 + +static void __iomem *rda_intc_base; +static struct irq_domain *rda_irq_domain; + +static void rda_intc_mask_irq(struct irq_data *d) +{ + writel_relaxed(BIT(d->hwirq), rda_intc_base + RDA_INTC_MASK_CLR); +} + +static void rda_intc_unmask_irq(struct irq_data *d) +{ + writel_relaxed(BIT(d->hwirq), rda_intc_base + RDA_INTC_MASK_SET); +} + +static int rda_intc_set_type(struct irq_data *data, unsigned int flow_type) +{ + /* Hardware supports only level triggered interrupts */ + if ((flow_type & (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW)) == flow_type) + return 0; + + return -EINVAL; +} + +static void __exception_irq_entry rda_handle_irq(struct pt_regs *regs) +{ + u32 stat = readl_relaxed(rda_intc_base + RDA_INTC_FINALSTATUS); + u32 hwirq; + + while (stat) { + hwirq = __fls(stat); + handle_domain_irq(rda_irq_domain, hwirq, regs); + stat &= ~BIT(hwirq); + } +} + +static struct irq_chip rda_irq_chip = { + .name = "rda-intc", + .irq_mask = rda_intc_mask_irq, + .irq_unmask = rda_intc_unmask_irq, + .irq_set_type = rda_intc_set_type, +}; + +static int rda_irq_map(struct irq_domain *d, + unsigned int virq, irq_hw_number_t hw) +{ + irq_set_status_flags(virq, IRQ_LEVEL); + irq_set_chip_and_handler(virq, &rda_irq_chip, handle_level_irq); + irq_set_chip_data(virq, d->host_data); + irq_set_probe(virq); + + return 0; +} + +static const struct irq_domain_ops rda_irq_domain_ops = { + .map = rda_irq_map, + .xlate = irq_domain_xlate_onecell, +}; + +static int __init rda8810_intc_init(struct device_node *node, + struct device_node *parent) +{ + rda_intc_base = of_io_request_and_map(node, 0, "rda-intc"); + if (!rda_intc_base) + return -ENXIO; + + /* Mask all interrupt sources */ + writel_relaxed(RDA_IRQ_MASK_ALL, rda_intc_base + RDA_INTC_MASK_CLR); + + rda_irq_domain = irq_domain_create_linear(&node->fwnode, RDA_NR_IRQS, + &rda_irq_domain_ops, + rda_intc_base); + if (!rda_irq_domain) { + iounmap(rda_intc_base); + return -ENOMEM; + } + + set_handle_irq(rda_handle_irq); + + return 0; +} + +IRQCHIP_DECLARE(rda_intc, "rda,8810pl-intc", rda8810_intc_init); From patchwork Wed Nov 28 13:51:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 152266 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1115265ljp; Wed, 28 Nov 2018 05:53:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/W2t3xBsF+NUwL8QoPgDHSBJlxAmhvT6p0J3hTf3lcqeBRjmDFgn+20hY9/8ly7yX3LSyTR X-Received: by 2002:a17:902:9692:: with SMTP id n18mr14799807plp.333.1543413208050; Wed, 28 Nov 2018 05:53:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543413208; cv=none; d=google.com; s=arc-20160816; b=rp0T7X1caASptH3CHnHsp0EsJwaoi48+DoslO+0jY/1vB+As+d3Zx+J+R2zBHHBi21 sxX6APV2cwEdXyJg5CjH0d6OIK5ZzifRBGne895xOXfYSQLNEjSC2t2nHDZ0uypTf7am 3hH+aoIB1Hrw4Jxhs+f+RpL/qcw3n2rbee/6vuqU/q3XH5p0NHAOtkQWHPa6To74wfWL mXvdoivZus7duZ2GGayWrqjp6iH5AIzOOl6i9ZjZEwSw8t5XkPjjYnl3kbAHsdIvyIaE pK5GH57B3bSn0Z0N9tEDh/ruUUvbBoFw1Y3pViqPnK/WhxXJvnW+Em6R+Go2pQZFXqlX 556A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D3bKyeo3jAVxlIMumLLKO1Nw9oQMRPP9y6vXm+NkQhc=; b=CdsKJPwco7BKfK32Ti99Gl9F6EKVX1YkL+wjb5my5MvQST4hIJvTPQA1C0tU7cZdfZ HcwPUlTMVHYK/tnWtsZIXuWdabDF6PNucbZtpyUuCMdQDd5J6OEQQNMP6P+vY6BgOmBX N4g4mpYa9/eu31CmbT+2yxlmnoYoHRfOqp1eOkci3Poj9Fa/d04KXldvnXsPaNBjAJ3g 4Wyn0NyfV31m3obEeIImGJhSwOHg4ur5oGhIMFVJmR581+2EeQoO8OtrmnVvXd3ajzNH 40+uUduRWZYiD0vy2OwQaZi+iglRBFebr1dwvyC+4vo4wmehMrqS/sd2vbjFdbv8H1OV KAxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZrSfjSua; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si8017346pfg.233.2018.11.28.05.53.27; Wed, 28 Nov 2018 05:53:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZrSfjSua; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728873AbeK2AzK (ORCPT + 6 others); Wed, 28 Nov 2018 19:55:10 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40242 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728563AbeK2AzK (ORCPT ); Wed, 28 Nov 2018 19:55:10 -0500 Received: by mail-pg1-f193.google.com with SMTP id z10so9536536pgp.7 for ; Wed, 28 Nov 2018 05:53:26 -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=D3bKyeo3jAVxlIMumLLKO1Nw9oQMRPP9y6vXm+NkQhc=; b=ZrSfjSuaCoaLwDdqvwLg594jNZTxDQtDGKueO/sDG2oAKS90l8k5Cm6LVB3+qZH3Xb doJwIdMKUo4WHLb+WdFc4Vrpk5BZj+ShHk+RI4uC62KdhJH4pUirJ/5LW27uXYfaM/Si h/ntBy5qvtnxYuDkSkFG+z6YZwfcVzFnK6PIc= 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=D3bKyeo3jAVxlIMumLLKO1Nw9oQMRPP9y6vXm+NkQhc=; b=MmNDu8ZN/4ATsHzdOKXhEPWCok+THM1gfDehpZYciGE4g4fydT/VnGDIovm633FFvo rV1T9IwSfPptCfYvI8YKmWVKybxjPxsCpKc0SaUZT0e0JVAWh4sZSR6mCaVpMzQ0AcFr V55Nnz0ZhSQ1E37pCwSbjy3ZlSrFTzIylsz5vqCnI5BTiPShHCsCXAtp53KrVvni4N9R Ct5vG4s9eTO7KvObwirX9LfGbnFA7D/81diEBf1MCWu1TiIzGaEaLqJB34YRU+Y1RJ7s YrwvlFEwzPNSeqoH08jVqvQykYLDKWpacIyf4MBVK8FcQNe2yNdWMZXdVnW62fBzVREe BfTQ== X-Gm-Message-State: AA+aEWbavWa9O2mzYoOpfJHaSCF/WyethFcyCIcvJLYhNTPViqDw4yQe tgeNFwrCa2c9anYjTlG0h2F1 X-Received: by 2002:a65:534b:: with SMTP id w11mr33350973pgr.125.1543413206325; Wed, 28 Nov 2018 05:53:26 -0800 (PST) Received: from localhost.localdomain ([2409:4072:90a:a93f:b481:6fae:6692:c3ee]) by smtp.gmail.com with ESMTPSA id c4sm22049854pfm.151.2018.11.28.05.53.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 05:53:25 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org, gregkh@linuxfoundation.org, jslaby@suse.com Cc: afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v3 13/15] arm: dts: rda8810pl: Add interrupt support for UART Date: Wed, 28 Nov 2018 19:21:04 +0530 Message-Id: <20181128135106.9255-14-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> References: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add interrupt support for UART in RDA Micro RDA8810PL SoC. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/rda8810pl.dtsi | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi index 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"; }; };