From patchwork Mon Mar 3 20:54:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 869920 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.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 9D4742343AB; Mon, 3 Mar 2025 20:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741035296; cv=none; b=FIj2UmwYxkJW0e8x7RnA4FhXrQg7g0qkgQs9ikLldM6sfZ12r4kftv8NZ44sjwwi/jt3PGpYbsSRI/dmGtkWjPUAGyEttlPLrUMc5ChWykkrm80TS5tCZ8ECnO+Fw7/e6oBVRXdsN3D1vtX3mP6rfqZ3Vixfhy1BFHuDGo60E4w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741035296; c=relaxed/simple; bh=8Mipz4VrzSKXY8BbbxBUC3KcuVRejyAjsTstQRtR2iA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Kw+Y+8oFobzRbuNw+ME0AwcF54vlvPCgzzihCPf4UBUIZjzSwcP+P6vObtz0Qzl8UlFaGcjfH1i3eC48s9HTspgdR8Nbghu2DUgwu2lD3Z7GCC9GP8suTUUcJUq+vgDuda6XZGUfDolrohantWYNzHgkP+iyclh9K0qmUApgKnM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MpAQzDRX; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MpAQzDRX" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-abf5e1a6cd3so385039066b.2; Mon, 03 Mar 2025 12:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741035293; x=1741640093; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=snTumn4iv+UCdzCDJTBtnrtlkQDZvBl625j3dPFfzu0=; b=MpAQzDRXWISQceG5GckRLXBKgQovTL9Rl+xbP+XaF8cXlc1/b81PxOStojTB0QOgpg 8pUOIwJioRZ0NJFeRyQZLBJG1B1zJJ7gonSRC9gwd3tPqLxhFp4jWRTU6mfFCl5cQLBE gazzpa2NAc+khe+GSTZ8EoubtY8yRxz86ET9OVBA/t/1emnp7kxw17lQ0xBI9ZTATugo Qqr1iaFealvs7Fh8MU8NcKUbQQ2/0tA8LV41x1mBq/OL9hkTXOiNLGTewsE/jq2FUscp AypdPYAn1DVo0gb42kUiGdb9c70d3esCQB4tZRyUXaf7NYbEO/3I0ncRGPnc8LWHWZi1 pObg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741035293; x=1741640093; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=snTumn4iv+UCdzCDJTBtnrtlkQDZvBl625j3dPFfzu0=; b=QAuvLfRPXmbGjKCF8iQF9LqVN262O7H9yFS322a0EiBQLiO1Q4b+cBWWRdr4AEjW6j CP3+z/U95BixWX/laxIu2v2Nv6jYTLh6PcNTjD4H5lOXqqRagmsyNdEiBlJKJo1pAPWE 2ZtgzsextzmF+hIbYzMV1ntCiPYqiXL3i9JFfG1itZJ2eaRH2vwF3kXIkwfR4LVVVlTD MO5HKmuzClF0F3U3H6GmXHd+dut9PYguOS99vrw5cQpORGcznVT8GeGIdGyaiKYQ3Qv6 kkiLGDTQlbdfgbsPE5BXzAFrr7Hkaykuuomb3wx512mCs5e6QYwyq+Juwcs+nBs0jTc0 LYUQ== X-Forwarded-Encrypted: i=1; AJvYcCUHLSeDKzUYaBcIXc225tXc9Q1L9gIQKGcujfm0pkNZ+W3U0iQ/7NhVP5JDJ4CTUAVhWoUJVK5h2PX1SyQw@vger.kernel.org, AJvYcCX6eFOBnc7GvcbOehRY6hUkb9jkLeDPl6PxspH9FVc1c0FfJSA9kOwVz3rNF47HatclcnwDOcv+x8qX@vger.kernel.org X-Gm-Message-State: AOJu0Yx2wJBzCcrD6HP8GKFjUFJe3wpi2U+p7/g8RYwnfIss8vgKPMHP +5hfwe2Sk+lNUJilaNDF3TrN3YvAy9TH5U0yraj3YHJezE2ip8Dn X-Gm-Gg: ASbGnctrqpAlsxf0WRrP07gwQV1AhEnD04PO66JsBGAV2qSzRh/3x00pmtOSHFCx9fV TB4LsT/zLXPkINaYCLp/xEXcozFPWqQkVk5gw4MCMTfSiupbw4RlS8USL/isC5GJaS17Pq0SEBB OV4jhMiQ/4qGvPqliReRDELU+a3WbjELjbJmOFib/0aQgXIeBGupNPVfHFb28ko7+nvDSW1QCPY YWaGl14gmVlRRSBxvJ5uk/0OqntSqdP8uggv2fI5M8cUUazUyJlg7Or8JwiIt9ZBgbUTVea5fAa NiicI2rdCY+fi3h7hQcGsNTH3yW+BQorkhQEP4ONl4F1cg/WfBf0n5pb8Le5OTGiOENEVFejhg1 Q51fI3WeeUWC6f9U= X-Google-Smtp-Source: AGHT+IG/g10nsVVv92x8KyOz2OlyW4WVodWGg3HBsxjosgBYyl/BYl+hV0cPfEb8k67GwIBiy14xgg== X-Received: by 2002:a17:907:7f06:b0:abc:b8c:7b2d with SMTP id a640c23a62f3a-abf261f2f71mr1585598566b.32.1741035292765; Mon, 03 Mar 2025 12:54:52 -0800 (PST) Received: from hex.my.domain (83.8.122.142.ipv4.supernova.orange.pl. [83.8.122.142]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abf76063ab8sm266955566b.73.2025.03.03.12.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Mar 2025 12:54:52 -0800 (PST) From: Artur Weber Date: Mon, 03 Mar 2025 21:54:47 +0100 Subject: [PATCH v3 2/6] pinctrl: bcm281xx: Use "unsigned int" instead of bare "unsigned" Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250303-bcm21664-pinctrl-v3-2-5f8b80e4ab51@gmail.com> References: <20250303-bcm21664-pinctrl-v3-0-5f8b80e4ab51@gmail.com> In-Reply-To: <20250303-bcm21664-pinctrl-v3-0-5f8b80e4ab51@gmail.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stanislav Jakubek , ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1741035289; l=5672; i=aweber.kernel@gmail.com; s=20231030; h=from:subject:message-id; bh=8Mipz4VrzSKXY8BbbxBUC3KcuVRejyAjsTstQRtR2iA=; b=9oOU0M3B/cZQu+4o4ff7u9OZWTBYC3eOTyVocbuvCDdHXvt9CIGD/q5+g3lpI00hz/adioC2a MiYOZyikMsJAlSYN7J6KgmpfQD4NuK0NXixb5Di93HdqiiYHedpf4xF X-Developer-Key: i=aweber.kernel@gmail.com; a=ed25519; pk=RhDBfWbJEHqDibXbhNEBAnc9FMkyznGxX/hwfhL8bv8= Replace uses of bare "unsigned" with "unsigned int" to fix checkpatch warnings. No functional change. Signed-off-by: Artur Weber --- drivers/pinctrl/bcm/pinctrl-bcm281xx.c | 44 +++++++++++++++++----------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/pinctrl/bcm/pinctrl-bcm281xx.c b/drivers/pinctrl/bcm/pinctrl-bcm281xx.c index cf6efa9c0364a1ad65885c982e7634f26d19c944..a039b490cdb8e6c41169bfd48abb371447c150a0 100644 --- a/drivers/pinctrl/bcm/pinctrl-bcm281xx.c +++ b/drivers/pinctrl/bcm/pinctrl-bcm281xx.c @@ -72,7 +72,7 @@ static enum bcm281xx_pin_type hdmi_pin = BCM281XX_PIN_TYPE_HDMI; struct bcm281xx_pin_function { const char *name; const char * const *groups; - const unsigned ngroups; + const unsigned int ngroups; }; /* @@ -84,10 +84,10 @@ struct bcm281xx_pinctrl_data { /* List of all pins */ const struct pinctrl_pin_desc *pins; - const unsigned npins; + const unsigned int npins; const struct bcm281xx_pin_function *functions; - const unsigned nfunctions; + const unsigned int nfunctions; struct regmap *regmap; }; @@ -941,7 +941,7 @@ static struct bcm281xx_pinctrl_data bcm281xx_pinctrl = { }; static inline enum bcm281xx_pin_type pin_type_get(struct pinctrl_dev *pctldev, - unsigned pin) + unsigned int pin) { struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); @@ -985,7 +985,7 @@ static int bcm281xx_pinctrl_get_groups_count(struct pinctrl_dev *pctldev) } static const char *bcm281xx_pinctrl_get_group_name(struct pinctrl_dev *pctldev, - unsigned group) + unsigned int group) { struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); @@ -993,9 +993,9 @@ static const char *bcm281xx_pinctrl_get_group_name(struct pinctrl_dev *pctldev, } static int bcm281xx_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, - unsigned group, + unsigned int group, const unsigned **pins, - unsigned *num_pins) + unsigned int *num_pins) { struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); @@ -1007,7 +1007,7 @@ static int bcm281xx_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, static void bcm281xx_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, - unsigned offset) + unsigned int offset) { seq_printf(s, " %s", dev_name(pctldev->dev)); } @@ -1029,7 +1029,7 @@ static int bcm281xx_pinctrl_get_fcns_count(struct pinctrl_dev *pctldev) } static const char *bcm281xx_pinctrl_get_fcn_name(struct pinctrl_dev *pctldev, - unsigned function) + unsigned int function) { struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); @@ -1037,9 +1037,9 @@ static const char *bcm281xx_pinctrl_get_fcn_name(struct pinctrl_dev *pctldev, } static int bcm281xx_pinctrl_get_fcn_groups(struct pinctrl_dev *pctldev, - unsigned function, + unsigned int function, const char * const **groups, - unsigned * const num_groups) + unsigned int * const num_groups) { struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); @@ -1050,8 +1050,8 @@ static int bcm281xx_pinctrl_get_fcn_groups(struct pinctrl_dev *pctldev, } static int bcm281xx_pinmux_set(struct pinctrl_dev *pctldev, - unsigned function, - unsigned group) + unsigned int function, + unsigned int group) { struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); const struct bcm281xx_pin_function *f = &pdata->functions[function]; @@ -1082,7 +1082,7 @@ static const struct pinmux_ops bcm281xx_pinctrl_pinmux_ops = { }; static int bcm281xx_pinctrl_pin_config_get(struct pinctrl_dev *pctldev, - unsigned pin, + unsigned int pin, unsigned long *config) { return -ENOTSUPP; @@ -1091,9 +1091,9 @@ static int bcm281xx_pinctrl_pin_config_get(struct pinctrl_dev *pctldev, /* Goes through the configs and update register val/mask */ static int bcm281xx_std_pin_update(struct pinctrl_dev *pctldev, - unsigned pin, + unsigned int pin, unsigned long *configs, - unsigned num_configs, + unsigned int num_configs, u32 *val, u32 *mask) { @@ -1207,9 +1207,9 @@ static const u16 bcm281xx_pullup_map[] = { /* Goes through the configs and update register val/mask */ static int bcm281xx_i2c_pin_update(struct pinctrl_dev *pctldev, - unsigned pin, + unsigned int pin, unsigned long *configs, - unsigned num_configs, + unsigned int num_configs, u32 *val, u32 *mask) { @@ -1277,9 +1277,9 @@ static int bcm281xx_i2c_pin_update(struct pinctrl_dev *pctldev, /* Goes through the configs and update register val/mask */ static int bcm281xx_hdmi_pin_update(struct pinctrl_dev *pctldev, - unsigned pin, + unsigned int pin, unsigned long *configs, - unsigned num_configs, + unsigned int num_configs, u32 *val, u32 *mask) { @@ -1321,9 +1321,9 @@ static int bcm281xx_hdmi_pin_update(struct pinctrl_dev *pctldev, } static int bcm281xx_pinctrl_pin_config_set(struct pinctrl_dev *pctldev, - unsigned pin, + unsigned int pin, unsigned long *configs, - unsigned num_configs) + unsigned int num_configs) { struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); enum bcm281xx_pin_type pin_type; From patchwork Mon Mar 3 20:54:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 869919 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 17AEF238D31; Mon, 3 Mar 2025 20:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741035299; cv=none; b=MwqB3pReT9Me5v3J+GU0myl0XPmsG6CkNC6dDz48iVzT0LIAt7tgngGoghx1HUVCFUs5BPNrqzlbs40a58vvDmVwcZBfHt7QndV7Ks/KtA6UFtecOwWV2g2PFbw0aTLXwjxNnjMKhvj/TAsceRJt7tlJt6v9JndQ6vxghccZiNA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741035299; c=relaxed/simple; bh=xRQ8Om8ehQPvJHYxu39ZbgjQg1cKM3esiDGEfRR8xBY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NKbZDzf2cXMzRm34Tbdj1GcG99T7t0Ku8nWgrWLd2jtektcmBE5KTGOZGgJJSNKR0YEOGLmwZgvZOVkA+6AJak2jze+4ZnOarcmFZWFyjhdKQAqJNXqiAmjKquEY4vg6hxp0iuXw+QGYThDOP2/MJ9wNjH2pUDtvVEelb4vUqH8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PUUow0NY; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PUUow0NY" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-abf3d64849dso411151466b.3; Mon, 03 Mar 2025 12:54:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741035296; x=1741640096; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9YQfu5eAZOpEQuO+Sfc4ihsBhzM3CKhym7/o/Ff/aLE=; b=PUUow0NYM/BkDYHefp7055dnMr8vLzrdZHlwueRFgVqs5phYOuT3K+IlGD4s2vsYpd Fp+UX1fHtovA5PrgW0qbg7H1jxZM4hQZcIMTQYghDHyddMpN5B+Wn8XhrWvttu/vJJCm dT6pFpLSaB/fsMGHZCQpQRiWGqznGl3DnM3ndEZY7bHNe3aEXnUHBU82i+m0XQeVqh3U eVz3Q2lg3ivXMnE9CHuw8gMRqSqTBNB4pfgjUkKHVoilHugSUB+/8HMmtY2iPYCTXZ71 FrzkikVzBvEFyMmg97z8keTMS5b4c38bQ3KmtcYASF7g/evOF3cNuOSGDUBirZ3lt8rC vrhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741035296; x=1741640096; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9YQfu5eAZOpEQuO+Sfc4ihsBhzM3CKhym7/o/Ff/aLE=; b=fatfhxqRWOXKxaFuiUMLNGLwwFjwanZJlM5U6kMApUbbuqhlQWqrsqyvyfqAq15J/u ABykoBGbY4a3F1TBZJmUUmSSC8/s0ad+gvc5gRmWGSShp6qONdgF8n9blBO9B7wkVJCW OzjuoZHoVv1oBbZ7GpT+PL8zTKTs95PRHikGB6knEDKGxVq70UHzN6OZVi7KcQI9kEv9 gsNH9Q9NAq/O2bLg8DWbbSBVVs/mF5S86l2cfoOdE89td/NNSaUSBVRyFwVkKOOhRhMk qIag66W1JD+BMtmR49vbrXNusZwbA/rtMproMKdUdrfDjM66tVodowaw7yVXZVFZS6wA RxoA== X-Forwarded-Encrypted: i=1; AJvYcCURhiwcMa/gMTSd/bVW00G8QX13jjt5DxRws5tSQqoSKlse+SlcCJSCV1RIPshiuckrUhXo5xBuUWgo@vger.kernel.org, AJvYcCXtIgBYhteKi4zNqIJqxzaV2WwcMfFzsOPeltBgLhYlwKlbaSaJvFMTOj8SpcruP9e3OC92JpJe9YW/Sc/Y@vger.kernel.org X-Gm-Message-State: AOJu0Ywz5wC7vzOLLOmZoM7NeC6npwkODBExFiriSwCiw4uLUkB9QEkx 0CBmXK4Eh8TAju16hoeiXrrsdypAhvR01XFxvLduyTb9jhHw/6Z/ X-Gm-Gg: ASbGnctGbYlqEJ5pMwaWEPdOdoKJ28ILY1zhIsr5yy3h8RjNqOb/qDBltVBc/3O8GX+ sk1pu57wmGQ3TvwrWPVtE7mpp4qfdkX9KDACki+4HjiETW+8HkHq/MZeykQcSG+Hy9XxbjRre3p hfwqupXt9jQLXRJIyZXzpno0HlXFpc5JJi448JGO6WXNagbNNjHhfrvfVYtDnLlxZULIlP4yh87 Je7PYg+y8UxXf9YGJVBsIDmJ4v/DU93mFYgKnAJlryvXPl64rM+0Z5rmx3nfx6mR+lK0rSfcw3c raBXXyreh5Cl+gTjnJG8YHgVks48tv+OBEaPvMh7CR9coGvyf20h4Sp64f41YoMJFojCs32Sddm ELIOfag0pnLthxRU= X-Google-Smtp-Source: AGHT+IGDI7pPv3lVt+rtcFBB5IROIltZWrNOe4w/ZJaBmmY15fTDvPfbBtSNP4sxXGInWKldhjFdgA== X-Received: by 2002:a05:6402:274b:b0:5e4:d2c9:456c with SMTP id 4fb4d7f45d1cf-5e4d6b4c7c3mr40715061a12.22.1741035296337; Mon, 03 Mar 2025 12:54:56 -0800 (PST) Received: from hex.my.domain (83.8.122.142.ipv4.supernova.orange.pl. [83.8.122.142]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abf76063ab8sm266955566b.73.2025.03.03.12.54.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Mar 2025 12:54:56 -0800 (PST) From: Artur Weber Date: Mon, 03 Mar 2025 21:54:50 +0100 Subject: [PATCH v3 5/6] ARM: dts: bcm2166x-common: Add pinctrl node Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250303-bcm21664-pinctrl-v3-5-5f8b80e4ab51@gmail.com> References: <20250303-bcm21664-pinctrl-v3-0-5f8b80e4ab51@gmail.com> In-Reply-To: <20250303-bcm21664-pinctrl-v3-0-5f8b80e4ab51@gmail.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stanislav Jakubek , ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1741035289; l=896; i=aweber.kernel@gmail.com; s=20231030; h=from:subject:message-id; bh=xRQ8Om8ehQPvJHYxu39ZbgjQg1cKM3esiDGEfRR8xBY=; b=HQJVvUGSXwOhIIYSvhAUlGH8JPKIWUXzeLz6tFP8Ll3GDEsJg1ztwXI+2rQDG0fau3eHN+lGR y4cb5BGlq2aCLM7KnhcV1N0l0k390A3EFWxFn8zbCCboIhienRugbS/ X-Developer-Key: i=aweber.kernel@gmail.com; a=ed25519; pk=RhDBfWbJEHqDibXbhNEBAnc9FMkyznGxX/hwfhL8bv8= Now that the pinctrl driver supports the BCM21664, add a node for pinctrl in the DTS to allow for controlling pinmux pins. Signed-off-by: Artur Weber --- arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi b/arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi index 87180b7fd695e65b52c52743e6315cbcca385fba..d4b412ac8b0343bd3773f50c59a20fa00a3923f8 100644 --- a/arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi @@ -46,6 +46,11 @@ gpio: gpio@1003000 { interrupt-controller; }; + pinctrl: pinctrl@1004800 { + compatible = "brcm,bcm21664-pinctrl"; + reg = <0x01004800 0x7f4>; + }; + timer@1006000 { compatible = "brcm,kona-timer"; reg = <0x01006000 0x1c>; From patchwork Mon Mar 3 20:54:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 869918 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 7534A23959E; Mon, 3 Mar 2025 20:54:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741035301; cv=none; b=Prwt+VwRxH8u1YAEbSxHPF82gdMjcivm+r8pQA+/9vEnh6fE1Wpa78fAbl3/Oz3AFADD5a9Fv6S0L8lwgOdsC67BKBoauKA7Az0ejTpbiMr/CSW1bgnyHqhen0V4DHFndWWSzD8QfkfHNk51RjL0m69wI1L7rLLJ2OobDwPIxr4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741035301; c=relaxed/simple; bh=PoeeTQAJjZ5RdKFBcSwIbKAekpRiUcC0+f84D/Pj5vE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TBgg/r3ddu/9GPoKfebnr4BNJ/swwDJEJKp1/pR9fuvZd45ecZN2tTjn2Bvq3Z/3VQhphwtJQIqjFs/dwGPMfX5aIi0yE0mIhYjTPe9anOEHdUYZDolNt7B8fgQzvegTpH44CRZKOHNVvInJh1T28Y/kQShvDjwlwQr8YqTwWLI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hKItLc4q; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hKItLc4q" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-aaedd529ba1so562773866b.1; Mon, 03 Mar 2025 12:54:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741035298; x=1741640098; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=1pvaaqiA/SmRoJNAwsNTHeXGNX/6oeYrcqiqLNPnA9o=; b=hKItLc4qhzDRvNIdWmi6+l/zj5GzZWpf+j+ViPXl5syOgtHW6zzqclB5kkgpvM+vJ/ 9RGPs46moMF8Uf0fD4E2Ys+vs7lNc6XZa80pXcnZpnPqU5Gl6qwW0pQlpsxwcP3PHWi0 wTytKpKBGw9kVacjGgVHFMZlq++JPG3DqGbNzvJ6iF0QD54NtQsck2M9VrzmnMozwRWq XzCJXH0tidTAGEtPaLwUM7iq+5TFbqBf7s6Nau54sEgr0Jdsj7CgpM4fF81pVPjVBX04 CiSANPYWru4GvS67hDt5WRwCgtroiYczkR/dGg85F3RhF3AzGr9dA0Uv88sHlS/+MMuA rQew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741035298; x=1741640098; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1pvaaqiA/SmRoJNAwsNTHeXGNX/6oeYrcqiqLNPnA9o=; b=b9M6z8F+fy3+CppHxD1vCzOD+voVyT0FFiGjTrydTUiShS6McHWALQEtL/TLNDYhNx N2w1HigOeJxcwni4RX5KsvXW5FYXc4DmFEG6Q28GPEANZrvUJZOazWnCd/wuNr7uDlPz D/jSD0nEd4xElwslkhQyrIaNLHG8fJhqu5XgsuMN523p9PK5jaNwxrFXyz8ZG2zJUwjf et3RgK3LfSlggKnNUc9CWDObzFuqfnLlC7rsalH12rJgHLyvjdbiI2AmY1Fh9NbtZzwU RMD353fSR1e7D4g/bnQe8ILLMWiSJhZ3NVK8INygyamJhmHRWZfABZhuyzQuI4TP8rzj 4XiQ== X-Forwarded-Encrypted: i=1; AJvYcCU8tSfweYJ1GHKZ4QVWHnuAdP4wIR6BepoKfQr8fk04pTRiBg1JfR1kyxfK0hjxBKgdPfD9GgdBFhAq@vger.kernel.org, AJvYcCXv4xvveJCQiDkrcupd9oZ5vwqJkfvKpoTq003QMwygP61dx24irRMh2Szdg79U++MSqjlpudh36Z8OCBjc@vger.kernel.org X-Gm-Message-State: AOJu0YzuoLb6HyjDGVsuoHx+93ocvF2gdD8yx7+Ph+4gumLSzlPkePoT FosSifuKrkHyASy52VjUezcS4tfA+CJT7o7Yt1Q/AZh7/Hi6jfDe/gCGnQ== X-Gm-Gg: ASbGncsyAIRA6ZfC1S6U8J2ltU5ybCY/J1BYbyfpAH1F5oGAHO/vBKTrweX7yf00Ofl v0AJiW6C8wqKG0PpXWFENp6GnTZVPY/4cFzf/0hE03MVg3+iNBozufxNy5XWcdPcrp1bWSb3PH0 f0+Q/F99WXGVPWXk9ZxJjc6nk0me+L4eCmBDz8ASjnmF8WhERkacPP7G+PjS+KXfTlc7130dAIP H0CW6UdxQTiUy2cQnVMja/9l3uQqTWi7l1f2RPTQy/9DgVKoADymYe7YvDbH44OBBjXVrCS5IiT WI5vg97P88iirBzpqEfnVkX8gbdGQ2/ebYPcWvYgFvzn5az5zOMS45y9qRqP83TSNy06V3B4WBa oxAAHRXNy7JwTJ6Y= X-Google-Smtp-Source: AGHT+IGL2YA/WqHKHuyosoZ0FTICgI26SVWArz7fch8CvYRnNoLDjfA4RUT/Cs6K1TVfnuAovJQnFQ== X-Received: by 2002:a05:6402:274b:b0:5e4:d2c9:456c with SMTP id 4fb4d7f45d1cf-5e4d6b4c7c3mr40715184a12.22.1741035297448; Mon, 03 Mar 2025 12:54:57 -0800 (PST) Received: from hex.my.domain (83.8.122.142.ipv4.supernova.orange.pl. [83.8.122.142]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abf76063ab8sm266955566b.73.2025.03.03.12.54.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Mar 2025 12:54:57 -0800 (PST) From: Artur Weber Date: Mon, 03 Mar 2025 21:54:51 +0100 Subject: [PATCH v3 6/6] ARM: dts: bcm2166x: Add bcm2166x-pinctrl DTSI Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250303-bcm21664-pinctrl-v3-6-5f8b80e4ab51@gmail.com> References: <20250303-bcm21664-pinctrl-v3-0-5f8b80e4ab51@gmail.com> In-Reply-To: <20250303-bcm21664-pinctrl-v3-0-5f8b80e4ab51@gmail.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stanislav Jakubek , ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1741035289; l=7006; i=aweber.kernel@gmail.com; s=20231030; h=from:subject:message-id; bh=PoeeTQAJjZ5RdKFBcSwIbKAekpRiUcC0+f84D/Pj5vE=; b=lHUpV2T1pqdq8Pcb9K+DP254BYkt0/S/jSk0n0VTwrRBdmPVBfNHMbAxri/uC1tu3CHQI2caz c6viWOIlAi+BMpIX9XMVgs0a/SDMcc0/RT4lgaP9vMu3qC8toLDnBLR X-Developer-Key: i=aweber.kernel@gmail.com; a=ed25519; pk=RhDBfWbJEHqDibXbhNEBAnc9FMkyznGxX/hwfhL8bv8= Add common DTSI with common pin control configs for BCM21664/BCM23550 and include it in bcm2166x-common.dtsi. The configs are kept in a separate DTSI to keep things cleaner (pin config definitions take up quite a lot of space). Currently contains pins for BSC buses and SD/MMC; more pins can be added in the future. Signed-off-by: Artur Weber --- arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi | 2 + arch/arm/boot/dts/broadcom/bcm2166x-pinctrl.dtsi | 297 +++++++++++++++++++++++ 2 files changed, 299 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi b/arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi index d4b412ac8b0343bd3773f50c59a20fa00a3923f8..f535212cb52fec0668abfc06e7268bead70d958a 100644 --- a/arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2166x-common.dtsi @@ -337,3 +337,5 @@ master_ccu: master_ccu@3f001000 { }; }; }; + +#include "bcm2166x-pinctrl.dtsi" diff --git a/arch/arm/boot/dts/broadcom/bcm2166x-pinctrl.dtsi b/arch/arm/boot/dts/broadcom/bcm2166x-pinctrl.dtsi new file mode 100644 index 0000000000000000000000000000000000000000..51b8730c8feea501f2c5ca6a7bad8233ed708c82 --- /dev/null +++ b/arch/arm/boot/dts/broadcom/bcm2166x-pinctrl.dtsi @@ -0,0 +1,297 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Common pinmux configrations for BCM2166x (BCM21664/BCM23550). + * + * Copyright (C) 2025 Artur Weber + */ + +&pinctrl { + /* BSC1 */ + bsc1_pins: bsc1-pins { + bsc1clk-grp0 { + pins = "bsc1clk"; + function = "alt1"; /* BSC1CLK */ + }; + + bsc1dat-grp0 { + pins = "bsc1dat"; + function = "alt1"; /* BSC1DAT */ + }; + }; + + /* BSC2 */ + bsc2_pins: bsc2-pins { + bsc2clk-grp0 { + pins = "gpio16"; + function = "alt2"; /* BSC2CLK */ + }; + + bsc2dat-grp0 { + pins = "gpio17"; + function = "alt2"; /* BSC2DAT */ + }; + }; + + /* BSC3 */ + bsc3_pins: bsc3-pins { + bsc3clk-grp0 { + pins = "lcdscl"; + function = "alt1"; /* BSC3_CLK */ + }; + + bsc3dat-grp0 { + pins = "lcdsda"; + function = "alt1"; /* BSC3_SDA */ + }; + }; + + /* BSC4 */ + bsc4_pins: bsc4-pins { + bsc4clk-grp0 { + pins = "lcdres"; + function = "alt1"; /* BSC4_CLK */ + }; + + bsc4dat-grp0 { + pins = "lcdte"; + function = "alt1"; /* BSC4_SDA */ + }; + }; + + /* PMBSC */ + pmbsc_pins: pmbsc-pins { + pmbscclk-grp0 { + pins = "pmbscclk"; + function = "alt1"; /* PMBSCCLK */ + }; + + pmbscdat-grp0 { + pins = "pmbscdat"; + function = "alt1"; /* PMBSCDAT */ + }; + }; + + /* SD */ + sd_width1_pins: sd-width1-pins { + sdck-grp0 { + pins = "sdck"; + function = "alt1"; /* SDCK */ + bias-disable; + }; + + sdcmd-grp0 { + pins = "sdcmd"; + function = "alt1"; /* SDCMD */ + bias-pull-up; + }; + + sddat-grp0 { + pins = "sddat0"; + function = "alt1"; /* SDDATx */ + bias-pull-up; + }; + }; + + sd_width4_pins: sd-width4-pins { + sdck-grp0 { + pins = "sdck"; + function = "alt1"; /* SDCK */ + bias-disable; + }; + + sdcmd-grp0 { + pins = "sdcmd"; + function = "alt1"; /* SDCMD */ + bias-pull-up; + }; + + sddat-grp0 { + pins = "sddat0", "sddat1", "sddat2", "sddat3"; + function = "alt1"; /* SDDATx */ + bias-pull-up; + }; + }; + + /* SD1 */ + sd1_width1_pins: sd1-width1-pins { + sd1ck-grp0 { + pins = "mmc1dat7"; + function = "alt6"; /* SD1CK */ + bias-disable; + }; + + sd1cmd-grp0 { + pins = "spi0txd"; + function = "alt2"; /* SD1CMD */ + bias-pull-up; + }; + + sd1dat0-grp0 { + pins = "mmc1dat5"; + function = "alt6"; /* SD1DAT0 */ + bias-pull-up; + }; + }; + + sd1_width4_pins: sd1-width4-pins { + sd1ck-grp0 { + pins = "mmc1dat7"; + function = "alt6"; /* SD1CK */ + bias-disable; + }; + + sd1cmd-grp0 { + pins = "spi0txd"; + function = "alt2"; /* SD1CMD */ + bias-pull-up; + }; + + sd1dat0-grp0 { + pins = "mmc1dat5"; + function = "alt6"; /* SD1DAT0 */ + bias-pull-up; + }; + + sd1dat1-grp0 { + pins = "gpio93"; + function = "alt1"; /* SD1DAT1 */ + bias-pull-up; + }; + + sd1dat2-grp0 { + pins = "gpio94"; + function = "alt1"; /* SD1DAT2 */ + bias-pull-up; + }; + + sd1dat3-grp0 { + pins = "mmc1dat3"; + function = "alt6"; /* SD1DAT3 */ + bias-pull-up; + }; + }; + + /* MMC0 */ + mmc0_width1_pins: mmc0-width1-pins { + mmc0ck-grp0 { + pins = "mmc0ck"; + function = "alt1"; /* MMC0CK */ + bias-disable; + }; + + mmc0cmd-grp0 { + pins = "mmc0cmd"; + function = "alt1"; /* MMC0CMD */ + bias-pull-up; + }; + + mmc0dat-grp0 { + pins = "mmc0dat0"; + function = "alt1"; /* MMC0DATx */ + bias-pull-up; + }; + }; + + mmc0_width4_pins: mmc0-width4-pins { + mmc0ck-grp0 { + pins = "mmc0ck"; + function = "alt1"; /* MMC0CK */ + bias-disable; + }; + + mmc0cmd-grp0 { + pins = "mmc0cmd"; + function = "alt1"; /* MMC0CMD */ + bias-pull-up; + }; + + mmc0dat-grp0 { + pins = "mmc0dat0", "mmc0dat1", "mmc0dat2", "mmc0dat3"; + function = "alt1"; /* MMC0DATx */ + bias-pull-up; + }; + }; + + mmc0_width8_pins: mmc0-width8-pins { + mmc0ck-grp0 { + pins = "mmc0ck"; + function = "alt1"; /* MMC0CK */ + bias-disable; + }; + + mmc0cmd-grp0 { + pins = "mmc0cmd"; + function = "alt1"; /* MMC0CMD */ + bias-pull-up; + }; + + mmc0dat-grp0 { + pins = "mmc0dat0", "mmc0dat1", "mmc0dat2", "mmc0dat3", + "mmc0dat4", "mmc0dat5", "mmc0dat6", "mmc0dat7"; + function = "alt1"; /* MMC0DATx */ + bias-pull-up; + }; + }; + + /* MMC1 */ + mmc1_width1_pins: mmc1-width1-pins { + mmc1ck-grp0 { + pins = "mmc1ck"; + function = "alt1"; /* MMC1CK */ + bias-disable; + }; + + mmc1cmd-grp0 { + pins = "mmc1cmd"; + function = "alt1"; /* MMC1CMD */ + bias-pull-up; + }; + + mmc1dat-grp0 { + pins = "mmc1dat0"; + function = "alt1"; /* MMC1DATx */ + bias-pull-up; + }; + }; + + mmc1_width4_pins: mmc1-width4-pins { + mmc1ck-grp0 { + pins = "mmc1ck"; + function = "alt1"; /* MMC1CK */ + bias-disable; + }; + + mmc1cmd-grp0 { + pins = "mmc1cmd"; + function = "alt1"; /* MMC1CMD */ + bias-pull-up; + }; + + mmc1dat-grp0 { + pins = "mmc1dat0", "mmc1dat1", "mmc1dat2", "mmc1dat3"; + function = "alt1"; /* MMC1DATx */ + bias-pull-up; + }; + }; + + mmc1_width8_pins: mmc1-width8-pins { + mmc1ck-grp0 { + pins = "mmc1ck"; + function = "alt1"; /* MMC1CK */ + bias-disable; + }; + + mmc1cmd-grp0 { + pins = "mmc1cmd"; + function = "alt1"; /* MMC1CMD */ + bias-pull-up; + }; + + mmc1dat-grp0 { + pins = "mmc1dat0", "mmc1dat1", "mmc1dat2", "mmc1dat3", + "mmc1dat4", "mmc1dat5", "mmc1dat6", "mmc1dat7"; + function = "alt1"; /* MMC1DATx */ + bias-pull-up; + }; + }; +};