From patchwork Wed Nov 24 23:04:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12693597 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 6826AC433EF for ; Wed, 24 Nov 2021 23:08:23 +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=6CQYE8WOZTKa467wZnUKM3+KFkllqDCfG5JuGmOyj6M=; b=YHiJYuHDO1cwOX yrlcbaiXa+sDgIkjadHdEtTTLrA4uoJeH8kZ5SsoawCZWATHCbyG2wFtNX3/vKkh1bdeGB4O2Ic7N 1raCTVviDzJ2XyqWvxIRZSP9EQjcCx0j4qUcgH+9mJjTDCsiRNMX2z/ozoGQRPrX46qrrvpIPk7l8 jTw/6K3PSuoJJisBsVfhGrJ56iwo05043s0ITKH10by6WbVWHAMxyffKWgreE5XVtiCWYAShPICnt t0A+yfEUGG7N4YRFyJJCXFm6aV5zerWQAK6eloeY3kw6CNkLDTdeVzvY6ERJvtPaHoWWwrqTNUUN1 zsGvZ4LFOz+dM+fp5YOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mq1Lg-0061W3-Mi; Wed, 24 Nov 2021 23:06:45 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mq1K3-0060v5-LK for linux-arm-kernel@lists.infradead.org; Wed, 24 Nov 2021 23:05:05 +0000 Received: by mail-lf1-x130.google.com with SMTP id u3so11288070lfl.2 for ; Wed, 24 Nov 2021 15:05:03 -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=BA4tDKZ+Blkfi7C2aIpzTSZjN8sBLs0JXhtIeRx//l0=; b=HJ3CzNE720BoEQwLXxTJzU5F5WnyQL9L+TwIUcvsYGsBGKSIQ5GwKBnVoSjH5CG2sv olhelTd/O/14pEeBgbvUOg+NzaB3ti4j8hOxor24+LHcu9G96PuxnjTsTOZmf5NtkoNP DirSPu/JIGQNj0alR1rqZgsizHyjfmxyMrfp7pAEBUelBW9esFxun/ii54ytV1xPsGQg dfXegp2PYaR8aIMhricIxIftejKYnrv1fNGg1/EugDfqfWduqxSb7mI4/u7syXNf+8nU epZwkE9dHJ0+Lg/EjwpmTZ4qNdo/1tndgnYTyLcc7KLrNB0jIVYkc8csr3qfcZyTjSr5 LpQQ== 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=BA4tDKZ+Blkfi7C2aIpzTSZjN8sBLs0JXhtIeRx//l0=; b=oOOLpfzbtF6MT9ytPArjqVLRR7qZ2imcUxU6Cm0c32VtRBK8xWPFqAtbEim2YfV5pC hHe7wwRCdNh/nbrGFLYGVLCxpwhU0mP73eHvEubFpWQzogs9XRYiK5xkL/M8YZqeS5Mb smDdOpndcPOhNHgdQZ2uq6Cbh5fellgGIoJF3xYKkE3T+04l6GE0EdryiAAqA4TvuP8z XHLU7Aa24G06SNojMQ7nejQJ6P3PC0GWyrhKjKZRhPrT5oKZjP9gNNopb2vbgJfuisXg E8gjs7A1paIlQW3b7ftrA4Vz0uEAZQCTpqA1yMmjlWXU6gDrRFQG3wL+pd2GK9iNpJ6n laBA== X-Gm-Message-State: AOAM532WzzIoMS3mQCoYMgK/KNZGfHdKAexgSLb8zZW+3k5gflwX+A7S o5TFMXNMGV7YHEROeOGh/2Dva8Ucjr0= X-Google-Smtp-Source: ABdhPJxlKTpuABlfgXMhnD3RKra37k5e5VXA1sE76OLIfrEf7HmMbG+YtBDg7qbXIQtXRpVCU4Zzhw== X-Received: by 2002:ac2:5d67:: with SMTP id h7mr18924907lft.493.1637795102007; Wed, 24 Nov 2021 15:05:02 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id t15sm106243lfp.181.2021.11.24.15.05.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 15:05:01 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Linus Walleij , Rob Herring Cc: Tony Lindgren , Andy Shevchenko , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V2 6/6] ARM: dts: BCM5301X: add pinctrl pins, groups & functions Date: Thu, 25 Nov 2021 00:04:39 +0100 Message-Id: <20211124230439.17531-7-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211124230439.17531-1-zajec5@gmail.com> References: <20211124230439.17531-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211124_150503_761606_37A78CA3 X-CRM114-Status: GOOD ( 13.82 ) 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 From: Rafał Miłecki They can now be described in DT so do that. Signed-off-by: Rafał Miłecki --- V2: Update "pins" to match updated binding --- arch/arm/boot/dts/bcm4709.dtsi | 67 ++++++++++++++++++++ arch/arm/boot/dts/bcm47094.dtsi | 11 +--- arch/arm/boot/dts/bcm5301x.dtsi | 109 ++++++++++++++++++++++++++++++++ 3 files changed, 177 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/bcm4709.dtsi b/arch/arm/boot/dts/bcm4709.dtsi index cba3d910bed8..481dc3e9353b 100644 --- a/arch/arm/boot/dts/bcm4709.dtsi +++ b/arch/arm/boot/dts/bcm4709.dtsi @@ -10,6 +10,73 @@ &uart0 { status = "okay"; }; +&pinctrl { + compatible = "brcm,bcm4709-pinmux"; + + pins { + mdc { + number = <6>; + }; + + mdio { + number = <7>; + }; + + uart2_rx { + number = <16>; + }; + + uart2_tx { + number = <17>; + }; + + /* TODO + * xtal_out { + * }; + */ + + sdio_pwr { + number = <22>; + }; + + sdio_en_1p8v { + number = <23>; + }; + }; + + groups { + mdio_grp: mdio_grp { + pins = <6 7>; + }; + + uart2_grp: uart2_grp { + pins = <16 17>; + }; + + sdio_pwr_grp: sdio_pwr_grp { + pins = <22>; + }; + + sdio_1p8v_grp: sdio_1p8v_grp { + pins = <23>; + }; + }; + + functions { + mdio { + groups = <&mdio_grp>; + }; + + uart2 { + groups = <&uart2_grp>; + }; + + sdio { + groups = <&sdio_pwr_grp &sdio_1p8v_grp>; + }; + }; +}; + &srab { compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab"; }; diff --git a/arch/arm/boot/dts/bcm47094.dtsi b/arch/arm/boot/dts/bcm47094.dtsi index 6282363313e1..239c1c1b0268 100644 --- a/arch/arm/boot/dts/bcm47094.dtsi +++ b/arch/arm/boot/dts/bcm47094.dtsi @@ -3,14 +3,12 @@ * Copyright (C) 2016 Rafał Miłecki */ -#include "bcm4708.dtsi" +#include "bcm4709.dtsi" / { }; &pinctrl { - compatible = "brcm,bcm4709-pinmux"; - pinmux_mdio: mdio-pins { groups = "mdio_grp"; function = "mdio"; @@ -21,11 +19,4 @@ &usb3_phy { compatible = "brcm,ns-bx-usb3-phy"; }; -&uart0 { - clock-frequency = <125000000>; - status = "okay"; -}; -&srab { - compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab"; -}; diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index d4f355015e3c..dc89d2f5fa8f 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -473,6 +473,115 @@ pinmux_uart1: uart1-pins { groups = "uart1_grp"; function = "uart1"; }; + + pins { + #address-cells = <1>; + #size-cells = <0>; + + spi_clk { + number = <0>; + }; + + spi_ss { + number = <1>; + }; + + spi_mosi { + number = <2>; + }; + + spi_miso { + number = <3>; + }; + + i2c_scl { + number = <4>; + }; + + i2c_sda { + number = <5>; + }; + + pwm0 { + number = <8>; + }; + + pwm1 { + number = <9>; + }; + + pwm2 { + number = <10>; + }; + + pwm3 { + number = <11>; + }; + + uart1_rx { + number = <12>; + }; + + uart1_tx { + number = <13>; + }; + + uart1_cts { + number = <14>; + }; + + uart1_rts { + number = <15>; + }; + }; + + groups { + spi_grp: spi_grp { + pins = <0 1 2 3>; + }; + + i2c_grp: i2c_grp { + pins = <4 5>; + }; + + pwm0_grp: pwm0_grp { + pins = <8>; + }; + + pwm1_grp: pwm1_grp { + pins = <9>; + }; + + pwm2_grp: pwm2_grp { + pins = <10>; + }; + + pwm3_grp: pwm3_grp { + pins = <11>; + }; + + uart1_grp: uart1_grp { + pins = <12 13 14 15>; + }; + }; + + functions { + spi { + groups = <&spi_grp>; + }; + + i2c { + groups = <&i2c_grp>; + }; + + pwm { + groups = <&pwm0_grp &pwm1_grp &pwm2_grp &pwm3_grp>; + }; + + uart1 { + groups = <&uart1_grp>; + }; + }; }; thermal: thermal@2c0 {