From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 670ABEB; Wed, 13 Dec 2023 10:46:07 -0800 (PST) Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3ba2e4ff6e1so113274b6e.3; Wed, 13 Dec 2023 10:46:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702493166; x=1703097966; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ypDAUZtqQsHCWJvG9R68gKE5grPMiGIdHhSF45/XI9Y=; b=J5ZaGphrlGw8cDc6qEUlXkDCCh2yYjW2eoIQImxxNgq/Dl5sYF0gToYecka6tGJvv9 KzsvsRiPNNYjVYub3SBXV70FJHWWXnBTgzZbtceBdVIT4++ksSIhbY1uvAnv+uJPZp7s JEWy8yHWQQH0xfvD1bShvnfuQefs2SlZwT3qwnXTD4aVboMgV1M9+m59+D/+6QXn1PB5 +l1mRp0b7Bv/WACnHRMNrnOdjcepgOXS1S8OJ0XkRNGOBUFRSHqlOPP46A6uypAfs8E9 mPdUvsDTe+BhOSbBrx7nwf/GPWhuIuaVwlZR/Vz1uJCc3kWcNJthG3vIHwOj2IBgduG0 H5uA== X-Gm-Message-State: AOJu0Yz6YTv6s3c6lCPTIPgVc8+nRgBch8cxs2AomfeSjMujTTZd1fHc 8Xwy22359Dk2peeRDAhnrMHz+thGTg== X-Google-Smtp-Source: AGHT+IFr/VJgLdjQp5boJaMDjP0/Xxbbt4r1gRhYk+65qogG3aH9Gj22wXCt/wNNPMMIZWVT/JGFTA== X-Received: by 2002:a05:6808:3c8b:b0:3b9:f584:1e9 with SMTP id gs11-20020a0568083c8b00b003b9f58401e9mr11687488oib.7.1702493166470; Wed, 13 Dec 2023 10:46:06 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id r5-20020a056808210500b003b85c2b17efsm3049174oiw.9.2023.12.13.10.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:46:05 -0800 (PST) Received: (nullmailer pid 1705906 invoked by uid 1000); Wed, 13 Dec 2023 18:46:04 -0000 Date: Wed, 13 Dec 2023 12:46:04 -0600 From: Rob Herring To: Christian Marangi Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Heiner Kallweit , Russell King , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH 1/2] dt-bindings: Document QCA808x PHYs Message-ID: <20231213184604.GA1701402-robh@kernel.org> References: <20231209014828.28194-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231209014828.28194-1-ansuelsmth@gmail.com> On Sat, Dec 09, 2023 at 02:48:27AM +0100, Christian Marangi wrote: > Add Documentation for QCA808x PHYs for the additional property for the > active high LED setting and also document the LED configuration for this > PHY. > > Signed-off-by: Christian Marangi > --- > .../devicetree/bindings/net/qca,qca808x.yaml | 66 +++++++++++++++++++ > 1 file changed, 66 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/qca,qca808x.yaml > > diff --git a/Documentation/devicetree/bindings/net/qca,qca808x.yaml b/Documentation/devicetree/bindings/net/qca,qca808x.yaml > new file mode 100644 > index 000000000000..73cfff357311 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/qca,qca808x.yaml > @@ -0,0 +1,66 @@ > +# SPDX-License-Identifier: GPL-2.0+ Dual license as checkpatch.pl points out. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/qca,qca808x.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Atheros QCA808X PHY > + > +maintainers: > + - Christian Marangi > + > +description: > + Bindings for Qualcomm Atheros QCA808X PHYs > + > + QCA808X PHYs can have up to 3 LEDs attached. > + All 3 LEDs are disabled by default. > + 2 LEDs have dedicated pins with the 3rd LED having the > + double function of Interrupt LEDs/GPIO or additional LED. > + > + By default this special PIN is set to LED function. > + > +allOf: > + - $ref: ethernet-phy.yaml# > + > +select: > + properties: > + compatible: > + contains: > + enum: > + - ethernet-phy-id004d.d101 Move this to properties and drop the select. > + required: > + - compatible > + > +properties: > + qca,led-active-high: > + description: Set all the LEDs to active high to be turned on. > + type: boolean > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ethernet-phy@0 { > + compatible = "ethernet-phy-id004d.d101"; > + reg = <0>; > + qca,led-active-high; > + > + leds { > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { > + reg = <0>; > + color = ; > + function = LED_FUNCTION_WAN; > + default-state = "keep"; > + }; > + }; > + }; > + }; > -- > 2.40.1 >