From patchwork Tue Jun 28 03:13:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 1657333 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=muGbABNG; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LmbWs2k9Jz9s2R for ; Mon, 18 Jul 2022 19:00:09 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4LmbWs1fK1z3bcc for ; Mon, 18 Jul 2022 19:00:09 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=muGbABNG; dkim-atps=neutral X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::435; helo=mail-pf1-x435.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=muGbABNG; dkim-atps=neutral Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4LX8r20Rc0z3bXY for ; Tue, 28 Jun 2022 13:16:01 +1000 (AEST) Received: by mail-pf1-x435.google.com with SMTP id d17so10758834pfq.9 for ; Mon, 27 Jun 2022 20:16:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/cXVElxHAcvgbTqkcDPEZcgMxgzQCWHYrFhvr/zy9d8=; b=muGbABNGtA9/S3bqI69sqvq1V7j7o+j7ZUBLSKeWhEGii5W0XRIzz8RVT+AJInP7DM EI+p1lF3BYDUxbuMsiZ5+7ToxEgH/+OJa5hq27fUUqAQwQfHWkYa/AC0tw3WvhN2ePiY 0LYqV5ODA6HDY1olr3m3PttaMpTVIF94SBKfMJFcW8FmmJw4pDMD4LM3Rqi/yR1snzvT VNZBCeqlwR9ZpsuuAYcv5OHiQnTErr2DqA7XZ5pESgbGQpG7m1AMYmOHWpQj/sD1/1Dk 1ZP/wTXEj09nO700VjH8me0yHRufUa5q+tQh71CzCJ0SYHpKqI/zH9zllXsSqPrWM2A+ IZFw== 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:in-reply-to :references; bh=/cXVElxHAcvgbTqkcDPEZcgMxgzQCWHYrFhvr/zy9d8=; b=xijeMdGAv7HdbvYloKdBNohTXDSbXCofShWjXSdJZ6zhHRsj+7+44HGpwWQbxrRNxd VS+I1MR6kEXT8aMieXPJeelaWzTaEwp1Ggqydg7HS54tm9YCt0IrgmAEp09SYJTFn/aw ChywVu5jS6lAuEDsMlYM8kwZULfcLz6bohcKzPTjKTyyoFOE+UekB28VSMjI/etBaxPD vlV5jDY5KEUH77I28ZXHVMLMqXuLbQ5ZLepCCkAD2UmKoPb3SlqY7g0o9xJXJFjbxBq7 KiqNeyETF+MzlNNzmugqEsyeITGLFCNayMavNOe3uhuFAaTEQgKQur7X4obcG0nA4f84 6IFA== X-Gm-Message-State: AJIora/l5GUDXfRLMmRtIajqLVjGHXMuHlGTjEn5LZRVzpIP1BDcHuK7 tyGrQK34TCXN5b1f6njKigAN+Cp3C9fHRw== X-Google-Smtp-Source: AGRyM1tNId+Nafh89ceJgoLwiAkNzW90wJPenJE4agpbSxZL5Z9DYCVDbCtAt/0w6re4hUirB6TvPA== X-Received: by 2002:a63:a53:0:b0:411:1ba6:e5f with SMTP id z19-20020a630a53000000b004111ba60e5fmr4658573pgk.18.1656386159229; Mon, 27 Jun 2022 20:15:59 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id y22-20020a17090264d600b0016a0b31a8bdsm8046511pli.4.2022.06.27.20.15.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 20:15:58 -0700 (PDT) From: Potin Lai To: openbmc@lists.ozlabs.org, joel@jms.id.au Subject: [PATCH linux dev-5.15 1/4] ARM: dts: aspeed: bletchley: change LED sys_log_id to active low Date: Tue, 28 Jun 2022 11:13:40 +0800 Message-Id: <20220628031343.21097-2-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220628031343.21097-1-potin.lai.pt@gmail.com> References: <20220628031343.21097-1-potin.lai.pt@gmail.com> X-Mailman-Approved-At: Mon, 18 Jul 2022 18:59:27 +1000 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Potin Lai , Potin Lai Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" change LED sys_log_id to active low base on DVT schematic. Signed-off-by: Potin Lai --- arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index 41d2b1535d9a..d34bfa50620e 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -59,7 +59,7 @@ compatible = "gpio-leds"; sys_log_id { default-state = "off"; - gpios = <&front_leds 0 GPIO_ACTIVE_HIGH>; + gpios = <&front_leds 0 GPIO_ACTIVE_LOW>; }; }; From patchwork Tue Jun 28 03:13:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 1657334 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=hBepgJTv; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LmbXZ49RXz9s2R for ; Mon, 18 Jul 2022 19:00:46 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4LmbXZ3J7bz3brV for ; Mon, 18 Jul 2022 19:00:46 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=hBepgJTv; dkim-atps=neutral X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::635; helo=mail-pl1-x635.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=hBepgJTv; dkim-atps=neutral Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4LX8r31Yz1z30Qc for ; Tue, 28 Jun 2022 13:16:03 +1000 (AEST) Received: by mail-pl1-x635.google.com with SMTP id m14so9885765plg.5 for ; Mon, 27 Jun 2022 20:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YNhd/FL425kRzxrVXJkEkRoau5KOg53TFkVnNDFPTbE=; b=hBepgJTvwSuUKXayKUY1qo27MibDNgZzYzqQ0c/A29AVcXALEx47jUYPBixbCH4x2Z eX9oDiCih0Dv7sFh0JYz0TBx9fUwpccg54OMymqbdpV+XZIGjczUbJZ681k9Q2MocFbI 6/PvgeIa8HOBJtMktA82XKrkNO8ubUPkDkqoA0YRRXbtxMLacDnlqvhx0lHWbwag2UpI 3NINjzUAbpEnlPM8RNlI71kIlY83l5bDFnVY2CCF7SP44BVF49xck/CVwK36q9XkVhW4 OSLLd4KRk70dN+LoRGUQlgld9r42/aKRkIZ32wPqtX/NddCmmOhX95MwmFyllVt+R4m3 fqLg== 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:in-reply-to :references; bh=YNhd/FL425kRzxrVXJkEkRoau5KOg53TFkVnNDFPTbE=; b=Z9qm/GtmihavlcdtXJ0ouHf6zJ1RM7Tt8yRhv5A12q7pdVABFwpZ7QA0i2N5H+G9FI RPltyuS7/faoSfoAh0vDJrZOM9DkyrtXrqAS/wf1uaRlZgjvT3FthIWipD+6pcjrHzGx kf6qaqKhNfDnrDTL8upFILz5YoDI4LwW+vE4UCTWLYM8YSoV/IL4xb5U8QX0lvltBIvN 9Tfd+pXXzuO755HxPs7rWrIBcrNvouGfLsS7Lq0jegt/qWPBGY5m8nF+PztS2UvyQ+wM G+1DBVkoayk42fIfC8qBovjXzGeUw1TLt2/+ioDXolN9dcvDkhaLJ2v4dLlpb0U0ra+m 2YNw== X-Gm-Message-State: AJIora8Gw0L53u4FOEtHqBDnWAMkMeNq0epQP4laRMHhbproT8SGlyC8 gJ4qEvD+fsUe1i2wGTpHto1aHD6RAEGFow== X-Google-Smtp-Source: AGRyM1vPsWChReqa49Sfe53hGa1ZRl1UGuYIWOc0R4K/PgUyEIOH52Uf1WZLDJ5cyvhQIjW/PRcPOA== X-Received: by 2002:a17:90b:3d0f:b0:1ed:3b8c:7cb1 with SMTP id pt15-20020a17090b3d0f00b001ed3b8c7cb1mr19443470pjb.44.1656386160927; Mon, 27 Jun 2022 20:16:00 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id y22-20020a17090264d600b0016a0b31a8bdsm8046511pli.4.2022.06.27.20.15.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 20:16:00 -0700 (PDT) From: Potin Lai To: openbmc@lists.ozlabs.org, joel@jms.id.au Subject: [PATCH linux dev-5.15 2/4] ARM: dts: aspeed: bletchley: disable GPIOV2 pull-down Date: Tue, 28 Jun 2022 11:13:41 +0800 Message-Id: <20220628031343.21097-3-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220628031343.21097-1-potin.lai.pt@gmail.com> References: <20220628031343.21097-1-potin.lai.pt@gmail.com> X-Mailman-Approved-At: Mon, 18 Jul 2022 18:59:27 +1000 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Potin Lai , Potin Lai Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" The external pull-up cannot drive GPIOV2, so disable GPIOV2 internal pull-down resistor by the request form HW team. Signed-off-by: Potin Lai --- arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index d34bfa50620e..ee33cc3efae4 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -860,6 +860,9 @@ }; &gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiov2_unbiased_default>; + gpio-line-names = /*A0-A7*/ "","","","","","","","", /*B0-B7*/ "FUSB302_SLED1_INT_N","FUSB302_SLED2_INT_N", @@ -950,3 +953,10 @@ &ehci0 { status = "okay"; }; + +&pinctrl { + pinctrl_gpiov2_unbiased_default: gpiov2 { + pins = "AD14"; + bias-disable; + }; +}; From patchwork Tue Jun 28 03:13:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 1657335 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=fw1E9LXn; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LmbYG1Pctz9s2R for ; Mon, 18 Jul 2022 19:01:22 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4LmbYG01Gkz3bd4 for ; Mon, 18 Jul 2022 19:01:22 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=fw1E9LXn; dkim-atps=neutral X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::530; helo=mail-pg1-x530.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=fw1E9LXn; dkim-atps=neutral Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4LX8r528Hgz30Qc for ; Tue, 28 Jun 2022 13:16:05 +1000 (AEST) Received: by mail-pg1-x530.google.com with SMTP id g4so3999697pgc.1 for ; Mon, 27 Jun 2022 20:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u0NPneZZ9r0x4Kp8TclBRmjdl0tXAndSbSU1SBOWrP4=; b=fw1E9LXnVMUacoasv60kB1mOhbXP35C4X3qHLDPEHtq6Yacn+XW8ZwRC6PEGiNgyU7 3RIokRdKK4ROyecQ/K90qDcL+/Kp5NtdZn4zPu6Ro9IZb1hv2m6m1GfSA5gLe8czOpg+ R4ZUjr3+cu3X4/VdQU1+xpcJlsTqffW8kKBdjuvDNH8HoLJNhxZ23jtWl8ov2NMZahLR l4B1jXXukACfnayrtZ4gwcEmJ+WJcD/7UCCKjEgYS4pqsFd4lNulmun7EyW/0lmvNtjP mBrD1Sm87h7cWH4qN5zRHnp+FimVaHLtBv/rilU3P3wS6CSSP3xtkvR+83WuN988K0zd t8lA== 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:in-reply-to :references; bh=u0NPneZZ9r0x4Kp8TclBRmjdl0tXAndSbSU1SBOWrP4=; b=uuPfqvTlfRvxgmkL7NkVB8y2dSBYpvenWduEInFbN6GV40s6ZE9FK50qzjmaCBApme WH5m7/7Jzu1iaFJcqc9CxLFrmGDRBjC/9JcxxWzC0xImRhngsOX/Ifvx4UonXdY8D07X RzNTqZ1hQrnYBO0rbb+ufiPoxHIwMeH66CHjEcxPFlUQUjnkCCgzg43LTO78BL84u7CI glel2vH7QFu37K5Z2MKvgmM0zKlvOXUv2H0LVaUjuUrJLBSHVKAZuG5KoamZrcSzdxwD fAgCyQZtpOAnL38D2A0ubrGThWuMUG4FhYgpKcHwhOuoqA4eADN1ec9iW2PYmuYnshNt Un2A== X-Gm-Message-State: AJIora/+CZaOjcNNS/ZPUUyWoBpEI3kEN/ScYq/A9NZ4xO7V4U4Ius2P AG8FOCXx1goAbTfTvZ1wLx9R2HcMuvVk0Q== X-Google-Smtp-Source: AGRyM1uIsxYRKAULFpKJ4EUftVInR/s670YqO/w2OO6PNFD4G4cFQ2sSVpj15J9lS8nEmrtyUWRwlQ== X-Received: by 2002:a63:2603:0:b0:40d:9b49:8984 with SMTP id m3-20020a632603000000b0040d9b498984mr15678641pgm.337.1656386162639; Mon, 27 Jun 2022 20:16:02 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id y22-20020a17090264d600b0016a0b31a8bdsm8046511pli.4.2022.06.27.20.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 20:16:02 -0700 (PDT) From: Potin Lai To: openbmc@lists.ozlabs.org, joel@jms.id.au Subject: [PATCH linux dev-5.15 3/4] ARM: dts: aspeed: bletchley: bind presence-sledX pins via gpio-keys Date: Tue, 28 Jun 2022 11:13:42 +0800 Message-Id: <20220628031343.21097-4-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220628031343.21097-1-potin.lai.pt@gmail.com> References: <20220628031343.21097-1-potin.lai.pt@gmail.com> X-Mailman-Approved-At: Mon, 18 Jul 2022 18:59:27 +1000 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Potin Lai , Potin Lai Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Bind presence-sledX pins via gpio-keys driver to monitor and export GPIO pin values on DBUS using phosphor-gpio-presence service. Signed-off-by: Potin Lai --- .../dts/aspeed-bmc-facebook-bletchley.dts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index ee33cc3efae4..7b6de9b51547 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -190,6 +190,41 @@ gpios = <&sled6_leds 1 GPIO_ACTIVE_LOW>; }; }; + + gpio-keys { + compatible = "gpio-keys"; + + presence-sled1 { + label = "presence-sled1"; + gpios = <&gpio0 ASPEED_GPIO(H, 2) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled2 { + label = "presence-sled2"; + gpios = <&gpio0 ASPEED_GPIO(H, 3) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled3 { + label = "presence-sled3"; + gpios = <&gpio0 ASPEED_GPIO(H, 4) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled4 { + label = "presence-sled4"; + gpios = <&gpio0 ASPEED_GPIO(H, 5) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled5 { + label = "presence-sled5"; + gpios = <&gpio0 ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + presence-sled6 { + label = "presence-sled6"; + gpios = <&gpio0 ASPEED_GPIO(H, 7) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; }; &mac2 { From patchwork Tue Jun 28 03:13:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 1657336 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kupw/HG6; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LmbYz0bGZz9s2R for ; Mon, 18 Jul 2022 19:01:59 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4LmbYy6Ph9z2yn3 for ; Mon, 18 Jul 2022 19:01:58 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kupw/HG6; dkim-atps=neutral X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1031; helo=mail-pj1-x1031.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kupw/HG6; dkim-atps=neutral Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4LX8r70lHjz30Qc for ; Tue, 28 Jun 2022 13:16:06 +1000 (AEST) Received: by mail-pj1-x1031.google.com with SMTP id g20-20020a17090a579400b001ed52939d72so5847728pji.4 for ; Mon, 27 Jun 2022 20:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=erc0cF0H69wNUT+Fr3YuZFhUNW2gCbs/AEVN/v4U6VE=; b=kupw/HG6lc1xepHG5yEonTxQMiDCJGkZIIdkqpAFeW/PaRpFvwO72w39IuiMsW+wvj KJcFcq+IDLrTiM1oHc9ZZOsp0aGCRofeLeN4hjS66jR5RYFuGc1JEnQceih31sAVhraR zygvIDBFmVXLOCKQqr5k8VsV+vopFK5ZSddgDQQo8KzpE7HeK6/8pM0owqNGo2HgK4Aa Z9LXIVtfPqwd1Wx5+p7Q2HaqS2/5OogkeDE8c0qJlkXzbu9hKpSLu+dWE6TAuEg2VjIc 1nZ7dEVGvm2x527NRC3pJfzFRGdPwGlt67/f7J8ibADAl69YJQ3LhkQLYSvr16Hr/cJ6 6gZw== 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:in-reply-to :references; bh=erc0cF0H69wNUT+Fr3YuZFhUNW2gCbs/AEVN/v4U6VE=; b=6h9F/ONMA+5vp1DJLrmEindNxA/fe96bWaHGX5niONC5XrEU2XA8880GDls4YVkJ0a R0cT5NJQj6S6XhCYNOt/Dx9G41U88BZm/EY8pR7B58zLo45zW4CBywUE9w8yGzZiHIHh YR4EKL9FDhnjmbeD7vrEgeaJjV+RpjR73suEpsJ7V+j0+fToyFA+ir3UXU921YzvEpzz W8J0+XNIRabFyW1j+gP2EgrSipvNDUbRr9IYq0iCjA4tx2nmfqQ9eu9F1pLLT4+nzapV RHjpAlviaBcHkgBaGx4ldyi7kI6xnL7cNdnyRUqOji7ZZykgL64vLfQe+MiB2hYedV3s bMQg== X-Gm-Message-State: AJIora943QuMZnlxS1tZLWqbjJRMvefF4k+9nn5l/DgnRKy7W1RrJoIq 0K1kPYF2tL6Rddi3WZS5yAeimb7M4GbEjA== X-Google-Smtp-Source: AGRyM1uwCtNLyWzgdal5DCm/eVW5/1GjvSlsHVuMiWhS7A8SgTbybVBu+tEWW2nOo51ArTSBTJ5bdw== X-Received: by 2002:a17:903:22d0:b0:16a:3039:adc9 with SMTP id y16-20020a17090322d000b0016a3039adc9mr2687821plg.32.1656386164401; Mon, 27 Jun 2022 20:16:04 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id y22-20020a17090264d600b0016a0b31a8bdsm8046511pli.4.2022.06.27.20.16.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 20:16:03 -0700 (PDT) From: Potin Lai To: openbmc@lists.ozlabs.org, joel@jms.id.au Subject: [PATCH linux dev-5.15 4/4] ARM: dts: aspeed: bletchley: update fusb302 nodes Date: Tue, 28 Jun 2022 11:13:43 +0800 Message-Id: <20220628031343.21097-5-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220628031343.21097-1-potin.lai.pt@gmail.com> References: <20220628031343.21097-1-potin.lai.pt@gmail.com> X-Mailman-Approved-At: Mon, 18 Jul 2022 18:59:27 +1000 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Potin Lai , Potin Lai Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" 1. Add interrupt pin of fusb302 on each sled. 2. Add vbus-supply property in each fusb302 node. 3. Fix BMC power-role at source and data-role at host. 4. Disable PD to avoid "HARD Reset" due to incompatible PD ver. Signed-off-by: Potin Lai --- .../dts/aspeed-bmc-facebook-bletchley.dts | 150 ++++++++++++------ 1 file changed, 102 insertions(+), 48 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index 7b6de9b51547..9fdb3d17596b 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -225,6 +225,60 @@ linux,code = ; }; }; + + vbus_sled1: vbus_sled1 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled1"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled1_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled2: vbus_sled2 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled2"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled2_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled3: vbus_sled3 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled3"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled3_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled4: vbus_sled4 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled4"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled4_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled5: vbus_sled5 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled5"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled5_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vbus_sled6: vbus_sled6 { + compatible = "regulator-fixed"; + regulator-name = "vbus_sled6"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&sled6_ioexp 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &mac2 { @@ -336,17 +390,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled1>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -422,17 +476,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled2>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -508,17 +562,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled3>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -594,17 +648,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled4>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -680,17 +734,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled5>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; }; @@ -766,17 +820,17 @@ compatible = "fcs,fusb302"; reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = ; + vbus-supply = <&vbus_sled6>; + connector { compatible = "usb-c-connector"; label = "USB-C"; - power-role = "dual"; - try-power-role = "sink"; - data-role = "dual"; - source-pdos = ; - sink-pdos = ; - op-sink-microwatt = <10000000>; + power-role = "source"; + data-role = "host"; + pd-disable; + typec-power-opmode = "default"; }; };