From patchwork Sat May 6 07:30:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maksim Kiselev X-Patchwork-Id: 13233445 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8206DC7EE2A for ; Sat, 6 May 2023 07:31:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbjEFHbz (ORCPT ); Sat, 6 May 2023 03:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjEFHby (ORCPT ); Sat, 6 May 2023 03:31:54 -0400 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 3E8B472BA; Sat, 6 May 2023 00:31:53 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f315735514so120034305e9.1; Sat, 06 May 2023 00:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683358312; x=1685950312; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=phdCEqZu3n0Q0Wg7bdC8dDiY0m/BBOG9trxmvJBnuV0=; b=EmYJDALXFxdDPFsrmRDu+d/XkHAg5PrzsgGsu7gdmUPud/ECs6SeQyohi3vUiNJhf1 3nRrANbV+2MRtwrT99zmzM17zc7S0pDrMd/MF/XCBu0McLhkDk4GVEdbK5U9Y3UCBqRx 0DhzxinyLRO5fNf9MxvVHEdTNY3n4yJ0c3nG5+Y3Y2vPZ+ILKiC+1lUIoUQ8ku1v0wz8 E7U0dVgDtJezUZwtAN6DMU8bONc/GbGyINwsvjCfRGVwHJwN4m3oUWRKqZMxR61D7hXN z8uTpjqwgdZ6iTk4hJsD+/UqWUjKHQARk6zAsmcHGN6RGY+rUke8efCi0pSFddgAbdJN zkkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683358312; x=1685950312; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=phdCEqZu3n0Q0Wg7bdC8dDiY0m/BBOG9trxmvJBnuV0=; b=PUI3DyHtleTD3X27TUq3kJKL/SIs/CpqiiQUOg1mRWmdWUK5XciklwH6pFUT9PD5Jq dLGY8smDRy/7uk/W1yeMj9KkLWI+vOaLtrMaLSe2Um2TiwHhUMjNL+ZOkdXZWajyPfAj UxMsc9kJqmLTsh2bPEl7Dd3Qph4qsd3qUUr9V01ZONkOTAXRKRs9AiaNDIDQJncTNQZ2 Lu+J0c1Hu8IIsaUYkXA6iJ+Zey2Kz7DajWUx7AfCn3L3i7jCctYVgnDjW8A+IfGOgjcw JJrEmLgeG3uRY4HsJSA/nSZghBLc7H5K9D8Aq55vG++KjeW7InaDvawXWv47FRn/7sS2 SfbQ== X-Gm-Message-State: AC+VfDxT6kDjk4zT2lc4hH4hveT+u9mIpy1KL0jziOuhJtVvYZDE/U/S ovI6jf8v55IeLzmMt0p+Fl4= X-Google-Smtp-Source: ACHHUZ6uYqqHl1zE5ssDd0SB9fMCXSY/0N7JQuBfmBIoG8JTeduQMOsvb99MhYcItZ9oquxrH0l3tA== X-Received: by 2002:a05:600c:35ce:b0:3f1:96a8:3560 with SMTP id r14-20020a05600c35ce00b003f196a83560mr3424900wmq.10.1683358311473; Sat, 06 May 2023 00:31:51 -0700 (PDT) Received: from localhost.localdomain ([176.221.215.212]) by smtp.gmail.com with ESMTPSA id q14-20020a7bce8e000000b003f182a10106sm10071944wmj.8.2023.05.06.00.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 00:31:51 -0700 (PDT) From: Maksim Kiselev To: Andre Przywara Cc: Icenowy Zheng , Maksim Kiselev , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Cristian Ciocaltea , Maxime Ripard , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 0/6] Allwinner R329/D1/R528/T113s SPI support Date: Sat, 6 May 2023 10:30:08 +0300 Message-Id: <20230506073018.1411583-1-bigunclemax@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org This series is attempt to revive previous work to add support for SPI controller which is used in newest Allwinner's SOCs R329/D1/R528/T113s https://lore.kernel.org/lkml/BYAPR20MB2472E8B10BFEF75E7950BBC0BCF79@BYAPR20MB2472.namprd20.prod.outlook.com/ Previous discussion about D1/T113s support https://lore.kernel.org/linux-arm-kernel/20230505224611.00c281f6@slackpad.lan/T/ v2: - added DT bindings and node for D1/T113s Icenowy Zheng (4): dt-bindings: spi: sun6i: add DT bindings for Allwinner R329 SPI spi: sun6i: change OF match data to a struct spi: sun6i: add quirk for in-controller clock divider spi: sun6i: add support for R329 SPI controllers Maksim Kiselev (2): dt-bindings: spi: sun6i: add DT bindings for Allwinner D1/R528/T113s SPI riscv: dts: allwinner: d1: Add SPI0 controller node .../bindings/spi/allwinner,sun6i-a31-spi.yaml | 6 + .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 21 ++++ drivers/spi/spi-sun6i.c | 112 +++++++++++------- 3 files changed, 99 insertions(+), 40 deletions(-)