From patchwork Mon Apr 8 16:39:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 787613 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 BD183142645; Mon, 8 Apr 2024 16:39:55 +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=1712594397; cv=none; b=jvwek5d8F1ORym5eDuaJHgQfYNBf69L5YbV15HJWZLj1XvsbbaSqfx8aYBbZhEenoXtHpnszuXiXawClNboOlyNu/yzFnndlVRjf1Ijv/e5IAPtgEIDCBBQ6YY/tUnBoB5/qje5NCTwQNNe/XIyiGeSk2Msr07t1bC55elA9kPo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712594397; c=relaxed/simple; bh=2GYv29Fsok0X6JD+oXe6kLYK6S8BGbQcfnAa/pcmuhI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FlDGG7b5oOdawZpBvVepFd8kT6WzSNJ1mFpvIioyX5p5E88Zl2WF/6P1D5B8C7JTMU2TSfudS71uz1bZtrfK2DJOPmRmKdGK89xsRyWVbCwSY6P9kX65WcnI1pdrvxaMrfDyxQVdm3or8sgF5paK30KjkcbtbIitjwVKmtlliaw= 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=KS4m4dnK; 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="KS4m4dnK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1712594394; bh=2GYv29Fsok0X6JD+oXe6kLYK6S8BGbQcfnAa/pcmuhI=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=KS4m4dnKr7XcFeBj9pQ6oiCdbFou1IRTBm1J3W4b92HRkqd9GGPO2dDF6ZrVb147g WXbUs4QgDPZxJzLC942G7iq48jm2mlLl7SCx8ussbsa1VlGzCKVDnHtvYFH8jYtM1P M/i2VgX2GaPXLcXirWHvNE4NHOTq4M0vTTTHIqwg= From: Luca Weiss Date: Mon, 08 Apr 2024 18:39:47 +0200 Subject: [PATCH 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: <20240408-qcom-pmic-gpio-hog-v1-1-f61fc5323110@z3ntu.xyz> References: <20240408-qcom-pmic-gpio-hog-v1-0-f61fc5323110@z3ntu.xyz> In-Reply-To: <20240408-qcom-pmic-gpio-hog-v1-0-f61fc5323110@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=1302; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=2GYv29Fsok0X6JD+oXe6kLYK6S8BGbQcfnAa/pcmuhI=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBmFB3X611y2N5u0Q2ngK+/knuFNkHK57ffj/NcD ZqqCjBr+7yJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZhQd1wAKCRBy2EO4nU3X VnKoEACjujI68ndMostexaLACKtT8ya1vJiH05v/764AfEu4/DKbM1sMrChnVg8lDO0onj3pP5a OgbFFVnphfPJ25ApOci74bDKCCqaF+OGYSN2DnZjW4Ehfdu1PySLW+7Syk00UEuw7XK7WvKEkQ+ Wh6w6FL8HDrynEUhH3s3Lw1fMv4v6IhKctEnyQMZyuTjfUt+isr1XjmsnWPdxXVSajNWqrMB6mP 3qy/X8S99H8ojvTvivSerxKPnDDZSjFizwfU0JX4j23RjiwDrwf1xbK58w0MonEmCGyARBcjb3Y SL1G5oOQBi8TzKx5ltJ/JMj74A8SRaWmK/bxNes/R9+xiE3k46TdMfFdXoS34xHI5KKGmetJsyQ 4CVz2oqhBjXgKp90KdmMnruVnM6i8Ql1dYLcHN7pQAlLS0y70tSH8ahJcjcO+LYxneDkBXgAJPg Lw8Pyd+XSqYK57XhiU09ccLbYKp6fKyBjJaUMToggwp4JiylgREbx7oh9xabSYg6kJvrMByFZ73 N90LuzUIEFMy+U+6Be5ud5oSO8JTGIBtOTZclg41ia7G5OQjibHFuC+RLMTL7igYX00rdPNnGwy peSg/3vDt5tZ5mFj7opKs79gPG89L7mVqr6/LEB9qrpxtiT5Nio+YeLWWAddymqfQ/3XspCk0+K cpraqBQJNgnOKRA== 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 --- .../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..510a05369dbb 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]+|.+-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 Mon Apr 8 16:39:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 787009 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 0F419142652; Mon, 8 Apr 2024 16:39:55 +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=1712594397; cv=none; b=Qpz6++7l1k4gurilPUoITr3654ue/b9qRrbAdGTl2JQgwB+06LE5axSWiKb48n+uE5VU0163xA6TjmDlHljsZhY5WqZjsdQGH6lfrEGr6HDuPPI4xbe2Q9r+JdoBcTVqzwrlNkYP9/N+ehqjU/SFM4QN53hqyWk5ggfeEo1EgZQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712594397; c=relaxed/simple; bh=+ayaTanXY1BoZODK0R5VCBAqY8Ylbg2XOaM+3Rh7RfI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BDi2OfDPwO/GUwWX6+S31cCZBTKR7cGXq/Y18C/2/O0aaucMXL/NwiO25yGRyGU3Uq5nXfUY9AgcA9V0vK4CwUsjUdDtTg7cNZWHtuUMXLEf56bV5nFAw6MxIokWSXsz7aIEscIWkn7d+/EHdpfRz3/LXx8IDlBb2y85bZFRuMI= 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=XLdFAVh5; 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="XLdFAVh5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1712594394; bh=+ayaTanXY1BoZODK0R5VCBAqY8Ylbg2XOaM+3Rh7RfI=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=XLdFAVh5OS/br+w8wFVvIf/EPbaKrrAxTr7Hob+QYz3fPiVHyZgMPAbyY1en2zLrY nhQJ6HeQ1cQFO28ERHudylZlqp9HhThmpICAeHipUOclkSArJODdMaDDUrY9HZzuOM OQRJR6ZbzFrgxWpKIbpNLtRb8p+mRKf8CkJRmOxI= From: Luca Weiss Date: Mon, 08 Apr 2024 18:39:48 +0200 Subject: [PATCH 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: <20240408-qcom-pmic-gpio-hog-v1-2-f61fc5323110@z3ntu.xyz> References: <20240408-qcom-pmic-gpio-hog-v1-0-f61fc5323110@z3ntu.xyz> In-Reply-To: <20240408-qcom-pmic-gpio-hog-v1-0-f61fc5323110@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/ZANAwAIAXLYQ7idTddWAcsmYgBmFB3YDxLvRVsxb9nTkZozxM4XvfH1dYr3FRlbY BIc+CeW3N6JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZhQd2AAKCRBy2EO4nU3X Vut5D/9DMtNCNuU4Y0MpLDm8ZJWPCbS3mIXaweMlva5I6z1BRBzXEkVc1Sgs9fyS/MOMwyLfTQ9 slKaGakE7hMNZluPw8D+xzKjbDTVNx04TJYiKJL+GoJlFPk1ZTGCUeFuDFSl1HISTFWopKJ5cF6 GmGNv9lpnGgqt6pZTXLap93GU/DAUXfn6moJbHGeEpSug2qUmDzWI4CZ1IRj9FnwmmxSo0c13qz bo3vrohf5KKuulIRRB54QeXGFvGkzN9paeRN3kWfDhKRm0nec5TG7Wd79ViQ3YGJ28zsRihErEW 4+r8FQ84TK1+r0a/M4A4VjyLCkdRrOFUSnZWQ+fbx2bKibHnH/V7tgYmflZBPHWnk6Yz0xsG5o2 E4/GQZ3gMRDStjjmHgTt3JlUndtwSkRKVd5/LRoQQp39zDX3kraB9AhpJXqxrzcMQV3rTFrCmHr TICNoIYMe3Jcz5UQXcY3z1scFMQW/IV02ziCBe3bIGlsQWGZ71qRiPxVtj6Jy3cGEvFye/LWOGB vX0ieic56wcUw4E/UCVx13Q0MR0BWr38WbEf8+JBwPTeN846U2YzrQfAPZTuVDZAAzE3jwlcUat cAq92CVAzFPTTmbSqEC5Ua2I/wA6M3uww98VhZBjo0qI77XqFr+4wY5mgTK0sjkAGT4Z8zGrTVb ML1Kht28nwaDZOA== 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 --- 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;