Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6185999rwb; Tue, 9 Aug 2022 10:30:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR4V4cPsDfsPx4+2KxgDAzJRd+KJTq+azsYwZKL0HHa1BWYwtANorN6LYUvp6393dna/azq5 X-Received: by 2002:a05:6402:2499:b0:440:942a:40c2 with SMTP id q25-20020a056402249900b00440942a40c2mr11119489eda.37.1660066212422; Tue, 09 Aug 2022 10:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660066212; cv=none; d=google.com; s=arc-20160816; b=ml66TBahbz+Q7Dk4sV3Ki+ydq66faLkF0bu4YqNmLHtKOcUyVOBWmSfgEvo/IkWPzq Fn1GLjJGnMH1BWYJa9qfinphMzzN2Jjr+zJj+3BqqoknZJErXH58TiDC/8hnfVrwID+O 1B1y9JjKiIOx8dnWpRGXzjOnL6VaB/RDsegjrzVB2sBMGmt3VKSjztl4pRY9Hu7mFf9y JiqbXoFRNynjPD4ScBdijr9DNwOMUDtuZ4+0ltAITF1WsVOqdjJxjn2wyvzXbzu2LB7f 2I+doMvK3o6+R3tYDXyaggd3ur9rn2Gkhv93OIcU0nfUbxw1POJ2d+0xXRxLntZ6fYWQ +dvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y545aVrkkuDGPQff6D7mZBdsso6g+4hQEnF5Ijp4clg=; b=UJlvi3rUXplnf4eg1mATz5/Btkz4X0ofn0ARPZVt3A24+K/fMXzP2zK0gqknNIcf+l yTyFZw9FQnGu8Qvk4RIdzk+jE0xLTYCgNFwOtPTdf4G6meL7arTPQj4LrISDgvK3jm8x euW4kCRmTQg+d2T7AkWA5KVFkqC1WkDwTJOEJgS+0fpDnQQPr6RB2dapk+mCo2F3Iuqz ijTMtKLHixV7zUQyml4w7880B734zlaWFfyo/2X53IemFM1fMxj7UDGj5vkTOaSyZZ3+ GjAO9r/S3GQHDLNBeuZs0JMAHlghig9P0tMimuiVJWHK/syZqIr1J+DH2vq7ZmwREnhu /YYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=mwm18OvA; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a05640235c100b0043bd6cf51d1si10853073edc.530.2022.08.09.10.29.44; Tue, 09 Aug 2022 10:30:12 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=mwm18OvA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245017AbiHIRVA (ORCPT + 99 others); Tue, 9 Aug 2022 13:21:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244508AbiHIRU6 (ORCPT ); Tue, 9 Aug 2022 13:20:58 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7BA23BDF for ; Tue, 9 Aug 2022 10:20:57 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id z16so14993203wrh.12 for ; Tue, 09 Aug 2022 10:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=y545aVrkkuDGPQff6D7mZBdsso6g+4hQEnF5Ijp4clg=; b=mwm18OvAvb3DN1qMcM6AJRveexnF9QeK2qJBPRDNYGf7ZskAiyyp7cqKO+165fN9Ny cnRcxxAYqIZnMVfhFK2yPzYW9JA9JBZT6ocT+r+5QfEA8ofsx/1r5jPDKCqMJv5T7cDh 0iXVd0XPxwIs1T4eBVIWlcS5pJ0rs0qizPcAQODhbdftpgVKKoHdJ2EvkmGNqXnVw+0D iyOGoPeNcS0PLvl6QA3MtERhJQSzgs+ILk8UFg2k30D+BH0Bt3IKZiY/Tof4etb7r6KQ jQ3V6EEtmFNaQXUD3SfXHZjC060HODxuj2msch63CZSE14EwVFCd8fzIegfKJ6D2gjh4 ppyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=y545aVrkkuDGPQff6D7mZBdsso6g+4hQEnF5Ijp4clg=; b=m7k6LXiKW6Cveu85FtQudE6zxI78ztkBcpJXNlD8lQUzC7mDIMIlMbaeJFJ3lmaEkg fKZ5gOVC5TkmOaULV9SYd9l2xYXgh4marYm0jGF3lixDFCVrjSyqrnHHuJyqJYInTaPa 97oemRsKCUylQXhVj/2blakNxDFs0c3Zggv9aRgGvq5KmhgUpBrnJ2nkTZ2S145gY3jK 2n9SZQApkSion3QDwLmVXbEYM4jDUVy5bNVCgfOHqhoKlkKGQ5W2qT5LvUHT09EWR68b TSAv4fuCnMyEsDyx62vUzBA2gy41qZvU2LZzEigSIoE0xAnWBOvlwKoUgWp1/A5Y1DEd +BlQ== X-Gm-Message-State: ACgBeo0TF97zo/LPw8eLlZBB8k+8s0T6tTfpHkjhBNBRfd1MY2R8NYM1 IGVRbdz1XnQizmrPi+2J3A6Tag== X-Received: by 2002:a5d:63cb:0:b0:21e:b81d:8b0d with SMTP id c11-20020a5d63cb000000b0021eb81d8b0dmr14767021wrw.526.1660065656092; Tue, 09 Aug 2022 10:20:56 -0700 (PDT) Received: from localhost.localdomain (210.145.15.109.rev.sfr.net. [109.15.145.210]) by smtp.googlemail.com with ESMTPSA id b3-20020a05600010c300b002206261cb6esm13915030wrx.66.2022.08.09.10.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 10:20:55 -0700 (PDT) From: Amjad Ouled-Ameur To: broonie@kernel.org Cc: linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, narmstrong@baylibre.com, Amjad Ouled-Ameur , Da Xue Subject: [PATCH 1/2] spi: dt-bindings: amlogic, meson-gx-spicc: Add pinctrl names for SPI signal states Date: Tue, 9 Aug 2022 19:20:16 +0200 Message-Id: <20220809172017.215412-2-aouledameur@baylibre.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220809172017.215412-1-aouledameur@baylibre.com> References: <20220809172017.215412-1-aouledameur@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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 --- .../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 50de0da42c13..10707a8216f5 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 + + pinctrl-1: + maxItems: 1 + + pinctrl-names: true + if: properties: compatible: @@ -69,6 +77,13 @@ else: items: - const: core + pinctrl-names: + minItems: 1 + items: + - const: default + - const: idle-high + - const: idle-low + required: - compatible - reg -- 2.37.1