From patchwork Tue Sep 17 12:44:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 829293 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 DF52A5258 for ; Tue, 17 Sep 2024 12:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726577088; cv=none; b=OddWKwOwDFY29H0esQBjDqOyWqMTdytjEUZSWyUGm0ZmZkTnp80LI/LJOuAzNT2ylUC2Em6xZ3elOAplwuc2QNFipbKfUxTyxxeOfLRAGvuuQAk2D3Xwuy4C/FdZTVxMPgvQfpv5IJ2ABRRWCFxtUeg+vJR5fT8DqznBrbH3A4M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726577088; c=relaxed/simple; bh=1mUzvs1TILcBMAkaPqE5dPVuuIBtAQ/W7e6G3dIg5ns=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=BipPqpK8AnWtXtMZDnZCpLWA1yBNdI4ZTwYxYgfsFAAxwpgQ/IW8H0l7ayCoDdCgRyFJ20ASc0Y1LfD42+EITfGyH75agrVJI1FxCk0QjH/HF/H9yAFSF/hNJjiUE9S/WNPAC/9DmEPjGscbt+pbrXrfsuYgS98mqLZ/8Q9ty68= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RD8fz/4a; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RD8fz/4a" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5c42bda005eso3980831a12.0 for ; Tue, 17 Sep 2024 05:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726577085; x=1727181885; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=PiRZNwjBI+9vRyv9uoBmKUeVwLwHAiC2DXtYsieZeIg=; b=RD8fz/4abBImLju6fy/7cBssRZHJjYCQ0dggkst3cL5LfvOZmUDYp1dqe25dBhYJBr d+nizqs5UsGy4FDx9LRWw1UjCwdMOyINc/7BLpkKezD2d4zsRJF5EaUzLOn3fp3QF4/F W87Jt11AHGWKG0C8GrsHCsXTc3wP8ISOQgJ0bHpNWVBMzMWe3ewXCxUErYHR99OH+6Sp VNDL/BdF90/A8ZnOmGaO/w/74pLV2AH3uh7gZe9MWZpTmOh4z/kLsKglqf8EoK4Vd4pa 1V91VEpoho585uv7SWQUe+ZcEGxuzi1JYLZRkIUXhuHyxm5jZb/bbLNLuGTkK4UtD2y6 kRDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726577085; x=1727181885; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PiRZNwjBI+9vRyv9uoBmKUeVwLwHAiC2DXtYsieZeIg=; b=dcVVM0Iz+PC16CLl5T3OOv7Rkm74zQn5SIPX1QkFdUiA74kYX2xlAdnPtm1vaORG5y Jg/PcbwGnsBijDVSHEQDfxJ1Jz/i42/PiLCqtZjn7drND4/d9MUzm2LHhBE+SU6nyClj jyBGDE0UbWxg7fjPH/nU0VM8RcWTHRwoUCil94GNNDG+MFOCl3BNArOEzIoZ2mXJqmtC /WMc/knCqFwSSzN5Xzag9dSyN9iCjQ7i/AvIaL2KkQ5V1U/SRogPLYYh3NTKmWZzkvEZ g/CNksEIrILQ53aUBJZjU8B1JtDUOjJkYBcumIcgga+q2rPcgacL9sFeaeE57y8ZLEg6 Q4qA== X-Gm-Message-State: AOJu0Yy3BNhV/1JMuMf4GCMHyK9V+8hw5WXwxLXJoNCYGFyaM6XAxJmp GAE4SNZG4lcQcJpGJibXaW/9c9zdGRSwOewKV8VLoALPHkfeaYvSlY3SzTiEjmU= X-Google-Smtp-Source: AGHT+IHTTUcSmgbzR8F40MXRu+6TbcmYn1SKjTh/WM/PdhGhGLgSjn/pf96zrOsQ+PABDKNNkpzykg== X-Received: by 2002:a17:907:e29f:b0:a8a:3ece:d073 with SMTP id a640c23a62f3a-a90293fb566mr1839315666b.10.1726577085012; Tue, 17 Sep 2024 05:44:45 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610f453asm443317666b.88.2024.09.17.05.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2024 05:44:44 -0700 (PDT) From: Linus Walleij Subject: [PATCH 0/2] Enable MMIO GPIO on BCMBCA Date: Tue, 17 Sep 2024 14:44:38 +0200 Message-Id: <20240917-bcmbca-gpio-mmio-v1-0-674bae8664cc@linaro.org> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIALZ56WYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDS0Nz3aTk3KTkRN30gsx83dxcIGGakmhhZpycZppomqIE1FZQlJqWWQE 2Mjq2thYAvkjqImIAAAA= To: Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Florian Fainelli Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.0 The Broadcom BCA (Broadband Access) SoC:s all have a dirt-simple MMIO GPIO. It's exposed as a direction register per 32-bit block at (base) and a data register per 32-bit block at (block+0x20). However I wouldn't want to use any of the old compatibles becaus for this undocumented SoC I have a gut feeling that there may be registers we don't know about at (block+0x40) etc and a separate compatible will be needed to slot in a more elaborate driver later. Let's do this the hard way and create a new compatible, and probe regular MMIO with that for now. Signed-off-by: Linus Walleij --- Linus Walleij (2): dt-bindings: gpio: Add BCMBCA to MMIO compatibles gpio: mmio: Support BCMBCA GPIO compatible Documentation/devicetree/bindings/gpio/gpio-mmio.yaml | 1 + drivers/gpio/gpio-mmio.c | 1 + 2 files changed, 2 insertions(+) --- base-commit: 98f7e32f20d28ec452afb208f9cffc08448a2652 change-id: 20240917-bcmbca-gpio-mmio-5da863cf5a5d Best regards,