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: 10225923 X-Patchwork-Delegate: horms@verge.net.au 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 E5CBC601D4 for ; Sat, 17 Feb 2018 02:06:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D43C7296E9 for ; Sat, 17 Feb 2018 02:06:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8F61296EB; Sat, 17 Feb 2018 02:06:52 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A9DD296E9 for ; Sat, 17 Feb 2018 02:06:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751002AbeBQCGw (ORCPT ); Fri, 16 Feb 2018 21:06:52 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34635 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750957AbeBQCGv (ORCPT ); Fri, 16 Feb 2018 21:06:51 -0500 Received: by mail-wm0-f65.google.com with SMTP id j21so7737094wmh.1 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=jktLPD2j9C0WyRAmdaiuKCjfnghRSh85E2FiwXetCUgD7rrWz0plOhRcQBGQ2gXc1y Da4ukJtFC+pIa/rHZWRSCh0PJ6kMAvsEYXUvGpQ3wDF9QQhOB16tf3bhA7zVRAyGTEE5 gA+giMx9Tqi4dVT5ZiT+kWbppPRK+IUzy67fu+uqDOV7ycGIJIJwEw0aKxkxWysCS8Zl iKMFuwWbdq2EhPZMRs8ZhB0m41xS5uAOUixwHUONq26iQLGiFLFxiFtL9Fcjtg5NeA+q t4s0nioCRavePMYQUL96Q2UNGGmHru/o3jpZEvAdU5YPS2F2cspfLpJebAmAtfbN7AbB 7Z8w== X-Gm-Message-State: APf1xPAz95FYB7l3OMV0HUpVuC40+fQsWmJx0XoqulGHcvORzUsrdOFa n7rRV2p62Vq8rg7mhq2yXFXfmnGg 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 Cc: linux-arm-kernel@lists.infradead.org, Marek Vasut , Geert Uytterhoeven , Kuninori Morimoto , Simon Horman , Wolfram Sang 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> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.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;