Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2741488iob; Fri, 6 May 2022 09:23:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpAt5lSJxjKS3f04bnmKlxwp5zkbiwY/GBSNra9DL1pe6CuT7pzz5XJm6iL4rPb1ZtNkKg X-Received: by 2002:a17:902:dad2:b0:15e:9faa:e924 with SMTP id q18-20020a170902dad200b0015e9faae924mr4429748plx.94.1651854218808; Fri, 06 May 2022 09:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651854218; cv=none; d=google.com; s=arc-20160816; b=TPoqaPgfDmBsj5YMWZyy+hePpyI7hjupBbXhg48V6ZEP+LsMZsSGJ/M8vvLX1aYbK1 pR5KPKfWkG+0+5IRY7DClO835KvFsHC4R4HL80JZUAKk2igShRwXu0TuEVxWG09Wfd5G 1YLMwuWK5LQhLR/jCe2cWy5ZLTZPO1nLbqsIZnGjUR2+CuDeVW8WGlzADDsKgWIQ5l4v ttsVhryumFjBXZrbFRM2HIGOScCClmb5WEpsPSkSlcQxv6O75y7aP/aFmhLXmKEu10YM 0XoH73+ozm8gpitH+CnO/stIjACagfhgkzXV/cSLne2grK04uanRoFRbaIG98Dq4l2vY 3CeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TG2ba4y/RDwlDe7aExNpDRvQBRZU2FOjp8nvEg6cd1I=; b=wFHfncZVFi0Fcy/vVVibpNJq8X2463KmWlInZrXgHCViUGwGa3JqUYOcbmO3EiEZcY 38oStkmSYNah/DJ2337gW35JJxdCoMqMOowPWSgvHmAngRrpslHQ8lTyTX1MARtrgJyA fRFA/xfnCHWt1ZRvPkU0GO4LY1CEKp6STMST9ElI4r7RL34tjm1pghlyyleat/7oBPW9 3E8f4AiIAicROm6w73qaymAHlAcadmsjHKZ7iHuIHqBUFXj/UuUpPsjzjJzu3L3S++BQ xzOD1i+wlRQoS7FZ0yeSuu4CK3EXSsggT2vmZQscvGs7c0cxhYNM9vGrUu90MurHRyft oSMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=lugkWU3M; 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=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a056a00240e00b0050d8cd6bd18si5405249pfh.257.2022.05.06.09.23.21; Fri, 06 May 2022 09:23:38 -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=@bewilderbeest.net header.s=thorn header.b=lugkWU3M; 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=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378768AbiEDVjj (ORCPT + 99 others); Wed, 4 May 2022 17:39:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379266AbiEDVjO (ORCPT ); Wed, 4 May 2022 17:39:14 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07117532DE; Wed, 4 May 2022 14:35:12 -0700 (PDT) Received: from hatter.bewilderbeest.net (174-21-163-222.tukw.qwest.net [174.21.163.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 2D00F368; Wed, 4 May 2022 14:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1651700112; bh=TG2ba4y/RDwlDe7aExNpDRvQBRZU2FOjp8nvEg6cd1I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lugkWU3M8aQidzPUa+dHs6yMf6mvFols8gAAPjnxADbicqw7Vawf0nVlFXHAKBXIM oej/qo8TkXReRDIV5f3qpZy/xJTgR1zzWwIArKgcTxibjps/HdiiWmdyDMmeHgXhOx 0Ap6n1nxdYp9bGIwkgIA2fQ2KqdNfVf/7Aa4Bgnw= Date: Wed, 4 May 2022 14:35:08 -0700 From: Zev Weiss To: Mark Brown Cc: Liam Girdwood , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , openbmc@lists.ozlabs.org, MyungJoo Ham , Chanwoo Choi Subject: Re: [PATCH 2/6] dt-bindings: regulator: Add reg-external-output binding Message-ID: References: <20220504065252.6955-1-zev@bewilderbeest.net> <20220504065252.6955-2-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 [Adding extcon maintainers...] On Wed, May 04, 2022 at 01:49:12PM PDT, Mark Brown wrote: >On Wed, May 04, 2022 at 01:33:58PM -0700, Zev Weiss wrote: >> On Wed, May 04, 2022 at 05:55:53AM PDT, Mark Brown wrote: > >> > I think at a minimum anything like this would need some sort of >> > representation of how the output physically appears so that people can >> > work out how outputs are mapped to the hardware they see. > >> I don't quite understand what you're describing here -- could you elaborate >> on what you mean by "how the output physically appears", and what that might >> look like in a DT binding? > >For example if the output comes out on a socket then that socket should >be described. > Okay -- in the case of an Open19 power shelf like the ahe-50dc, there are 50 instances of this, 48 of which are in four ganged connectors each with 12 pairs of pins, but two of which have their own dedicated little individual sockets. The connectors are physically different, but they're all identical as far as software is concerned, so I'm not clear on why it would need to be expressed in any DT properties or the like. Or did you just mean explanatory free-form text in the description field? >> > However we >> > already have a subsystem for external connectors - extcon. Perhaps this >> > should be a regulator client in the extcon API? It's common for >> > connectors to include some sort of power provision so it seems like this >> > would fit right in. > >> Interesting -- I wasn't previously aware of the extcon subsystem, thanks for >> the pointer. However, after looking at it a bit, I'm not sure I see how >> it'd be applicable here, since it looks like it's built to handle hardware >> that's at least sophisticated enough for software to tell whether or not >> something's plugged in, which isn't the case here. The connector is just a >> ground pin and +12VDC pin, no presence-detection mechanism or anything else. >> Outside of the regulator itself there's really no "device" there for >> software to talk to or otherwise interact with at all. > >Sure, but there's no reason why it can't scale down to something >simpler. It's easier to support something simpler than have to extend >to support something more complicated. Alright, so would you suggest creating something like drivers/extcon/extcon-regulator-output.c, and just having its extcon functionality be something of a stub for now? Thanks, Zev