Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1579422pxb; Thu, 4 Mar 2021 15:21:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxWr8XR6Dnu4XeODvWt87BOVmvy0QLe7vSwPh7z4QM076MzYTYUeb6ALLJEULA3UckQA97 X-Received: by 2002:a05:6e02:1885:: with SMTP id o5mr5705056ilu.78.1614900112062; Thu, 04 Mar 2021 15:21:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614900112; cv=none; d=google.com; s=arc-20160816; b=BvozL7gxJJa/5VG5hfuIakAdK1jUt6J51+HcPFnzugFilbjAVAseWF4Y2GAzJKMpb1 +qHk4Vd/jML3kAwrVX/0wcJLEJt/JUpqch77vHwIRQ1QCKzvxMthNE691csIaAoanh0K tFrYlWjWq+MYsHe3I9eFwc2jocC2sYerLz0MQ541mI47pxCIumpvkkxV2KnDxr3W7mOg 8rz12KO6DUWewwvKofo53Cec0+BFya07SaKjE5T4hD2S4kF2Iaocxcj2RC/NCGv8MJ9K l5CUnFnd95LvOu0zu3lJHeo1nFk2VXhpA0HLrOox6EDZVTz1CvJkmcXNCZ28UXCiwFvA 1cHA== 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:to:from :dkim-signature; bh=qbm9/SWx08/nIVkUic7xUt6DD5RVdbp6U4+K6ZbTeg0=; b=sK2XrmGGIxg/0+9anAKPxAubrrNO6qUgBtEDU8gkQXyfr5bawsT9dft0ltwClEAsxS kkC5s/af7JDIvM8PiCknPKt6Wru05drkRFjT2YkT5BECD+RAT0AM5oLrLxl3g1X08o/L 6qjT3rUDsb6R1uAPL7OcU1ZLHw4inmL6Ul+5Be+1N7FFo6L1BACdqaK+MxhGAOLm9G4i kojYjS/+wQ3u0P/mOnDRyqtU7+UQv/Chg6OWnYCcBqRhBfye/k+bndXJQzULzo0W/P1T u30ZRAVVOlqj26VbxV8CDiZCqX48KRBovCBPgjj3bh8lvkZQd2dCGp7Wq9ZCq0R6ZHKR GQwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K5gZGH8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si895862jat.35.2021.03.04.15.21.39; Thu, 04 Mar 2021 15:21:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K5gZGH8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233851AbhCCRgo (ORCPT + 99 others); Wed, 3 Mar 2021 12:36:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243415AbhCCO3X (ORCPT ); Wed, 3 Mar 2021 09:29:23 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAFC1C061797; Wed, 3 Mar 2021 06:23:17 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id u16so5875860wrt.1; Wed, 03 Mar 2021 06:23:17 -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=opc2HzsU2hCr2F5T7rTWAR4+4l97oflwCIkZPuKI5BV+v4j3aRiWiO0dwnCahm0XeN +6Rw63TgOLaiagv2Wncxnt55eLpsfVl4gOf9d/mHrrnXfMP+53P5Yxb2Q7SqSJ4Ta65b 6RNbAM/DgQGOpPPbj3V/uim1LJzTLKttq0ovd4Z1EGLt60BwN99jZvS1DosPEN5+baqU CJQCX2nqCKxXpn5f+ob5FpDguytINpFUCaKPOcO5lWVtQ5WpfMAHycKqh9HkCL23BbfP iiAXjFZd58zjcVYJdcQGeOiJf31KSlTumGNMqahkhqdXvEfS13Gzw4wQblt8Y+JLW+WU UP1g== X-Gm-Message-State: AOAM530pdISxwf9ibNWreDWZGW3xCjKYUzTtpDSz84gve6GtFTejSuPw RKVAEImqDfl7jq2IBP4qgmY= 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=20Fern=C3=A1ndez=20Rojas?= To: Linus Walleij , Rob Herring , Michael Walle , Bartosz Golaszewski , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Jonas Gorski , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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"; + }; + }; + }; -- 2.20.1