From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF45FC4332F for ; Tue, 4 Oct 2022 06:47:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229623AbiJDGrD (ORCPT ); Tue, 4 Oct 2022 02:47:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbiJDGrA (ORCPT ); Tue, 4 Oct 2022 02:47:00 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 445B32CE2B for ; Mon, 3 Oct 2022 23:46:58 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id bp15so6276504lfb.13 for ; Mon, 03 Oct 2022 23:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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; bh=tH7+t2HqGTTLAn5U15AmEC7Y23/7rS4kVyazgbWS48k=; b=Z+dG+aszAmppo5XSVUGmNR26l3xE/M5MR0WHpls1gy4foJW7nCl4Mm9ekNUVXRoaH0 QXt8m1Fahx0q8u2fRxu3R9xpsYEb3M19hXjQlwjaOXW+g8948QUcQhIZDwnUpyPUnaea XnaYIbPhkdtJLKIPW3ubMjP39K/rb4sD27REiGS4H66/OHKFWXA6d404O9QpWdqa7uwi yjapYxRCKsKpf5sIRbiDxTiejfL/P2cqr8C9NbHKHGJefolqRuaIa7k7KDG+ZoCuZe9B j607D3QcVBtTz6rtmcryvKPod2n9LNw0Hz7Qu6dQYm+XAhLzh8rK7PrBuPyYon7JLtae xpTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=tH7+t2HqGTTLAn5U15AmEC7Y23/7rS4kVyazgbWS48k=; b=TK9rQG44JNQFJnzx9soLHD6JIfyM6IwyyTeiygtWHjRsHDEWkcoo0bKeb79hZw155Y 4ZLF9h9HQNyFZ4qVi7SodG5CAgWHRd1uyu/evkMWuLOq6LO0g07H4q4CiQ5tx5emaC6g 7VUjGGhDzG5jwKT9Tkw67ALQ4UO/Mivi3oajjnnZQ5YzSDR8/NkwYk0/uKrMy55fHeih r4Lg/y/AVujeIpREO6Cr7ayNXbvrHQU33wt6hjSizqGYYz7q7T4scDUjXc5R+PyusiPv cUxCMLMtLSeAhSBJ/TchoQdvnWeoHtohOsubNffIJXGCuMudIF34mNLos1UWOYrT+xy7 xXJA== X-Gm-Message-State: ACrzQf3YtmrW8ufXDsh5guFzR02HoOc9pQAQd+eJRk+RdgwFU0+i2uV1 SgouQC5LtGiRz1DZfG5DQoybJg== X-Google-Smtp-Source: AMsMyM6xcFMYAmJwdvVQO7f4C23opw1Pd52bbpVCkk0rpyH9p8JeRuwLoj2xmeSfWLKP2YQosWgrwQ== X-Received: by 2002:ac2:482b:0:b0:4a2:27b7:41d2 with SMTP id 11-20020ac2482b000000b004a227b741d2mr4626048lft.472.1664866016635; Mon, 03 Oct 2022 23:46:56 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id cf40-20020a056512282800b0049110ba325asm1777595lfb.158.2022.10.03.23.46.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Oct 2022 23:46:55 -0700 (PDT) Message-ID: <950f3844-ed7e-4f18-9a27-f06c7947af02@linaro.org> Date: Tue, 4 Oct 2022 08:46:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH 1/3] arm64: dts: qcom: sdm630: fix UART1 pin bias To: Doug Anderson Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla , Rob Clark , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , "# 4.0+" References: <20220930182212.209804-1-krzysztof.kozlowski@linaro.org> <76b3269a-1e04-1e93-c06e-ec0f28536cc5@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/10/2022 17:29, Doug Anderson wrote: > Hi, > > On Sat, Oct 1, 2022 at 2:58 AM Krzysztof Kozlowski > wrote: >> >>> I would also note that convention on Qualcomm SoCs that I've worked on >>> was that bias shouldn't be specified in the SoC dtsi file and should >>> be left to board files. This is talked a bit about in a previous email >>> thread [1]. >> >> Uh, that makes a lot of sense. It is almost always a property of a board. > > Right, though it can make sense to have a "default" in the SoC > sometimes. If the default is safe, then could be. But it is still causing a risk of developer just forgetting to configure the configs for his board. Bringup of DTS should be a conscious decision, not just "copy and hope it works", therefore recommendation is to configure per-board properties in board. Even if it means duplication. The same was for board-provided clocks or aliases. > For instance, for i2c you almost always want external > pullups so you can tune them to the speed/trace lengths. Thus having a > default in the SoC file to disable i2c pullups would make a lot of > sense. The problem is the ugly / non-obvious "delete-property" we need > to put in the board.dts file if we ever need to override the SoC's > pull. :( Which might not help in reducing amount of code... Best regards, Krzysztof