From patchwork Sun Mar 3 19:41:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10837229 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 D282E1390 for ; Sun, 3 Mar 2019 19:41:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE0EC29D48 for ; Sun, 3 Mar 2019 19:41:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF9DE29D4A; Sun, 3 Mar 2019 19:41:55 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable 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 4297E29D48 for ; Sun, 3 Mar 2019 19:41:55 +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: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:In-Reply-To:References: List-Owner; bh=Xx5aflsW9/fxeQ+LRds8GilYG6zQrPr1fEJQLOgJh2U=; b=Swhs1T77CLVM8s YozywN3q285rT9+xIeSnCygr6QFZajYpocuuNArGfASxdCTwlfwaIYPqsXpLB7uBzEn7xuaJfHoDI FWxKQXSjVkUnYCnAMYNDF06P/i3sMTkLA/K+FMqIsAZ8ZUqasr+AsfCJTERPy5IzsNYval1BC3Nd5 x2gtRykjAW0UZ/4CvTEQjFLeQkLVvGu6xF9XMushlbv9h4Rlg2u1mPHFWJUj3oQfKe2NGZsM8eFOJ KFtzE3tX4cMWLuLZbSuQvkcKgA/nbUrD8oTnl3rXz+9P0PUspug/ZHaVOFsH38+zhlkzOrthe+9JM kUL5YWeMDlhPIXO6rPEw==; 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 1h0Wzf-0002Yi-I7; Sun, 03 Mar 2019 19:41:51 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0Wzc-0002YM-6V for linux-arm-kernel@lists.infradead.org; Sun, 03 Mar 2019 19:41:49 +0000 Received: by mail-wr1-x441.google.com with SMTP id d17so3224202wre.10 for ; Sun, 03 Mar 2019 11:41:47 -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:mime-version :content-transfer-encoding; bh=i+rKDAR1xxZ4fz2qC3uwWgRorvL6aBHK3Uw5llrPjDg=; b=UITljxWbX3FxteG1BdlGduwnjQORlFFvIf2e9wlJfmFRUdNrkRD/K/lWnu9jZthK+U BLyccgU/jLx554URAu2J/tn9J31rHl0szZa05VOKrQnKbGopbtpMDC6fW/hMtCG5Wa0K c6gcPpzgBF5Fgz6NTxitW4mb/G2TwGZpLcpVPHhUlquRAYxl6upddhORb4R/YxNkpyY5 ULA/ewQC4Pz+5O5654LxbpzDv7aBfflY6EJoNm9yvL0BmLu7CJMlmAKo8K8pNNN3Hf9i AgNkDzPBeMzMGkFV87Pbo5/s5iOq6LA0X7BXo04XbXH/gtfFnlCDgDHu6GtS1csDWI+o 3y/g== 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:mime-version :content-transfer-encoding; bh=i+rKDAR1xxZ4fz2qC3uwWgRorvL6aBHK3Uw5llrPjDg=; b=dN8HRKYZBeTzkiqCukcQ3HOafCuQ5DttQLrH2C60u2Yug0BDIJmsX4dEPS9OVBix3J 2VEXlVuSZ94Ab/l7p53ATFIqFshU5KqFtjYyWTgO3gLQRWSEgP7jQNSPp8yusQW/Wx51 8JfAFdskojazKwZGO7LCG2qo7TJK3F/yqEnENx7N0bz5TgIARwQ6lgDyERTOWgQqorZc 4xpABUly8pb9tpCjhjiRSbWgK0vY+C/oU4ySaRayWuyBBRq3qtQyZy5H6K1ipYnIOeSA VGFPyAHhU2/5+/ZqL8G/qzZare54nsbqFYhdOdyUDYBSAPkyZGl2o0dqInWuq4n9GTfS OzdQ== X-Gm-Message-State: APjAAAX6rOsMtSpFJV/UrhuuBaQjKOuBfL5q6PZSdESpT6+Y34BvW+yj we/QnHh8n42k8HVO8iVaBnudEGTL X-Google-Smtp-Source: APXvYqxCb4zaG9iYpn0faWujmty94OQGHFEDv/xcYH+IkzZzmN3zX9IJAr1hiI85/oynxTRH6u2luw== X-Received: by 2002:adf:b687:: with SMTP id j7mr10905281wre.81.1551642106106; Sun, 03 Mar 2019 11:41:46 -0800 (PST) Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id d24sm13611709wrb.47.2019.03.03.11.41.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Mar 2019 11:41:45 -0800 (PST) From: marek.vasut@gmail.com To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: shmobile: porter: enable R-Car Gen2 regulator quirk Date: Sun, 3 Mar 2019 20:41:40 +0100 Message-Id: <20190303194140.11757-1-marek.vasut@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190303_114148_266195_1BA01486 X-CRM114-Status: GOOD ( 13.80 ) 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 , linux-renesas-soc@vger.kernel.org, Wolfram Sang , Simon Horman , Marek Vasut 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: Marek Vasut Porter needs the regulator quirk, just like the other boards. But unlike the other boards, the Porter uses DA9063L, which is at 0x5a. Otherwise, DA9063L and DA9210 IRQ line is still connected to CPU IRQ2 . Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Kuninori Morimoto Cc: Simon Horman Cc: Wolfram Sang Cc: linux-renesas-soc@vger.kernel.org Acked-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven --- arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c index dc526ef2e9b3..ee949255ced3 100644 --- a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c +++ b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * R-Car Generation 2 da9063/da9210 regulator quirk + * R-Car Generation 2 da9063(L)/da9210 regulator quirk * * Certain Gen2 development boards have an da9063 and one or more da9210 * regulators. All of these regulators have their interrupt request lines @@ -65,6 +65,7 @@ static struct i2c_msg da9210_msg = { static const struct of_device_id rcar_gen2_quirk_match[] = { { .compatible = "dlg,da9063", .data = &da9063_msg }, + { .compatible = "dlg,da9063l", .data = &da9063_msg }, { .compatible = "dlg,da9210", .data = &da9210_msg }, {}, }; @@ -147,6 +148,7 @@ static int __init rcar_gen2_regulator_quirk(void) if (!of_machine_is_compatible("renesas,koelsch") && !of_machine_is_compatible("renesas,lager") && + !of_machine_is_compatible("renesas,porter") && !of_machine_is_compatible("renesas,stout") && !of_machine_is_compatible("renesas,gose")) return -ENODEV; @@ -210,7 +212,7 @@ static int __init rcar_gen2_regulator_quirk(void) goto err_free; } - pr_info("IRQ2 is asserted, installing da9063/da9210 regulator quirk\n"); + pr_info("IRQ2 is asserted, installing regulator quirk\n"); bus_register_notifier(&i2c_bus_type, ®ulator_quirk_nb); return 0;