From patchwork Fri Aug 20 09:28:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12448699 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 767B5C4338F for ; Fri, 20 Aug 2021 09:33:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4697861130 for ; Fri, 20 Aug 2021 09:33:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4697861130 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CIK+cAPkk4aUNWJsUE2odTjbwQyk6CJBtvXdzu8BeUA=; b=SdK6rY3wctDnqj MkUB6fC85lqoqxkrZA9DjCfMXWD9qtEnaUGC6op8vHWctHluqXZjDHNK8qt0VMQUtf7brQfkEQ/QE QE1cJbKKk62+kbq56JeBv7bNm7Y8Dv0PsI133a90kOuJ0wqxs+W8X5yBM4K4gEtaKqOudVzuVjAq4 3UJvoqM9BVNpQXnMP9XNAVNdEyWr7gCaumeEDbjGV/lBW50Fz9z9FpexzlOk87bFZb76RrW0RIlAQ +/nNyiNBFw9CTpL/Eq2BFA6ai3y2jMxLABJn//vxoxVpJ1E7uGBo3cpJo1QbinYJFVlD6BTBw1qY1 9LZwRzHv9+xTeut114ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH0rP-00AUpA-KY; Fri, 20 Aug 2021 09:30:47 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH0r7-00AUlT-OE for linux-arm-kernel@lists.infradead.org; Fri, 20 Aug 2021 09:30:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1629451830; x=1660987830; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TdDRDMfVoTPK1Q7o5kfoovXTat92cjHCtwq8sj87Sj4=; b=fZLqCpfm42h+gsKAydjWYNkXGdXACl0sTTcMN1hnSzw87IH2kUFTFa+0 olMW7BUj5QARAPaqGhbJhHdNJoGv9SoSwEioPT5ZJFN7VgF5mVMiX1tn7 9Bp0NcdL9gtZ5iE6vl9eISacLB919lLZp0HSZERukonDxDOJwwAcX6Uf8 m8FcSWgho8roXqDlLGiY0UXkfWxZ8G3v4paC+TOMPqbmNzkL6tEb32hn4 BSjykjnJkb4Ut4o6ykbkRtBa034Zkx8NGKldpdLwukK8rgDf8O09WKYee 7x88ZPzW6AENtXvlwwfPUduvUv+yLvLg6kZINB+DjYg0XzU/3Yc7DpvW5 g==; IronPort-SDR: U29ARp0vf/BHn3rYi7961NJAfUHdAQJ1h4xhnHs8TYGhbz+peTAbbDxEVAudUGoXT9/JIRcyEP qxPPu+2cM0sl/NCxaKcP5By3t8S7ucAxt5RuGnWn/m9BG0fgFGz219kqTJ4Q7KWsD2ZAyGxS8J dB5nJaIMuGnaaPjdRmDAMhV4kd7N8AIjAbqwgpeO4oboJN66f0T+3iEvzmD7n/VqgWW18yprLO CcKdtmbkVSc3bdkplOHrskdfMYB2hvUE+tP9a6vXA1VL1IfkflvtmiocNIoqQPLm/QBWVN0Wwl WWGLZHBxsu4oCdsC3lFKa2DR X-IronPort-AV: E=Sophos;i="5.84,337,1620716400"; d="scan'208";a="128997109" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Aug 2021 02:30:29 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 20 Aug 2021 02:30:28 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 20 Aug 2021 02:30:23 -0700 From: Claudiu Beznea To: , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v3 1/4] dt-bindings: pwrseq-sd8787: add binding for wilc1000 Date: Fri, 20 Aug 2021 12:28:00 +0300 Message-ID: <20210820092803.78523-2-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210820092803.78523-1-claudiu.beznea@microchip.com> References: <20210820092803.78523-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210820_023029_890321_E6295432 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add binding for wilc1000 devices. Signed-off-by: Claudiu Beznea Acked-by: Rob Herring --- Documentation/devicetree/bindings/mmc/mmc-pwrseq-sd8787.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/mmc-pwrseq-sd8787.yaml b/Documentation/devicetree/bindings/mmc/mmc-pwrseq-sd8787.yaml index e0169a285aa2..9e2396751030 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-pwrseq-sd8787.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-pwrseq-sd8787.yaml @@ -11,7 +11,9 @@ maintainers: properties: compatible: - const: mmc-pwrseq-sd8787 + enum: + - mmc-pwrseq-sd8787 + - mmc-pwrseq-wilc1000 powerdown-gpios: minItems: 1 From patchwork Fri Aug 20 09:28:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12448701 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A6CBC4338F for ; Fri, 20 Aug 2021 09:33:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B23D60F44 for ; Fri, 20 Aug 2021 09:33:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6B23D60F44 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=a4jD1r6v/L3CtUhAcETVPFHPtrMrOfUobSgA9G3UtWI=; b=36C9BmSWufJFwp vsdiJGF8eJd/58aRd/32G9YPDgfWPEJik6NZi7XhNQ19INBGYbya9EhHwdl+UpxeJ8ugWr+EXbi/a BGYl/GoJx2pTOf16DR6HOpNgiEqpr9R696YWKy1uE9uiM3SyghA7o48CzyLfXBQkj/jtSxRSAdS4m RtHqs3PAGrlcnnfi8sqLxaA4XQ6uXZBSDRCHh8GFU2aSmgV3ECwi3qckhYHRKPA/0Ve1/nPwdOeUd Q8vPzKHlDemi86l8gzvjbJPEuVq+raEUYBshyRJF362gwpPZBxddmNs0yxDnQqVp8SNkzfSbTsWwJ TyGESFOcoA3gx2eaoytA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH0rc-00AUtK-Kp; Fri, 20 Aug 2021 09:31:00 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH0rF-00AUn4-LJ for linux-arm-kernel@lists.infradead.org; Fri, 20 Aug 2021 09:30:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1629451837; x=1660987837; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hUNGvSAHMAe2Et6tQj52rv5zSHPnoXZNUtoreKoOsu4=; b=JMXx0k5WsRKqxN4ksn2BWLUMOV+5ulpU9g9cRsr1Ucq80Qvj6s5t6i26 5+oENnEFrEP1dpzxOkKgfXWocU1sVQjKJiOa0JzHEuBTbkKwAjDYx2Pwo Z8K4ZPfXnIKbRuq2dWak0LnJgS+5CugCc4A/GXXMvCThbqPvvFxEZUHU1 6VYzVAeN866uNDVzciexBYA4kIb0i+I6P7OwvvaOS3vrP64YP7itWs8T3 IjXrNBfvkra2MQTRpGDusRMTzYfMWcUdMpKM0vgtM8OgYnO2X7ebSZMO9 DfuQI5F8i0iMOwlp4qoNrebqkk3XRfflvC2wHepPJDWSTK6viAiLmQoZr A==; IronPort-SDR: EfhMhASO24UbhZMuUOmS+buAgVdrppmUaF0CYAREAOb7+A1EiyC3sO2A6ppK8uckzJf/fXvoQd w0XC4jPUEuYumP3p0llLQtWyzrlBI+SCxwflA7aH9y+E+4UbgRJb9HqTGMw1SAIPt21LieOaPw CU0/bvfv/klyb7tUfZoh+5jxYUifDsk3DJSm6wZf9xnw6J660LdyO6SbzDKBZqoX9Bwop/xXMa izzvykssVAHHg8Js9abglQJ+ofYPx8JpnGp4z7upOiYGUceIAaAITkzoro4dACUMc/lEQ0gGd+ d/LsWyZ1UUpVXNCx9kuWe0q4 X-IronPort-AV: E=Sophos;i="5.84,337,1620716400"; d="scan'208";a="140927386" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Aug 2021 02:30:35 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 20 Aug 2021 02:30:34 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 20 Aug 2021 02:30:29 -0700 From: Claudiu Beznea To: , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v3 2/4] mmc: pwrseq: sd8787: add support for wilc1000 Date: Fri, 20 Aug 2021 12:28:01 +0300 Message-ID: <20210820092803.78523-3-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210820092803.78523-1-claudiu.beznea@microchip.com> References: <20210820092803.78523-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210820_023037_829659_AD9542E1 X-CRM114-Status: GOOD ( 13.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add new compatible for wilc1000 devices and specify the delay in .data member of struct of_device_id. WILC1000, WILC3000 devices needs a minimum of 5ms delay b/w reset and power lines. Signed-off-by: Claudiu Beznea --- drivers/mmc/core/pwrseq_sd8787.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/pwrseq_sd8787.c b/drivers/mmc/core/pwrseq_sd8787.c index 68a826f1c0a1..264e48067af2 100644 --- a/drivers/mmc/core/pwrseq_sd8787.c +++ b/drivers/mmc/core/pwrseq_sd8787.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -27,6 +28,7 @@ struct mmc_pwrseq_sd8787 { struct mmc_pwrseq pwrseq; struct gpio_desc *reset_gpio; struct gpio_desc *pwrdn_gpio; + u32 reset_pwrdwn_delay_ms; }; #define to_pwrseq_sd8787(p) container_of(p, struct mmc_pwrseq_sd8787, pwrseq) @@ -37,7 +39,7 @@ static void mmc_pwrseq_sd8787_pre_power_on(struct mmc_host *host) gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); - msleep(300); + msleep(pwrseq->reset_pwrdwn_delay_ms); gpiod_set_value_cansleep(pwrseq->pwrdn_gpio, 1); } @@ -55,7 +57,8 @@ static const struct mmc_pwrseq_ops mmc_pwrseq_sd8787_ops = { }; static const struct of_device_id mmc_pwrseq_sd8787_of_match[] = { - { .compatible = "mmc-pwrseq-sd8787",}, + { .compatible = "mmc-pwrseq-sd8787", .data = (void *)300 }, + { .compatible = "mmc-pwrseq-wilc1000", .data = (void *)5 }, {/* sentinel */}, }; MODULE_DEVICE_TABLE(of, mmc_pwrseq_sd8787_of_match); @@ -64,11 +67,15 @@ static int mmc_pwrseq_sd8787_probe(struct platform_device *pdev) { struct mmc_pwrseq_sd8787 *pwrseq; struct device *dev = &pdev->dev; + const struct of_device_id *match; pwrseq = devm_kzalloc(dev, sizeof(*pwrseq), GFP_KERNEL); if (!pwrseq) return -ENOMEM; + match = of_match_node(mmc_pwrseq_sd8787_of_match, pdev->dev.of_node); + pwrseq->reset_pwrdwn_delay_ms = (u32)match->data; + pwrseq->pwrdn_gpio = devm_gpiod_get(dev, "powerdown", GPIOD_OUT_LOW); if (IS_ERR(pwrseq->pwrdn_gpio)) return PTR_ERR(pwrseq->pwrdn_gpio); From patchwork Fri Aug 20 09:28:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12448695 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 168A1C432BE for ; Fri, 20 Aug 2021 09:32:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DDC6860F44 for ; Fri, 20 Aug 2021 09:32:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DDC6860F44 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Nv828Tll1ER6IwA5dHJN9kPvwQWQUwha2GChMakMb1k=; b=NbVTC6npYRCDIu KTWpG9EO1EKKmdgQzEuOzJ+AZxraVD1WgkPDJa8OiuNIFX4xHItAtnNRQh3HdJFdCfhThC4icgvZ7 +WtJsBq46A2vzKfYwC6Z9kttfoZgVV4OpUIFx15Y2ogOHeahmEY9bKYSpjScc5KdkjGGUgzUOWr7N FfByLHIgTvt1alwvJQlC4lTW5Q/csrysWgqZjy0GRqgJLKrCIqae6FIIfF6k3pw/gpJVSIbVmcR4+ ot54jYoG9NEaTPw6L9KoGsz0e4hcjvyaPXqMJa5hFa1OpYptfCIDV9GtK1jm/aTwA9KH+f5WVvXG9 zpJFHtxYQsEQvqr6wu2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH0ro-00AUwF-Uy; Fri, 20 Aug 2021 09:31:13 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH0rN-00AUoO-0a for linux-arm-kernel@lists.infradead.org; Fri, 20 Aug 2021 09:30:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1629451845; x=1660987845; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fWsatgcloSsqrB7wvaudTGqBX8SMP/WQ4Wac0C232F0=; b=fTGn1AWnH9fqf+DeiKnPX9FadbSAy74ipTyIICq0QeqN3J8IusM5PyT0 8oCkT243Bp73SPGKzlW+7er3kWc03qYRdkpf4ZoEbZut2UPwAkmUobm5j NLAn3wri1frAOCKuIcD//ilYYGJPR5/7XdEfxfol9H84oHq+I0rPvrPHL C5w7JQXQV6Sw/o7YtQChDrSvpEPfHt5VsJoNkJluQzGtmdj+qRJykBbPy VTwxGvbgDVTzyWDxYY+nzP1OSmABoYPVcgs8f5mYPqbmIy6Hah3efbzUU +p0CuwmiV2yvIbo3wFpffYVnqgZTjhS9sT/hshgD065tcV81FZdepjdg6 A==; IronPort-SDR: axBQfu99mh2MP5drdD03Mt5YY0UKpht3ziYIn5eluHyjkM42+dSnHeEzqi+nzp+NdFxzDaMUzO Km4oRrrHeO01gW21j8kTyy1JavB7KZO25hTy55N7cmHERCewVJhbkDmPSo23guvwu6/pvjy60z re/Dbvd0lf0oMmYGqoFFQxjjeOlWYmOf6UyF29iulrvjcyjdRZNwUmC2RdiyTC+k7sZGR7nUNc 3uP5FsjHNGS+5ojZgcUWn0II9gK/hqnOAhJV/eZ+nXGMqBkNv221w3TQi0ircVhj6vTrcIbuOL MazMWioMTLIGrbAth1W4GrOf X-IronPort-AV: E=Sophos;i="5.84,337,1620716400"; d="scan'208";a="128997122" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Aug 2021 02:30:44 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 20 Aug 2021 02:30:43 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 20 Aug 2021 02:30:38 -0700 From: Claudiu Beznea To: , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v3 3/4] mmc: pwrseq: add wilc1000_sdio dependency for pwrseq_sd8787 Date: Fri, 20 Aug 2021 12:28:02 +0300 Message-ID: <20210820092803.78523-4-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210820092803.78523-1-claudiu.beznea@microchip.com> References: <20210820092803.78523-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210820_023045_146988_15F8243A X-CRM114-Status: GOOD ( 11.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org pwseq_sd8787 could also be used with wilc1000_sdio driver. Add a dependency for this. Signed-off-by: Claudiu Beznea --- drivers/mmc/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/Kconfig b/drivers/mmc/core/Kconfig index ae8b69aee619..6f25c34e4fec 100644 --- a/drivers/mmc/core/Kconfig +++ b/drivers/mmc/core/Kconfig @@ -15,7 +15,7 @@ config PWRSEQ_EMMC config PWRSEQ_SD8787 tristate "HW reset support for SD8787 BT + Wifi module" - depends on OF && (MWIFIEX || BT_MRVL_SDIO || LIBERTAS_SDIO) + depends on OF && (MWIFIEX || BT_MRVL_SDIO || LIBERTAS_SDIO || WILC1000_SDIO) help This selects hardware reset support for the SD8787 BT + Wifi module. By default this option is set to n. From patchwork Fri Aug 20 09:28:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12448703 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 626E3C432BE for ; Fri, 20 Aug 2021 09:33:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2BC3060ED5 for ; Fri, 20 Aug 2021 09:33:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2BC3060ED5 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VLAxYZpYRpuTgCROtVPLnYrJWkAeQZmAeIor7RDGhkM=; b=hUQCLkGOPOJbNH 6oALmzkfXX4vtVeAYhYV6wpygzoM5kgRvkTzzqikapSjH8jXvgKJcj8ux3DRyC2SOd+xFEgqfgnQe tUf4fJIpByh0q7L1PwxN7IAbaaPRjOYQhynbdpxErYqWHyMsVYfeV4TAEZzj4+tX7IjRycuLmxxqm lyiALuGSYDTFavzin1cGlY6iFcIhQB1abvvhUJMOSc10HWNepzCO1+XM+NLUWUriprH5ApybxPBOE Zl+E51ge1JZU17Dv1OnKyJLf1zt7ibqWnLe+loNqUjmf2jt6we5yXM813z2GHFOZmiHmR1Zfq4oQ5 bfyJ5pBleYx/B2FkYJog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH0s2-00AV0F-GY; Fri, 20 Aug 2021 09:31:26 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH0rS-00AUqg-V0 for linux-arm-kernel@lists.infradead.org; Fri, 20 Aug 2021 09:30:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1629451850; x=1660987850; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zEDBcUygp2aN/sqFtPomk6+2LN5nut6ZU9LjTMWFbOE=; b=WHWpT9aTRkfBxPD7SM51cvrFnxlPQ9Djt+otXkcTjCU7llUKZNvx5BPG ZUd8nesRXt60wskT+wYCI7UlwESvjugnld4RK9Tkedw4lMTD/mgMZ6gdB GLwgI6QWxGmuK9485mLAyPpXcBNT8ebE8yho7UvI3wQ9PX1gj+VQIGJUe Mirl1KJVzc9phoet3cqW7gZcAIc64+eWFKttQShAIxVDDX6H5mv11b0SS bDxYDnXTi2bkMzhzLhd3HO7vUZ7NyxVOEZtAcRlsxg1sEc7OajXgsm64H gK8dhVVrVNjYhaCP4s7aC++cVTJPBO1h0CalujnDyIVJs710DlCfSh0JT w==; IronPort-SDR: X3p2akZV+Q3EsvY0CV7gI0moZCw2Xl1VkqzlucHpKyArs8HzOtG8SJnAXMunmVl1IQuIZZbwol v6YoK1hJQN7kjf24CPuxlXw4DJOZ3uCaZKcNY3erHA4fquVJpCInUz03HExZKmGl/Y2dQGhMvl 2L01b/KP/OpDmdpvIUKtIVV6AJ0EZYcZYfUIi4Lwcx6rF1kzJyIpGc/WsQQOU9dwVUxDLlCp7t UHw0036aVFd2CnvuHHjdXayQvOtlJ/4lfkmu7XtpSm6OgS3RcWZASY148UFaoyp3wSeYfJ+5TF K4yzE4oLp9PO1xkBMdzdCSyQ X-IronPort-AV: E=Sophos;i="5.84,337,1620716400"; d="scan'208";a="66535171" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Aug 2021 02:30:49 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 20 Aug 2021 02:30:48 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 20 Aug 2021 02:30:43 -0700 From: Claudiu Beznea To: , , , , CC: , , , , "Eugen Hristev" , Claudiu Beznea Subject: [PATCH v3 4/4] ARM: dts: at91: sama5d27_wlsom1: add wifi device Date: Fri, 20 Aug 2021 12:28:03 +0300 Message-ID: <20210820092803.78523-5-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210820092803.78523-1-claudiu.beznea@microchip.com> References: <20210820092803.78523-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210820_023051_111339_8B5816C1 X-CRM114-Status: UNSURE ( 8.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Eugen Hristev SAMA5D27 WLSOM1 boards has a WILC3000 device soldered. Add proper device tree nodes for this. [eugen.hristev: original author of this code] Signed-off-by: Eugen Hristev [nicolas.ferre: original author of this code] Signed-off-by: Nicolas Ferre Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi | 71 +++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi b/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi index 025a78310e3a..c7bcfd3ce91d 100644 --- a/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi +++ b/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi @@ -30,6 +30,15 @@ main_xtal { clock-frequency = <24000000>; }; }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-wilc1000"; + reset-gpios = <&pioA PIN_PA27 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&pioA PIN_PA29 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&pinctrl_wilc_pwrseq>; + pinctrl-names = "default"; + status = "okay"; + }; }; &flx1 { @@ -310,5 +319,67 @@ pinctrl_qspi1_default: qspi1_default { ; bias-pull-up; }; + + pinctrl_sdmmc1_default: sdmmc1_default { + cmd-data { + pinmux = , + , + , + , + ; + bias-disable; + }; + + conf-ck { + pinmux = ; + bias-disable; + }; + }; + + pinctrl_wilc_default: wilc_default { + conf-irq { + pinmux = ; + bias-disable; + }; + }; + + pinctrl_wilc_pwrseq: wilc_pwrseq { + conf-ce-nrst { + pinmux = , + ; + bias-disable; + }; + + conf-rtcclk { + pinmux = ; + bias-disable; + }; + }; +}; + +&sdmmc1 { + #address-cells = <1>; + #size-cells = <0>; + bus-width = <4>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sdmmc1_default>; + mmc-pwrseq = <&wifi_pwrseq>; + no-1-8-v; + non-removable; + status = "okay"; + + wilc: wilc@0 { + reg = <0>; + bus-width = <4>; + compatible = "microchip,wilc3000", "microchip,wilc1000"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wilc_default>; + irq-gpios = <&pioA PIN_PB25 GPIO_ACTIVE_LOW>; + clocks = <&pmc PMC_TYPE_SYSTEM 9>; + clock-names = "rtc"; + assigned-clocks = <&pmc PMC_TYPE_SYSTEM 9>; + assigned-clock-rates = <32768>; + status = "okay"; + }; };