Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp971300rdb; Tue, 30 Jan 2024 04:27:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IELlSx3OCPRF3l7fVBSHYBaF8jcl/XB+nJ4+ZZ+g+BytXOEYgc6Et/+tx1ukzYkKX9Fd43e X-Received: by 2002:a17:90a:e38a:b0:294:347:4fa3 with SMTP id b10-20020a17090ae38a00b0029403474fa3mr4012167pjz.9.1706617633528; Tue, 30 Jan 2024 04:27:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706617633; cv=pass; d=google.com; s=arc-20160816; b=t5GwRnlSj1U5fQKhe6UK+8BUsOoaIIqAoj9EvZTgsp/mUPP5o+XrxSFim6+Cq1CHTm o+ZHB7I5KQRBvEC7HSpdFKKJHO/nQ6wS5acs59FlXVpy9bke8yfZyupohhsfeOs73J/M p94WNo9yhk82pNNp0OTFKOKvWg5n0D/c/ZIVP4ypeKJhya+aTp4Hl2SRiXmlDJhr84nV ZMrQczE8sY5sddDBAFC77AFROQOVU1/jXCijWoTsNkrxfUO0gt/IEA3OxnqAx12pbyMV TiIN7N+ON+OlJXp6n3BEQNMgNPeuFFoWniTpSeVptEJE1VXnf7u7ydyOfe/bvF8LsYOk z65A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=6Cg42jMmh8yB78v9tW9O2QrPA3XJnOTs63T0IGlo0Ag=; fh=dJ1q3+X1MlAjNzq6lYxIp+hjN+kLv6+OZFT7LzXKY3I=; b=oO1XsuHHcxa0JXFiTZvvD2TsEvYjGwJqjGNcl2KdkWbhHlLXgQr2grUGfXdEcVwPfX S+RXXIVmSqAkwtjU4nU5c0VQpm7Ce4CxH9Qu/wzNkeohKuk0vmoP1pJZwHbBDghsG+B3 o2TyMtqGB28y5kJWxCZ8pjDUwNg9R4rY7vdtYTGo4Atoo5kxjoFN1XN13AqQKOAOj1eU x6SW9ULt4unTz0GvNE3U9Vrtvq1XPTM5St7X+19vds2uAZUD2fUtM2VxYirPcw0cmtzI 0gfsBkqxxAW8VaaU1vDx4sMYt9mDSH5MzK/ZslvZFCTWF0WpupbyAHDPjCvftt3M34ee sdWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=dEYyiex9; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-44602-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f12-20020a17090ab94c00b0029364060cb1si7417703pjw.33.2024.01.30.04.27.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:27:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44602-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=dEYyiex9; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-44602-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 31A74288A45 for ; Tue, 30 Jan 2024 12:27:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 098556A00E; Tue, 30 Jan 2024 12:27:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="dEYyiex9" Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (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 D141867E78 for ; Tue, 30 Jan 2024 12:27:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706617624; cv=none; b=Pq2HM9kGP/HKpoFmRXcKaxrCJXVDV5KxB6zdHO58T3R+StaWeRjCf+9nZWhyGifdY4PTMQGx3eXLMNcseJXhycpFNcuiY4gFG/zFfnsacS8bVX7PqPwSmtFnRaxB0QjYaGsqqkUFmj3DX3BMO0WLipnvMOXBn1H4EhUvUqqZMlA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706617624; c=relaxed/simple; bh=GGdqrxBG/Y3kLs+G2Ip6CA1IfInjv/UEkQbeiGuRPmY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gbRw4G+LRvR/Pko73qRXXRS3ztPBcGseeLF4LjsKn2zunZYDE/5oYQN/KrTF5jbR+bZeOwKkzq+FqCxk/FrzsGawxmtSJDnFXxybn4itlKzle8MPQWCIR6PJsVPDLQhrCK62ZJ126K6/ptiKIitpccFLzmrAKA3/cirO/IUWsnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com; spf=pass smtp.mailfrom=9elements.com; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b=dEYyiex9; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=9elements.com Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-295c1110b8aso179955a91.2 for ; Tue, 30 Jan 2024 04:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1706617622; x=1707222422; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6Cg42jMmh8yB78v9tW9O2QrPA3XJnOTs63T0IGlo0Ag=; b=dEYyiex9KVkCRIISxp56fZ7qsiGAsbWAM3c9kMYiIj7u+/IF7KA8r38EmN3iVfBbJ1 5bqsRPln0o+4eP9Yx2K9c+pH4f1FmVwTHaC/WNFI9o13V6ZuoI+t3Dc8t0keMKomq0NW elzL2Fv4d9IL37hhCS2xdzA5xAzqJ3o187aRmHUNy44WqURUG4XpIFEZO4t9Rga1Wgb7 m08AN5Jq0neQ+FUQ+ov/gNe3RX2IkNaIg6JYwTsu6bVNZox6gBPIDnfX4J7ILqckdKq6 WrwZATuVXJkALTbITzxHSOZJOZvzpG9Oe8+Wn0GRVXL4Ssil37tuehnUn7EFq7P/uLvc r6lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706617622; x=1707222422; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6Cg42jMmh8yB78v9tW9O2QrPA3XJnOTs63T0IGlo0Ag=; b=cBDPTRfztEizcfSPh+0ieUrF22/y0KPmILDbSM13ca21oTWlo+e6kb57RNF3ZD6iSE T8VYzv0uVm/ty/d2FNGMjAKUrgCeltHPMG2xvf35K8HaJwNvods4VyUn31uPLRwnI1QH /ZQpfXSvebXckbn2Zlm4do2KomHsCdG3iVXNHNU6Ndw8gnjwHqsUh/3rYZTRxa6iiiKb bGyeaEDZIBWsZeMpEz2Pwn1PFKAdzc8lkzvZGeqJYqI1jVggMfp+uZpmMsI9URonN5mH EexsvKJ5nxI1MAxGwgeyjDdcOHyMA3AQFEiLVoOTz8SgV1J0QcPGrmcRLlodOSXC3BIv 0GvA== X-Gm-Message-State: AOJu0YwWsdpEl1EcEF0L8zyuNIIhgksAXcXS9EwREKtrLRbE/vRpxLiY Hs7cyk0MwJXPbpCl0bPbrBGKzUCiWXEWbEEPKw7HqzIqKxJ+XuOxo27+kh7aL+jRZ67i/90rgo4 DTNTmQ5sskhVY8cveHZWw9NaEdpaIkElLQgz3+Q== X-Received: by 2002:a17:90a:f2d1:b0:293:f46e:a354 with SMTP id gt17-20020a17090af2d100b00293f46ea354mr3843800pjb.3.1706617622223; Tue, 30 Jan 2024 04:27:02 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130120807.460335-1-naresh.solanki@9elements.com> In-Reply-To: From: Naresh Solanki Date: Tue, 30 Jan 2024 17:56:51 +0530 Message-ID: Subject: Re: [PATCH v2] dt-bindings: pinctrl: cy8x95x0: Minor fix & update To: Krzysztof Kozlowski Cc: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Patrick Rudolph , mazziesaccount@gmail.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Hi Krzysztof, On Tue, 30 Jan 2024 at 17:49, Krzysztof Kozlowski wrote: > > On 30/01/2024 13:08, Naresh Solanki wrote: > > Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio > > reserved ranges. > > Add input-enable property to allow configuring a pin as input. > > Rearrange allOf > > Why? allOf is aligned with other implementations. > > > Update example. > > > > Signed-off-by: Naresh Solanki > > --- > > .../bindings/pinctrl/cypress,cy8c95x0.yaml | 28 +++++++++++++++---- > > 1 file changed, 23 insertions(+), 5 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml > > index 7f30ec2f1e54..89ce0cb68834 100644 > > --- a/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml > > +++ b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml > > @@ -45,7 +45,8 @@ properties: > > maxItems: 1 > > > > gpio-reserved-ranges: > > - maxItems: 1 > > + minItems: 1 > > + maxItems: 60 > > > > vdd-supply: > > description: > > @@ -85,6 +86,8 @@ patternProperties: > > > > bias-disable: true > > > > + input-enable: true > > + > > output-high: true > > > > output-low: true > > @@ -101,6 +104,9 @@ patternProperties: > > > > additionalProperties: false > > > > +allOf: > > + - $ref: pinctrl.yaml# > > + > > That's not a correct placement. ok. Will remove this specific change. > > > required: > > - compatible > > - reg > > @@ -112,9 +118,6 @@ required: > > > > additionalProperties: false > > > > -allOf: > > - - $ref: pinctrl.yaml# > > - > > examples: > > - | > > #include > > @@ -133,6 +136,21 @@ examples: > > interrupts = ; > > interrupt-controller; > > vdd-supply = <&p3v3>; > > - gpio-reserved-ranges = <5 1>; > > + gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>; > > + > > + pinctrl-0 = <&U62160_pins>, <&U62160_ipins>; > > + pinctrl-names = "default"; > > + U62160_pins: cfg-pins { > > + pins = "gp03", "gp16", "gp20", "gp50", "gp51"; > > Your indentation is totally broken. sorry I missed checking on this before sending the patch for review. will fix it to use two space for indentation. Regards, Naresh > > > Best regards, > Krzysztof >