From patchwork Thu Jan 19 17:28:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 45873 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp453622wrn; Thu, 19 Jan 2023 09:31:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXt7b15NFvUlj41ONQTR85R7Hpa+cRZTCboJKekk/UtiqA2YA/wJXuhDC/hKht1z5t0lUMjT X-Received: by 2002:a17:903:22c9:b0:194:d4d1:a917 with SMTP id y9-20020a17090322c900b00194d4d1a917mr2284212plg.60.1674149464892; Thu, 19 Jan 2023 09:31:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674149464; cv=none; d=google.com; s=arc-20160816; b=fxydJah4imNfwSbiesP3Qq+p0fiEDo2/TeXwT/PPufQBneHN5kgzrT7HOJpxc0lPgl g6TKkp9HjcPg1ap0BcBxTPY8du9qO9TPG6qL0+eKX3X0o3FsPGRY05pywcMS0S6RtS/v AU7xby0dMowAOfKaIPpP87g/hZJKQoSO9YYlXfFHSFEIaf5O1NjocV/71CeGnJe1Phes CLJY8GLV6/9/Pwxf/edlQslR0FKd+0X2QSx82+u4qbqcXsR9Wzq+WLZLeUZwbzKP/6ev 5nHy+MFcJ4YiHEQIgiDzBb5DYzMHtlaqiFVCUa8h/brXuXJn1Ilb4662cavpcZVFJ3ju VMkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=8lzqfELb7YUpCCEgx48Y/w/kDKrqRmQBPRy0hZ8B7d4=; b=fGd09WE67oH7OWw0OSwPGUdENA3i/Th0a8tDLE6hyTh3q+72zS8+sAA1gHvFUOvWju 5CzBLzznMzVJrerngeuIc7IsI6Bs4uCb+N9zCk0qz1pa6forOW8JWRUPTr50ibsjhU+P fOVGqF8kfJ9KuF12VhTa7CXE55M6pCjQcfef/45f6c5P4OwMswhGnwMZz+TrxbyeRV9W W9C8KyEPGp+9+gFIdqx5M6NhVnbF+xq68autuc0deI49SmeBtcoyzIRilbmyx5afXE2d TxSDu1WpRiAqbSKkVPcY7NtdWSm++6yVHTDitKllCX1P/GcO37oSz0wOtKB5kh3odAtr Ri2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="NL/IJOQa"; 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 f5-20020a170902860500b0019269c72094si36772717plo.504.2023.01.19.09.30.52; Thu, 19 Jan 2023 09:31:04 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="NL/IJOQa"; 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 S229912AbjASR2r (ORCPT + 99 others); Thu, 19 Jan 2023 12:28:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbjASR2o (ORCPT ); Thu, 19 Jan 2023 12:28:44 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 306866F32A for ; Thu, 19 Jan 2023 09:28:37 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id m5-20020a05600c4f4500b003db03b2559eso1799445wmq.5 for ; Thu, 19 Jan 2023 09:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8lzqfELb7YUpCCEgx48Y/w/kDKrqRmQBPRy0hZ8B7d4=; b=NL/IJOQaR+JZyc/0NDfnhbgwykCNzKK3aeG+c19LGOl/1VHUta9PWfw1nIwa4n1AeH IJKvUGlKJRerX1xfdF1AKoZGH9dzGxakl2H9sa/MRtrwcqh1wMQuF26SAoYKcdjobIsa 1TX/sR02bsku/bkhWjq+ssnY0wgsevObIktbC5Ka13S4aSXeAoH9ekkvV7trU/mlVjA8 cXBnlhNdlvsG7VHhjc7USmckuwLFaZ5kb5woMahSyAYGZIacnd9SMGcO92d1did1654U 2rSS1t04wtEtNW41Y7I6wGliE2Bg46xYzsd1scK4EccJmyAfc/VSrYwhILGeSb7S0grV 0S4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8lzqfELb7YUpCCEgx48Y/w/kDKrqRmQBPRy0hZ8B7d4=; b=GEg7Dspv6P83kCLAK+su7rAUDZDGIAS2Ia87TRTZv4lkKQbdSJotYSXUoFdCzVSuFb 0ltR282h5hX3LoPqnRS1o3OrkF6BoJYV9yMmxCeupoMXa9kJufj/RHW+5m9m1I5X+uCF wwtDSPYfonjDi2mICvTdK+XRkWFAPzEL6hc7v5sPVFQgxIk/WF6pE5bcmlGeOEUv76TI FIrIgFR/jpRn+zLPEgXlxQOtH8O7ZBp0UYirsDFnQ0teXdIpVQe2DaFuzN01J0ITEOg9 EtXTXl62rdhHHADYHo8zZIxlTNveuz/Ogzdp033YLIDIbNv6YZv+0LJtHkX9bAmVJNuE VcrQ== X-Gm-Message-State: AFqh2koPfORP9AKU9BFp/u8xThvt2juiJW3JWHDtOlsbeNwmg7lKKoa6 sc8TxqmaEya65T7E9UyPeObU5A== X-Received: by 2002:a05:600c:a52:b0:3db:122c:1638 with SMTP id c18-20020a05600c0a5200b003db122c1638mr6707028wmq.27.1674149315732; Thu, 19 Jan 2023 09:28:35 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id h11-20020a05600c314b00b003db2e3f2c7csm124186wmo.0.2023.01.19.09.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 09:28:35 -0800 (PST) From: Alexandre Mergnat Date: Thu, 19 Jan 2023 18:28:19 +0100 Subject: [PATCH v2 1/2] arm64: dts: mediatek: add spidev support for mt8365-evk board MIME-Version: 1.0 Message-Id: <20230118-mt8365-spi-support-v2-1-be3ac97a28c6@baylibre.com> References: <20230118-mt8365-spi-support-v2-0-be3ac97a28c6@baylibre.com> In-Reply-To: <20230118-mt8365-spi-support-v2-0-be3ac97a28c6@baylibre.com> To: Matthias Brugger , Rob Herring , Mark Brown , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, Alexandre Mergnat , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-mediatek@lists.infradead.org, linux-spi@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1276; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Suyd6CKtFRX281RLLJau/Tt13cU5nwILzGsKWHcTvXA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjyX3B688UZjs+ZlBdfgwDHOvO2tLXCnlF4Vm2mytT AxqVjVaJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCY8l9wQAKCRArRkmdfjHURdQ3EA CyQnStyVIpy0hcdFn7IuaY/fmwqLaqpC3BMBnPVgMtADlkviPThxtByX/a03S2rNMXsxA51ZoigWli RmDxISjL1mzCu5hBnzODbMX/EsR+mQtJZyrVyaNDsIxGv5mFiWU90y3XdzO30sMEmI2lFUlY2QY5Hn fDPSUm6QvVNPHzfA7ATyJ+neO5Gnwz8CO9o8ypjV2j5c/3CI+3L5ObdSop0EDG0DWmLsYhaxGwDGoS 4OISvh5jnyQEDeCxRjPIPRqx1mcvI6dalAnjqBYYRMeHiDpScaihqQ3zHmde3DKKMLjzoU0/ADbGhB IXRDdRVsJ2M27+8qf2SBdHzlbB3NF+hty4UnMOAOW3UW9Wj0OD6OW6FnRGY0lYdZcHFMMPGbPIFuQy a4U7zrwS0y6erAPgDtbb1ZynSyOC0XYHyrm90/7xdx/6cdTnWP5i8PAQ7wpUpAGsJ8IkeIREw3qk1j xUw63g1afMYAzGYVjjwEHGas/TVTzbp/0XgfCYX/lZ/TJlJ8bfxbUo9S4S/F+Z9dn5VgsN+a6pmd/6 6kEuat0FU1yagR934vPaCF5TlPgkco7sGc7SOk8fMqU8tDlKzhuuWL+x6OuScYbNcIc0wmEZNZHAYc l3d/V8MtjCA+sh38x1w9ctRdP2bhvzmdVRxOJRhRbVYCX5zqgh0+W8GdR5EQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 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_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755472948987510839?= X-GMAIL-MSGID: =?utf-8?q?1755472948987510839?= Add SPI pins and spidev support for mt8365-evk. Signed-off-by: Amjad Ouled-Ameur Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 275ea3a0e708..c1d603cb129a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -142,6 +142,17 @@ pins { ; }; }; + + spi_pins: spi-pins { + pins { + pinmux = , + , + , + ; + bias-disable; + }; + }; + }; &pwm { @@ -150,6 +161,19 @@ &pwm { status = "okay"; }; +&spi { + pinctrl-0 = <&spi_pins>; + pinctrl-names = "default"; + mediatek,pad-select = <0>; + status = "okay"; + + spidev@0 { + compatible = "mediatek,genio"; + spi-max-frequency = <5000000>; + reg = <0>; + }; +}; + &uart0 { pinctrl-0 = <&uart0_pins>; pinctrl-names = "default";