Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp738853iol; Sat, 11 Jun 2022 17:34:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6aYSyVcdov8p3b2J1Rx/A+39iR6XWRPDZVTJrFlLDCh5hpU5opAFDrAcxgKWlXTz6Ep5U X-Received: by 2002:a63:c5:0:b0:3fe:26a0:7abe with SMTP id 188-20020a6300c5000000b003fe26a07abemr20337344pga.152.1654994094779; Sat, 11 Jun 2022 17:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654994094; cv=none; d=google.com; s=arc-20160816; b=DHjAAl1fvV8S5HP5huo9p8arqNF0f/vqzRpMBnJdvBkmqbxq2tWDRkMjUDQRuVb8Ld vBEv59id+WDI3G4YWMGQnOJGMx+jk28U+lirKEbe+xi7IwyD5NQ1rCImA+Is3fRFmyGu K7OURJErqNOynYc77uJt4wgKxJxXCp0TX9ieazHEh6nhQ+/qKC6PJzzyD85xA6qULC6Q 7etGyIsLNbeIIfvE7dJGTrIlodX+mTg3T6+9vCgZLXdyBF5EchP5GG5KyqZUP1uxokHN itL0I6PjsSdvAgubnUPpiDJdtwgS/WdmFDS2LVPu7wIY66Eqd8PcxN1ZPhvzSOme5obe kTwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oxQkwpPSC0y6PSBnoCHGL4044465zqiVx70IXoXpvOc=; b=rUCk8aoyW67R7UTfpig7Zo5RLkc91j+M1ljecCjBMmQ+I7gn7Ix2j9ijrXmUJuYtjE 3eweNez3x+fwnJR12+EZXyIeTbD1qhpePy8GKFw7UjItNHEdgHrWjvDunELz5W+PzZPS xu6mWp+b9HEeR2mR/ofLVhaffrtHY8ZoQwyz6idolAnkZV6eD7B9Q/iMCk/lvkurHVVg j+W8PlUj7Qlq4IdknvjdvCemw+qx5EyWxkQWV5PFz27kf8nUMIsZn7/Uv0ZT6rfpf12V sSuz2Q+0Mv0/b1rXc4Q3fTiBbn1WdO7l46zBDegPeq79JREsgFlD2FSu82yC3TFn8W9P sDhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BHkKobma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq14-20020a17090b380e00b001e860feaeb5si10458066pjb.181.2022.06.11.17.34.43; Sat, 11 Jun 2022 17:34:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BHkKobma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S231462AbiFKT6N (ORCPT + 99 others); Sat, 11 Jun 2022 15:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiFKT6K (ORCPT ); Sat, 11 Jun 2022 15:58:10 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D64BF36B6A for ; Sat, 11 Jun 2022 12:58:01 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id h23so2411249ljl.3 for ; Sat, 11 Jun 2022 12:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oxQkwpPSC0y6PSBnoCHGL4044465zqiVx70IXoXpvOc=; b=BHkKobmasFZUBwncc9LygpAPBRmbKMJOq3yO/P8De5qhIRgAOZgUPRaJ+wFyzFAGaz NpSJYJLa/f5h4etHmJe5dy92Di1ZF1fWOdOrbckf67s7wpYN3gyQQThSEB2wMFfm4zX+ RP1z9RUvbI+CAcx2psfP5l0p4YU1p1NP4OkE4eswC9k3wz7wtA42nq4lbUk8NTVogHhl 3yYHIdzkHfRxZdt6mniJOHr3waqXHkZuMjGYiL3GAr9/uALlUqPQyTZDn4HTXwwd0Njd AlmxFA+Zw4BEM63KkHT2Tf/We3UUqYpNJnfx/rsrxq33Q2FR/gC8VtXl8lsRQZ8LfWx5 L2Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oxQkwpPSC0y6PSBnoCHGL4044465zqiVx70IXoXpvOc=; b=LrIsr1MvRn4p1KfyXsYstMcMeCnAWped2M0x1+sQZdvcffvgXPzeeTajkKXyQpg+lS nkijBYh2q+TzvQrMwTvK2C4IXtzYLi5jZGHNDFQIUVzmC7tpbkU1eT3rxukNZdlppQkk KcROkXXN00dTCMZNAZFJIPFCueqH6b3PvhwbNlwZCfSN6m5gnncenDVBEXSF3yaMR5Ok xXjaouvjz1P+/xIS72k7EpA2gz825GYpxQck+um3aYlAKJ0qms+8RnkbUXDG3zIyPN5d PO2Hs4njlfJJVl4aQ8zYgBUfkIzEXVbrmRlShyOBQ+4hnyhPCAd20RtuejeS2xRTgXQR fTuw== X-Gm-Message-State: AOAM531HfVNPMhUSQn6B1hawCZ0gztqanWXb9AJuU3+u+x8GqxZDq1nb PyrCJ2FNIvDQLOblVhxLtw881g== X-Received: by 2002:a2e:968a:0:b0:258:e311:ca01 with SMTP id q10-20020a2e968a000000b00258e311ca01mr6274999lji.337.1654977480161; Sat, 11 Jun 2022 12:58:00 -0700 (PDT) Received: from localhost.localdomain (78-107-206-185.broadband.corbina.ru. [78.107.206.185]) by smtp.googlemail.com with ESMTPSA id v30-20020a056512049e00b00479526185a0sm364948lfq.118.2022.06.11.12.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 12:57:59 -0700 (PDT) From: Andrey Konovalov To: bjorn.andersson@linaro.org, agross@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vinod.koul@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH] arm64: dts: qcom: qcs404: fix default pinctrl settings for blsp1_spi1 Date: Sat, 11 Jun 2022 22:57:13 +0300 Message-Id: <20220611195713.131597-1-andrey.konovalov@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current settings refer to "blsp_spi1" function which isn't defined. For this reason an attempt to enable blsp1_spi1 interface results in the probe failure below: [ 3.492900] qcs404-pinctrl 1000000.pinctrl: invalid function blsp_spi1 in map table [ 3.502460] qcs404-pinctrl 1000000.pinctrl: invalid function blsp_spi1 in map table [ 3.517725] qcs404-pinctrl 1000000.pinctrl: invalid function blsp_spi1 in map table [ 3.532998] qcs404-pinctrl 1000000.pinctrl: invalid function blsp_spi1 in map table [ 3.548277] spi_qup: probe of 78b6000.spi failed with error -22 Fix this by making the functions used in qcs404.dtsi to match the contents of drivers/pinctrl/qcom/pinctrl-qcs404.c. Signed-off-by: Andrey Konovalov --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index d912166b7552..0d9e1f19aa67 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -669,8 +669,25 @@ blsp1_spi0_default: blsp1-spi0-default { }; blsp1_spi1_default: blsp1-spi1-default { - pins = "gpio22", "gpio23", "gpio24", "gpio25"; - function = "blsp_spi1"; + mosi { + pins = "gpio22"; + function = "blsp_spi_mosi_a1"; + }; + + miso { + pins = "gpio23"; + function = "blsp_spi_miso_a1"; + }; + + cs_n { + pins = "gpio24"; + function = "blsp_spi_cs_n_a1"; + }; + + clk { + pins = "gpio25"; + function = "blsp_spi_clk_a1"; + }; }; blsp1_spi2_default: blsp1-spi2-default { -- 2.25.1