Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1156356rwl; Fri, 4 Nov 2022 10:22:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6bY9TSdz0CwDjcNk4+8FwcYEcvMB4/5LLCH53tGJoX8cbkJwlJHDFkd1y3QTE6RSvWwkBz X-Received: by 2002:a05:6a00:24cb:b0:56c:7815:bc7d with SMTP id d11-20020a056a0024cb00b0056c7815bc7dmr37273721pfv.44.1667582555627; Fri, 04 Nov 2022 10:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667582555; cv=none; d=google.com; s=arc-20160816; b=MbN96CgG0Zrjs9dkZetv7fBG+bLmhG2JroaiUzzMcASPOI9BeyLkiP0umzlZmkLYmY XTLCYk3L9AMrX7z16Jrt6aPhn8G8XGb77zWs5guAwwFfh2gc+AehmtnK1NTpECI0yYVV PUmlgWJfo0VG9Je+ZbXIvf3t3y9xkM8ekcPENRC6PWfyFofkXiXYbfPhr3jk39URY74x rvgdLVYkAGhZdIn0yCeZ7mLFY2wH3LG/sCc7sde879I7Y/Kt+AxEdU/ZPMwW313eLE+x 6YCZpUjYiJrlqYuCslmZjtqzM9cmbBPQdaokljjZKoYVlnoRULZgTBwgR14m4i7meIxX q4Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=t+deqpnlgE4k94JlPSRYO/kA8EcF5g1y8pAznEO26RU=; b=K6e6CB/L6GuTVQ3qr7J8YIbmBByAJ/4FcAU+CtPFTus2/6JB2wXDZ60I3OLneYLzJa C/gATIgKwLwnAA3WFRmg0Tc05Q1aAOAiKO56QdpYYH1MaKL8+CIaLDy48who7Pwy2Th+ o7zbK9OLvk1L3Mr4/+qAICrxDDeWqfva/mEoXsVz8YUOdWfziDPl429/ShoTCyOrONDi o1Tmi2/ZTois27AXhH/LVThKTmJxDSA64oiYiN4o3JyA9RSOes3iI4q46JAB+UvC8kl2 sADJzTGftXTn0c6hcN4j0GFtxyH+ToR7xMOGSw854lftLo2d0FGy96rMne5pNXyLyjWY OStg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jAdMpVKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a056a0010c500b0053e9c7939basi5916113pfu.188.2022.11.04.10.22.21; Fri, 04 Nov 2022 10:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jAdMpVKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232246AbiKDQxt (ORCPT + 96 others); Fri, 4 Nov 2022 12:53:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232093AbiKDQx0 (ORCPT ); Fri, 4 Nov 2022 12:53:26 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AFB3FD20; Fri, 4 Nov 2022 09:52:35 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id l11so8491694edb.4; Fri, 04 Nov 2022 09:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=t+deqpnlgE4k94JlPSRYO/kA8EcF5g1y8pAznEO26RU=; b=jAdMpVKzUAocTJEhTayND/WRxtbwYR7FxW/esiAISPNU8jLqXM4f9hLZZuAzjNGOdR Mix+PT2bluqmyx0xKD6yDMdlcrrrccKWNfwgyOcy6ud2+imlMqxrorJyXzFfd7Rv77Z4 HOiLQd6KJ2/EYTAmPVNTuqhQAv1xK8YGqJQIstSFlTBWs56t1njHpP/KYPCAa/VjOg4F OC5Y3hx/QJ/6JPrRYq+s9Kzjoi7ar+fduB9mBcrrDG0S8VEu7/9Nbw2yQ/5p/dP2odxu twHGAR74YgznXZNHpAekukBSMnMi7vfkBYfMfYlr5x/c7YgxrcMoI5LkMrHgFAAW+jRD KUJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=t+deqpnlgE4k94JlPSRYO/kA8EcF5g1y8pAznEO26RU=; b=GqcAyzaaN/KvUZ4OiW8KN1/D+qLJzsR9UWwvrLjV0gd/Nz8rg41TlYbVOZbSPGBb3K 6PBKXe66dD3kaly1YdmEh44Ru58iMieVsez9FFqfQ44KgWiyOA40HaTwo2gSsFSof+tx v9cPRSIay9XDinIj0qLhv7f89ObFdAFc0wwqbOJbiEATEl3TSWVKQ50stntrGzcFuEHQ botDGYPa/P78LUObF8njucZMMlDfl52+wuioss5E2ikFJpa41tvoSh4d8dFILf0pmySr 6geQRn1RbWTUytWBHL5bj4nNVxALHP33lmPduwEFvsSC5X9ukoETbQfK2GP+/wi3+sd7 Ddfg== X-Gm-Message-State: ACrzQf1AVF/klgLHEooNh7l6lHevoMlH2S4iqNnhD5DbMjFIynBGJ4LV sjIdK2eO5t7JEVkC+L+o5DU= X-Received: by 2002:a05:6402:3c2:b0:464:61f5:6d86 with SMTP id t2-20020a05640203c200b0046461f56d86mr5121297edw.382.1667580753572; Fri, 04 Nov 2022 09:52:33 -0700 (PDT) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id f3-20020a056402004300b004611c230bd0sm2162551edu.37.2022.11.04.09.52.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 09:52:33 -0700 (PDT) Date: Fri, 4 Nov 2022 18:52:30 +0200 From: Vladimir Oltean To: Krzysztof Kozlowski Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] dt-bindings: net: nxp,sja1105: document spi-cpol/cpha Message-ID: <20221104165230.oquh3dzisai2dt7e@skbuf> References: <20221102185232.131168-1-krzysztof.kozlowski@linaro.org> <20221103233319.m2wq5o2w3ccvw5cu@skbuf> <698c3a72-f694-01ac-80ba-13bd40bb6534@linaro.org> <20221104020326.4l63prl7vxgi3od7@skbuf> <6056fe63-26f8-bbda-112a-5b7cf25570ad@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6056fe63-26f8-bbda-112a-5b7cf25570ad@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Fri, Nov 04, 2022 at 09:09:02AM -0400, Krzysztof Kozlowski wrote: > > I think that spi-cpha/spi-cpol belongs to spi-peripheral-props.yaml just > > as much as the others do. > > > > The distinction "device specific, not controller specific" is arbitrary > > to me. These are settings that the controller has to make in order to > > talk to that specific peripheral. Same as many others in that file. > > Not every fruit is an orange, but every orange is a fruit. You do not > put "color: orange" to schema for fruits. You put it to the schema for > oranges. > > IOW, CPHA/CPOL are not valid for most devices, so they cannot be in > spi-peripheral-props.yaml. Ok, then this patch is not correct either. The "nxp,sja1105*" devices need to have only "spi-cpha", and the "nxp,sja1110*" devices need to have only "spi-cpol".