From patchwork Thu Mar 9 10:37:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 66765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp219166wrd; Thu, 9 Mar 2023 02:51:39 -0800 (PST) X-Google-Smtp-Source: AK7set/25qQHn8pXBXnSFrdwvf/1Ff6TtAmYLqf5AjJVk1AnfEbPs46M8bhWH2aja/UrUiklmu17 X-Received: by 2002:a17:90b:4b81:b0:237:d5de:5e6f with SMTP id lr1-20020a17090b4b8100b00237d5de5e6fmr21853905pjb.25.1678359098861; Thu, 09 Mar 2023 02:51:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678359098; cv=none; d=google.com; s=arc-20160816; b=nr9J+6rixpHNOGP4Epj+051IYi7J96ATzsz+X1DAuETVRwVSbY0FZuKL3YeKuZh3s+ aAclC9VSy8+Ey8RaoKJDBgrkUgxbb4/Pr2Yabg9vLBBlO4TNeNZPsb60VAkDFX/laM2v AQMUHwg1ZeeJ1aKE68AyAaBlLa76HHl6ODGTOKHeiQku9b1MJ84x7FqvAXPQnNZ7ekAd psWpt/i247lU/h/PNzOgpz7mpO/M+98vJpbirZHZMtVmp8sCtL2VvAviamGg73ATDi8Z jqErLVHljqQ3ShwdKt0pF2hgOjMYwjxSdOSlAXl8Wodr1piuBYQJB95RW0Wq2krwVukE 1cdQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1XIMBXfDU/R4FYmgYxRTe35TNzbPerUdpZusJBGj0r4=; b=kewWcXZxb1aZe7faiXqOMxiu39xAO4Xd8yLHpeRu6jIVGcnnHg+0rB+Me5w/UjOXxl cNmbE5NdT2Y9ijtZnNee1VB1ajyFK+C2cnBoeLz71JZTmvpVL2o1UC1hb2ICVPMZSYHP Br5/hRZV/w66MSA4hTe1SR4JjWUd6pP0IkPcCOckVBpet5HKu9TxmA1B30pGQOqiXqaX MwWQL+YuN2qqK3TpW7LfZRjlDH21E3x1YSCxF4qzHClgy/zvG+W/0H9RNDOR/HQF+REK tzT0ZoyJ+gDxIkqD+WVzFALtKdlQCluBeAMiZxtLHdEavm2ihzhSz3SlQxxMNT5pRwub HjnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=XcvVtUvA; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a17090a474600b002340f45c0ffsi1829431pjg.90.2023.03.09.02.51.26; Thu, 09 Mar 2023 02:51:38 -0800 (PST) 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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=XcvVtUvA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231400AbjCIKiY (ORCPT + 99 others); Thu, 9 Mar 2023 05:38:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231287AbjCIKiE (ORCPT ); Thu, 9 Mar 2023 05:38:04 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BEB62696 for ; Thu, 9 Mar 2023 02:38:02 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id h11so1369165wrm.5 for ; Thu, 09 Mar 2023 02:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678358281; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1XIMBXfDU/R4FYmgYxRTe35TNzbPerUdpZusJBGj0r4=; b=XcvVtUvAXAab+67J6assIe04iklARgy53+JNhGztFB4px7cQUfi03AqeyjoOqDSUnF j02LjX+r8/XlMJp/smV+XJh9ZTbCSV8RqU6LK3AWcqDtgzYSJdbgM/JeRIMaZZbZC5G9 iRXc9d79SV8ZnFh7ku9RiBDQo/qaZKJv42m21aAgfT132BN5Fh9xs5GiHxrFYCAEmaRT CAzoTP0fq1qFy3Os2JXF/enSH6XPap7S3tU0OKuppqd3ZbkwUQIu1ntCmjNfnL6HtZdV FOKaZB29gBgDMJwplXgTDFHtYOT91DOCRi0sNgH/0+JkW89WaTfq61ffPOZxsQ+5fKF2 81zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678358281; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1XIMBXfDU/R4FYmgYxRTe35TNzbPerUdpZusJBGj0r4=; b=txiOpj4Nh9LtQ82R2ZXuhfKOw6h6spdIEJjF+iLZ3eta6GVdseNl2rHJIifQrTwe0m zpMKeE22UpDVnKK5e9bjDnq7wOcT+1mOh7dos436BxSA0ijqoqv8jWPCNvCXeW+Cr9VN ObkjofbcRqvQoOlOFJQWnM5iAv8eh8W81WE3CBAaFPuYQgODgkVfhjWmnpJ3Wx39gmYd Lgy5oJWY78QLPoHJ98FMbFHiWMWNFO/9NicgpZLV8jWeXfQ7QKcjGjCmDJS4QceeiVOc T4XMzXdnJK26Spm/G419yfFYBLRAkzMX09gniwfmSUslaSzMHI6J8jo9ZgJS9vXzCqNj uafA== X-Gm-Message-State: AO0yUKUZ/Gs6kJ89ENSPQXS4bTBhn0Q+0T9Ra0Xs+Gr4wGs+DGtS5EC6 QFw2ans0uKcJ1bhOzFRsYf7fCAlOTm8N3BKYOyE= X-Received: by 2002:adf:fd07:0:b0:2c9:8a3c:9fc5 with SMTP id e7-20020adffd07000000b002c98a3c9fc5mr14347426wrr.41.1678358281742; Thu, 09 Mar 2023 02:38:01 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:f14c:2275:50fc:c056]) by smtp.gmail.com with ESMTPSA id f2-20020a5d58e2000000b002c56af32e8csm17638119wrd.35.2023.03.09.02.38.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 02:38:01 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v5 6/9] arm64: dts: qcom: sa8775p-ride: enable the SPI node Date: Thu, 9 Mar 2023 11:37:49 +0100 Message-Id: <20230309103752.173541-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230309103752.173541-1-brgl@bgdev.pl> References: <20230309103752.173541-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759887070127007837?= X-GMAIL-MSGID: =?utf-8?q?1759887070127007837?= From: Bartosz Golaszewski Enable the SPI interface exposed on the sa8775p-ride development board. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 5fdce8279537..d01ca3a9ee37 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -14,6 +14,7 @@ / { aliases { serial0 = &uart10; i2c18 = &i2c18; + spi16 = &spi16; }; chosen { @@ -40,12 +41,25 @@ &sleep_clk { clock-frequency = <32764>; }; +&spi16 { + pinctrl-0 = <&qup_spi16_default>; + pinctrl-names = "default"; + status = "okay"; +}; + &tlmm { qup_uart10_default: qup-uart10-state { pins = "gpio46", "gpio47"; function = "qup1_se3"; }; + qup_spi16_default: qup-spi16-state { + pins = "gpio86", "gpio87", "gpio88", "gpio89"; + function = "qup2_se2"; + drive-strength = <6>; + bias-disable; + }; + qup_i2c18_default: qup-i2c18-state { pins = "gpio95", "gpio96"; function = "qup2_se4";