Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp915499pxb; Fri, 22 Jan 2021 02:26:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJz07Yu6KhI3v8s9g3eBVF0mDQCFoKuESEoOdVpdSxqdoxkF7O89zPqOczKDD5uY0uOAOJlw X-Received: by 2002:a05:6402:1819:: with SMTP id g25mr2546335edy.46.1611311214129; Fri, 22 Jan 2021 02:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611311214; cv=none; d=google.com; s=arc-20160816; b=TnFgDcbx8EY7YNAYIJNGEVnR6uvy+aeqKuhspWwz7OpiIFGr3FGIDMvmQhaxuubkzI AD39euXPna14U7TQSizm4z71ZN65CJqGL2FGYPIwfRtsyN9lPcQgz9UQFvHZ3yevpOSh dd1FcLoIgdwsgKPWppUjQ7LeP25zdqDJXQUAnp46LxReFSrP9KrxIYaveoYjk2Kt+IOn mbRIl9htfYYKNOQZq14DYSavJpAFia4gVajXc92isoLF/Suuyxm5KxJfbhHEx/4DFDOj ou6oAGElBOPdm/CUdMoUfTjZOdwPLlhtoPX30CEgW3n39de4BAgTdNWmhsCJLIhhZlr3 UtwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=53LZGt+p3UglMmJ8LC7owG+jDtMJhUwB3mc3c22vo3w=; b=Fpva7wkGPbq5Jlp3Bj6Tv+LMeeXjLmAGVFZXr9fnWkvRUoubrdAF3d92SbV1kRvHYP +m7nzKadgKKawNoPNEJgx+oQAGaw4jKttPupSQKbWZrGxw2cbGoz9OpBjWwvUnQ2jXd7 BnHxQSw1E0TkSnN+fNgPbu5srxRw6uv9WqHywaGyrPkrIuuaOfsmyMsh7OXkh2hNinz1 IPkOeXJkluP3oowv4wnsE0fZYs+9SvPI1ydLhaAdiBU/n4iUpyrop4GUxVRe3X7CY+T1 6BmDnf7/4iExpUXGDVnZBa6PVxulUrxr0SgO70FOSabtFVsBsjj3EeGbmdJtwZIi/w1R mJLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="yh/tASQs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si2778443eja.115.2021.01.22.02.26.30; Fri, 22 Jan 2021 02:26:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="yh/tASQs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727914AbhAVKXX (ORCPT + 99 others); Fri, 22 Jan 2021 05:23:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727809AbhAVKH0 (ORCPT ); Fri, 22 Jan 2021 05:07:26 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C46CC0613D6 for ; Fri, 22 Jan 2021 02:06:43 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id v67so6767452lfa.0 for ; Fri, 22 Jan 2021 02:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=53LZGt+p3UglMmJ8LC7owG+jDtMJhUwB3mc3c22vo3w=; b=yh/tASQseJelhwA8jiNe7G+W3KDRWW1njEvuW/XSR6hWhLACFO+3sS7ZPZgJ9aST0v oFk/pn/i82nx2thugENYmvvL3JfDvOlhHldDiLx+runOC2sJlqzLL9M6NpJvY6PV1pcG OgpdD/gayiEOFeOg1e6OJxfd/6GJOOgFxOr68V7TeyWGKerpb/HV/1qyQ9LYPNLPv1+z hlWzdt0d0bo4bmizD9krbFveuKWYj0dlkBhxBoucYfvdsWW8jV/8zj/FYyUbfLRBhpJ6 NgC3ooDGAJiOCtisAeBgSmc0XoZ4oEoOF+SVNjhNdQJd6dAEWnj817BaPGSwMmQ2JGR9 OYbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=53LZGt+p3UglMmJ8LC7owG+jDtMJhUwB3mc3c22vo3w=; b=VyE96W6iGwWj3HEgeeLql0MBXdmG+Nj14jvuP+6sNQaGjkFG8/Gn/QN5dS+WN+Np/X CwMUinQyVr64mZcOTJ+sHT6mzaAf8HRkWtSOKNWqtkH+GX2JzGgxrGDyHX/4z7cN29vV 0H22q0b/62GqWYnixB+G/jG2/Ssy73+G0OcpJYRUOCG0GZXjztO3UNitc7fZ8gUiDJaH ZK4ikTcuWDJrM9daNOsiLdRtbIM6wn91NwmjQ9j6cZ9mLOj+S09VAvk/gbox3OP2mceG 37OKkhLt4PIveGVq1cf6mcM5BTP8LAlqZevlfmjkOpc69wcADp8px8225+2f3/eOhLYN NGOQ== X-Gm-Message-State: AOAM533vlNW0bq7ypgyEY/EfxNEZ9/PJZVtUO4VrEve7X4pzWakE1M+P Cv4udJnzNypyw88HJvFeTYGFa62sCuaVI3EmjVh4tg== X-Received: by 2002:ac2:5c45:: with SMTP id s5mr32690lfp.586.1611310001970; Fri, 22 Jan 2021 02:06:41 -0800 (PST) MIME-Version: 1.0 References: <20210111054428.3273-1-dqfext@gmail.com> <20210111054428.3273-3-dqfext@gmail.com> In-Reply-To: From: Linus Walleij Date: Fri, 22 Jan 2021 11:06:30 +0100 Message-ID: Subject: Re: [PATCH net-next 2/2] drivers: net: dsa: mt7530: MT7530 optional GPIO support To: DENG Qingfang Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Matthias Brugger , Sean Wang , Landen Chao , Philipp Zabel , Russell King , netdev , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , "moderated list:ARM/Mediatek SoC support" , "linux-kernel@vger.kernel.org" , =?UTF-8?Q?Ren=C3=A9_van_Dorst?= , Frank Wunderlich Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 19, 2021 at 4:20 AM DENG Qingfang wrote: > On Mon, Jan 18, 2021 at 10:55 PM Linus Walleij wrote: > > > > So for offset 0..14 this becomes bits > > 0, 1, 2, 4, 5, 6, 8, 9, 10, 12 ... 18 > > > > What is the logic in this and is it what you intend? > > Yes. Bit 0..2 are phy 0's LED 0..2, bit 4..6 are phy 1's LED 0..2, etc. OK add a comment and explain how the bits relate to each PHY and how the lines are arranged per-phy so it is crystal clear for people reading the driver. Thanks! Linus Walleij