Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1589344rwb; Wed, 5 Oct 2022 01:42:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6XQOyeTFoMLJEFaPVlnPMiWLqHDeIpDpWexqwQvx9uzksiOx1Ar7n+mT62O9bcZunFBDok X-Received: by 2002:a05:6402:414f:b0:456:c2c1:23ec with SMTP id x15-20020a056402414f00b00456c2c123ecmr28344748eda.420.1664959339690; Wed, 05 Oct 2022 01:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664959339; cv=none; d=google.com; s=arc-20160816; b=uYRNWc/PDnc1Glqz6POBnbxkR5F1BIrs4Hd7vb58ZXmumVvHlSYf0LIocdQs7NCYcQ 3wApEhV97Lg/vFOuSXye7w6e2GQ/LpmDFyeUlTclIv8vJJWj7GVwngcr2vJEmT0fJMro vDNtlla8Ve5heAiT1Cs9ypLtfhK7JdD74DcJxqUejX4V2GhpmlWgNF3H5ebxhljihUxZ nZm02QnmBDIN2Gh64QzihGJFUy9lg3Eyl4vSbAiTDPlGJtORvgqLPxkk/QJ4Yxv0vZ+X 6nA2tOTDjPRjuY8y6IkpsHYeRTvuF/7PvavZARI5RlZAsXj8HxUbHr5roMxZBRtl6+t5 jx7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Y0uHbn035tWwWO1RtVHpJOVJwEZiCVXw2pgVenq9fnw=; b=f4eWdxtJYzFxL8p5hBgYmHB+J9VA8ZSD8KmuYW8cHdtFGdDLL0v14tEmtmSSU69QgH +xSeSZJ5ZM8feiTqElLk9FYzUl0wwryff2lsSm6AiD0+7BE1HqGL/KVTU+L7rkUlxJHB gZZlaUzw5DdlzfjkL5imQRd8ax9aoAi4gzVnekEQ1TO2bZPI5iODxJpPZqLO81fMUrDX Sm+vkYB8sLx539Iuq09eVCljqMajFZFdsepJ0u6tNFeX1LB/VkWJKhqDR3Wr/ZvLYqcl 8fOeWhWM9a7Lw5gxa2WRKsK34WsBVWu41Vg1Vf6IHrdgiLElHPDxUiqYAT9/13XK0bmc 8zrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Xn/CjIA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020a05640225c200b00447b0cc1501si13287133edb.99.2022.10.05.01.41.53; Wed, 05 Oct 2022 01:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Xn/CjIA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229983AbiJEIOU (ORCPT + 99 others); Wed, 5 Oct 2022 04:14:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbiJEIOQ (ORCPT ); Wed, 5 Oct 2022 04:14:16 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36CE72851 for ; Wed, 5 Oct 2022 01:14:14 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id z4so24495718lft.2 for ; Wed, 05 Oct 2022 01:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=Y0uHbn035tWwWO1RtVHpJOVJwEZiCVXw2pgVenq9fnw=; b=Xn/CjIA/NowDCL3dCSGCkqk0O2+030/EAsGXX/lTaALu9eI3v3CFG/SO7ED4xUlqAN N31qdCJHbTdPefleT2DVAgFt+rNYlXodKuw+POSA3Sp1TpURdVbbIVzPgtdi4CMduil6 8Enj6zNwfEHEIu52i/KBgKsGfFNXJez8OokYjqfekYe3t+1SRb4VPH75kSGFKeYgXAGX 4BB7c+BSd8WmhWm3Yw7g2MKnp7mmMb+7GSXjZWqj3O8Ce3T5XNC2PXlzZ0/sHh6coZDa wDpSfNla/jFPJS+GdqJMb7pUrfkf2JwJrw5P3pNndHjWt9rx/qGzjC6WEHgnhwfGIfme jPeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=Y0uHbn035tWwWO1RtVHpJOVJwEZiCVXw2pgVenq9fnw=; b=bOCB1Wq9XMKodNHdmbQv8IGP5q/enhYEriWL3WevVocCl4xZIkC/sfDJDEndL2KuBc OGOccMCI+0dHapgLsHJ1OAzBGBi51t5fsFSoWKq+SO6u4Y2RiEfRFFB7AMDeapriamRl RmrKJn4lnaImdot2XciI6Ejce5vW/3kuh8oA3cpDfZU9H9bY63KJvgXnfVQ6nRZqm1LQ 6Lwl3uooh3NUhZBGIWZHJblkNvkgZXHYPYRphlxqvhCIWizQEsAeBGV+nNND43rYt5oe W7bLnUoGhmcwJ3XIO828FlKdWmwRwB0BrVBBqf3BvBxA1dEzLw3NxjosVFb8KQ5ypsL7 qzYQ== X-Gm-Message-State: ACrzQf3ofej7M0ryCVo0e988VyXvbHGY7vXJ7iUv/lXl3xW4hVZ56uUe WIgpRjr/Co3+5znK36Aeg4eeTA== X-Received: by 2002:a05:6512:1084:b0:4a2:eb2:9d9e with SMTP id j4-20020a056512108400b004a20eb29d9emr10128640lfg.553.1664957653264; Wed, 05 Oct 2022 01:14:13 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g22-20020a05651222d600b0048b143c09c2sm2252172lfu.259.2022.10.05.01.14.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Oct 2022 01:14:12 -0700 (PDT) Message-ID: Date: Wed, 5 Oct 2022 10:14:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v2 1/2] spi: dt-bindings: amlogic, meson-gx-spicc: Add pinctrl names for SPI signal states Content-Language: en-US To: Amjad Ouled-Ameur , Krzysztof Kozlowski , Neil Armstrong , Rob Herring , Martin Blumenstingl , Kevin Hilman , Jerome Brunet , Mark Brown Cc: Da Xue , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20221004-up-aml-fix-spi-v2-0-3e8ae91a1925@baylibre.com> <20221004-up-aml-fix-spi-v2-1-3e8ae91a1925@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20221004-up-aml-fix-spi-v2-1-3e8ae91a1925@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/2022 13:10, Amjad Ouled-Ameur wrote: > SPI pins of the SPICC Controller in Meson-GX needs to be controlled by > pin biais when idle. Therefore define three pinctrl names: > - default: SPI pins are controlled by spi function. > - idle-high: SCLK pin is pulled-up, but MOSI/MISO are still controlled > by spi function. > - idle-low: SCLK pin is pulled-down, but MOSI/MISO are still controlled > by spi function. > > Reported-by: Da Xue > Signed-off-by: Neil Armstrong > Signed-off-by: Amjad Ouled-Ameur > --- > .../devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml b/Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml > index 0c10f7678178..53013e27f507 100644 > --- a/Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml > +++ b/Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml > @@ -43,6 +43,14 @@ properties: > minItems: 1 > maxItems: 2 > > + pinctrl-0: > + minItems: 1 maxItems? > + > + pinctrl-1: > + maxItems: 1 > + > + pinctrl-names: true Why do you need all these in the bindings? > + > if: > properties: > compatible: > @@ -69,6 +77,13 @@ else: > items: > - const: core > > + pinctrl-names: > + minItems: 1 > + items: > + - const: default > + - const: idle-high > + - const: idle-low This does not match what you wrote in the bindings - you mentioned only two set of pin controls. Best regards, Krzysztof