From patchwork Sat Feb 17 02:06:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10225927 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CFE04601D4 for ; Sat, 17 Feb 2018 02:07:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCD44201BD for ; Sat, 17 Feb 2018 02:07:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFBFB223C6; Sat, 17 Feb 2018 02:07:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 3C168201BD for ; Sat, 17 Feb 2018 02:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RomNiuYE3jdFh+L1xSG88xv/ejCmoZh4zAkw3GBK2m4=; b=JWb3uqZkOyKGX3NSu+9qVWBXzk 7tGcii8iBRHETcWLcI6QGAtOv9WHi/MCS/q8JFrccI8BLyRhcJa59J1MGPSHfL/Tq9Geyoz1upuJ7 rGL5QEynxPCcweUTJnu3ZQWwK7uHWHdOtixQnPlheeEiaqtzkp8l/XvlZ7SB5hyIWCeCfynAVKIUx hwwyayLlGl/37WfHsK+m2t352ocobuVV518OJx2ypB8l+hzCMUVpIPHpr8Q9jN8a6cGCihhyJ3fu8 1vRmntV30uv5WETfVwH9Els3XgL3AwgedfhTGX2nvWAgxb9ci3azEv57y/a9BY2ftDj7zN9mvpLDe 84OR8Fxg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1emrud-0003Sy-Rl; Sat, 17 Feb 2018 02:07:40 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1emru1-00036n-WE for linux-arm-kernel@lists.infradead.org; Sat, 17 Feb 2018 02:07:06 +0000 Received: by mail-wm0-x242.google.com with SMTP id x4so7724160wmc.0 for ; Fri, 16 Feb 2018 18:06:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KD+YeTNnjWUXOXGn9T104ZPkrrTzFMJQHBZG8A9t/AU=; b=aS+TfwqCOuEokNj//5mqGaxIL6tqij7PPjO7LaWPKqfdOofZD4Q0qAZESksehRUTrp 7xFRwxG4SSFEgGkWkEqDuTd/01WodYU6hAoHCKGN+yw6IXSMi0ATyJt3Eg0vjn7Y51pW AkQpulPic2Uk8Y3eXLTklDwvMAxraibEYyYQuy83tul+YHqyP88C/fthki3VGQqAu2KA cXEX3b+EvXWp9hy31gJiW4rOAPuP2361btxz8hiSVQHFK//8u4hxvTmiiE7+4pw5bGAk guBftTIpnrPuSaxUgZoIC5lnahqPxAoewtnkzJUld7OZuDsLAMTK7wQJ9NspOUHKJAfL yn8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KD+YeTNnjWUXOXGn9T104ZPkrrTzFMJQHBZG8A9t/AU=; b=e64/9LBlDIdyy/bC5P+Lg8dnX/y4iP52bOGt4Qq8V2+Efcj3FhmW7jepw8e658LSKu Ftqxr4Mg5QnNpgvJ+Rj97Q28AvbrexSp+4AgPkMUF7TsP4kUqFFYDFwngDrzRXMTjEkn ZJAY/V+fj8wdza/BMj6rriN2gF11GgWJPpnT+OHnyHFFn9VnPyt6aWzaAVmv9hLLlhEP 3w4nPcWsNgOxGSt3EXfZamyqGBJMOVtx3z0aQWXwrH5vy2/eEwg3Vxlih+oQJvIJT5R4 rpVxrOjLHPPdGIr7m85uhArFdLsyTHD8Y3/iu/KvOnDHp2JX9giYqicIk2CPXDC255bb pd+Q== X-Gm-Message-State: APf1xPDBMjZk9FufPAY6OvJ9FvrCHzB4vHp+au3tFF+fFr/A6/BVaroM J2wyX0aKQ2ciXCk7sTRVlr4= X-Google-Smtp-Source: AH8x224+/5GdcOpNgED5ue3sDz6ZUMiS3fhTTbJPp5Tkaquvne9qIH4aZ2+jogah1kn0xM0GmGTBMA== X-Received: by 10.28.130.72 with SMTP id e69mr6754460wmd.50.1518833210306; Fri, 16 Feb 2018 18:06:50 -0800 (PST) Received: from kurokawa.lan (ip-86-49-107-50.net.upcbroadband.cz. [86.49.107.50]) by smtp.gmail.com with ESMTPSA id b65sm33195664wrd.26.2018.02.16.18.06.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 18:06:49 -0800 (PST) From: Marek Vasut X-Google-Original-From: Marek Vasut To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 2/2] ARM: shmobile: porter: enable R-Car Gen2 regulator quirk Date: Sat, 17 Feb 2018 03:06:42 +0100 Message-Id: <20180217020642.21375-2-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180217020642.21375-1-marek.vasut+renesas@gmail.com> References: <20180217020642.21375-1-marek.vasut+renesas@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180216_180702_115864_A3DB3070 X-CRM114-Status: GOOD ( 14.24 ) 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: Geert Uytterhoeven , Kuninori Morimoto , Wolfram Sang , Simon Horman , linux-arm-kernel@lists.infradead.org, Marek Vasut MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Porter needs the regulator quirk, just like the other boards, the DA9063 and DA9210 IRQ line is connected to CPU IRQ2 . But unlike the other boards, the DA9063 is at 0x5a on Porter. Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Kuninori Morimoto Cc: Simon Horman Cc: Wolfram Sang --- arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c index 862f7757ef5d..7963f0eea9e1 100644 --- a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c +++ b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c @@ -132,11 +132,16 @@ static int __init rcar_gen2_regulator_quirk(void) u32 mon; if (!of_machine_is_compatible("renesas,koelsch") && + !of_machine_is_compatible("renesas,porter") && !of_machine_is_compatible("renesas,lager") && !of_machine_is_compatible("renesas,stout") && !of_machine_is_compatible("renesas,gose")) return -ENODEV; + /* DA9063 on M2W Porter is at 0x5a */ + if (of_machine_is_compatible("renesas,porter")) + da9xxx_msgs[0].addr = 0x5a; + irqc = ioremap(IRQC_BASE, PAGE_SIZE); if (!irqc) return -ENOMEM;