Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp688120lqp; Sat, 13 Apr 2024 15:14:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjZ+wlCRMWZyo6QEd4OgK8zT1Q10BBVSXWAraFomSHECQY+lS5auv8By6hD58QFxrnMJjd4glwcPPAy3bAWmqzIkouahgmgeHI2ck4xQ== X-Google-Smtp-Source: AGHT+IEGCqYCoV0QfKicYi3OQQNkDLHnzHAO8MduU+fFrqOEGE6cQ9DZlBw2j+SxrG8VvX+EgZAr X-Received: by 2002:a17:906:fa8d:b0:a51:deec:483c with SMTP id lt13-20020a170906fa8d00b00a51deec483cmr3771403ejb.6.1713046499587; Sat, 13 Apr 2024 15:14:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713046499; cv=pass; d=google.com; s=arc-20160816; b=ATM8z+dqtm22bymWH1NsU4qBB0SYXh1Yuvrjl6k5uWHjOfbdqf0Hnzg2GfvUg3lQwK cZfZKBhTvV+TmUUhpeh70f9Djk2NfbV2t1YKx6/NmwXTX1ZGOHaUdowLizQbYp+y0S7t dVJT1GZq12Xq9hud80aKrcfCEVNohH4y1Oy3ON1BDEbyAK18zTmiYojn2Pud+0WIMsIg G7BexeASYY+yaEg0AO/czLqkr5yxgKE1QY2JFEJl6Hi9YionDOrgq6mDRPM1IIfMsXx0 lZkA34Yy8JYo3EOlH5sbwYTx1QVMehWAyu1/K1HfBlCo26p/3cYY2qF392zQBwFLG21Y xfLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=YTT6p3JdD6iIGkz1qRSEnktJlf1231ftu3Zq8pQLVBE=; fh=lf9NiXyhb6z9TjBgq1a8x1qCYDcpXWzCssjbiByGvNc=; b=WXqCpE7gjVKgKa1wGzAfbvAqnGoBSGqJI2ruq3AQ1AwQjhXlDXfAr08oA4Fg1JTsK2 OpxHPEEtmqVjXgE2TVqRGUguJgeTLWsje7/YBwKE9grXfxHIqTUictFjI1mNxqQJgmzk 2qy46mEf/Ef0FNAXde6i+CkopZ/irXwTm8V75GczpB0V82ibjVYTms6KMAcQd9jN3bMC TlTil/x+ELcCAeClWR5r9AKJalVYs1flkKB6DXj65Cco3b1wmTWEcmEnHnLqv+F0dji7 BSnbjKqCZoujYFSUy6jFPP9NLKcI5yacLdbKelJaa6jVCP/o9E6ufxHSKHn+C5Kuq8sz 6wKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=c4Wxe5en; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-143908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id do9-20020a170906c10900b00a4e148f0297si3051172ejc.497.2024.04.13.15.14.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 15:14:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=c4Wxe5en; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-143908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2C0D41F215E7 for ; Sat, 13 Apr 2024 22:14:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1471B57863; Sat, 13 Apr 2024 22:14:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="c4Wxe5en" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D39C356B85 for ; Sat, 13 Apr 2024 22:14:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713046486; cv=none; b=QSxlTIlci7/BS8PlX0eepwYMA0F9ui3KWjEZAPXJzFrZkVTdM2LtENvrIy12StNESY/CuxSxYupV6WjQJ6/6A3fd7Q26mmFKya3HIHtbNC7IpF66PypTDk7PaJ8UjYBr+zViJ+9Jujv+lTGTT+topH5UR2qyDCS44SP4JgXq3XA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713046486; c=relaxed/simple; bh=4IEOevbT+EXFyMqOZWAejLbNHWKkLa13ytu7fg6PdRA=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XLR24psAn5kTtFmQGseRKIW/5GWQcjzYLVgESzWXW+eJJbEt68DPWHySs52mZ0jUrpjWNCv9ZNCv/reSsRX7jppD9bmj6f1s9/q5XHZRLCWj4f/AyM07jJPbjT5CfWKvtmG14a6YZ0MItuOsUUT5kSi7elZEbLTQYSRoTeM+928= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=c4Wxe5en; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-56e47843cc7so1907832a12.0 for ; Sat, 13 Apr 2024 15:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1713046482; x=1713651282; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=YTT6p3JdD6iIGkz1qRSEnktJlf1231ftu3Zq8pQLVBE=; b=c4Wxe5enB6nCJ/s8VPvv7UngnYXrJwJEnZlXoHJpMLM5TXR84LIYsxb7gG+zimgwJn Vw9pqTgwSUWS0YNw3Ma93tpHxEoFxOdW9sb+EEKPXIuZrQOrfPQgGM71H09TPANBn+m9 jP5swW1NY3aVJoMIejKLOHDnviZU3V+OPKGzsYVD56UK2C2M7lUKAa7crgiX908aSpYx Nwyb5dduIk8et9lxyH50Z4yyPix/+yBKhBXrvwoIEWXFpKdRVEaSsGMSE8LberN2AzPz HmtjweyUBQKS+ZcgjOHqmMaUjrKRWmAjIgV8bBP3qmpCBqQVDi1W7L2YSUIxIT5uW/fw jwxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713046482; x=1713651282; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YTT6p3JdD6iIGkz1qRSEnktJlf1231ftu3Zq8pQLVBE=; b=KMbOxrXn88/iNQbjct0xRg0taMM13mskxTMJrU2fo9t6m3wqBCUnxHMx3S4o5gpD6b iFO5XLvfFt+kE7SNzwub0fzz2sHLdeWrYMzHBirpaAVFfqAMw3Tit3VsTb/tqD0hciwK JLJ5HnLe941lumGmAszCYKvNpZnS0hEX4ssv0aiiaDh48OvWlThbPV4dmQvlz8oA/80p 8NUqbEOvsVVyDLuBj6xLlFnnt4fJFn9p/5i++S7sNlShrhEAQynic02I8SuRTpF6k6ai f/7Is1TMvH4LXtJpAg0ffta4OY0/PUeBe6guvhBtKLKEXZAAzf8BYL0n5uuSCwbZ5tda zSoA== X-Forwarded-Encrypted: i=1; AJvYcCWP7cqKr0VcUAYC9EHSJx1ro46juN6DhDAlPaFieVBS8buzU7YZnuxt1PUwxR4CDWCQANWZbyG9ZkWhWRYzDeL7VwQL8rBJdE0Xf6p7 X-Gm-Message-State: AOJu0YwGPsxUbHss0ktfDjzu82mNG0nzYUYfHeZcXlFb2j2uJvfd4kbQ 1MkOqtA3P+JFtdUHFdJzd3VXUwKeU7OotThfc8lrPEodn2SJPDUNw9fpW95/Exo= X-Received: by 2002:a50:d59e:0:b0:56c:5a7b:5dbd with SMTP id v30-20020a50d59e000000b0056c5a7b5dbdmr3850975edi.15.1713046482214; Sat, 13 Apr 2024 15:14:42 -0700 (PDT) Received: from localhost (host-87-4-160-102.retail.telecomitalia.it. [87.4.160.102]) by smtp.gmail.com with ESMTPSA id x7-20020a056402414700b0056feb6315easm2782050eda.1.2024.04.13.15.14.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 15:14:41 -0700 (PDT) From: Andrea della Porta To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Linus Walleij , Adrian Hunter , Kamal Dasu , Al Cooper , della Porta , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Jonathan Bell , Phil Elwell Subject: [PATCH 1/6] dt-bindings: pinctrl: Add support for BCM2712 pin controller Date: Sun, 14 Apr 2024 00:14:23 +0200 Message-ID: <2d1272cad92ad618297a6683e9264e31b8f2df73.1713036964.git.andrea.porta@suse.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Andrea della Porta --- .../pinctrl/brcm,bcm2712-pinctrl.yaml | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,bcm2712-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,bcm2712-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/brcm,bcm2712-pinctrl.yaml new file mode 100644 index 000000000000..2908dfe99f3e --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm2712-pinctrl.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/brcm,bcm2712-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM2712 pin controller + +maintainers: + - Andrea della Porta + +description: + Bindings for Broadcom's BCM2712 memory-mapped pin controller. + +properties: + compatible: + enum: + - brcm,bcm2712-pinctrl + - brcm,bcm2712-aon-pinctrl + - brcm,bcm2712c0-pinctrl + - brcm,bcm2712c0-aon-pinctrl + - brcm,bcm2712d0-pinctrl + - brcm,bcm2712d0-aon-pinctrl + + reg: + items: + - description: pin control registers + +allOf: + - $ref: pinctrl.yaml# + +required: + - compatible + - reg + +additionalProperties: + anyOf: + - type: object + allOf: + - $ref: pincfg-node.yaml# + - $ref: pinmux-node.yaml# + + properties: + function: + enum: [ gpio, alt1, alt2, alt3, alt4, alt5, alt6, alt7, alt8, + aon_cpu_standbyb, aon_fp_4sec_resetb, aon_gpclk, aon_pwm, + arm_jtag, aud_fs_clk0, avs_pmu_bsc, bsc_m0, bsc_m1, bsc_m2, + bsc_m3, clk_observe, ctl_hdmi_5v, enet0, enet0_mii, + enet0_rgmii, ext_sc_clk, fl0, fl1, gpclk0, gpclk1, gpclk2, + hdmi_tx0_auto_i2c, hdmi_tx0_bsc, hdmi_tx1_auto_i2c, + hdmi_tx1_bsc, i2s_in, i2s_out, ir_in, mtsif, mtsif_alt, + mtsif_alt1, pdm, pkt, pm_led_out, sc0, sd0, sd2, sd_card_a, + sd_card_b, sd_card_c, sd_card_d, sd_card_e, sd_card_f, + sd_card_g, spdif_out, spi_m, spi_s, sr_edm_sense, te0, te1, + tsio, uart0, uart1, uart2, usb_pwr, usb_vbus, uui, vc_i2c0, + vc_i2c3, vc_i2c4, vc_i2c5, vc_i2csl, vc_pcm, vc_pwm0, + vc_pwm1, vc_spi0, vc_spi3, vc_spi4, vc_spi5, vc_uart0, + vc_uart2, vc_uart3, vc_uart4 ] + + pins: + items: + pattern: "^((aon_)?s?gpio[0-6]?[0-9])|(emmc_(clk|cmd|dat[0-7]|ds))$" + + bias-disable: true + bias-pull-down: true + bias-pull-up: true + additionalProperties: false + + - type: object + additionalProperties: + $ref: "#/additionalProperties/anyOf/0" + +examples: + - | + pinctrl: pinctrl@7d504100 { + compatible = "brcm,bcm2712-pinctrl"; + reg = <0x7d504100 0x30>; + + uarta_24_pins: uarta_24_pins { + pin_rts { + function = "uart0"; + pins = "gpio24"; + bias-disable; + }; + + pin_cts { + function = "uart0"; + pins = "gpio25"; + bias-pull-up; + }; + }; + + spi10_gpio2: spi10_gpio2 { + function = "vc_spi0"; + pins = "gpio2", "gpio3", "gpio4"; + bias-disable; + }; + }; +... -- 2.35.3