Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp494275rdb; Sat, 30 Sep 2023 12:53:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLoXJS8UFUwygIH88U+SjswOP7ZLUD/JtmMnl5iwSbNNCDIixWzWNvkNGZ9zyyqNUhtjZ1 X-Received: by 2002:a05:6808:148:b0:3a7:5d6e:dce9 with SMTP id h8-20020a056808014800b003a75d6edce9mr8120461oie.23.1696103585857; Sat, 30 Sep 2023 12:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696103585; cv=none; d=google.com; s=arc-20160816; b=d3M5MEtqZUM7DbWcvALFl2HgbkWAswasBCyvic236C387+susmmuel1RR3ITzmdvv2 dWqfDvjS5GxAa7e9xMXkpzydWC0wQ3XhRX2I8/LwlIlciqY6IzU4q9oC9m5Fnha80fHe 3WDvv3K9uxmO044urlhkkrNitAAL4eCzexP0AVJjp5lCHjzPpfifs0pKq2faRErjinT5 ASJ4hNnabLRjoyq2ePp7T+xAtr+LjlTH0htzgMtxjiYNSuuND2Z8IOqGtCtd1v4Ek/8L n8OzX5vrnEcZM/ybTuLMGfFRIaMvaaottivGtg4bIjLonaXCrBwH8Wui+jCk3oX5Vd7l e+Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Iij7GZPs4ta7mpI/DDP/sOC6B5pAs6vBvsF5JU59Dng=; fh=dMJKjpH9q3xcTJvFiS8gqM8xCGGaFRkDMh4wblro4m4=; b=fyGZJMZI3FAqJooPLmuJbi+fM+38jQhqsMSvNdGgOuMVEUecbZ9lzBewW6RHOe1ZhV lzbSWsFCnMy+Y4uvsFOeDrufeQxWbLCl7GNoitb1Kt5iyH2Z57Bf6wqqPH3dnQir2aW1 Ni+QNI2TlJLnAqo2GewYzSZ1usUldzo+e3C8uqMcsGNp2cL0Nqn8m9Nnn2gM1Ar+nePJ /wIdytJyBwv95kqIqPpQSE3r7bNtN3AqDfRISg+6WmzO+nP97/Fypv9eDZZGaoXrzOIP ASDomL0EDyCzC7HFVTFoUJugRqDWGSXtlebmKBiXeG0VMX6XXvFSCoDWhBf6wHG2xOXq nHvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sYzo6XUj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id f16-20020a63e310000000b00584a8c7cb41si2298860pgh.225.2023.09.30.12.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 12:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sYzo6XUj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C8D9380747BC; Sat, 30 Sep 2023 08:37:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234256AbjI3Phj (ORCPT + 99 others); Sat, 30 Sep 2023 11:37:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234334AbjI3Phi (ORCPT ); Sat, 30 Sep 2023 11:37:38 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2FB9EB for ; Sat, 30 Sep 2023 08:37:31 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-59f7f2b1036so127911547b3.3 for ; Sat, 30 Sep 2023 08:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696088251; x=1696693051; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Iij7GZPs4ta7mpI/DDP/sOC6B5pAs6vBvsF5JU59Dng=; b=sYzo6XUj/VGXsS/c+8iIR/YiKUJBwnimrOMTrD+9AUnOIlUUa+wIQpkqJpMyHu/bf3 d4+1cDx5AvDqd5noI/NmQZhb10XCf2l8YeZJ+vjZgD/EBXHWLMG0DGxPXcTDNouaD37Y KptpNMaeTeRLAfOvYv4NWBe6a6fVZvxUlO7i8GMXc8wVhc5FpGVv285qRKt5d9Yz6M4a 1jh5qc3Bj6I612sXZ9g4DcjZS0+7mfrkOudLL53a6W8DsPdyyCnMvvXD5BY4B3bJJJ5O /vNzBAyqjW70SEluDVl5R9zhVXvcSV6igSvORQ4pfcYfRmUEV0/CJ5ttuXWQddP3dS0N r+sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696088251; x=1696693051; h=content-transfer-encoding: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=Iij7GZPs4ta7mpI/DDP/sOC6B5pAs6vBvsF5JU59Dng=; b=ZYUqWotB+aVFHvBDO/ANVkNoEbVg91XclQng2Z3XPYdv8tUc+zfclad8S82PAwBeGq 66wMaNh1/qqWBhXuaES430LRp6Oh8i7oLMCqtwJsGl/p+o5FUt7/nzKLR839L0oxBTpt B3TkhKheCmP+EOgByaPlMo1O9TZxLOVu291A8wBufHUMoOWTorjrjkJzWdUOpp0fK3jK cwSD3Yw7G5F3vSfPLhVdlTHLZB+E+l42A7b3eXPACyp11qZI/2cOYwHkNQXSjKSm1zuT xFfQ0xz9XqILt5A09IGdNxaDL+Y4F/LEx4XjYPf8iKt+lFiAHNUGdMBi2/AphxMFZOrG cxqw== X-Gm-Message-State: AOJu0Yyd4Z28Lv4uzi7RDrHUFIG8PJTk92CZovRUJM6IqifieTipT+mn wcPpgiPhrnZ/B8uYYdjvtbFRcVrCYWZsDVZrYAK6eQ== X-Received: by 2002:a0d:ddc1:0:b0:5a1:d4bc:7faa with SMTP id g184-20020a0dddc1000000b005a1d4bc7faamr7394744ywe.18.1696088251028; Sat, 30 Sep 2023 08:37:31 -0700 (PDT) MIME-Version: 1.0 References: <20230929-pxa1908-lkml-v5-0-5aa5a1109c5f@skole.hr> <20230929-pxa1908-lkml-v5-7-5aa5a1109c5f@skole.hr> <5715527.DvuYhMxLoT@radijator> In-Reply-To: <5715527.DvuYhMxLoT@radijator> From: Linus Walleij Date: Sat, 30 Sep 2023 17:37:19 +0200 Message-ID: Subject: Re: [PATCH RESEND v5 7/8] arm64: dts: Add DTS for Marvell PXA1908 and samsung,coreprimevelte To: =?UTF-8?Q?Duje_Mihanovi=C4=87?= , Chris Packham Cc: Robert Jarzmik , Bartosz Golaszewski , Andy Shevchenko , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lubomir Rintel , Catalin Marinas , Will Deacon , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, afaerber@suse.de, balejk@matfyz.cz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 30 Sep 2023 08:37:41 -0700 (PDT) On Sat, Sep 30, 2023 at 10:25=E2=80=AFAM Duje Mihanovi=C4=87 wrote: > On Saturday, September 30, 2023 12:05:41 AM CEST Linus Walleij wrote: > > But it exists, so I can't say you can't use it. Not my choice. > > I understand it is convenient. > > > > It is possible to switch later, but only if you have a unique > > pin controller compatible so please add that. > > Maybe a dumb question. I might want to do this at some point to clean up = the > device tree a bit, are there any such pinctrl drivers I can use as a > reference? Since it's Marvell after all (albeit a descendant of the 20 yo PXA platform!) I would expect new Marvell SoCs to be more alike the AC5 bindings that Chris Packham merged only last year: Documentation/devicetree/bindings/pinctrl/marvell,ac5-pinctrl.yaml Driver: drivers/pinctrl/mvebu/pinctrl-armada-xp.c drivers/pinctrl/mvebu/pinctrl-mvebu.c But if this pin controller is more related to PXA (Intel) hardware than to either Kirkwood or Armada, you might want to do something entirely different. It depends a bit on hardware. Hardware such as pinctrl-single.c with one mux configuration register per pin usually follow the Qualcomm way of doing things, which is to simply have one group per pin, then that can be associated with desired functions: Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml this has the upside of using all the standard bindings for bias etc. Driver: drivers/pinctrl/qcom/pinctrl-msm.c then qualcomm have subdrivers for each SoC calling into this so you have to check "real" bindings and drivers such as: Documentation/devicetree/bindings/pinctrl/qcom,sm8550-tlmm.yaml drivers/pinctrl/qcom/pinctrl-sm8550.c Yours, Linus Walleij