From patchwork Tue Apr 9 18:36:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 787600 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5EDD15699E; Tue, 9 Apr 2024 18:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712687816; cv=none; b=WQ58Q0g9QvqapC4W8hczSt/FoMUV4k4dIXWe+/zGLphL8MJgOPGYp3XY5qkzV3cLTmX2VSWaRJcctUlMayz172Te96krMJetsAM9tDQQcqvNOOtBBYRoBvqwMDlEHhKvxgleO4bPrJCCQO83kcfIwcGdQ4GUioaIQ7V8/CMgu14= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712687816; c=relaxed/simple; bh=gW9l8dJqYNA4+L4w1oT2wdP2ExgySRT9xOXqm3Xu8FE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Q/qKTXHV1VRwdK0iHo4x0z7s0MQl/VEkOrGUv9dnnaRDC6K3KUvHTUxTYRoLHNuto1j0rXFNjj2EDbJ9SOGRSC80w5volXCXVfUlWjp6HmMHYgRF8V/ssUaR1SegyFz77D7KLHDhsFL2Be8oDxIeAdaJz2ZYR149zyZHqedC7v4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=zue3yUMU; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="zue3yUMU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1712687813; bh=gW9l8dJqYNA4+L4w1oT2wdP2ExgySRT9xOXqm3Xu8FE=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=zue3yUMURFIxbQkIWVbAEpwWv+0dkmcUGJfeOMDEuK7DJ7fSmwu8xP/VUx7EGnPj/ ohtFe9fqtW2tB+R1r1gDqXHTkfEA9Bgx7Qur4EsDioRm+hFJ9r9P8QxJmXJa1Ykaej sbhSAbiBmYNMeBveA1CcxubxBTP2JotWY7SuC8LM= From: Luca Weiss Date: Tue, 09 Apr 2024 20:36:36 +0200 Subject: [PATCH v2 1/2] dt-bindings: pinctrl: qcom,pmic-gpio: Allow gpio-hog nodes Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240409-qcom-pmic-gpio-hog-v2-1-5ff812d2baed@z3ntu.xyz> References: <20240409-qcom-pmic-gpio-hog-v2-0-5ff812d2baed@z3ntu.xyz> In-Reply-To: <20240409-qcom-pmic-gpio-hog-v2-0-5ff812d2baed@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1286; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=gW9l8dJqYNA4+L4w1oT2wdP2ExgySRT9xOXqm3Xu8FE=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBmFYrCS3jskqiCJInq5g8aIMm7iBtLFfIK8SmcE EfhgRjo5AuJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZhWKwgAKCRBy2EO4nU3X VgRNEACVGtLFS9M/K/Khp++YYzmx7MwAwYJKSl1YtUl0Og5meQaZMNBHcO4d7OvCd8w85xNyr18 /a0qDnV9KOZVZNaGKOsqc9kZR/h+U0rLlGRz6rbOhONav0GDJs1Gvfp4eFyldF8ondZygbiNYeQ YaWhEma6+BY12C3dwzslwB7ySNSdXFT1RCrfeGox8bHq4E89bWomOPQinFaSgl6xTfUO92AWaSP GJERIj/RJLPWt7JjsGJnJWb5LXWbMwErJrjs55FiXlU+gBi9jGk8e6l3Y4ACvVGk88cqQrlkM+V zhfhFXaYRLgf78MkUWgoKpDZap4EDsJyoppw71c/GQnu5Qu5oD8L9jFWd18alxUTRjdg7VOFUzu DtAvCYMZVqLOsUqNdvBhM8Lp8vQkOZUsIyRwZajbS5GykFBVimZtNv0ZZtbf5XSl91mEXMKNa9E ao4gwoPcK1oxwtWlhLeYzAYLhSakZZVRJ/crtzaF6qmHo3ajDdokx5xz2fg83D2/yu3P07J953U j1OTDU5YwBH3un/luCVzuR0NKsPIdUROxN4E2Tbw9SI2oNLN0Ke+gRpsUuD4wch3p5UJ3M4qixo 8H2GW6jai9yxOnkmE/ioP4xhw0jkhBcoGF/0OQgHJxBBsHqTh0EHiZ2MUc7biTakQViq9XAGR7E fGzFajCgCVORCUA== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Allow specifying a GPIO hog, as already used on qcom-msm8974-lge-nexus5-hammerhead.dts. Signed-off-by: Luca Weiss Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml index a786357ed1af..bd9471de0c69 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml @@ -424,6 +424,10 @@ patternProperties: $ref: "#/$defs/qcom-pmic-gpio-state" additionalProperties: false + "-hog(-[0-9]+)?$": + required: + - gpio-hog + $defs: qcom-pmic-gpio-state: type: object @@ -571,6 +575,7 @@ $defs: examples: - | + #include #include pm8921_gpio: gpio@150 { @@ -594,5 +599,12 @@ examples: power-source = ; }; }; + + otg-hog { + gpio-hog; + gpios = <35 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "otg-gpio"; + }; }; ... From patchwork Tue Apr 9 18:36:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 787271 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29EA4156C51; Tue, 9 Apr 2024 18:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712687817; cv=none; b=QoeXcUqeLbChl1tonPR5bsdyAUVjU2vWeLlIMgtihg7InIC1ty4w035Yq7cfsUQ95yhsYQoEVfrVG7pGrwRqtZIPHrsdGaZO6jYwdTQxBw8gFfvjCR0oofQQ5NLW0QP7gPx2mfg9t6WIYyOLsm/ZwVwwWtj5qZlKuFfFJRtCN+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712687817; c=relaxed/simple; bh=+ayaTanXY1BoZODK0R5VCBAqY8Ylbg2XOaM+3Rh7RfI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=P0HpiPNHSP+X35YgFPp7PeGe3JjygWV3bUE9bLEhfs/XE4TjkSr4iOm0pbAtZ9FOnfWr2wYLxai5R1aT8AoslLS0hfvojsMkWJiRDE/ceRDi9lGT1KzAsWTPH6Z3IjY+Ddcup6/7ufxgqU6uTnDQmMTPOMQPeQCrHwoq36C+Lz0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=MV3p69d3; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="MV3p69d3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1712687813; bh=+ayaTanXY1BoZODK0R5VCBAqY8Ylbg2XOaM+3Rh7RfI=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=MV3p69d312eA9OfMiSwLW7UnZChrckze4sNfGc374bb0Y78wshOhc8JiLq5gznVbB lzetwF/8XI1DevwWKmRCa5FYx7+ds+ygBabfhgl8Mn0gOqtRS5k6bftr1C9vUhh24v gRpQRN1DdYF2AN4afdMafVbCFMczqs2tUmpOFx2s= From: Luca Weiss Date: Tue, 09 Apr 2024 20:36:37 +0200 Subject: [PATCH v2 2/2] ARM: dts: qcom: msm8974-hammerhead: Update gpio hog node name Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240409-qcom-pmic-gpio-hog-v2-2-5ff812d2baed@z3ntu.xyz> References: <20240409-qcom-pmic-gpio-hog-v2-0-5ff812d2baed@z3ntu.xyz> In-Reply-To: <20240409-qcom-pmic-gpio-hog-v2-0-5ff812d2baed@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=763; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=+ayaTanXY1BoZODK0R5VCBAqY8Ylbg2XOaM+3Rh7RfI=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBmFYrDsi6aMOVf5AY4ya9hmCJhzhKb32Ryq6Y4N mQE6VbLYT6JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZhWKwwAKCRBy2EO4nU3X VrowEAC3NbGH98YVuUC6KW5U1GmVH/ouiBhiZuGM5fMLb6204TUZRlXV/BnNhzk1AvEi0btph2t xeDzbh0HdjBGiJ3Bm6e83au6QqQTsIlCCoy7buqpMkh5thnnI9wGpoBZUSRaT3Ta2qRlOXT5Pid Zmg8tOrGZTpYqg2ed9sgDpU7vFJrTWY+HprNi3qGjOt5opEcneiazQkePGRaeRIy1XDA6xHLOoD 8k4vuRxbTGzq/hdIfj3Z780Uwc0ldxpZxAOT4Dhf5jAZIuljZUCl46g6o5Ek+zvIhPuZN/uFoCj aR2Ub6TOy0I/i1odrdwWLfetM5TbhOqmM4emHOz93hGvDGnJRYRiezWC8YYH6QNSv9RO7iMHWM3 GsshlHZSlWUseuIJzqyTGnjRFzxmVhZCdSTDEmd3IUJ7wQ++1O2leLxhPE/SELOITs3UugySz9a 4O6wpufGj/2sEpjA+7suYqS5T3m7V0b/p1X6pZ5QJqcJhK5FTLo4ivZnTPneLwS4FMfgsy6nxjo qi69g927Q+/Bqt2gU2sWPG5+67CLb2EPXe7mRbi8UF3Fu62m+e2vuwZsqfoN2w30DiBLuxHqjMD UmsGfSx+krtUnEYm5ssz0D/S/zDrHyOxKGLbJ6NUDEqxsuMd2uyEd2gCVYsS1qhOxDKGmeHcRUc EaMTy3JjkI0KKUw== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Follow the gpio-hog bindings and use otg-hog as node name. Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts index 4aaae8537a3f..06549051be50 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts +++ b/arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts @@ -328,7 +328,7 @@ wlan_regulator_pin: wl-reg-active-state { power-source = ; }; - otg { + otg-hog { gpio-hog; gpios = <35 GPIO_ACTIVE_HIGH>; output-high;