Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp722058ybh; Wed, 15 Jul 2020 13:25:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhP8JrwvQRKExMvg5VJMoDX4tJ15sITcDcX9pfUIwyLGPQr5GMI2ij1lUEV22yKEtY3gCP X-Received: by 2002:aa7:c808:: with SMTP id a8mr1388409edt.259.1594844744621; Wed, 15 Jul 2020 13:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594844744; cv=none; d=google.com; s=arc-20160816; b=KNvio5L9BI1v0Ap1hogPTyqGkDXYl/ALiytbggkcgRVK/ysv+UPJZUWRrlApvzYiWQ gvFTI3CizdYT3hGJsypfaYXuZFxB4c+I31kpme4+CB9BG3a4LwNbF54LpNJTx6eDgeiv I00kJmDP9Y2XHN7P5wyLZNpwgg9eJq6cuW5f82Vm8eGIFhTXZybozG5otwMWt+/1bm+7 GNhu0em/5fmFHVL2rcvjIZttUkLXR+4E5lwOfE6U6LiXDPcyxZowpb9CpPqpOQJFMB9V BIGsW58Ax69A9sAnqixVKknlqhg5xjDQ/Z+htAMWLBPmn9f6yJlDFwFhJdlCUulyNmog DY/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=YRcdiJ2FPTXeGzSkfMOBjoMowJyaYinCBAoTEPC8AHs=; b=d02qanJ1QsTIXCYQAQgB3ewiMZVReDW3ePufflie8q2T090SFFwEdvg+KKOOx8xczT alKYO4FSUZMjCkOm0MfTn0bNwzJ3F3DFV/Vz0viW+ZXW2ycMxo/i4HfZek/sIPatL8Kl KXq301Imorh6J6oALkyIaa2lRUxa0kwHw6qpNobBWOTgJ7cDuWf6BJN/vCsHAEEyLv/g JpzMX0kZxbrW9kFq620lEJS8T3Odt6ETRc+YQma1/4p1QljZFgeLHQB5BfZLRTuXOcnu N0WAa00Rf18QaTq75PsVkhLnJBisyXNfZ8d6gn4CbU3gwo2Zuu+AYcwStyGKkGVkSUdz PBsg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si1787448ejx.438.2020.07.15.13.25.21; Wed, 15 Jul 2020 13:25:44 -0700 (PDT) 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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728085AbgGOUYR (ORCPT + 99 others); Wed, 15 Jul 2020 16:24:17 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:44158 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726780AbgGOUYQ (ORCPT ); Wed, 15 Jul 2020 16:24:16 -0400 Received: by mail-io1-f68.google.com with SMTP id i4so3631169iov.11; Wed, 15 Jul 2020 13:24:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=YRcdiJ2FPTXeGzSkfMOBjoMowJyaYinCBAoTEPC8AHs=; b=OlYPTYGkwBOYxPM2PMZ9FfEP4L+KUD7DaGtaopJ/MqoF92sKz+HH1sM0S3MFeSqqW2 c+SVw7s0qFWbamb6D7XS41t6g7GevwPo6jLvZGAFpvHyWhzvXkk7X2/5reljCZ3OOUuW AqHF88JdVWISS6OcxRes3UuRQvcpKQaq9x+eeDNx1GQM8cAd/UsLRVgZqR2pzhr3TDVw 6HCwZOgbkwvOm4P/9cN2BR7KP21wBxg5i6hf8faRshHz6LxJKXgTXAksDPW1HLUUUhRE woVKa8i7n4IWPTkidLMP3xvsW7dcUEuYgbm6W194RkRHef4ttTmRPJBQewd5qQV/Bzw/ 6OdA== X-Gm-Message-State: AOAM532JLSw4wFDiubg/wPnETpsGbMTHtq0Yg6r7m4FcHtUsyI95Jmai D3QnkOMeZf/ibbCNC7qDDQ== X-Received: by 2002:a02:b897:: with SMTP id p23mr1327031jam.32.1594844655421; Wed, 15 Jul 2020 13:24:15 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id h1sm1688516iob.8.2020.07.15.13.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 13:24:14 -0700 (PDT) Received: (nullmailer pid 758498 invoked by uid 1000); Wed, 15 Jul 2020 20:24:13 -0000 Date: Wed, 15 Jul 2020 14:24:13 -0600 From: Rob Herring To: Bartosz Dudziak Cc: Bjorn Andersson , Andy Gross , Linus Walleij , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add msm8226 pinctrl bindings Message-ID: <20200715202413.GA755488@bogus> References: <20200627192833.217531-1-bartosz.dudziak@snejp.pl> <20200627192833.217531-2-bartosz.dudziak@snejp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200627192833.217531-2-bartosz.dudziak@snejp.pl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 27, 2020 at 09:28:30PM +0200, Bartosz Dudziak wrote: > Add device tree binding Documentation details for Qualcomm msm8226 > pinctrl driver. > > - Bindings documentation was based on qcom,sm8250-pinctrl.yaml by > Bjorn Andersson and then modified for > msm8226 content > > Signed-off-by: Bartosz Dudziak > --- > .../pinctrl/qcom,msm8226-pinctrl.yaml | 123 ++++++++++++++++++ > 1 file changed, 123 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml > > diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml > new file mode 100644 > index 0000000000..8d8dc15718 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml > @@ -0,0 +1,123 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pinctrl/qcom,msm8226-pinctrl.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Technologies, Inc. MSM8226 TLMM block > + > +maintainers: > + - Bjorn Andersson > + > +description: | > + This binding describes the Top Level Mode Multiplexer block found in the > + MSM8226 platform. > + > +properties: > + compatible: > + const: qcom,msm8226-pinctrl > + > + reg: > + description: Specifies the base address and size of the TLMM register space > + maxItems: 1 > + > + interrupts: > + description: Specifies the TLMM summary IRQ > + maxItems: 1 > + > + interrupt-controller: true > + > + '#interrupt-cells': > + description: Specifies the PIN numbers and Flags, as defined in > + include/dt-bindings/interrupt-controller/irq.h > + const: 2 > + > + gpio-controller: true > + > + '#gpio-cells': > + description: Specifying the pin number and flags, as defined in > + include/dt-bindings/gpio/gpio.h > + const: 2 > + > + gpio-ranges: > + maxItems: 1 > + > + gpio-reserved-ranges: > + maxItems: 1 > + > +#PIN CONFIGURATION NODES > +patternProperties: > + '^.*$': > + if: > + type: object For new bindings, do '-pins$' for the node name pattern so we don't have to do this hack. > + then: > + properties: > + pins: > + description: > + List of gpio pins affected by the properties specified in this > + subnode. > + items: > + oneOf: > + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-1][0-6])$" > + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ] > + minItems: 1 > + maxItems: 36 > + > + function: > + description: > + Specify the alternative function to be configured for the specified > + pins. Functions are only valid for gpio pins. > + > + enum: [ gpio, cci_i2c0, blsp_uim1, blsp_uim2, blsp_uim3, blsp_uim5, > + blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c5, blsp_spi1, > + blsp_spi2, blsp_spi3, blsp_spi5, blsp_uart1, blsp_uart2, > + blsp_uart3, blsp_uart5, cam_mclk0, cam_mclk1, wlan ] > + > + drive-strength: > + enum: [2, 4, 6, 8, 10, 12, 14, 16] > + default: 2 > + description: > + Selects the drive strength for the specified pins, in mA. > + > + bias-pull-down: true > + > + bias-pull-up: true > + > + bias-disable: true > + > + output-high: true > + > + output-low: true > + > + required: > + - pins > + - function > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupt-controller > + - '#interrupt-cells' > + - gpio-controller > + - '#gpio-cells' > + - gpio-ranges > + > +additionalProperties: false > + > +examples: > + - | > + #include > + msmgpio: pinctrl@fd510000 { > + compatible = "qcom,msm8226-pinctrl"; > + reg = <0xfd510000 0x4000>; > + > + gpio-controller; > + #gpio-cells = <2>; > + gpio-ranges = <&msmgpio 0 0 117>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupts = ; > + }; > -- > 2.25.1 >