From patchwork Wed Jan 8 12:54:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 11323493 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1350A109A for ; Wed, 8 Jan 2020 12:55:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DC81E206F0 for ; Wed, 8 Jan 2020 12:55:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="OJVfdC2z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727262AbgAHMz6 (ORCPT ); Wed, 8 Jan 2020 07:55:58 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51132 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbgAHMz6 (ORCPT ); Wed, 8 Jan 2020 07:55:58 -0500 Received: by mail-wm1-f66.google.com with SMTP id a5so2382681wmb.0 for ; Wed, 08 Jan 2020 04:55:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bdtpbTs9T4GbtVdHi/XNrhbno1vREs2paRznkMKkr6Y=; b=OJVfdC2zxbnX5OXOhp8PI+J8q+MT0PB0Bz0xcJ7CnJIDiJAxDPthu/UpowbYL28Hug GZnkxFv5mGjCwaktlWCNN3KzWDA/oXyE8+ShwWSXexSk1fAIZZNG04fgfqkxzcEeW2VS ssF/fzYTrUX3xOqJ6vAkuzNyyDPe36UEruYH05uz4dOLZtg9lpnoQsDNE2rtAz5Mbvjy y/Lr2IivklAmWcfsthwApX6cgAiTnSJ31ArCZcYyjnxpQMdOfV99ROCrfLhl5GpsLdLx pH/gIMS5aRVH/lxDI2Y95w3txZu0/QQQ/XXhJ2j9sAXumkBlByPOWs7w1sgKsCO3rcr5 Ky3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bdtpbTs9T4GbtVdHi/XNrhbno1vREs2paRznkMKkr6Y=; b=rq9ntiYTnzpFyVS/UlgIwPDBTFkDakBtQjWK5wSlT6S4n+tv3f8kk9ik4GSQjkb/K4 3vdG3wELqUeXjNvF6DsvyTLEzaOOuwBh1HX063tLNbl2dppNeAmIND2X7HVRGcAgRG0S APKOxTevaHDZzkgtKYT5khaKk3/80ne85cThTaTTEyGJ3UgE8liLH1BoTys4v1P1Hjf2 e72nYZwLnfMq1WgW1A+yU+21HGV1I7PLpV4r0Mnnm5xWwmRlr9DcqDKEpjTCDPD54YJs AyMGCBIjDM7GurJYB6V+xdPOgIqbjI/F67edktXpLv9t/mA9i1zTvGuzE9QvMDBybvI+ yqLQ== X-Gm-Message-State: APjAAAWvLRQEKPfVisOWjw84aRzoSiDvrYx9sjKR81JIBIZMnfYejpEj 0FJfg4bePJwTFiJrYCzbxffzuA== X-Google-Smtp-Source: APXvYqxuqRgRDpSyCXwMzN5jh6YP1cietWwlaiVE4CDUS7pATCAd4OqdAfXN/s/MZE8G0yEIhUOxLw== X-Received: by 2002:a1c:2dcd:: with SMTP id t196mr3644438wmt.22.1578488155588; Wed, 08 Jan 2020 04:55:55 -0800 (PST) Received: from localhost.localdomain (93-143-224-199.adsl.net.t-com.hr. [93.143.224.199]) by smtp.googlemail.com with ESMTPSA id k7sm3598475wmi.19.2020.01.08.04.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 04:55:55 -0800 (PST) From: Robert Marko To: agross@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Bjorn Andersson Cc: Christian Lamparter , Sven Eckelmann , Linus Walleij , Robert Marko , Luka Perkov Subject: [PATCH v2 1/2] ARM: dts: qcom: add gpio-ranges property Date: Wed, 8 Jan 2020 13:54:55 +0100 Message-Id: <20200108125455.308969-1-robert.marko@sartura.hr> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Christian Lamparter This patch adds the gpio-ranges property to almost all of the Qualcomm ARM platforms that utilize the pinctrl-msm framework. The gpio-ranges property is part of the gpiolib subsystem. As a result, the binding text is available in section "2.1 gpio- and pin-controller interaction" of Documentation/devicetree/bindings/gpio/gpio.txt For more information please see the patch titled: "pinctrl: msm: fix gpio-hog related boot issues" from this series. Reported-by: Sven Eckelmann Tested-by: Sven Eckelmann [ipq4019] Reviewed-by: Bjorn Andersson Reviewed-by: Linus Walleij Signed-off-by: Christian Lamparter Tested-by: Robert Marko [ipq4019] Cc: Luka Perkov Signed-off-by: Robert Marko --- Changes since v1: - Split ARM and ARM64 DTS changes into separate patches arch/arm/boot/dts/qcom-apq8064.dtsi | 1 + arch/arm/boot/dts/qcom-apq8084.dtsi | 1 + arch/arm/boot/dts/qcom-ipq4019.dtsi | 1 + arch/arm/boot/dts/qcom-ipq8064.dtsi | 1 + arch/arm/boot/dts/qcom-mdm9615.dtsi | 1 + arch/arm/boot/dts/qcom-msm8660.dtsi | 1 + arch/arm/boot/dts/qcom-msm8960.dtsi | 1 + arch/arm/boot/dts/qcom-msm8974.dtsi | 1 + 8 files changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 8b79b4112ee1..2687c4e890ba 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -350,6 +350,7 @@ reg = <0x800000 0x4000>; gpio-controller; + gpio-ranges = <&tlmm_pinmux 0 0 90>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; diff --git a/arch/arm/boot/dts/qcom-apq8084.dtsi b/arch/arm/boot/dts/qcom-apq8084.dtsi index 0a0fb147ebb9..4cc2d33f3d3b 100644 --- a/arch/arm/boot/dts/qcom-apq8084.dtsi +++ b/arch/arm/boot/dts/qcom-apq8084.dtsi @@ -401,6 +401,7 @@ compatible = "qcom,apq8084-pinctrl"; reg = <0xfd510000 0x4000>; gpio-controller; + gpio-ranges = <&tlmm 0 0 147>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index 72d4e290b543..b6e5203a210b 100644 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi @@ -201,6 +201,7 @@ compatible = "qcom,ipq4019-pinctrl"; reg = <0x01000000 0x300000>; gpio-controller; + gpio-ranges = <&tlmm 0 0 100>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 16c0da97932c..4021f661cd11 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -119,6 +119,7 @@ reg = <0x800000 0x4000>; gpio-controller; + gpio-ranges = <&qcom_pinmux 0 0 69>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; diff --git a/arch/arm/boot/dts/qcom-mdm9615.dtsi b/arch/arm/boot/dts/qcom-mdm9615.dtsi index 356e9535f7a6..347b4f7d7889 100644 --- a/arch/arm/boot/dts/qcom-mdm9615.dtsi +++ b/arch/arm/boot/dts/qcom-mdm9615.dtsi @@ -128,6 +128,7 @@ msmgpio: pinctrl@800000 { compatible = "qcom,mdm9615-pinctrl"; gpio-controller; + gpio-ranges = <&msmgpio 0 0 88>; #gpio-cells = <2>; interrupts = ; interrupt-controller; diff --git a/arch/arm/boot/dts/qcom-msm8660.dtsi b/arch/arm/boot/dts/qcom-msm8660.dtsi index ec5cbc468bd3..480fc08cbe8e 100644 --- a/arch/arm/boot/dts/qcom-msm8660.dtsi +++ b/arch/arm/boot/dts/qcom-msm8660.dtsi @@ -115,6 +115,7 @@ reg = <0x800000 0x4000>; gpio-controller; + gpio-ranges = <&tlmm 0 0 173>; #gpio-cells = <2>; interrupts = <0 16 0x4>; interrupt-controller; diff --git a/arch/arm/boot/dts/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom-msm8960.dtsi index f2aeaccdc1ad..172ea3c70eac 100644 --- a/arch/arm/boot/dts/qcom-msm8960.dtsi +++ b/arch/arm/boot/dts/qcom-msm8960.dtsi @@ -107,6 +107,7 @@ msmgpio: pinctrl@800000 { compatible = "qcom,msm8960-pinctrl"; gpio-controller; + gpio-ranges = <&msmgpio 0 0 152>; #gpio-cells = <2>; interrupts = <0 16 0x4>; interrupt-controller; diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 369e58f64145..1689cf925b03 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -707,6 +707,7 @@ compatible = "qcom,msm8974-pinctrl"; reg = <0xfd510000 0x4000>; gpio-controller; + gpio-ranges = <&msmgpio 0 0 146>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; From patchwork Wed Jan 8 12:54:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 11323507 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 20D511395 for ; Wed, 8 Jan 2020 12:56:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E8C4E2073A for ; Wed, 8 Jan 2020 12:56:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="gxypxAsr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728359AbgAHM43 (ORCPT ); Wed, 8 Jan 2020 07:56:29 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35298 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728311AbgAHM41 (ORCPT ); Wed, 8 Jan 2020 07:56:27 -0500 Received: by mail-wm1-f68.google.com with SMTP id p17so2411405wmb.0 for ; Wed, 08 Jan 2020 04:56:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ew1hz14XJ1Dpt7wqzV49Fz4wnBuxCyRMUnILoU48lls=; b=gxypxAsrA7ptvZE2WNq/4Gvs+ShKj4YOKRQ8w14R1Z6OMietrucCnBNzKTCZtyEQ0A TzuNqzF5b6KNoNDoJ1ClCbR2cseQL5T3zXt3ooqStSjf65XrkdpzT4evxeVZNthHmMlO S6aePC/A0TfH0U4cWVPihY12e9/tKFQEH6SEclrIyskOld7lgOL2FfyzRsCVRv0uun32 1be1SrNjFiVA3JM6tEz9rcmsh7HC41PV1r/141jT5PDy6ID468hBWrBCrOQMQe1ZUBUU 4KEJ1s+9u3S4UdeXCvBdjXLlnd0581gRk3Eu1tW1OLs5QbAF5tsF0ikj5TBCi9hKd7/X Aoog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ew1hz14XJ1Dpt7wqzV49Fz4wnBuxCyRMUnILoU48lls=; b=JzBMSRHPgp4Q4BFTXk0jbbJQhvM1LseMpMQaNiyPzwid8KPhT1cwrWZG3BaeXPo9+I mRpP83n8yaUDm8VAE8wW1jah8VcWa6Dg3uokAGaLQQxBYXycQd4FQyKCxHDbac455znp Y52unS3sVz9JkL88v9Q0NMXJTjnstvaJ1nvPmuI9UXFpUHzkJHd/MGjfMuw+5IQ211JM 2X0KoNRaikLyNSqwYcpOX/1T7tK5rLzb9bkz7p7GXuCwHbutXQws8MNTnVk961o8AKva ODiACgQvric4IEpZC2BANy7vi8gCuyUQ1v7NtaQ6qG5gRtJXTC5FGFIBssOo5+pD8G8b PgpQ== X-Gm-Message-State: APjAAAW5DNewyNjR6T95XXYFbT66yvijFL3GW2DfBUUOywk5/uendCEI MW4eysg6P+Ypv7Tmzw7LtET5cQ== X-Google-Smtp-Source: APXvYqwiysuJ7YPCjw5v19f+VxUh6uIylHpXDzD6fU9bVJY3KzMo1iKtdkQvEY457UMon5Y8mLS6qw== X-Received: by 2002:a1c:9d52:: with SMTP id g79mr3783156wme.148.1578488185459; Wed, 08 Jan 2020 04:56:25 -0800 (PST) Received: from localhost.localdomain (93-143-224-199.adsl.net.t-com.hr. [93.143.224.199]) by smtp.googlemail.com with ESMTPSA id k7sm3598475wmi.19.2020.01.08.04.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 04:56:25 -0800 (PST) From: Robert Marko To: agross@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Bjorn Andersson Cc: Christian Lamparter , Sven Eckelmann , Linus Walleij , Robert Marko , Luka Perkov Subject: [PATCH v2 2/2] ARM64: dts: qcom: add gpio-ranges property Date: Wed, 8 Jan 2020 13:54:57 +0100 Message-Id: <20200108125455.308969-2-robert.marko@sartura.hr> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200108125455.308969-1-robert.marko@sartura.hr> References: <20200108125455.308969-1-robert.marko@sartura.hr> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Christian Lamparter This patch adds the gpio-ranges property to almost all of the Qualcomm ARM platforms that utilize the pinctrl-msm framework. The gpio-ranges property is part of the gpiolib subsystem. As a result, the binding text is available in section "2.1 gpio- and pin-controller interaction" of Documentation/devicetree/bindings/gpio/gpio.txt For more information please see the patch titled: "pinctrl: msm: fix gpio-hog related boot issues" from this series. Reported-by: Sven Eckelmann Tested-by: Sven Eckelmann [ipq4019] Reviewed-by: Bjorn Andersson Reviewed-by: Linus Walleij Signed-off-by: Christian Lamparter Tested-by: Robert Marko [ipq4019] Cc: Luka Perkov Signed-off-by: Robert Marko --- Changes since v1: - Split ARM and ARM64 DTS changes into separate patches arch/arm64/boot/dts/qcom/ipq8074.dtsi | 1 + arch/arm64/boot/dts/qcom/msm8916.dtsi | 1 + arch/arm64/boot/dts/qcom/msm8992.dtsi | 1 + arch/arm64/boot/dts/qcom/msm8994.dtsi | 1 + arch/arm64/boot/dts/qcom/msm8996.dtsi | 1 + 5 files changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 67ee5f560104..2b31823d3ccd 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -21,6 +21,7 @@ reg = <0x1000000 0x300000>; interrupts = ; gpio-controller; + gpio-ranges = <&tlmm 0 0 70>; #gpio-cells = <0x2>; interrupt-controller; #interrupt-cells = <0x2>; diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 5ea9fb8f2f87..2d1cbe762b3a 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -374,6 +374,7 @@ reg = <0x1000000 0x300000>; interrupts = ; gpio-controller; + gpio-ranges = <&msmgpio 0 0 122>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; diff --git a/arch/arm64/boot/dts/qcom/msm8992.dtsi b/arch/arm64/boot/dts/qcom/msm8992.dtsi index 8be60c08a9ab..2021795c99ad 100644 --- a/arch/arm64/boot/dts/qcom/msm8992.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8992.dtsi @@ -171,6 +171,7 @@ reg = <0xfd510000 0x4000>; interrupts = ; gpio-controller; + gpio-ranges = <&msmgpio 0 0 146>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi index 3932757f78b7..b1c2d7d6a0f2 100644 --- a/arch/arm64/boot/dts/qcom/msm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi @@ -133,6 +133,7 @@ reg = <0xfd510000 0x4000>; interrupts = ; gpio-controller; + gpio-ranges = <&msmgpio 0 0 146>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 87f4d9c1b0d4..81576aeb2408 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -1234,6 +1234,7 @@ reg = <0x01010000 0x300000>; interrupts = ; gpio-controller; + gpio-ranges = <&msmgpio 0 0 150>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>;