From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 92313156661 for ; Fri, 7 Nov 2025 18:16:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762539384; cv=none; b=mDLgqSiO0djP27oDKsIVBUS5mJWJjaB8rdvBpHVGr6BzNOALfkAh+aY1B+5Wsxg7tRu2PrgGzIxxf00sADlIBaIV22R8bONmNsJeDZG3e6fUFkOifDMmt8lfn1KXiDKA5nIVRaobtxex6wYH8pSRlPjblxqDX9DmDYsfMVzYD4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762539384; c=relaxed/simple; bh=7NAI5FTEyIjlm2QNRL+eBBHPdSk1Sz6seoRXTUUH+h0=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eAfBCy+EVKe9L+qq57Y9yQYnXjO485kQeV/oh1RfmQ8CnnLpmcufudhX0yMc7RjdpnvYWsUw2VAp4gkPECJhoiScDXvGCUFXlYTLekFwCRaAfxZjBuNKBYd9wMky74iU+sWGxs62YdOXsdvc3mA7PF2S24dGNTX6EWeycra+l5M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UE6nluFp; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UE6nluFp" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-429b72691b4so841537f8f.3 for ; Fri, 07 Nov 2025 10:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762539381; x=1763144181; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=tVJ2xtJlmj5EezO+VKSHrAcAYjS9yDJNYT/T6/c6kPg=; b=UE6nluFpxEZoWh57vmSk/hMa4YWOQZv2LrubOYKt080kzcbRhfKlVsjzu527iAxx3f i4jH6LbeBu+rWsarkhgvVO3Fel10ahN6nGkV4o6nCK4cmYMFaRyZcXhoqRTbbaB7xBST D6eBLFK3/QwNtK/FqAsZN3sUMl+UgEsZDZr539IowhmAfqS5LmdLkOuZgoktAqg15upA RbSxvNBGjyfaGHFTjZZTQbq8UDToxTj9JLKfn+xj/Ou4iSqgdiHP6lsSpwUGQ3cJnow9 NVdrrpysnFNCPzAs8U7Sdi7yHmCNmfpTVqvea2IGq8ioEoKIidmSlO7kfLQ//xlwTixq li4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762539381; x=1763144181; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tVJ2xtJlmj5EezO+VKSHrAcAYjS9yDJNYT/T6/c6kPg=; b=egQMvEfrRGwm95UNJqnpayhtJ4CAg8d5AdbNRNkKgIkFsJGbzHaMWY+wTlHIknXQXz lsWQb7Vgxj9OD8V0zYO9TS4jqFMwWjTNEId8/y+SjVQ3NQkHqAxpWCwiodjXSMev3KIY OwUYJsA92LddiNccHpvFWPZfqfcxV1vVCeNLWxj4XIpJUG64aZ9SkQ6guDxKsfnqyEsa w3PqJV6+LauJyRZ+iGF5Cc5Z94u+kGHTBL9Pk3ABH7gbEHJMJetPPv4KEw0+980byHYy fadMtmphaSOq3G5T7l62wEnKhnP3SU8yo/7b7DoklIovajtr3M6axOnysdJYG2mAq5Uj eAFg== X-Forwarded-Encrypted: i=1; AJvYcCWSh3+m5ln6u6C35n9li/Z9DB3G7Bvt9UhkYHMPsmf0IfXAxh8ci5YIv+I7cAFdAZY4KAe60fWURZogvfc=@vger.kernel.org X-Gm-Message-State: AOJu0Yxk6iesQX03YW6Tk2Yv36HWKNjc0nK17KMKDn8p/BZTojF4YwVS 80EXpGhCuZ1hCQBKq+i2uFnTXBMN0lebvjom9IOGG9RSAqhrntJxjVAC X-Gm-Gg: ASbGncuV20/8A2jZ31cQOREiQ0jYogli6LGfePzAxgLIo10D0bjVE89SDeo4HrkodLj loqIu5nWu/mXEMBlQBWSJ4nKFCnrtkR+YCEHYYQQfQdg30i9z9xC7G/U8dETRCywxSnks1L2nWC k21WbucHD/XZTmTViWppsPcYvRldrcXHKAQNv3JhekC7lpXr5TVmSHxfutTGlRqR8jmH5UYV7ZF xi82UDE2vlUaD7Dp45NuKylzG8hiYxmGVw7nemMNgqXSrrWBG+3lk9pcl/bO6tDlJspdWeG1evk kOhZERKiJlvvBsq5Oe7cjLKJKXf/cWMm4MaY8uQInvcXah3JBlCdA6j4Uh2SiXltMZAscuvkOf5 78knrsknRvrD6vN6IsHAGBxaTuY9vqAeHevERVkNUP47qViq+/znU4cAGo17AFbtxsHdK7K6Nkx /ygWGidf7HLXSNu64WFBm5Mt43NVnGr4F1cVy9YsI= X-Google-Smtp-Source: AGHT+IEp8RA70w6dQWLu5Sj+5AV/4tZ1eqge9CXFqZ79B7Chsq8jWBSCViddS2yq0HyDzJ/vWl+q5Q== X-Received: by 2002:a05:6000:25c3:b0:429:c851:69ab with SMTP id ffacd0b85a97d-42ae5af4abemr3058281f8f.55.1762539380754; Fri, 07 Nov 2025 10:16:20 -0800 (PST) Received: from Ansuel-XPS. (93-34-90-37.ip49.fastwebnet.it. [93.34.90.37]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42ac679c5dcsm8032998f8f.44.2025.11.07.10.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Nov 2025 10:16:20 -0800 (PST) Message-ID: <690e3774.5d0a0220.2246e9.71a5@mx.google.com> X-Google-Original-Message-ID: Date: Fri, 7 Nov 2025 19:16:17 +0100 From: Christian Marangi To: Conor Dooley Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lorenzo Bianconi , linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/4] dt-bindings: soc: Add bindings for Airoha SCU Serdes lines References: <20251107160251.2307088-1-ansuelsmth@gmail.com> <20251107160251.2307088-2-ansuelsmth@gmail.com> <20251107-crisping-doable-365d6b7d60a6@spud> Precedence: bulk X-Mailing-List: linux-kernel@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: <20251107-crisping-doable-365d6b7d60a6@spud> On Fri, Nov 07, 2025 at 06:14:31PM +0000, Conor Dooley wrote: > On Fri, Nov 07, 2025 at 05:02:43PM +0100, Christian Marangi wrote: > > The Airoha AN7581 SoC can configure the SCU serdes lines for multiple > > purpose. For example the Serdes for the USB1 port can be both > > used for USB 3.0 operation or for Ethernet. Or the USB2 serdes can both > > used for USB 3.0 operation or for PCIe. > > > > The PCIe Serdes can be both used for PCIe operation or for Ethernet. > > > > Add bindings to permit correct reference of the different ports in DT, > > mostly to differentiate the different supported modes internally to the > > drivers. > > > > Signed-off-by: Christian Marangi > > --- > > include/dt-bindings/soc/airoha,scu-ssr.h | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > create mode 100644 include/dt-bindings/soc/airoha,scu-ssr.h > > > > diff --git a/include/dt-bindings/soc/airoha,scu-ssr.h b/include/dt-bindings/soc/airoha,scu-ssr.h > > new file mode 100644 > > index 000000000000..a14cef465dad > > --- /dev/null > > +++ b/include/dt-bindings/soc/airoha,scu-ssr.h > > @@ -0,0 +1,11 @@ > > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > > + > > +#ifndef __DT_BINDINGS_AIROHA_SCU_SSR_H > > +#define __DT_BINDINGS_AIROHA_SCU_SSR_H > > + > > +#define AIROHA_SCU_SERDES_PCIE1 0 > > +#define AIROHA_SCU_SERDES_PCIE2 1 > > +#define AIROHA_SCU_SERDES_USB1 0 > > +#define AIROHA_SCU_SERDES_USB2 1 > > I'm going to assume that 01 01 is correct here. > Acked-by: Conor Dooley Yes the value are then translated in the driver internally. -- Ansuel