Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4104426rwi; Sat, 22 Oct 2022 05:18:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+WwsXO/IP5WToUlb4ckWkFyhxeVwp9cVYgw5hd9I75EAH9WA45Da7m6sUm8XK++IrkLjT X-Received: by 2002:a17:907:7208:b0:78e:176e:e0c6 with SMTP id dr8-20020a170907720800b0078e176ee0c6mr19846928ejc.594.1666441094248; Sat, 22 Oct 2022 05:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666441094; cv=none; d=google.com; s=arc-20160816; b=b7QN+wWAn2xhZNPaEJ45hQaunQNvN69tT7260i9Twnts80z6yHrjKHdBH8fISR8eAq H0StMF4BIkusLe2ICcGZ04rkQXXJz2QqGGcEUKB2PlHQ34PWBcrobSwcmXjtu4sCd9lZ A7yZM43kR050UrmgnQ9X6rx+zk74e5/EWfvsAv+f71IGwUI/MoAFBfS0P9k44iuH80SK emG3XmTqFyvW/eiTJYRqVTpQqqhTQuSUgHm6mbvd4DorpTZ7qfdQXvTWjwyFsLkGNi55 xu8UTv6Oi+UaoNUv5DVxkyKDqXCgH8sBn6qBvuTLPXMKrHosQka5hW5Y5t6Teb1hhe09 4pUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jrvz3xnxmWMFBldQvzy2ZgmI4h77t/gPKZnFb0toqjg=; b=LvXXg6UGWkElCKpdIuyUfwpwjBht6+bAxgNtxQO81qno69JzX/UFUsQHvX0PX/yNfr +vPGjnrxIaVfhjJocWJ0e0rWcJQ2Eq0wCP1gRHE5HM8H5zMFjbRjm1WnyzJkp1KCtDzP 9hqrJ8dffQ975DrW1QzxaYISP0gHBp1adxbn9xoHh9el+kQfjrUDinrd19P5ldK/aKE8 mcD2aF7D/oPy1L9823lsM9ajH0xKXQOPboewOBoNVT27EYB34kwYNkgBh8Ar6ea7d9xl MorDfzPw7DcRj9YQc9i8n81NRUIDLC2g1mrLftRpkSpVNyvkdus3yZ+0d+Fu4YkakxRD w/wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=IkNUMBBK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b26-20020a1709062b5a00b0078cbe9d08c6si18173867ejg.197.2022.10.22.05.17.48; Sat, 22 Oct 2022 05:18:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=IkNUMBBK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbiJVLw7 (ORCPT + 99 others); Sat, 22 Oct 2022 07:52:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbiJVLwy (ORCPT ); Sat, 22 Oct 2022 07:52:54 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656AEE027; Sat, 22 Oct 2022 04:52:45 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id a13so15079895edj.0; Sat, 22 Oct 2022 04:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jrvz3xnxmWMFBldQvzy2ZgmI4h77t/gPKZnFb0toqjg=; b=IkNUMBBK3F7G2PHSg4UUbh50Ru31YT5iLaRe+eXiX/kgyEVFRWM+EOsx8fOhmmHZYB mpbIbh4q3vvwnGYurdPN4A+6370j/lx2BQ8nIWwsFsKx7Y9z3Heey5CL1lY0jPs9BmQs phlDwix2DMjgdaGZx7K06usQjnaAJXxond0AzlVST6lU+BhY3YDU08cxFgsQ/dUXc2c7 LdYPI7IFyVT/b62MgoKyx+X6xWA8M1MoAde1RLXhSz1IYm4Xjv5RErUgw3uEISZC4QYx hjKz433tB6OeY3mXTLp49KN3S9Tg+E2Z2NqOFJVPn3sVHkt0h8isq2wF9OnV5ADNL+8a l+Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jrvz3xnxmWMFBldQvzy2ZgmI4h77t/gPKZnFb0toqjg=; b=76DF1DKUd1O9c0pGluAJxetk/BCt+lYOAlNlJfzBPYbnY3Xus5rZszjxqZQq99BBiz LRnsRsRbgSxjT39YzI4uLP0zRqbOV2Gy8fCg6UJI5QsAf9CZf3Tp3lWMicD5xi5pjfi+ PHyFrTUVNcho/BWTWnDC9m4nbtQJUiPxSS7lsjxmMaRvlqcihdDUkgdkwB44bhRGDcea cAv/kfJ+YHc2FogtEfCelzF7gvS3gYpIlc8LV/jxyp7J42FZXsPEmejYpaKNd+gwPknS R4CH3+ftsZ3Fu0dMdv5HP2HktFYyCelkpMXeC9c9799Rc6IGRyVzP3m2Dno1e2Uy3Ij1 1NTQ== X-Gm-Message-State: ACrzQf3FeTBvBHQHJNuThcwUGgecjmkb/5/nbpsb9hF+3VhfZcMsc8et BOMdeYQ1LhHbEUBVDCLhavgU37QOc7H+CGNh6lc= X-Received: by 2002:a17:907:7f92:b0:78d:ed9c:d86f with SMTP id qk18-20020a1709077f9200b0078ded9cd86fmr19695128ejc.251.1666439563373; Sat, 22 Oct 2022 04:52:43 -0700 (PDT) MIME-Version: 1.0 References: <20221022084737.1028-1-linux.amoon@gmail.com> In-Reply-To: From: Martin Blumenstingl Date: Sat, 22 Oct 2022 13:52:32 +0200 Message-ID: Subject: Re: [PATCHv3] arm64: dts: meson: Enable active coling using gpio-fan on Odroid N2/N2+ To: Anand Moon Cc: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Dan Johansen , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anand, On Sat, Oct 22, 2022 at 1:27 PM Anand Moon wrote: [...] > > > @@ -1982,7 +1982,6 @@ pwm_ao_d_10_pins: pwm-ao-d-10 { > > > mux { > > > groups = "pwm_ao_d_10"; > > > function = "pwm_ao_d"; > > > - bias-disable; > > &pwm_ao_d_10_pins is not referenced anywhere so it seems that this > > change has no impact on controlling the fan on Odroid-N2(+). > > How did you test this change? > > > Ok I felt these changes affect the behavior of the pinctrl > > * @PIN_CONFIG_BIAS_DISABLE: disable any pin bias on the pin, a > * transition from say pull-up to pull-down implies that you disable > * pull-up in the process, this setting disables all biasing. > > I mapped this is linked in pinctrl driver, pwm_ao_d_10_pins GPIOAO_10 see below Yes, I understand this part. My concern is: &pwm_ao_d_10_pins settings only become active when this node is actively referenced. You can even see it in your output below... [...] > pin 10 (GPIOAO_10): (MUX UNCLAIMED) aobus-banks:1958 This shows that it's used as a GPIO. If the &pwm_ao_d_10_pins setting was used then it would show "function pwm_ao_d group pwm_ao_d_10" (similar to what GPIOE_1 shows in your output) If you want to know if a pull-up/down is enabled you can look at the output of: $ cat /sys/kernel/debug/pinctrl/ff800000.sys-ctrl\:pinctrl@14-pinctrl-meson/pinconf-pins (I'm sure this can also be retrieved from some userspace tools, but I don't know how) Best regards, Martin