From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) (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 B98B91624DD for ; Mon, 11 Aug 2025 14:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.68 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754923510; cv=none; b=DZ+dzu+LrJ5VBRzLqhsoUbWM9Hy4Th6zISmFOVc2zxa30D4Rx6Vsqkr//gkVzt4r4DId2fytVTqVr6BS/OXK5ZTdni5acMSTbgp/YSzSoP7jB4WraOtHwU1gkkCRHEIvdv79gM0XDc2NjAirxuNoqPCrOaMVQoy7Iac6M8o3h3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754923510; c=relaxed/simple; bh=ssZi2V2BpkiG5DrbhwdFR2j15/GCo9BoYjkK7NmEm7Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U+DqR7s1mxhb3wmdOkFslR94romGRD8WFDz1nYJTNT3kD0QB7E6OWMQuBmTjfnkjuNZaCa1UaMJ7pMrFuP1OlQ1vELZmxDAmAOaoHCDDnLmDAWxTUvFOUjsQyTUugoUD0g2FlDoN7mC6iAH0znscOVDzYSh8xsGDr83yfsz+9tY= 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=e5G08uop; arc=none smtp.client-ip=209.85.218.68 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="e5G08uop" Received: by mail-ej1-f68.google.com with SMTP id a640c23a62f3a-af9a25f091fso594816366b.0 for ; Mon, 11 Aug 2025 07:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1754923507; x=1755528307; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hJcoOLDf8BTazRGK+87/HJW+Db0TPk2aWIU1Zf6mQlM=; b=e5G08uopp2ry8GMtJImk70FuZW9mAjtaS0BO1RCuacHJ38omWJomrID9F5VP90AwR9 wq2fsmHQ6kaOSt4CJ3fhi36HrY+taeheZqDFhLeMsAinlR2paTFZ8OMonjfYKb2W+vZD BePvn8ApZG6Kk6WeCDOX7wWFsjpe7nX4p2VGw1/lBs3iuosHEB93qVtKOGeRDVQAspJF Kd8QKyfVHqQFTZoWpp0FspjmRdUTLLQfywJe1wSHMm5Et0wR+GPOssNbReSzNDEpKRlo BkLvlSoPypJM05xJFRE5MPkN0VNIGl+i5MHDOwOEsClyZQZvymiAHSwVwOelb2Vil6Sg A+0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754923507; x=1755528307; 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=hJcoOLDf8BTazRGK+87/HJW+Db0TPk2aWIU1Zf6mQlM=; b=VCHajlWltQVW5eRqTeu6SylrvBdWWZ0e7PFetvFKPtiY9U/fUFLOsifFtwntbMmo/N /nfQxwBSxm/xINeyml1VPxfB6zJcHXM9V+kEZkq+rAKdfM7u5OYPN9dIR7sAADdSaoYn WMG2oORWl/ZxAS3RtcwYOA/2fbZJkOrDkLY761TCtPwLdu75eN7v4ek/6qLiv7BhTB39 dxWgtBE8Xln301lJa4hp8L5GVE1Gx0WjdwWpNOf8k9ckfsTHVeouGdYgkFIKFwIIEOFy AwNBTVBkTkAqrtlijaJ73Ti97I3vQgPuStGw7/k6nvv/IUX9ri94PFjyRr32PahuTyG8 ePRg== X-Forwarded-Encrypted: i=1; AJvYcCVIVB6QIzYWA5pk7ETNrCX/zpwJIcLrC5jTtQkmK1CgC7orIKmWJWQDa+OVqtBXuf1vIVDW9GNd6b90@vger.kernel.org X-Gm-Message-State: AOJu0Ywub7oOPQqb7Dw061D28rKTpSrYXTrmPmSzgf+y/XMojfICBsOQ q2LkMcCLXH9QRoWLyhGVvBjnroUoycx9aAaB9ikPCCRWCVlLm+8sxNQ/b/N69eWM/Gc= X-Gm-Gg: ASbGncttxAxFLqgwXK7Nlw9zpALgyRAjaER4ehRHsAGJV56lZYmIoQ3DS04C3M/wQBB UoCl6xoOD9ui3IoZiG0pDMNVpQodJBWVSO4xR+di5TN4u0pQ9Rmy74d6pPxS3GDne6CR4MQ/WEE cBTS5nTg1iZrmaLaOL0K+IVqQyW6YTnBX/KsAvvVcwp5DygfP9pRv92uyx5RAzh/w2/WUVxEa8Z UTo2oQdiCm/lzRqjMdz2ZgfskXnaPYQMkD+gdmpR4Ad4qgjsUvLzWZd/ZfmyTIDaarqzcBymQEA v4zuXPxaKQqEeX599IfI6br8SCryg0k1FVDqHthJ4m0NTnl+0m8YNSKbUqRgWrnpcht0imy7KD0 jKv1ErZ8qQkB1KNwOjmxgmDLKqR4MDdNUbGrZxF4r8h0uw/QxO2BPc2VYDQCvwqnF3w== X-Google-Smtp-Source: AGHT+IGxUCzXjFil7BaQruhMsAvs3m/J8Chpjk13kDIOzDYu/beUtkNUJBMy4y0EFRLuwUY2CuxLOw== X-Received: by 2002:a17:907:7fa4:b0:ae3:c767:da11 with SMTP id a640c23a62f3a-af9c65de7eemr1074989066b.50.1754923506918; Mon, 11 Aug 2025 07:45:06 -0700 (PDT) Received: from localhost (host-79-44-170-80.retail.telecomitalia.it. [79.44.170.80]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af937c86989sm1814983866b.74.2025.08.11.07.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 07:45:06 -0700 (PDT) From: Andrea della Porta To: linus.walleij@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, florian.fainelli@broadcom.com, wahrenst@gmx.net, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , iivanov@suse.de, svarbanov@suse.de, mbrugger@suse.com, Jonathan Bell , Phil Elwell Cc: Andrea della Porta Subject: [PATCH v3 0/3] Add pin control driver for BCM2712 SoC Date: Mon, 11 Aug 2025 16:46:50 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit *important note* - For clarity's sake, here's the revision list from which this patchset derives: V3 (this patchset, split-up to deal exclusively with pin controller stuff) V2 (missing v2 in the mail subject): https://lore.kernel.org/all/cover.1752584387.git.andrea.porta@suse.com/ V1 (original by Ivan): https://lore.kernel.org/all/20240731062814.215833-1-iivanov@suse.de/ Also, in V3 the patchset has been split into two: - patches 1, 2 and 7 from V2 form the new revision V3 to deal with core pinctrl stuff only. - all remaining patches will respawn as a new patchset that adds new DT nodes for the peripherals that use the pinctrl. As a consequence, it will require the above mentioned V3 patchset as a prerequisite. --- Hi, The following patches add a pin control driver for the BCM2712 SoC. Device driver is follow up version on what Andrea posted in April [1]. It is based on sources from here [2]. I just made few cosmetic changes and addressed review comments from earlier submission. I don't have documentation for this controller. A separate patchset will add peripheral nodes that rely on the SoC pin controller to setup and config the pins. All this have been tested as kernel was directly booted RPi5 via kernel= config.txt option and cmdline.txt file with following content (Note I am using Tumbleweed RPi raw images) # cat /boot/efi/cmdline.txt root=/dev/mmcblk0p3 rootwait rw systemd.show_status=1 console=tty ignore_loglevel earlycon console=ttyAMA10,115200 With all these patches Bluetooth and Wifi are working fine (tm) with firmware files provided by openSUSE Tumbleweed. All comments and suggestions are welcome! Happy hacking! Ivan and Andrea [1] https://lore.kernel.org/lkml/f6601f73-cb22-4ba3-88c5-241be8421fc3@broadcom.com/ [2] https://github.com/raspberrypi/linux/blob/rpi-6.6.y/drivers/pinctrl/bcm/pinctrl-bcm2712.c [3] https://lore.kernel.org/lkml/20240605120712.3523290-1-florian.fainelli@broadcom.com/#t [4] https://lore.kernel.org/all/bfc60a7e-54d2-48a6-a288-4fe76d66507a@gmx.net/ CHANGES in V3: --- PATCHES --- - The V2 patchset has been split into two. This patchset (V3) contains reworked patches 1,2,7 from V2 while the remaining (again, reworked) patches will respawn as an entirely new patchset. --- DT BINDINGS --- - brcm,bcm2712c0-pinctrl.yaml: emmc_* pins are specific and do not provide other alternate function, so the function property can be dropped for those pins. - brcm,bcm2712c0-pinctrl.yaml: fixed the schema ID reflecting the current filename. --- DRIVER --- - pinctrl-brcmstb.c: wrapped a couple of lines exceeding 100 columns. Andrea della Porta (1): arm64: defconfig: Enable BCM2712 on-chip pin controller driver Ivan T. Ivanov (2): dt-bindings: pinctrl: Add support for Broadcom STB pin controller pinctrl: bcm: Add STB family pin controller driver .../pinctrl/brcm,bcm2712c0-pinctrl.yaml | 135 ++ arch/arm64/configs/defconfig | 1 + drivers/pinctrl/bcm/Kconfig | 13 + drivers/pinctrl/bcm/Makefile | 1 + drivers/pinctrl/bcm/pinctrl-brcmstb.c | 1197 +++++++++++++++++ 5 files changed, 1347 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,bcm2712c0-pinctrl.yaml create mode 100644 drivers/pinctrl/bcm/pinctrl-brcmstb.c -- 2.35.3