From patchwork Tue Oct 5 14:43:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 515249 Delivered-To: patch@linaro.org Received: by 2002:ac0:890a:0:0:0:0:0 with SMTP id 10csp1986644imy; Tue, 5 Oct 2021 07:43:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1lwWCT1qVjM7y/caSZvgGxyUNXwSsIpqFgAciiA8emLN2mWinUtszwnv19dv0lAQohgnS X-Received: by 2002:a05:6402:1cbb:: with SMTP id cz27mr26215943edb.376.1633445024763; Tue, 05 Oct 2021 07:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633445024; cv=none; d=google.com; s=arc-20160816; b=IG65PB6yaOHJ5UV9T9/gdHPMH6lF0/dwbxS47fX07FzDnY8WS1uZCS8n/TC2uCsOlS MRRRlWp33vycv8uMQclbII1moL1YK8EiOx/9pcfe3utRmI5NTwm3OA7ZjhG1+oEcJoOR LmGY9HudtWUv0mGGyV0Y0VLOci9InmwKUgN1wvx6ckOaAYO/mwh50msdvV28HYTNMlw/ EIS2vEEPCKSIouPUUe64C0EQmQyp3FQvH/Vhi+IVp1L4TJHQn5YEzInctEtQCrGtFp02 AXn+RaBPZf0WKC91Nu4s13zZtCRDe3Ip3AKfpYl0Z7ZKTyO0Rpn0Pl/0lbpaPzVSxL13 BEwQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=aQm6k61ZSp2Hab4WhNcd29dBFTSpKLfNa3/5SrkRnKE=; b=TkxYjNMgRf1yPXZZBtbXbEDDreKCJs7cm5mGANDIdY5PPGNWGLi1e3t10GmCO17uxN /TftgCTfwsr4LAtEwE52AzJIxZtfTp7nsv8wF55vHCnntYLvqTNcHdX5/z8FPqbB9Z1E sOtqAtyfL4JfQ6K5lv1qPWKlVKCV1uXL+EzmEgt7/3Pq0o69+M+P6khcmBprL0Psqlu/ SgxNoBBku4Qi8XbnzKOnnKTLrIaIa8iJhF54T/3gPtctO2QBd+kQDUxX9mow/QgHJzsY DhivPvAYzgowobk2HVZ/pFzMZxfFHRs9c9vz6g07NWSMTV6cwDXfaTrwqMW0Oye7v+IN Jm9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nOsiEjYF; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si24811738edh.626.2021.10.05.07.43.42; Tue, 05 Oct 2021 07:43:44 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b=nOsiEjYF; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234170AbhJEOpb (ORCPT + 7 others); Tue, 5 Oct 2021 10:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234355AbhJEOpY (ORCPT ); Tue, 5 Oct 2021 10:45:24 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D350C06174E for ; Tue, 5 Oct 2021 07:43:34 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id i4so88105978lfv.4 for ; Tue, 05 Oct 2021 07:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aQm6k61ZSp2Hab4WhNcd29dBFTSpKLfNa3/5SrkRnKE=; b=nOsiEjYFl3aW6T/inaJvCgRmrFdBE7RjE+3EkIBB+LyroVbllh+TpIzWM3aluAxSNy cHF4eZ4pDUB/jn4yymaNgGIo+U62VKveeFgrLOkyWbrvwmcW/dewPfFka3W2vHoVRCTI RojMqoFDmo4JJa3/6U7zsj5f8xeAksoeUmFk8B7hpmqOehDKq3dnvLbDoVafGGX4OY/k w1sLMUu0JVt1Uk5bo+TNSSEY5YwJQR9Bd9TY9TERtYpKc5pYdFm9JSrXWQiwc3hbvR7n IoUgTz30heGeBr4ZCB5Bndjzv8Ltiq1SRJ2l4NQdJ7Fd9596C32U0/canEJC+VXDCwGY bR1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aQm6k61ZSp2Hab4WhNcd29dBFTSpKLfNa3/5SrkRnKE=; b=VZmG/ihyj6oa3+ErjUzeR6chX0C2tSz5SWuwhk8HA3LDXZOsnbSTrC9KGQJ+ttockk 9kgkB26Qg0XPF027ei9RVS2UKfK4QsmU5YQv436Y0jQxmeoGdbuCUDwJLMRiIS1Tj8R/ 8w+PsryLcHBJZ1fYJmw1t7zb238dE3MbF280VIcOkYeumKGMowW1pw6js06vZffoLzRB oylX6hYwwNCnyK56KUHL1MV9wWo2IJJMqDyGPt//guW8Bn8CBqf4Yw+q3gafsKerHPME RtyMP/rSy95YjRgYup50jMZjH9Y21R+YbqcLfGU/m16GIAg5lxy+WiPGx4N+ozSHpAci Xwzw== X-Gm-Message-State: AOAM530avAAwLAXqKV8yAz0ItVKFu6prsX+EUoX+Ln1tvizrGeCyQAeZ OH73Xn6Dc+x7IRhs1XbV662iVA== X-Received: by 2002:a2e:80ca:: with SMTP id r10mr23139626ljg.347.1633445012540; Tue, 05 Oct 2021 07:43:32 -0700 (PDT) Received: from umbar.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id t22sm1987173ljc.120.2021.10.05.07.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 07:43:32 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Linus Walleij , Rob Herring Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 0/6] pinctrl: qcom: convert ssbi-mpp and spmi-mpp to hierarchical IRQ Date: Tue, 5 Oct 2021 17:43:23 +0300 Message-Id: <20211005144329.2405315-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org In 2019 (in kernel 5.4) spmi-gpio and ssbi-gpio drivers were converted to hierarchical IRQ helpers, however MPP drivers were not converted at that moment. Complete this by converting MPP drivers. Changes since v1: - Drop the interrupt-controller from initial schema conversion - Add gpio-line-names to the qcom,pmic-mpp schema and to the example ---------------------------------------------------------------- Dmitry Baryshkov (6): dt-bindings: pinctrl: qcom,pmic-mpp: Convert qcom pmic mpp bindings to YAML dt-bindings: pinctrl: qcom,pmic-mpp: switch to #interrupt-cells pinctrl: qcom: ssbi-mpp: hardcode IRQ counts pinctrl: qcom: ssbi-mpp: add support for hierarchical IRQ chip pinctrl: qcom: spmi-mpp: hardcode IRQ counts pinctrl: qcom: spmi-mpp: add support for hierarchical IRQ chip .../devicetree/bindings/pinctrl/qcom,pmic-mpp.txt | 187 --------------------- .../devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml | 180 ++++++++++++++++++++ drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 111 ++++++++---- drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c | 133 +++++++++++---- 4 files changed, 360 insertions(+), 251 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.txt create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml