From patchwork Mon Mar 15 11:42:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 12139033 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D9FBC433DB for ; Mon, 15 Mar 2021 11:55:17 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9406D64E98 for ; Mon, 15 Mar 2021 11:55:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9406D64E98 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=aZLZKuALVaOR6LiwJKWPEoGpB2a3D5wZaXwwrca02JY=; b=J/QD/Bo5xXRDSac23sJY9kCyC NZ/RSzMno3rS+rfEu1OUssNVbAyEeKo6rnsG7nv4xCFNiqKbgJKbLy6n/bAlVTa+w81bx0kW3MBdw mHgkyYy1DYgr3vA9eXg2C2TkD9CAE7NfqltOdTBfsd1ozkBAIbIrvsUjfdrKnY9KOfPMS2Wv6dLV/ dWzt5s5CxJVFQlEWs4rAY33SYh3ySXH9Y6N4q19zW35vzuVDFlLZ11fYD0xKwrKw6CrZpCqdXCr5p 56+SgthBrXwwDrYQAtda1s3dCrWd2lRaDC9o0XVHixp7jzV/a0BKSTcK6gbpfE6fqIpniJP1SKz3+ D2oi0kBbw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLlkG-00FiCZ-QH; Mon, 15 Mar 2021 11:50:49 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLlc9-00Fgrn-Ar for linux-arm-kernel@lists.infradead.org; Mon, 15 Mar 2021 11:42:39 +0000 Received: by mail-wr1-x433.google.com with SMTP id 7so8514885wrz.0 for ; Mon, 15 Mar 2021 04:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=GqVQqLtYyNRe5C0eLguSaXhhiH7/vsuK6Vi8nc9N5YI=; b=aAwUW77SRWiZCZhR3hap8t4tQU7KDLhJd20GZtcz3l7BK1ksW4NZv/5E0ff/xz+Mvu hcGL/BgzkpMmjIgjw3wCU0Grec8jpWWkstzY1RiTLZIIk+mJul4NcwExmaAoRF60SbUv mRBKB7HRwNLPUQSEKepeOSipwsxNTF6oStA/qyZNcdLrE/fZjXEMwDL2NghvyUJjrqHZ sPn7IhwwaObdCNL0haxXhqZ8xBr+6fRaEz2Pl3HzTq8CbwI5PsM89CLppyy106pMHjmS RKtGbcR3T3rFWhXtYURRCsZPYPu+eqV+ryJe/1krRWKBqgoxSoex8paxHzCKXEt0uVVQ uUGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GqVQqLtYyNRe5C0eLguSaXhhiH7/vsuK6Vi8nc9N5YI=; b=PDK7OEkJOF0Me6RjtV2PmXCfyBMFbX1yeJb7WoGbRrUJGkvgteU9fmzYYl/FVSBwyW mTcil9ZhuhzH1Fqw4P0qntdYvx9I6+EUBN+zg5UmjdZ7j/LdIBOeaKKRcqPfPAIdUgNZ 3jgllwskqCjDFywZvckz1/dRsXdjiWXnTY3vfZOGt1sXbu2SLehaWdQJBMPAg6tQ53Kn u18KnrThs94fznuL4TdgjmYiyPUxEZQa7veO15nJ9FtQc1hAG1CSP3B/b8dPjDDdhsEn Rx4y0sfgPejopW26JJJSy9RU9lJVMp0/kj9alOkdLNv9CPqefDNs5DjzVuEB/RDJMcYA uQug== X-Gm-Message-State: AOAM532Q45cbRSrrIBHAyAJcc8znBAM0bYS3Gssi8KM0kBjbzagb4cls a2TWf688dtq9UBX3Q4Mu7nI= X-Google-Smtp-Source: ABdhPJxr4O1/9PFQg5FfuERrMcQighQGsby5DDmROk3YM/wuWRkANkwLPNaf1NZfWma6+2GVVpfZlw== X-Received: by 2002:a5d:6049:: with SMTP id j9mr26573737wrt.117.1615808544955; Mon, 15 Mar 2021 04:42:24 -0700 (PDT) Received: from skynet.lan ([80.31.204.166]) by smtp.gmail.com with ESMTPSA id v189sm12648187wme.39.2021.03.15.04.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 04:42:24 -0700 (PDT) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Lee Jones , Michael Walle , =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Roja?= =?utf-8?q?s?= , Jonas Gorski , Necip Fazil Yildiran , Andy Shevchenko , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 08/22] dt-bindings: add BCM6358 pincontroller binding documentation Date: Mon, 15 Mar 2021 12:42:00 +0100 Message-Id: <20210315114214.3096-9-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210315114214.3096-1-noltari@gmail.com> References: <20210315114214.3096-1-noltari@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_114227_128880_70C33680 X-CRM114-Status: GOOD ( 15.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add binding documentation for the pincontrol core found in BCM6358 SoCs. Co-developed-by: Jonas Gorski Signed-off-by: Jonas Gorski Signed-off-by: Álvaro Fernández Rojas --- v7: add changes suggested by Rob Herring v6: add changes suggested by Rob Herring v5: change Documentation to dt-bindings in commit title v4: no changes v3: add new gpio node v2: remove interrupts .../pinctrl/brcm,bcm6358-pinctrl.yaml | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml new file mode 100644 index 000000000000..65e28c8ae8ce --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6358-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM6358 pin controller + +maintainers: + - Álvaro Fernández Rojas + - Jonas Gorski + +description: |+ + The pin controller node should be the child of a syscon node. + + Refer to the the bindings described in + Documentation/devicetree/bindings/mfd/syscon.yaml + +properties: + compatible: + const: brcm,bcm6358-pinctrl + + reg: + maxItems: 1 + +patternProperties: + '^.*-pins$': + if: + type: object + then: + properties: + function: + $ref: "pinmux-node.yaml#/properties/function" + enum: [ ebi_cs, uart1, serial_led, legacy_led, led, spi_cs, utopia, + pwm_syn_clk, sys_irq ] + + pins: + $ref: "pinmux-node.yaml#/properties/pins" + enum: [ ebi_cs_grp, uart1_grp, serial_led_grp, legacy_led_grp, + led_grp, spi_cs_grp, utopia_grp, pwm_syn_clk, sys_irq_grp ] + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pinctrl@18 { + compatible = "brcm,bcm6358-pinctrl"; + reg = <0x18 0x4>; + + pinctrl_ebi_cs: ebi_cs-pins { + function = "ebi_cs"; + groups = "ebi_cs_grp"; + }; + + pinctrl_uart1: uart1-pins { + function = "uart1"; + groups = "uart1_grp"; + }; + + pinctrl_serial_led: serial_led-pins { + function = "serial_led"; + groups = "serial_led_grp"; + }; + + pinctrl_legacy_led: legacy_led-pins { + function = "legacy_led"; + groups = "legacy_led_grp"; + }; + + pinctrl_led: led-pins { + function = "led"; + groups = "led_grp"; + }; + + pinctrl_spi_cs_23: spi_cs-pins { + function = "spi_cs"; + groups = "spi_cs_grp"; + }; + + pinctrl_utopia: utopia-pins { + function = "utopia"; + groups = "utopia_grp"; + }; + + pinctrl_pwm_syn_clk: pwm_syn_clk-pins { + function = "pwm_syn_clk"; + groups = "pwm_syn_clk_grp"; + }; + + pinctrl_sys_irq: sys_irq-pins { + function = "sys_irq"; + groups = "sys_irq_grp"; + }; + };