From patchwork Fri Nov 26 15:43:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frattaroli X-Patchwork-Id: 12693769 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id F3BD2C433F5 for ; Fri, 26 Nov 2021 15:45:39 +0000 (UTC) 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=+0SIMBzApFeO1LHRlDUfc0lh0/jq3jksS+VXzsuL8CQ=; b=03x8dY7HD/JfRi GhWE3y46SdixjM4xLggpfhMPUDzkEq+adPSWecJCH9KgJwJjXY2svJlV6vz7tNM+ETKcaEgvLERff rHgVeIrz8pz89cHyZGzYAiTg9bNpakg+X52gRMjw/DGZpu2+B7nz8Wbn7Mt0L+5HR2bPBrShRJEhu vN9Lu9gLQuu14ctIHmjreODyL+doVt8YkETIustm4Nz0Gk3YIBkf5Hhh6sirPV+73rb48ATsvBDu7 cHq3LPZGS7fFOpGh7ERVCMLKKORiHb1qZ6DbHlTYOvbfjQJl4h7YlWWb+VBQIji4VI3zT1VPoT0P2 e8pTxtxGWtagSsdFVDDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqdOZ-00Ayuw-T0; Fri, 26 Nov 2021 15:44:16 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqdON-00Ayrl-33; Fri, 26 Nov 2021 15:44:04 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 133so8528470wme.0; Fri, 26 Nov 2021 07:44:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Vwik1mNyYOqHPapDPau3aXiBOWO/s+qGHcQQOuPlOlo=; b=lNhEXTCpWNUM0kA/YZetRxWEfoskR9epcAPlrhHy7Eg3wdHRlO9mdyGvSioewMfzov KeWFt8hposfcdrE6uHBbN9I1jebhbGRQnga2AdcLnMtwyuPjft4DjR+33ko0Xokw35kA N/zAuWvtmOEZpjQcgD6cl828sSjwvlobLf1wztIeWVc4n5xDlQW7elcMzoxyIayVwHJz FF8iJ0nFrBPpqDhwYKD6qB7KT+gOCwkcp2D28m2cCAWM40GxNKfVvvWNo9XQ7wiP1Urn w4gwy58tq3ORYpoEAYsniInGT9fE7XbEsfsP/yeqdTb9Au2tPlIU4gyPLNAddMpyQ7Ib zF0A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Vwik1mNyYOqHPapDPau3aXiBOWO/s+qGHcQQOuPlOlo=; b=eqtSVuBmONkdSBFdtjZ67MppPWgyOtu8qnDpKw62+igY9GtoeCHQfcrPJ6VZ944eu9 4vhsGKEGTCqAZ3dvt96rQEqANcyft8oy3FCzZHmTmU142gsJRD7ltWlEESj+A/hSMcdk 7d+8Xm1ZR5UOJfcp9FFUNdFbKDKkPqC4qgVAYKXS86JHP9uZr/kd6e3BYsh2F+QOEwnw ay8qlYRY+a+Ts7elm4+fEzGUm2HwccZFHo4sKMhYRfYC5MmkrO9XVpGBUKzDotQvNkJ3 rX7qfZEebfShmKE7yi23OdW/QcHMZdpVIRAQK+6Ro4GT1YqISyE3nywDBzER4a45NF7R dY5A== X-Gm-Message-State: AOAM533lTRJpccf4wGuX29/2+CSAl5KDVsuN2Yz6pebap+TdCVvpR9C1 iOC3H4phS3UCA1sDba+/CUg= X-Google-Smtp-Source: ABdhPJyna8G70WLf5w5vpFT9RgXoRgiwSletYSWvInDUnf9igjG7bcUOLu7KFSJe6TJVbtLbitzkVg== X-Received: by 2002:a1c:1b15:: with SMTP id b21mr16095117wmb.174.1637941441249; Fri, 26 Nov 2021 07:44:01 -0800 (PST) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id p13sm11372400wmi.0.2021.11.26.07.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Nov 2021 07:44:00 -0800 (PST) From: Nicolas Frattaroli To: Mark Brown , Rob Herring , Heiko Stuebner Cc: Nicolas Frattaroli , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: spi: spi-rockchip: Add rk3568-spi compatible Date: Fri, 26 Nov 2021 16:43:42 +0100 Message-Id: <20211126154344.724316-2-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211126154344.724316-1-frattaroli.nicolas@gmail.com> References: <20211126154344.724316-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211126_074403_156797_6896F993 X-CRM114-Status: GOOD ( 10.09 ) 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 This adds a compatible string for the SPI controller found on the RK3566 and RK3568 SoCs. Signed-off-by: Nicolas Frattaroli --- Documentation/devicetree/bindings/spi/spi-rockchip.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-rockchip.yaml b/Documentation/devicetree/bindings/spi/spi-rockchip.yaml index 7f987e79337c..52a78a2e362e 100644 --- a/Documentation/devicetree/bindings/spi/spi-rockchip.yaml +++ b/Documentation/devicetree/bindings/spi/spi-rockchip.yaml @@ -33,6 +33,7 @@ properties: - rockchip,rk3328-spi - rockchip,rk3368-spi - rockchip,rk3399-spi + - rockchip,rk3568-spi - rockchip,rv1126-spi - const: rockchip,rk3066-spi From patchwork Fri Nov 26 15:43:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frattaroli X-Patchwork-Id: 12693770 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 492F5C433EF for ; Fri, 26 Nov 2021 15:45:49 +0000 (UTC) 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=zV+TXtAaFlb094Y8j2IQr/iJh3oyTn4uWt10YhYjGQI=; b=Ec9kTpcSMmMeSx ywndruZQLbjOr9KauQWYYbr2ghKxrFHXtCltEEFI/nYey/1ciYApRVP7wDDkuQTkx513f4aTSyExj xzIEiyAtfR41CEwGqU7pfhzFv5U87yXZyz2RGflzIf5LP48pusTg1TfJWXZxv6HLBW+SX6mOf2SwX pbmIjh6x4g1b+/KA+d8KNs3YNCYjsR5sKIPXfsxB0WFUvl5hOAqqfB0LGSwJHQtDvudF6fOxbhbwJ 8LpL5La+vo9JdKLVGZ39XRM7N4aj0BN3kCsjBrgiazt+817vHE7BzFx0+nc6+Pnn3bXUYW67ZbDkk iLrwlaEZT+xTuhVqTyAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqdOn-00Ayza-Lc; Fri, 26 Nov 2021 15:44:29 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqdOO-00AysH-Ma; Fri, 26 Nov 2021 15:44:06 +0000 Received: by mail-wm1-x32e.google.com with SMTP id p3-20020a05600c1d8300b003334fab53afso10998302wms.3; Fri, 26 Nov 2021 07:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6cSeWfhEbavNzmvOss4FAgbn9tZPKzO6/SplA5Hffp4=; b=G6mcWzcYp7e91PM3gab7OIfErFk73WW8RZYGaUEooLYuCWmVbOwubIwAVoZP05Bdm0 ZwbvJI4Z4NvnoN9wu0eKqJfukOznzNwNDc+LwzdHmFTuuT2Emhhr7pZJP9ZnSzaWmLHP Iiz6QiWSSQKQBc8KNqOmUPPAnZ/cTIGrTKY7sqU+Q9Cdg47buxsVlIJHTTFrcnc60I+X hbD5XLTVJhsuC7kJQv+J3EmQ0Bmbduvka2Tf8zfEEDo3tG2MuZ1+IXqYiVK71I9yb76D sdJzo26ZbBfQyas48wF+XY3vrr6UyjWC8sQBt6aT6Lnhbb2XUP3JUTmJUjqMulKlU0nO aS8g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=6cSeWfhEbavNzmvOss4FAgbn9tZPKzO6/SplA5Hffp4=; b=fKNdeqkoXdTk67FKwlEIs5Ms4AN9Z6tXLZYl6UX7+oAur7Jm3DamU7fsVYrCq2DQzK 8l9SO2p6HloS9Zg/J39bx4shYOAHxxV4/zuLyvaZBPuhhByNMlm+/i62TWvnVbKk49Fh odfcr7erdOklRgZVzsJxBkcO7PaARg07WJAVI+uwxMYrWZPw85Gw+AhN1cubz6AcMDiT 37n6x3VYV3d3IikSQcpKLf/iAYlmgWC1WeuaPDRzFXIm2RY4MV++afCPE7WhW6K8fBGf NOJHlNnKaQmreXG0lmqSgQXA6U5YAOWd9H8N9mbJmYJbpTT7Ra/L28DY0+tPe6xwrB0N uIbw== X-Gm-Message-State: AOAM533dVvUe0O66Hp0E1r+iFVdTI4pjC/i/fgW7WuDpL4sYo6rHzNgF Oro5EhGFIJIX2vgBJrN3MiM= X-Google-Smtp-Source: ABdhPJwXJqy2sr4dEeGSQAcAmKe4wzYDxJAqSpm+IEb8Foz3+w8Uyrezn/76WHNM8c4aI/9AZIsmrg== X-Received: by 2002:a1c:6a13:: with SMTP id f19mr16535310wmc.89.1637941443439; Fri, 26 Nov 2021 07:44:03 -0800 (PST) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id p13sm11372400wmi.0.2021.11.26.07.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Nov 2021 07:44:03 -0800 (PST) From: Nicolas Frattaroli To: Rob Herring , Heiko Stuebner Cc: Nicolas Frattaroli , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: rockchip: Add spi nodes on rk356x Date: Fri, 26 Nov 2021 16:43:43 +0100 Message-Id: <20211126154344.724316-3-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211126154344.724316-1-frattaroli.nicolas@gmail.com> References: <20211126154344.724316-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211126_074404_813492_F0F7E756 X-CRM114-Status: GOOD ( 11.19 ) 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 This adds the four spi nodes (spi0, spi1, spi2, spi3) to the rk356x dtsi. These are from the downstream device tree, though I have double-checked that their interrupts and DMA numbers are correct. I have also tested spi1 with an SPI device. Signed-off-by: Nicolas Frattaroli --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 68 ++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index 46d9552f6028..57c0197cc65a 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -39,6 +39,10 @@ aliases { serial7 = &uart7; serial8 = &uart8; serial9 = &uart9; + spi0 = &spi0; + spi1 = &spi1; + spi2 = &spi2; + spi3 = &spi3; }; cpus { @@ -742,6 +746,70 @@ wdt: watchdog@fe600000 { clock-names = "tclk", "pclk"; }; + spi0: spi@fe610000 { + compatible = "rockchip,rk3568-spi", "rockchip,rk3066-spi"; + reg = <0x0 0xfe610000 0x0 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru CLK_SPI0>, <&cru PCLK_SPI0>; + clock-names = "spiclk", "apb_pclk"; + dmas = <&dmac0 20>, <&dmac0 21>; + dma-names = "tx", "rx"; + pinctrl-names = "default", "high_speed"; + pinctrl-0 = <&spi0m0_cs0 &spi0m0_cs1 &spi0m0_pins>; + pinctrl-1 = <&spi0m0_cs0 &spi0m0_cs1 &spi0m0_pins_hs>; + status = "disabled"; + }; + + spi1: spi@fe620000 { + compatible = "rockchip,rk3568-spi", "rockchip,rk3066-spi"; + reg = <0x0 0xfe620000 0x0 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru CLK_SPI1>, <&cru PCLK_SPI1>; + clock-names = "spiclk", "apb_pclk"; + dmas = <&dmac0 22>, <&dmac0 23>; + dma-names = "tx", "rx"; + pinctrl-names = "default", "high_speed"; + pinctrl-0 = <&spi1m0_cs0 &spi1m0_cs1 &spi1m0_pins>; + pinctrl-1 = <&spi1m0_cs0 &spi1m0_cs1 &spi1m0_pins_hs>; + status = "disabled"; + }; + + spi2: spi@fe630000 { + compatible = "rockchip,rk3568-spi", "rockchip,rk3066-spi"; + reg = <0x0 0xfe630000 0x0 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru CLK_SPI2>, <&cru PCLK_SPI2>; + clock-names = "spiclk", "apb_pclk"; + dmas = <&dmac0 24>, <&dmac0 25>; + dma-names = "tx", "rx"; + pinctrl-names = "default", "high_speed"; + pinctrl-0 = <&spi2m0_cs0 &spi2m0_cs1 &spi2m0_pins>; + pinctrl-1 = <&spi2m0_cs0 &spi2m0_cs1 &spi2m0_pins_hs>; + status = "disabled"; + }; + + spi3: spi@fe640000 { + compatible = "rockchip,rk3568-spi", "rockchip,rk3066-spi"; + reg = <0x0 0xfe640000 0x0 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru CLK_SPI3>, <&cru PCLK_SPI3>; + clock-names = "spiclk", "apb_pclk"; + dmas = <&dmac0 26>, <&dmac0 27>; + dma-names = "tx", "rx"; + pinctrl-names = "default", "high_speed"; + pinctrl-0 = <&spi3m0_cs0 &spi3m0_cs1 &spi3m0_pins>; + pinctrl-1 = <&spi3m0_cs0 &spi3m0_cs1 &spi3m0_pins_hs>; + status = "disabled"; + }; + uart1: serial@fe650000 { compatible = "rockchip,rk3568-uart", "snps,dw-apb-uart"; reg = <0x0 0xfe650000 0x0 0x100>; From patchwork Fri Nov 26 15:43:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frattaroli X-Patchwork-Id: 12693771 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 937DDC433F5 for ; Fri, 26 Nov 2021 15:45:56 +0000 (UTC) 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=cIbD+7OC2tFcMHuX4NhCH6ebmA5oUDoq9+lxJexkdqk=; b=UcMQH0M6qYiZSS 5zOO2es5csGruLUdpcHaYEqpQbHUPINTz9H3Yvu621IFQm2i1nT8aqNV4nVOdLkqNjbD30KchYAEb tQ8er2VFn0HArwn0rUXiiAngCeHV7Q/DpTYIxSff0p9SNOWqVDo5mr0jEuxZ8SF1D5HtLH7WA96Ox 2aBwg2qCH+WpKCnyMV+5rPzoG3fhKc4UDpHUKYwOn37vxY9pS+R3SGYBr3zqdqk3XCrmUqXIe5u1c vDDoMUNdzwefSUW0yqe1LqrTG7wqaTtLbqN9m/rhQj8VG2PLwPfbHha4EoVOPttQ4i+qbc7Ft1qGI TrD1+c08wOWUG45G2RUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqdP0-00Az58-3E; Fri, 26 Nov 2021 15:44:42 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqdOT-00AytS-6b; Fri, 26 Nov 2021 15:44:10 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 137so8502419wma.1; Fri, 26 Nov 2021 07:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pX4j/3IbsfRWpBbXodLKp3Ooot7rXdkPhrMGrMwdyWc=; b=AgA6dlVN8+MxCY69yDgWXVIwfqwHDmubESbFeUHARnLUW5T0CicoqzKNAP+DzoA0+/ hOAsQyxPmKrVMYF299xM2CLHKkw6CvUfXZgdzb2MsXLv8GEhGuqrkaio6Pn76HakeaGg yNWMrF8/me7pQRRnSbAQrXzBuLeOrnmZa0fCe1yrcdUH/Yv/8V8YQcaABXJ4Zdy5toJA 1CUsw6cZhQa3VQfGethcCDMFZBC3GxL65BrqucrncGXwD+T8Mz1hNw5ocGBTcpBvJTKF ojfbV68Z190Z0sGcxHrbVPOXWjvY2FX/M07/WYxvyUqwYdJOC9CaqvSbd+n1OAzV+gxl i7TA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=pX4j/3IbsfRWpBbXodLKp3Ooot7rXdkPhrMGrMwdyWc=; b=d+3uA6vUtcsQ/VFzqrdVWpBJXcgtQfIfFcOGjEphKq2Jqxhw7ERLImRmSiIYCd+VrP /f8KHzvvMIVXCA57ws+UxNoMhFqgPSZl5D1zXtbRx3dtjDNYGjr+n1Mu72we3Z6FQ2JS Td3liAa6oPTNY5/auSyl6utSNFum8JtCBF93J6GU1OkfP9Hk2UaYEfrJX/8nt1O38VhW M1tN+woZ9KfiI9uWcGucC1UfKpstmjGlr8Oxu9NGhd8YpS7p3FfA27RXusvRbnuALYZ7 qLn52vAkRhSo6jO54wxTnvU3HDHZ9t4O9oje+TX7R+hlPp9Fsht3JGY/3kUFFXaCUnC1 UvKg== X-Gm-Message-State: AOAM533qmz2X1hGbDupbQS+Byrv5V0z0LTxuMWdVYypaW6yT5Hx+bcn7 Jn0Tvi2ygIMv+G7dgs5mxYj2lQ/vJNo= X-Google-Smtp-Source: ABdhPJxy5WZeJkCDxGPpJ20fBso/4CEHRxiGR3BRtJynzdR1LTnPQwXFPtils/lZCoP0kz2L/m9zSw== X-Received: by 2002:a7b:cc8f:: with SMTP id p15mr16274799wma.129.1637941448071; Fri, 26 Nov 2021 07:44:08 -0800 (PST) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id p13sm11372400wmi.0.2021.11.26.07.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Nov 2021 07:44:07 -0800 (PST) From: Nicolas Frattaroli To: Rob Herring , Heiko Stuebner Cc: Nicolas Frattaroli , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: rockchip: Add spi1 pins on Quartz64 A Date: Fri, 26 Nov 2021 16:43:44 +0100 Message-Id: <20211126154344.724316-4-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211126154344.724316-1-frattaroli.nicolas@gmail.com> References: <20211126154344.724316-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211126_074409_277548_562B679B X-CRM114-Status: GOOD ( 12.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 The Quartz64 Model A has the SPI pins broken out on its pin header. The actual pins being used though are not the m0 variant, but the m1 variant, which also lacks the cs1 pin. This commit overrides pinctrl-0 accordingly for this board. spi1 is intentionally left disabled, as anyone wishing to add SPI devices needs to edit the dts anyway, and the pins are more useful as GPIOs for the rest of the users. Signed-off-by: Nicolas Frattaroli --- arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index 4d4b2a301b1a..166399b7f13f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -509,6 +509,11 @@ &spdif { status = "okay"; }; +&spi1 { + pinctrl-names = "default"; + pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins>; +}; + &tsadc { /* tshut mode 0:CRU 1:GPIO */ rockchip,hw-tshut-mode = <1>;