From patchwork Wed Mar 3 14:23:01 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: 12113703 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,URIBL_BLOCKED, 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 1E032C433E0 for ; Wed, 3 Mar 2021 15:32:13 +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 EF02564ED0 for ; Wed, 3 Mar 2021 15:32:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF02564ED0 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=nrc1uWyCZC4k8e0p2sP/RnlHUKb4aSCor1+8GKJvJwk=; b=WcVb/nZ+WBeRfNgeFx1vJaGJw Jty0pm1sB5E2J0qCWN4ia907XbNygTX1IPytypHo5fhkPC6cca6EhMKQBfp+4ZtwAchX0XdbLe2tt P5gneIoP/YCkRwZadqWxDMcOJSZ5WxDitII96cTC9UJKqoFImJMae47wb/4pwFB9ZgRycfsW7uAXd uYHSJHlElmEAkz3C/VpbyKgVur0ZE/MniD+Q/to3IIuR5hsB5IjdeUg7YySjZAlIOnu1MeWD3buZ0 ztCBYybouhrzDV9LEaWI0DbTSmiWec4jFbIjoKnwGNH99MrrY2twfEUb+nb7kP7Y0/D6PsqaWQ4qj KZHy43JEQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lHTRd-005OE0-3j; Wed, 03 Mar 2021 15:29:49 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHSSU-0057jR-Dh for linux-arm-kernel@desiato.infradead.org; Wed, 03 Mar 2021 14:26:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description; bh=qbm9/SWx08/nIVkUic7xUt6DD5RVdbp6U4+K6ZbTeg0=; b=ha559H5MrEZA4EeMTFE/AdvnJc xwzeHz6fwfgGHVlnYCaHwej/I/zc9oafpEVRwBaWampeGsrxZ8grzaJ2j1VejJkq+seoAx3D1SBjG PFJKdC5vM/gPCKIRsJBxMv73v564etLdNuqptsnFEL21wvp0y1kc0dImJBTGOrPZb7fhTCsTTQbyo DxObkINIP3SCqdyBe3DrHFyFtm6U5HAKOPNT1r3GHPqY2vL9PNYHOt6x6IziIxtphqyH2GDKLTT3v PFWR522DiYTvdCwVXgSymZ8/xwY1xPL+JXAx/2BDNZSn5l4bFt9Rtm6kBDU+07O01S0x71jhWwPGR X6EC5Eig==; Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by casper.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHSQI-002vyJ-As for linux-arm-kernel@lists.infradead.org; Wed, 03 Mar 2021 14:24:26 +0000 Received: by mail-wr1-x42e.google.com with SMTP id b18so17395736wrn.6 for ; Wed, 03 Mar 2021 06:24:19 -0800 (PST) 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=qbm9/SWx08/nIVkUic7xUt6DD5RVdbp6U4+K6ZbTeg0=; b=K5gZGH8f/9lAkQI6saXlg+k6iI/LNE9XE5CUqwzb9uNJAQuUweKmhN0B71Xwnsrr0I Y2opGvjU8KfUoNHIlplCTIcFck4FIAyIahjIFdnBvBGDksTOXLY9e4kj77vwJletkjT9 nQO7dho0/GVcjysRck8KVV0V8AUWP2lWZb3EBLz2uHf5jjpmUc1oLyupQLOlcCAabXgi jFOC7w9aMMAaHOd9yBYRLybyz5hbid81w6z4CXTv/j5SQ1ciTgDG5sZQhlewu2Np//bc WNRuYgOmbivwTufQFRAXRTHSM7i8qZY+Hy4bPs4PxzRsSTCRr8dTsrJIRc0/BjRrbbpq u9hw== 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=qbm9/SWx08/nIVkUic7xUt6DD5RVdbp6U4+K6ZbTeg0=; b=Htg4U8x7n/SAlyl4yY9+wtxdmc5MojyRR2o9u2EfbI+oPC5irWK/KA/+A4gUFKnWUv 6wPFyoweysCd1U1vb72+eNfVia1ZqW2Z6uc4BgvHzFG3we8u0xhYoRylNrr9uT+zFMB6 6YVVDxi4rOEYUC2YRCj2KCkqYNkEsWGpqdJHxgOoaf7icb3kf5SAW63Woxfd/aPh8Iqp eyfc4nMD1hARfOrgmS07YfuoQc4tHsLVb9UNj7SatXQKtv6teSRo4GNVfoe+gIZiWhsJ SQuJnpndq8bP6ADXSRKYkEfx0bhu5OstzAXfGbDYvQlV6NkmhRC0xAtG7En4VgefbfSW HZ6Q== X-Gm-Message-State: AOAM531z38YDeIcAZ8qdrSLaGx+Lmb5fS4iupECN89ucvBbi/R2Yuvxi eGtNRlzV5ClZ53+GQ6C0LQk= X-Google-Smtp-Source: ABdhPJyPNGrlJSq/uk5ZfDC2jfp/a7tI6+vz1UNIemtM4xxVu06XF4usCEyeg5fLpxpK40/HvEgSwQ== X-Received: by 2002:adf:fe01:: with SMTP id n1mr27630282wrr.341.1614781396373; Wed, 03 Mar 2021 06:23:16 -0800 (PST) Received: from skynet.lan (170.red-88-1-105.dynamicip.rima-tde.net. [88.1.105.170]) by smtp.gmail.com with ESMTPSA id b15sm7876219wmd.41.2021.03.03.06.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:23:16 -0800 (PST) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: Linus Walleij , Rob Herring , Michael Walle , Bartosz Golaszewski , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Jonas Gorski , =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= , Necip Fazil Yildiran , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 05/14] Documentation: add BCM6358 pincontroller binding documentation Date: Wed, 3 Mar 2021 15:23:01 +0100 Message-Id: <20210303142310.6371-6-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210303142310.6371-1-noltari@gmail.com> References: <20210303142310.6371-1-noltari@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210303_142426_471008_1F2E5383 X-CRM114-Status: GOOD ( 13.53 ) 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. Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Jonas Gorski --- v3: add new gpio node v2: remove interrupts .../pinctrl/brcm,bcm6358-pinctrl.yaml | 137 ++++++++++++++++++ 1 file changed, 137 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..eb14dd4cdaaa --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml @@ -0,0 +1,137 @@ +# 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 + +patternProperties: + '^gpio$': + type: object + properties: + compatible: + const: brcm,bcm6358-gpio + + data: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Offset in the register map for the data register (in bytes). + + dirout: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Offset in the register map for the dirout register (in bytes). + + gpio-controller: true + + "#gpio-cells": + const: 2 + + gpio-ranges: + maxItems: 1 + + required: + - gpio-controller + - gpio-ranges + - '#gpio-cells' + + '^.*$': + if: + type: object + then: + properties: + function: + $ref: "/schemas/types.yaml#/definitions/string" + enum: [ ebi_cs, uart1, serial_led, legacy_led, led, spi_cs, utopia, + pwm_syn_clk, sys_irq ] + + pins: + $ref: "/schemas/types.yaml#/definitions/string" + 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 + +additionalProperties: false + +examples: + - | + gpio_cntl@fffe0080 { + compatible = "syscon", "simple-mfd"; + reg = <0xfffe0080 0x80>; + + pinctrl: pinctrl { + compatible = "brcm,bcm6358-pinctrl"; + + gpio { + compatible = "brcm,bcm6358-gpio"; + data = <0xc>; + dirout = <0x4>; + + gpio-controller; + gpio-ranges = <&pinctrl 0 0 40>; + #gpio-cells = <2>; + }; + + pinctrl_ebi_cs: ebi_cs { + function = "ebi_cs"; + groups = "ebi_cs_grp"; + }; + + pinctrl_uart1: uart1 { + function = "uart1"; + groups = "uart1_grp"; + }; + + pinctrl_serial_led: serial_led { + function = "serial_led"; + groups = "serial_led_grp"; + }; + + pinctrl_legacy_led: legacy_led { + function = "legacy_led"; + groups = "legacy_led_grp"; + }; + + pinctrl_led: led { + function = "led"; + groups = "led_grp"; + }; + + pinctrl_spi_cs_23: spi_cs { + function = "spi_cs"; + groups = "spi_cs_grp"; + }; + + pinctrl_utopia: utopia { + function = "utopia"; + groups = "utopia_grp"; + }; + + pinctrl_pwm_syn_clk: pwm_syn_clk { + function = "pwm_syn_clk"; + groups = "pwm_syn_clk_grp"; + }; + + pinctrl_sys_irq: sys_irq { + function = "sys_irq"; + groups = "sys_irq_grp"; + }; + }; + };