From patchwork Fri Dec 15 14:39:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Renner Berthing X-Patchwork-Id: 179337 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9324140dys; Fri, 15 Dec 2023 06:41:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZMub8KvDIXxdaNVqHONt9PvXDXjNdq76/Dtp8KeK9vtCHeKk2O/uWKf+eYREpmsI8+PnB X-Received: by 2002:a05:6808:152c:b0:3b8:b2d8:a853 with SMTP id u44-20020a056808152c00b003b8b2d8a853mr15067315oiw.22.1702651280825; Fri, 15 Dec 2023 06:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702651280; cv=none; d=google.com; s=arc-20160816; b=LjQp53W7JW7cRmonOVuGcX1p4u9//N3tXAfKBFY5+PuN7Qphej+j1+xlducKs6cYrl ko/r3kuAwMmZM4iYPUUUpWJJFzBNjeQ5MQFW95pth6t4PMaBMJyvptXtdFfsGnmf39eR p1e7XHG70Rob5eOklHa1msgAYQk7uFaOVv9zVFIc2RyChr2m2vD9Bqn1E+sSKUmo2Stn iR5up+8RwitMX7FLT/mkMwAzilVYB21z8lOqfrI6V5H6rWCaApcTLCr0eXuFQg8VBSxJ b3zY2cAHdXawd7Nr6MIzxB00mgJCWw/Kyu0vD/pPdhBkgp/KV8FDWKrWk6DpkJOH2883 3ctg== ARC-Message-Signature: i=1; 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:cc:to:from:dkim-signature; bh=5d0QhzVl7C6w8MyPA6on/NHcmfCtxfOh1Mcdqcw1JG8=; fh=OM9YRsSqaovi1zSzd002NUfKlbXNOiGY8kXK1PMZNQs=; b=rpw0ETMPwMXgSxYXb207IMxFxjK5UwS8RhqwDycoZWgM+SQGbA8gO+iTbjpCVPAz0D nrDaASW//W7pbqGuq5D52Jw50YcnYhovUUCU31Pqs88R5wPKlORtDvKA6HzTO0GjGpgg NPCQx7wPN5Fe2AODDUD+1TdqR1rZn/LgSWrAeWlQDnZa0KS33lNk7UfUIxPwBOTvxkeZ PNNM++8vUwVi+TnvcYRCX95OhMvQjpBH6M8yTIp1yjPLMHz7iHbOsYuWFlPsD5YzMBPo SovG4zaXbHj4KTeCO7BTlJaTbmWPFPr8e+RCNDt60TTTgQYqYtHK/pg2gI5hrUj3IGMR 4Jdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=bYyoIIIo; spf=pass (google.com: domain of linux-kernel+bounces-1116-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1116-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e11-20020a05620a014b00b0077f3b7d0e93si7445353qkn.192.2023.12.15.06.41.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 06:41:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1116-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=bYyoIIIo; spf=pass (google.com: domain of linux-kernel+bounces-1116-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1116-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 978F91C23656 for ; Fri, 15 Dec 2023 14:41:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CCEB3BB3E; Fri, 15 Dec 2023 14:39:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="bYyoIIIo" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BD8A364D2 for ; Fri, 15 Dec 2023 14:39:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 60A533F2D4 for ; Fri, 15 Dec 2023 14:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1702651155; bh=5d0QhzVl7C6w8MyPA6on/NHcmfCtxfOh1Mcdqcw1JG8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bYyoIIIowGXb8//aNctKmzMiKCGa/JuSam238X5sqVLTTfamCwaOp7byQroAeLf2R MkGlJ1IidyBUf0UKL/XL7gLyGGutEzIjB0ko1xeZiAXQx33oBqUs5rR27H8tyN8doy S56IVYdK5c3wnNaOjB0LcJXycO+UoG0vZ1Fzj3pLP0xHCmq0mBaX2F3D0CQjs6C43O 3caJXM2Lf1rt2UZHjwgsajr48phtYwpKLhZjWSqaWc1/rW6iNpWNCdK9y2TtTXgLLj sTbi/lhNSnPO3P6PNXoDdIxyoz6pdF8CcLgyTb95wYQ7kUwH1Bb06/6zXKQ4MmSWDK aMxKWbDOXELwg== Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-5528b4ab7bbso375016a12.0 for ; Fri, 15 Dec 2023 06:39:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702651155; x=1703255955; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5d0QhzVl7C6w8MyPA6on/NHcmfCtxfOh1Mcdqcw1JG8=; b=AGWKNN3TsykFH4i70UYSOYTDSfxiALTfCzntLc2t7qomIRBtU5TjzmFdB6jC9waW+k TZfIsTN5f6hwIiY8njsqKkGNHf6VcjrtpliXJCTLAqUshEKnJG13Je6yzIJIhD3jXgyr zT/BJ9zVLmklM2s1se/5E09P3U/ahy4wrG98APcWTPVqYcQZ9dPa7cLOjQU83bGdz2rw 6j/y7CK1yInQl5wQ6OMTql4T+GJKVchNC17QD5ePgZkiZwE8FQn2GkGzFZPzIOfXKTTe UNCtRHWxhIcdhFKb0YkQbyzdrpHYkIwa0HtEHDWuVMZKwjKM7zQXo+oeNBcQOuN8h+BS VAwA== X-Gm-Message-State: AOJu0YxxH2VdK/w+IW2E8MevnyFVd/c91suC1hC7VN+p5rt3FTgCgC75 1sB3BWY6AWdgNQdIuzldUxXxMNgvbKGdzwZH8g1CQvfzKtu3W1camR5/cmKg0/M7zKzbnkGSbty R4Ksw6GJmNDgYj1e5M+jjlfqOii6arMUt3Zy1KuTyBg== X-Received: by 2002:a17:907:e88:b0:a1c:ad6e:f27b with SMTP id ho8-20020a1709070e8800b00a1cad6ef27bmr3397168ejc.78.1702651154972; Fri, 15 Dec 2023 06:39:14 -0800 (PST) X-Received: by 2002:a17:907:e88:b0:a1c:ad6e:f27b with SMTP id ho8-20020a1709070e8800b00a1cad6ef27bmr3397152ejc.78.1702651154724; Fri, 15 Dec 2023 06:39:14 -0800 (PST) Received: from stitch.. ([152.115.213.158]) by smtp.gmail.com with ESMTPSA id tm6-20020a170907c38600b00a1db955c809sm10789122ejc.73.2023.12.15.06.39.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 06:39:14 -0800 (PST) From: Emil Renner Berthing To: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Hoan Tran , Serge Semin , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt Subject: [PATCH v1 4/8] dt-bindings: gpio: dwapb: allow gpio-ranges Date: Fri, 15 Dec 2023 15:39:02 +0100 Message-Id: <20231215143906.3651122-5-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231215143906.3651122-1-emil.renner.berthing@canonical.com> References: <20231215143906.3651122-1-emil.renner.berthing@canonical.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785359269269039098 X-GMAIL-MSGID: 1785359269269039098 Allow the generic gpio-ranges property so GPIOs can be mapped to their corresponding pin. This way control of GPIO on pins that are already used by other peripherals can be denied and basic pinconf can be done on pin controllers that support it. Signed-off-by: Emil Renner Berthing Acked-by: Rob Herring --- Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml index eefe7b345286..ab2afc0e4153 100644 --- a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml @@ -65,6 +65,8 @@ patternProperties: minItems: 1 maxItems: 32 + gpio-ranges: true + ngpios: default: 32 minimum: 1