Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp121888lqr; Wed, 5 Jun 2024 00:22:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjUCPXHzgEX44ra5k7CsBwjmUvfl9/EfQQyu5gH5t8UDCr0eBImLBYJ48hdx+A5Rv+dDTcVrivnNIZ7KDj/0BoBK8Yx3y1rpWajW7fQA== X-Google-Smtp-Source: AGHT+IHoGCYu/xZvsHP0h5AEzhy43nh0hYXN4Ex7cTGBP0Zy82NUJJ9t3jX2MeD+rJShYIw6Ur+M X-Received: by 2002:a50:d001:0:b0:572:4fc3:3a28 with SMTP id 4fb4d7f45d1cf-57a8b6fc3b5mr1009978a12.23.1717572127846; Wed, 05 Jun 2024 00:22:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717572127; cv=pass; d=google.com; s=arc-20160816; b=NnSqFbGoUSC2xduKypv0GHjnJWWPQaW5UxpgUhmLHYKxkoL2CEupVnMSIN5U488wUs a6vovR4MmbMJrSfyPYp5jj/jPHJ1P15PCQiYVNELHwL5aOGLOGQEp9310BHsgPEFC6hy 26zNMbuxXtbZC3QEOHJ9HvggtrgEgEMyv8UEWmj3M7mZYIu2ZIQhzvdXxs9WYVXhWh+5 h1v7rxY6GzNq5rORjHwuMC0DIh0j0KwuzfMis/PMmyu9b8H2IEU/HQx4wHpiv0V6IWhh TrzIaHfUU8mXCMwlab9iy5ZylGMSJxBXcKNJA+sD9oSa7+c214PS4tlZXNZOq9MLP0HT Ns8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ftNw0AS7CQGnX8gfpBjn/H2fKad925eIDIHZ9Kmvfzg=; fh=GCUvUv5fnSpzzmKWDB3tXU2grfyuJC30hqHu5Le6QA0=; b=e+1++33RzDPC5HQusiauKFlD7WRLnvWbIfqKkKyapPr5U7Voqjsu5XgBsdE6W6vBkD TMpX9yIPxsu/M+ZLeFMSSof+u2txqenDBzOI25k1++eWxiUho29muN27tGZ0QW5FMoxC UhhN2QFaqkKAUiX9dzfMTDwQpmNh8zHFTWxxMDQ/T1+biMRzSS1qALmfVqSqO7ETuKTA WmWHtAjUig0NdqKyfgTX9ukIWoVS79THQnI858Ee4nDwhL29a9K6erbiEj/WUSl1QlcC 8OcXTCrQuaPZXRg7mAfmCxSbDZcdbtLOoSU3A2oTapHlbKZzvy6ahVzYPcpt+07WdqVX OQ4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W++ILAZU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c8f4fdsi5802603a12.468.2024.06.05.00.22.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:22:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W++ILAZU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 924701F26E81 for ; Wed, 5 Jun 2024 07:22:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E29F41922D1; Wed, 5 Jun 2024 07:22:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W++ILAZU" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 818291922C3; Wed, 5 Jun 2024 07:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717572120; cv=none; b=m/nXZ2wZ1QevfeOaBH7mu9mLI2zrO3T4diqmzMyCbpWlNsPqCUKiL8Jd22NrZyyLxAhe6kPt4lKsZni4VOgqynUAGtjAEkUftXjG6DQq4boyoWzAk+xQzfyrHn0zGHsH81qEC8YMBM95qi2YdBp+SFpF5h3cjw9M0MN+r0nGpFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717572120; c=relaxed/simple; bh=Ut2Oosn9WqZjf3PYE8F8z4qKVMvNcq2/CyZELFxomFM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dfXMJOZZWtlYjIGzwKiUg2J7un+9UlOX4GnXpiVN6cNWdS7xaTKoHEqlLxmsHhD5r85/2UCcZIaoybsWEWjTnxnxOF3QpbwpD4SPLY5NDroontxwfl4BRZJLdRznEwgQjBJkEFfPBcZCSm2at33F5ML+D+zJKevit5MaaHowX3o= 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=W++ILAZU; arc=none smtp.client-ip=209.85.218.48 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 Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a68f1017170so198169166b.0; Wed, 05 Jun 2024 00:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717572117; x=1718176917; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ftNw0AS7CQGnX8gfpBjn/H2fKad925eIDIHZ9Kmvfzg=; b=W++ILAZUrdSrc4ar/a14RDeEIleZMrxvAwbX0t4LwMrxvp+tD8v2aMkYsPGxfCJUw8 fZelpnKb0ItaD8QScGYS5EJnEs2DIf/t0XaaMt9OI3kj67ig1kftG3K3jJwnY/Dm9miY w6+eNsnsC4g3ll91jDikNDW+ZIWoIn0dHmnetl6aucAf2CKokYvnZC+xH+i7adyM/dn3 fcofYasqYLHcUf9WrQzKdssG045j+2DWQdziiakESiXdZ+YF/NgIflPhpuQ2DIJcMWqk gYaWEzIK2mySKMFU66CAIXgNKk0YQSnA9qyKEtjmDAAGkWuV5gFBkR8WViuGPUkX4+mW UXBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717572117; x=1718176917; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ftNw0AS7CQGnX8gfpBjn/H2fKad925eIDIHZ9Kmvfzg=; b=CJRKnKpexbEXKXJGUikSHGhgH6RRv22CslssR7gSXle3C94yxRg7gwttxa+6epcqG5 A3AssCbBdNz5bpJtRbAtS63WKKzddbJLA4HnDHDP/uRipeubfegQoek5Ridy3g6w4C+S Pg6WlIKM+J8lubH5FO8Z9lHoQ7loKs94T/tBdhPwlKDEmUExTZ9Aye4fHVHkRlSJ/Fif NFvW9CzpnL7tlQ2ObnGBgcMjys2N8+7JIy3Y27h1+fxeMjVBJUBGRnIjVDnfF7g4/PeW xl/iflyfX+LZ5GvCJuw5D5nLctlP5FMsIQ8TyuY1XcaVXwfeeNSrTrdpP+A3e1bF2hfC P5BA== X-Forwarded-Encrypted: i=1; AJvYcCWInjQCOCX+pmGt4PX6JDPoTGg4Y7o9ZtawSVWQdpnazsdm+mdpiIWswlBPVQ0RiCKTNFDzhxRb8l+P7fk1m7HJwMeOZ59ox7i42pZCYbz5iVgPmcgU4LOdALt0dKX34GrSJwTxVtYubw== X-Gm-Message-State: AOJu0YzFxxG9PSk7Ajp7ySVgvsxlsklkqVNhP7PYoqEbTetkEGu4LNMs NA5Gq2vPTyWWPOta7bN4eeER/vnE5pKmAoIvDF95GdpE0U1MtS0H X-Received: by 2002:a17:906:2557:b0:a62:49ba:8242 with SMTP id a640c23a62f3a-a69a001762emr92692466b.77.1717572116618; Wed, 05 Jun 2024 00:21:56 -0700 (PDT) Received: from [192.168.50.244] (83.8.128.191.ipv4.supernova.orange.pl. [83.8.128.191]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a68f02d501csm486320166b.160.2024.06.05.00.21.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jun 2024 00:21:56 -0700 (PDT) Message-ID: Date: Wed, 5 Jun 2024 09:21:55 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] ARM: dts: bcm-mobile: Split out nodes used by both BCM21664 and BCM23550 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden Cc: Broadcom internal kernel review list , Stanislav Jakubek , ~postmarketos/upstreaming@lists.sr.ht, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240605-bcm21664-common-v1-0-6386e9141eb6@gmail.com> Content-Language: en-US From: Artur Weber In-Reply-To: <20240605-bcm21664-common-v1-0-6386e9141eb6@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5.06.2024 08:40, Artur Weber wrote: > The BCM21664 and BCM23550 are nearly identical to each other in terms > of register layout. This was verified against a downstream kernel[1] - Let me rephrase this a bit, since upon reading it again it kind of sounds like this means "subdevices are in the same place". I mean that literally many of the components are the exact same, 1:1, and the same drivers with the same configuration will work for both of them. (And if they turn out to not work, it's as easy as switching the compatibles/tweaking the SoC-specific DTS.) If you check the RDB files I linked, they contain the exact layout of not just the system in general, but each of the individual components (see for example [1]). These RDB files are called back to multiple times through the kernel (for example [2]). Clocks are a notable example of this; if you were to diff the clock drivers in the kernel I linked in the replied-to message: diff arch/arm/mach-{hawaii,java}/clock.c The only differences are some clocks in the KPROC CCU, and the addition of a MM2 CCU on the BCM23550. (Note that neither of these two CCUs are supported in mainline at the moment; I have some WIP series to start adding the KPROC CCU, but it's still an early work-in-progress.) Most other drivers (sdio, serial, i2c, and so on) have no differences, as far as I can tell. And they already use the same drivers in mainline. Best regards Artur [1] https://github.com/knuxdroid/android_kernel_samsung_baffinlite/blob/cm-12.1/arch/arm/mach-hawaii/include/mach/rdb/brcm_rdb_kpm_clk_mgr_reg.h [2] https://github.com/knuxdroid/android_kernel_samsung_baffinlite/blob/cm-12.1/arch/arm/mach-hawaii/clock.c#L4009-L4055